/* ============================================================
   BURLINGTON, RIGHT NOW — the BTown Brief front door (v2, Aug 2026)

   One page, three layers:
     1. the bento — photographs carrying one live number each
     2. the questions — twelve first-person pills, one open panel
     3. everything, A–Z — the guarantee that every page is reachable

   Photographs are Stephen's own (assets/img/ig, sources in sources.json).
   Type is one family, Archivo: wide + black for display, normal for text.
   Color is the lake, the maple, the sap, the ink — used as blocks, not tints.
============================================================ */

:root {
  --paper: #F6F4EF;
  --card:  #FFFFFF;
  --ink:   #0E1A33;
  --ink2:  #46526B;
  --mute:  #8A93A6;
  --line:  #E6E2D8;
  --lake:  #1748D1;
  --lake-soft: #E8EDFA;
  --maple: #F25A1E;
  --sap:   #FFC53D;
  --mint:  #BFE8D2;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 26px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0E14; --card: #151A24; --ink: #F3F1EA; --ink2: #B9BFCD; --mute: #7C8598;
    --line: #232A38; --lake: #7FA0F0; --lake-soft: #162138; --mint: #2A4A3A;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0E14; --card: #151A24; --ink: #F3F1EA; --ink2: #B9BFCD; --mute: #7C8598;
  --line: #232A38; --lake: #7FA0F0; --lake-soft: #162138; --mint: #2A4A3A;
}

/* The theme toggle shows the mode you'd switch TO: moon in light, sun in dark. */
#theme-toggle .icon-sun { display: none; }
#theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) #theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] #theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] #theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] #theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] #theme-toggle .icon-moon { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sap); outline-offset: 2px; }
img { display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(.8rem, 2.5vw, 1.6rem); }

/* Display face: wide, black, upper — the poster voice, used for titles only. */
.D {
  font-variation-settings: "wdth" 110, "wght" 900;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .9;
}
/* ?serif=1 try-on: the section titles borrow the cover's serif voice. */
.serif-heads .D {
  font-family: "Instrument Serif", Georgia, serif;
  font-variation-settings: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  line-height: .95;
}

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; height: 60px; }
.mark { font-variation-settings: "wdth" 112, "wght" 900; text-transform: uppercase; letter-spacing: .01em; font-size: 1.05rem; white-space: nowrap; }
.mark i { font-style: normal; color: var(--maple); }
/* The switch and the verbs travel together: the switch is pinned at the head
   of the run and the verbs scroll past it, so "which half of the site am I
   in" can never scroll out of view. */
.run { display: flex; align-items: center; gap: .9rem; flex: 1; min-width: 0; margin-left: .4rem; }
.doors { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 2px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; }
.door { padding: .3rem .7rem; border-radius: 999px; font-weight: 800; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.door:hover { color: var(--ink); }
.door-cur { background: var(--ink); color: var(--paper); cursor: default; }

/* The verbs take the open middle. They scroll rather than wrap: a wrapped
   third row is another band of navigation above the front door. */
.verbs { display: flex; flex: 1; justify-content: space-evenly; gap: 1rem; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  font-weight: 700; font-size: 1rem; color: var(--ink2); }
.verbs::-webkit-scrollbar { display: none; }
.verbs a { white-space: nowrap; }
.verbs a:hover { color: var(--ink); }
/* the fade only exists when there is more to scroll to — set by v2.js */
.bar.is-over .verbs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }

/* Read and Subscribe were two pills for one destination. */
.read-cta { background: var(--maple); color: #fff; border-radius: 999px; padding: .55rem 1.15rem; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.read-cta:hover { filter: brightness(1.08); }
.sbtn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.sbtn:hover { color: var(--ink); border-color: var(--ink); }

/* The local clock is the page's first line, separate from the sticky header. */
.now-strip { min-height: 24px; padding: 5px 16px 4px; background: var(--ink); color: var(--paper);
  text-align: center; font-size: 10px; font-weight: 700; line-height: 15px; letter-spacing: .11em;
  text-transform: uppercase; font-variant-numeric: tabular-nums; }
.now-strip[hidden] { display: none; }

/* The big tile and the Top 100 bar share one 2x2 cell: the tile takes the
   height, the bar rides underneath it. Weather is then an ordinary tile,
   the same size as Open right now. */
.classic-layout .bento .bento-stack { grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: 1fr auto; gap: 8px; min-width: 0; min-height: 0; }
.classic-layout .bento .bento-stack .t.big { grid-column: auto; grid-row: auto; min-height: 0; }
.bento-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px;
  min-width: 0; padding: 9px 13px; border-radius: 12px; background: var(--lake); color: #fff; }
.bento-bar span { font-weight: 800; white-space: nowrap; }
.bento-bar small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.bento-bar b { font-size: 16px; }

.weather-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  margin-top: 12px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.weather-row b { font-family: "Lora", Georgia, serif; font-size: 18px; }
.weather-row span { color: var(--ink2); font-size: 13px; }
.weather-row i { font-style: normal; font-size: 18px; }

/* The jar borrows All Day's single-control/two-errands bottom sheet. */
.jarbtn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.jarbtn:hover { color: var(--maple); border-color: var(--maple); }
.jarbtn-az { margin-top: 10px; }
.jarbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet[hidden], .toast[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(5, 8, 14, .58); }
.sheet-card { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%);
  max-height: min(86vh, 760px); display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 12px 13px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; margin: 0; font-family: "Lora", Georgia, serif; font-size: 23px; }
.sheet-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  font: 28px/1 var(--f); cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 16px 18px calc(26px + env(safe-area-inset-bottom)); }
.jar-lede { margin: 0 0 16px; color: var(--ink2); }
.jar-form { display: grid; gap: 12px; }
.jar-form label { display: grid; gap: 6px; color: var(--ink2); font-size: 13px; font-weight: 700; }
.jar-form textarea, .jar-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.jar-form textarea:focus, .jar-form input:focus { outline: 2px solid var(--lake); outline-offset: -1px; }
.jar-err { margin: 0; color: var(--maple); font-size: 13px; }
.jar-submit, .jar-kofi { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 800; cursor: pointer; }
.jar-submit:disabled { opacity: .55; cursor: wait; }
.jar-tip { margin-top: 22px; padding: 16px; border-radius: 10px; background: var(--lake-soft); }
.jar-tip-lede { margin: 0 0 13px; font-size: 14px; line-height: 1.5; }
.jar-kofi { width: 100%; background: var(--maple); color: #fff; }
.jar-fine { margin: 16px 0 0; color: var(--mute); font-size: 12px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 110; transform: translateX(-50%); width: max-content;
  max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  box-shadow: 0 8px 32px rgba(0,0,0,.24); text-align: center; font-size: 13px; }

/* ------------------------------------------- the opening frame (the cover) */
.cover { position: relative; min-height: clamp(360px, 54vh, 580px); display: grid; place-items: center; overflow: hidden; background: var(--paper); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The living layer: a transparent canvas over the photo. Time-of-day tint,
   stars and moon at night, the occasional gull. Pure garnish — the page is
   complete without it. */
#sky-live { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Two layers: a dark tint up top so the headline stays readable, and a pure
   fade to the page color below it — the photo dissolves into the bento with
   no gray band and no hard edge. Cover background is paper too, so there's
   never a black sliver under the image. */
.cover::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8,12,20,0) 50%, var(--paper) 97%),
  linear-gradient(180deg, rgba(8,12,20,.42), rgba(8,12,20,.16) 42%, rgba(8,12,20,0) 72%); }
.cover-date { position: absolute; top: 10px; left: 0; right: 0; z-index: 1; margin: 0; text-align: center;
  color: rgba(246,244,239,.88); font-size: .82rem; font-weight: 700; letter-spacing: .05em;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(8,12,20,.5); }
/* The soft shadow keeps the copy readable in every sky — especially the lede,
   which sits in the pale band where the night photo fades into the page. */
.cover-copy { position: relative; z-index: 1; text-align: center; color: #F6F4EF; padding: 3.4rem 1rem; max-width: 60rem;
  text-shadow: 0 1px 3px rgba(8,12,20,.38), 0 2px 18px rgba(8,12,20,.42); }
.cover .eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .35em; text-transform: uppercase; opacity: .85; }
.cover h1 { margin: .7rem 0 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.01em; }
.cover .lede { margin: 1.1rem auto 0; max-width: 48ch; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; opacity: .92; }
.cover-btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.pillbtn { border: 1.5px solid rgba(246,244,239,.55); background: rgba(10,14,22,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #F6F4EF; border-radius: 999px; padding: .68rem 1.3rem; font-weight: 700; font-size: .95rem; }
.pillbtn:hover { background: rgba(246,244,239,.16); color: #fff; }
.cover .credit { position: absolute; right: 14px; bottom: 10px; z-index: 1; font-size: .68rem; color: rgba(246,244,239,.6); }
.scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 1.5px solid rgba(246,244,239,.4); background: rgba(10,14,22,.42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #F6F4EF; border-radius: 999px; padding: .55rem 1.1rem;
  font: inherit; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  transition: opacity .35s ease, background .2s ease; }
.scroll-cue:hover { background: rgba(246,244,239,.16); }
.scroll-cue svg { display: block; animation: cue-bob 1.8s ease-in-out infinite; }
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ---------------------------------------------------------------- kicker */
.bento { padding-top: clamp(1rem, 2.5vw, 1.5rem); }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 152px; gap: 12px; margin-top: .6rem; }
.t {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--card); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.05rem 1.2rem;
  transition: transform .2s ease;
  grid-column: span 2;
}
.t:hover { transform: translateY(-2px); }
.t > * { position: relative; z-index: 1; }
.t.ph { color: #fff; }
.t.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.t.ph::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 38%, rgba(8,12,24,.72) 100%); }
.t .lab { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.t .num { margin: .12rem 0 0; font-variation-settings: "wdth" 108, "wght" 900; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.t .num small { font-size: .42em; font-weight: 700; letter-spacing: -.01em; opacity: .9; }
.t .num.small { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; line-height: 1; }
.t .sub { margin: .28rem 0 0; font-size: .88rem; font-weight: 500; opacity: .92; }
.t.big { grid-column: span 2; grid-row: span 2; }

/* subscribe — ink, the page's closing band */
.band { margin-top: clamp(2.6rem, 6vw, 4.4rem); }
.band .t.dark { padding: 1.3rem 1.5rem; }
.t.dark { background: var(--ink); color: var(--paper); flex-direction: row; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; }
.t.dark .lab { flex: 1 1 100%; }
.t.dark .sub { flex: 1 1 320px; margin: 0; }
.t.dark .sub { opacity: .8; }
.t.dark iframe { flex: 0 1 420px; width: 100%; max-width: 420px; height: 52px; border: 0; border-radius: 12px; margin-top: .2rem; background: transparent; }
:root[data-theme="dark"] .t.dark, :root:not([data-theme="light"]) .t.dark { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t.dark { background: #1748D1; color: #fff; } }
:root[data-theme="dark"] .t.dark { background: #1748D1; color: #fff; }

/* ---------------------------------------------------------------- questions */
.ask { margin-top: clamp(2.4rem, 6vw, 4rem); }
.ask h2 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.8rem); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
/* One quiet style for every pill; the chosen one goes maple red. */
.pill {
  border: 0; cursor: pointer; font: inherit; font-weight: 800;
  font-size: clamp(.98rem, 1.5vw, 1.2rem); letter-spacing: -.01em;
  padding: .78rem 1.15rem; border-radius: 999px;
  color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .15s ease;
}
.pill:hover { transform: rotate(-1.1deg) scale(1.02); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.on, .pill.on:hover { background: var(--maple); color: #fff; box-shadow: none; transform: none; }
.panels { margin-top: 12px; }
.qp { display: none; position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.25rem 1.3rem 1.15rem; }
.qp.on { display: block; }
.qp > img { position: absolute; right: 16px; top: 16px; width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.qp h3 { margin: 0 0 .9rem; padding-right: 84px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; min-height: 40px; display: flex; align-items: center; }
.qp .split { margin: 1rem 0 .5rem; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.qp h3 + .split { margin-top: 0; }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
/* The daily panel packs a dozen links. Flex rows instead of grid: every line
   stretches to fill its full width, so no orphan cell ever sits empty, and the
   tighter cards keep the tallest panel scroll-light. */
.qp[data-q="daily"] .rows { display: flex; flex-wrap: wrap; gap: 8px; }
.qp[data-q="daily"] .rows a { flex: 1 1 190px; min-height: 0; padding: .55rem .85rem; }
.qp[data-q="daily"] .split { margin: .65rem 0 .4rem; }
.rows a { display: flex; flex-direction: column; gap: .12rem; padding: .9rem 1rem; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); min-height: 66px; }
.rows a:hover { border-color: var(--ink); background: var(--sap); color: #1B1500; }
.rows b { font-weight: 800; font-size: 1rem; }
.rows em { font-style: normal; font-weight: 800; font-size: .84rem; color: var(--lake); }
.rows a:hover em { color: #1B1500; }
.rows small { font-size: .82rem; color: var(--ink2); }
.rows a:hover small { color: #3A2E10; }

/* ------------------------------------------------- a few of my favorites */
.favs { margin-top: clamp(2.4rem, 6vw, 4rem); }
.favhead { display: flex; align-items: flex-end; gap: 1.6rem; margin-bottom: 1rem; }
.favhead h2 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 3rem); }
.favhead p { margin: 0 0 .2rem; color: var(--ink2); font-size: .95rem; }
.favshelf {
  /* No scroll-snap: a flick should glide with momentum like an IG carousel,
     not catch on the next card. The dots track position instead. */
  display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
  scrollbar-width: thin; scrollbar-color: var(--mute) var(--line);
}
/* the scrollbar is the affordance — keep it visible, iPhone-thin */
.favshelf::-webkit-scrollbar { height: 6px; }
.favshelf::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.favshelf::-webkit-scrollbar-thumb { background: var(--mute); border-radius: 999px; }
/* IG-style page dots under the shelf — the swipe-right affordance the
   scrollbar alone wasn't. Built by v2.js from the shelf's real width. */
.favdots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.favdots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--mute); opacity: .45; cursor: pointer; transition: all .2s ease; }
.favdots button.on { background: var(--maple); opacity: 1; transform: scale(1.3); }
.fav {
  flex: 0 0 236px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform .2s ease;
}
.fav:hover { transform: translateY(-2px); border-color: var(--ink); }
.fav > img { width: 100%; height: 128px; object-fit: cover; }
.fav .tx { display: block; padding: .65rem .85rem .8rem; }
.fav .tx b { display: block; font-weight: 800; font-size: .95rem; letter-spacing: -.01em; }
.fav .tx small { display: block; margin-top: .2rem; font-size: .76rem; color: var(--ink2); line-height: 1.4; font-weight: 500; }
.fav .tx i { display: inline-block; margin-top: .5rem; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #B8860B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fav .tx i { color: var(--sap); } }
:root[data-theme="dark"] .fav .tx i { color: var(--sap); }

/* ---------------------------------------------------------------- A–Z */
.az { margin-top: clamp(2.6rem, 6vw, 4.4rem); border-top: 2px solid var(--ink); padding-top: 1.4rem; scroll-margin-top: 72px; }
#subscribe, #ask { scroll-margin-top: 72px; }
.azhead { display: grid; grid-template-columns: auto 1fr; gap: .6rem 2rem; align-items: end; }
.azhead h2 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 3rem); }
.azhead p { margin: 0; color: var(--ink2); font-size: .95rem; max-width: 48ch; }
.find { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; margin-top: .4rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem 1rem; color: var(--mute); }
.find:focus-within { border-color: var(--ink); }
.find input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); min-width: 0; }
/* shelf chips: filter the shelves below */
/* The shelf filters as a table of contents: name, dotted leader, count —
   like the index page of a book. Same buttons, same behavior as the chips
   they replace. */
.azchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 2.2rem; row-gap: .15rem; margin-top: 1.1rem; }
.azchip { display: flex; align-items: baseline; gap: .55em; width: 100%; text-align: left;
  border: 0; background: none; color: var(--ink2); padding: .32rem 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; }
.azchip .ct { white-space: nowrap; }
.azchip .lead { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.28em); min-width: 1.5em; }
.azchip .n { font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 800; min-width: 1.6em; text-align: center; padding: .05em .3em; border-radius: 6px; }
.azchip:hover { color: var(--ink); }
.azchip:hover .lead { border-color: var(--mute); }
.azchip.on { color: var(--ink); font-weight: 800; }
.azchip.on .lead { border-bottom-style: solid; border-color: var(--ink); }
.azchip.on .n { background: var(--ink); color: var(--paper); }

/* the shelves: compact photo tiles, four columns of them */
.shelves { columns: 4; column-gap: 16px; margin-top: 1.2rem; }
.grp { break-inside: avoid; margin-bottom: 1.4rem; }
.grp[hidden] { display: none; }
.gh { display: flex; align-items: baseline; gap: 8px; padding-bottom: 5px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.gh i { width: 9px; height: 9px; border-radius: 2.5px; align-self: center; background: var(--lake); }
.gh .c-maple { background: var(--maple); } .gh .c-sap { background: var(--sap); } .gh .c-mint { background: var(--mint); } .gh .c-lake { background: var(--lake); }
.gh h3 { margin: 0; font-size: .8rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.gh small { margin-left: auto; color: var(--mute); font-weight: 700; font-size: .72rem; font-variant-numeric: tabular-nums; }
.tile { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; margin-bottom: 7px; min-height: 54px; }
.tile:hover { border-color: var(--lake); }
.tile > img { width: 72px; height: 54px; object-fit: cover; flex: 0 0 72px; align-self: stretch; }
.tile .mo { flex: 0 0 72px; align-self: stretch; min-height: 54px; display: grid; place-items: center; font-style: normal; font-size: 1.35rem; background: var(--paper); border-right: 1px solid var(--line); }
.tile .tt { padding: .45rem .7rem .45rem 0; min-width: 0; }
.tile .tt b { display: block; font-weight: 800; font-size: .84rem; letter-spacing: -.01em; line-height: 1.2; }
.tile .tt b i { font-style: normal; font-weight: 600; color: var(--mute); }
.tile .tt small { display: block; margin-top: 1px; font-size: .72rem; color: var(--ink2); font-weight: 500; line-height: 1.3; }
.tile.lead { border-color: var(--lake); }
.tile.lead b { color: var(--lake); }
.tile.hide { display: none; }
.azmore { margin: 1.2rem 0 0; font-size: .92rem; }
.azmore a { color: var(--lake); font-weight: 800; }
.azmore.start { margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; font-size: 1rem; }

/* ---------------------------------------------------------------- foot */
.foot { margin: 2.6rem 0 3.2rem; font-size: .82rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.foot a { color: var(--ink2); font-weight: 600; }
.foot a:hover { color: var(--lake); }

/* ---------------------------------------------------------------- phones & tablets */
@media (max-width: 1100px) { .shelves { columns: 3; } }
@media (max-width: 980px) { .shelves { columns: 2; } }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  /* Phones: two deliberate rows, and the second one holds everything now.
     Row 1 — wordmark left; Read / Subscribe, theme and search right.
     Row 2 — the Hub/All Day switch, then the verbs, scrolling.
     The ordered ::before is a full-width flex break between the rows.
     This row 1 used to be a wordmark and two pills with a hand's width of
     nothing between them; the second row used to fit five verbs. */
  .bar { gap: .45rem .5rem; height: auto; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .4rem; }
  .bar::before { content: ""; flex-basis: 100%; height: 0; order: 3; }
  .mark { order: 1; font-size: 1rem; }
  .read-cta { order: 2; margin-left: auto; padding: .45rem .85rem; font-size: .85rem; }
  #theme-toggle { order: 2; }
  #search-open { order: 2; }
  .jarbtn { order: 0; min-height: 36px; padding: 0 9px; }
  .bar .jarbtn span { display: none; }
  .run { order: 4; flex-basis: 100%; margin-left: 0; gap: .6rem;
    /* bleed to the page edge so a scrolled verb does not stop short of it —
       the same clamp .wrap uses, because there is no token for it */
    margin-right: calc(clamp(.8rem, 2.5vw, 1.6rem) * -1);
    padding-right: clamp(.8rem, 2.5vw, 1.6rem); }
  .verbs { justify-content: flex-start; gap: .85rem; font-size: .9rem; }
  .door { padding: .28rem .6rem; font-size: .73rem; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 142px; }
  .t { grid-column: span 1; padding: .9rem .95rem; }
  .t.big { grid-column: span 2; grid-row: span 2; }
  .classic-layout .bento .bento-stack { grid-column: 1 / -1; grid-row: auto; }
  .classic-layout .bento .bento-stack .t.big { min-height: 260px; }
  .weather-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .weather-row span { grid-column: 1 / -1; }
  .sbtn { width: 34px; height: 34px; }
  .rc-long { display: none; }
  .t .num { font-size: 2rem; }
  .favhead { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .fav { flex-basis: 200px; }
  .fav > img { height: 108px; }
  .azhead { grid-template-columns: 1fr; }
  .shelves { columns: 1; }
  .tile { min-height: 48px; }
  .tile > img, .tile .mo { flex-basis: 64px; }
  .qp > img { width: 52px; height: 52px; right: 12px; top: 12px; }
  .qp h3 { padding-right: 64px; font-size: 1.2rem; }
  /* Pills two-up on phones — half the vertical run of the question list.
     The daily pill leads at full width; the other twelve pair up evenly. */
  .pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pill { font-size: .82rem; padding: .55rem .55rem; text-align: center; letter-spacing: 0; }
  .pill[data-q="daily"] { grid-column: 1 / -1; font-size: .95rem; padding: .65rem; }
}
@media (max-width: 430px) {
  /* No room for both on a phone's top row: the Read CTA keeps its slot and
     the jar lives at the head of the A–Z instead (.jarbtn-az). */
  .bar .jarbtn { display: none; }
  .weather-row { grid-template-columns: 1fr auto; }
  .weather-row i { grid-row: 1; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t, .pill, .fav { transition: none; }
}
