/* ==========================================================================
   Talk Gumbo — editorial stylesheet
   Newsprint cream, Denise's logo blue, roux brown and robin's-egg blue.
   Fraunces (headlines) · Newsreader (reading) · Archivo (labels)
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 400 650; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 500 750; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Signature"; src: url("/fonts/mrs-saint-delafield-latin-400-normal.woff2") format("woff2"); font-display: swap; }
/* Fallbacks shaped like the real faces so nothing jumps when the fonts arrive. */
/* Measured with fontTools against Georgia (same text, same weight), so nothing reflows when the real fonts arrive. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); font-style: normal; size-adjust: 94.5%; ascent-override: 103.5%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; size-adjust: 89.6%; ascent-override: 109.1%; descent-override: 28.5%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); font-style: normal; size-adjust: 96.8%; ascent-override: 76%; descent-override: 27.4%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; size-adjust: 88.9%; ascent-override: 82.6%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 92%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --paper: #F7F2E9;
  --paper-2: #EFE6D6;
  --paper-3: #E6DAC4;
  --card: #FFFDF8;
  --ink: #1B2333;
  --ink-2: #3D4658;
  --ink-3: #5A6172;
  --blue: #004AAD;
  --blue-2: #0A2E6E;
  --blue-3: #E3ECF8;
  --egg: #A8D5D1;
  --egg-2: #6FB3AE;
  --roux: #8A4B22;
  --roux-2: #B9783F;
  --cayenne: #C2462B;
  --rule: #D9CDB7;
  --rule-2: #C6B699;
  --gold: #E2C08D;
  --gold-2: #C9A063;

  --f-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-text: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --f-label: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --f-sign: "Signature", "Brush Script MT", cursive;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(27,35,51,.04), 0 12px 32px -18px rgba(27,35,51,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Newsprint grain over everything — fixed, cheap, never intercepts clicks. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: url("/brand/grain.png") repeat; background-size: 160px 160px; opacity: .55;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--egg); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 6px; font: 600 15px var(--f-label); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
svg use { pointer-events: none; }
[hidden] { display: none !important; }
.show-sm { display: none; }
@media (max-width: 860px) { .show-sm { display: inline; } }

/* --------------------------------------------------------------- type */
.eyebrow, .kicker, .byline, .utility, .ticker, .mainnav, .btn, .u-btn, .front__index, .tile__no, .tile__foot, .pager, .footer__h {
  font-family: var(--f-label);
  font-stretch: 82%;
}
.eyebrow { margin: 0 0 .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--roux); display: flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tc, var(--blue)); text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.kicker:hover { background-size: 100% 1.5px; }
.byline { margin: .75rem 0 0; font-size: .82rem; letter-spacing: .04em; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.section-title { font-family: var(--f-display); font-weight: 560; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 120; color: var(--ink); text-wrap: balance; }
.section-title em { font-style: italic; color: var(--blue); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 120; font-weight: 480; }
.section-dek { max-width: 46ch; margin: 1rem 0 0; font-size: 1.2rem; color: var(--ink-2); line-height: 1.5; }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .9em 1.5em; border-radius: 999px; font-size: .95rem; font-weight: 650; letter-spacing: .04em; text-decoration: none; border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,74,173,.7); }
.btn--blue:hover { background: var(--blue-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link-btn { display: inline-flex; align-items: center; gap: .5em; background: none; border: 0; padding: .5em 0; color: var(--blue); font: 600 1rem var(--f-text); text-decoration: underline; text-underline-offset: .2em; }
.link-btn svg { width: 20px; height: 20px; }
.u-btn { display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--rule-2); background: transparent; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.u-btn svg { width: 16px; height: 16px; }
.u-btn:hover { border-color: var(--ink); }
.u-btn--fill { background: var(--blue); border-color: var(--blue); color: #fff; }
.u-btn--fill:hover { background: var(--blue-2); border-color: var(--blue-2); }

/* ------------------------------------------------------------ masthead */
.masthead { position: relative; z-index: 30; background: var(--paper); }
.utility { border-bottom: 1px solid var(--rule); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.utility__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.utility__meta { margin: 0; display: flex; align-items: center; gap: .9em; flex-wrap: wrap; font-weight: 550; }
.utility .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule-2); }
.utility__actions { display: flex; align-items: center; gap: 8px; }

.nameplate { display: flex; justify-content: center; padding-block: clamp(14px, 2.4vw, 30px) clamp(8px, 1.4vw, 16px); }
.nameplate__logo { display: block; width: min(560px, 82vw); color: var(--blue); }
.tg-logo { width: 100%; height: auto; overflow: visible; }
.tg-feather { transform-box: fill-box; transform-origin: 20% 95%; }
.nameplate__logo:hover .tg-feather { animation: quill 1.2s var(--ease) both; }
@keyframes quill { 0% { transform: rotate(0); } 30% { transform: rotate(-9deg) translate(-4px, -3px); } 60% { transform: rotate(5deg) translate(2px, 1px); } 100% { transform: rotate(0); } }

/* Wind chimes — the feather is the sail. Click to ring. */
.chimes { width: 34px; height: 46px; padding: 0; border: 0; background: none; color: var(--blue); position: relative; }
.chimes svg { width: 100%; height: 100%; overflow: visible; }
.chimes path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.chimes .chimes__bar { stroke-width: 3; stroke: var(--roux); }
.chimes rect { fill: url(#none); fill: var(--egg-2); stroke: var(--blue); stroke-width: 1; }
.chimes .rod { transform-box: view-box; transform-origin: 30px 10px; animation: sway 5s ease-in-out infinite; animation-delay: var(--d); }
.chimes .rod:nth-child(1) { transform-origin: 12px 10px; } .chimes .rod:nth-child(2) { transform-origin: 22px 10px; }
.chimes .rod:nth-child(3) { transform-origin: 38px 10px; } .chimes .rod:nth-child(4) { transform-origin: 48px 10px; }
.chimes .chimes__sail { transform-box: view-box; transform-origin: 30px 10px; animation: sway 4s ease-in-out infinite -.8s; }
.chimes .chimes__feather { fill: var(--blue); stroke: none; }
.chimes.is-ringing .rod, .chimes.is-ringing .chimes__sail { animation: ring 1.6s var(--ease-out) both; animation-delay: calc(var(--d, 0s) * .4); }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes ring { 0% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 35% { transform: rotate(10deg); } 55% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }

.mainnav { border-block: 1px solid var(--ink); box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--ink); margin-bottom: 4px; }
.mainnav__row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(8px, 2.4vw, 34px); align-items: stretch; }
.mainnav__list > li > a { display: flex; align-items: center; gap: 6px; height: 58px; font-size: .92rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); position: relative; }
.mainnav__list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mainnav__list > li > a:hover::after, .mainnav__list > li > a.is-on::after { transform: scaleX(1); }
.mainnav__list > li > a.is-on { color: var(--blue); }
.caret { width: 12px; height: 8px; transition: transform .3s var(--ease); }
.has-drop { position: relative; }
.has-drop.is-open .caret, .has-drop:hover .caret { transform: rotate(180deg); }
.drop { position: absolute; left: 50%; top: 100%; width: min(640px, 92vw); transform: translate(-50%, 10px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; z-index: 40; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.is-open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.drop__inner { margin-top: 2px; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--blue); box-shadow: 0 30px 60px -30px rgba(27,35,51,.45); padding: 20px; }
.drop__eyebrow { margin: 0 0 12px; font: 650 .72rem var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.drop__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop__list a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.drop__list a:hover { background: var(--paper); }
.drop__list img, .drop__swatch { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: var(--tc); }
.drop__list strong { display: block; font: 600 1.02rem/1.2 var(--f-display); color: var(--ink); }
.drop__list a:hover strong { color: var(--tc); }
.drop__list small { display: block; font-size: .86rem; line-height: 1.35; color: var(--ink-3); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drop__all { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); font: 650 .82rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.drop__all svg { width: 18px; height: 18px; }

.mainnav__search { display: flex; align-items: center; border-bottom: 1.5px solid var(--ink); }
.mainnav__search input { width: 170px; border: 0; background: transparent; padding: 8px 4px; font: 400 1rem var(--f-text); outline: none; transition: width .35s var(--ease); }
.mainnav__search input:focus { width: 240px; }
.mainnav__search button { border: 0; background: none; padding: 6px; display: grid; place-items: center; }
.mainnav__search svg { width: 20px; height: 20px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.sticky-bar__actions { display: flex; align-items: center; gap: 10px; }
.chimes--sm { width: 26px; height: 36px; }
.mainnav__toggle { display: none; align-items: center; gap: 8px; border: 0; background: none; font: 650 .9rem var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; }
.mainnav__toggle svg { width: 24px; height: 24px; }

/* Ticker */
.ticker { display: flex; align-items: stretch; background: var(--ink); color: var(--paper); font-size: .86rem; letter-spacing: .03em; overflow: hidden; }
.ticker__label { flex: none; margin: 0; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: var(--blue); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; position: relative; }
.ticker__label::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px; background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9b84; box-shadow: 0 0 0 0 rgba(255,155,132,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,155,132,0); } 100% { box-shadow: 0 0 0 0 rgba(255,155,132,0); } }
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); padding-left: 18px; }
.ticker__items { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; width: max-content; animation: ticker var(--ticker-dur, 60s) linear infinite; }
.ticker__items li { display: flex; align-items: center; gap: 22px; padding: 12px 22px 12px 0; white-space: nowrap; }
.ticker__items a, .ticker__items span { color: inherit; text-decoration: none; }
.ticker__items a:hover { color: var(--egg); text-decoration: underline; }
.ticker__items svg { width: 15px; height: 15px; color: var(--egg); }
.ticker:hover .ticker__items, .ticker.is-paused .ticker__items, .ticker:focus-within .ticker__items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__pause { flex: none; width: 46px; border: 0; background: rgba(255,255,255,.06); color: var(--paper); display: grid; place-items: center; }
.ticker__pause span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.ticker.is-paused .ticker__pause span { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; }

/* Sticky bar + reading progress */
.sticky-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--rule); transform: translateY(-110%); transition: transform .45s var(--ease); }
.sticky-bar.is-on { transform: none; }
.sticky-bar__row { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.sticky-bar__logo img { width: 120px; height: auto; }
.sticky-bar__title { flex: 1; min-width: 0; font: 600 1.02rem var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; display: none; }
.page-post .progress { display: block; }
.progress__line { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); }
.progress__bird { position: absolute; top: -9px; left: calc(var(--p, 0) * 100% - 22px); width: 22px; height: 11px; color: var(--blue); transition: left .1s linear; }

.menu-sheet { position: fixed; inset: 0; z-index: 100; background: var(--paper); padding: 18px var(--gutter) 40px; overflow-y: auto; }
.menu-sheet[hidden] { display: none; }
.menu-sheet__head { display: flex; justify-content: space-between; align-items: center; }
.menu-sheet__head button { width: 52px; height: 52px; border: 1px solid var(--rule-2); border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.menu-sheet__head svg { width: 24px; height: 24px; }
.menu-sheet__search { display: flex; margin: 22px 0; border-bottom: 2px solid var(--ink); }
.menu-sheet__search input { flex: 1; border: 0; background: transparent; padding: 12px 0; font-size: 1.15rem; outline: none; }
.menu-sheet__search button { border: 0; background: none; width: 48px; display: grid; place-items: center; }
.menu-sheet__search svg { width: 22px; height: 22px; }
.menu-sheet__main { list-style: none; margin: 0; padding: 0; }
.menu-sheet__main a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font: 560 1.7rem/1.15 var(--f-display); text-decoration: none; }
.menu-sheet__main .sub a { font-size: 1.2rem; padding-left: 22px; color: var(--ink-2); position: relative; }
.menu-sheet__main .sub a::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 1.5px; background: var(--blue); }

/* ------------------------------------------------------- front page */
.front { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(24px, 3vw, 48px); padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.front__stage { position: relative; display: grid; }
.front__slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; visibility: hidden; }
.front__slide.is-active { visibility: visible; }
.front__media { display: block; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--paper-2); clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out); border-radius: 2px; }
/* The first slide is shown at once (it is the page's main picture); animations start with the second. */
.front:not(.is-ready) .front__media, .front:not(.is-ready) .front__media img, .front:not(.is-ready) .front__text > * { transition: none !important; }
.front__slide.is-active .front__media { clip-path: inset(0 0 0 0); }
.front__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.front__slide.is-active .front__media img { transform: scale(1); }
.front__text > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.front__slide.is-active .front__text > * { opacity: 1; transform: none; }
.front__slide.is-active .front__text > :nth-child(2) { transition-delay: .12s; }
.front__slide.is-active .front__text > :nth-child(3) { transition-delay: .22s; }
.front__slide.is-active .front__text > :nth-child(4) { transition-delay: .3s; }
.front__slide.is-active .front__text > :nth-child(5) { transition-delay: .38s; }
.front__title { font-family: var(--f-display); font-size: clamp(2rem, 1.1rem + 2.7vw, 3.5rem); line-height: 1.02; letter-spacing: -.022em; font-weight: 580; margin: .6rem 0 0; font-variation-settings: "SOFT" 50, "opsz" 144; text-wrap: balance; }
.front__title a { text-decoration: none; background: linear-gradient(var(--egg), var(--egg)) 0 92% / 0 .2em no-repeat; transition: background-size .6s var(--ease); }
.front__title a:hover { background-size: 100% .2em; }
.front__dek { margin: 1.1rem 0 0; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
.front__text .btn { margin-top: 1.6rem; }
.front__index { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2vw, 30px); display: flex; flex-direction: column; }
.front__index-h { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--roux); }
.front__index ol { list-style: none; margin: 0; padding: 0; }
.front__index li + li { border-top: 1px solid var(--rule); }
.front__index button { width: 100%; text-align: left; background: none; border: 0; padding: 16px 0 18px; display: grid; grid-template-columns: 38px 1fr; gap: 4px 10px; color: var(--ink-3); position: relative; }
.front__num { font: 500 1.4rem/1 var(--f-display); font-variation-settings: "opsz" 144; color: #8f7b57; transition: color .3s; }
.front__itxt { font: 500 1.06rem/1.3 var(--f-display); letter-spacing: -.005em; transition: color .3s; }
.front__index button:hover .front__itxt, .front__index button.is-active .front__itxt { color: var(--ink); }
.front__index button.is-active .front__num { color: var(--blue); }
.front__bar { grid-column: 2; height: 2px; background: var(--rule); margin-top: 10px; overflow: hidden; }
.front__bar span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.front__index button.is-active .front__bar span { animation: fill var(--slide-ms, 8000ms) linear forwards; }
.front.is-paused .front__index button.is-active .front__bar span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.front__ctrl { display: flex; gap: 8px; padding-top: 16px; }
.front__ctrl button { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; line-height: 0; transition: background .2s, color .2s; }
.front__ctrl svg { width: 20px; height: 20px; }
.front__note { margin-top: auto; display: grid; gap: 6px; padding: 20px 22px; border-radius: 4px; text-decoration: none; background: repeating-linear-gradient(transparent 0 29px, rgba(0,74,173,.08) 29px 30px), var(--card); border: 1px solid var(--rule); position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.front__note::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: rgba(194,70,43,.3); }
.front__note:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow); }
.front__note-k { font: 700 .72rem var(--f-label); font-stretch: 82%; letter-spacing: .16em; text-transform: uppercase; color: var(--roux); }
.front__note-t { font: italic 500 1.3rem/1.25 var(--f-display); color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.front__note-a { display: inline-flex; align-items: center; gap: 6px; font: 700 .82rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.front__note-a svg { width: 16px; height: 16px; }
.front__index { gap: 0; }
.front__ctrl { margin-bottom: 22px; }
.front__ctrl button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ico-pause { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.front.is-paused .ico-pause { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }

/* ------------------------------------------------------------- letter */
.letter { position: relative; padding-block: clamp(56px, 8vw, 120px); background:
  repeating-linear-gradient(transparent 0 37px, rgba(0,74,173,.07) 37px 38px),
  var(--card); border-block: 1px solid var(--rule); }
.letter::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(20px, 7vw, 110px); width: 1px; background: rgba(194,70,43,.25); }
.letter__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.polaroid { position: relative; margin: 0; background: #fff; padding: 14px 14px 64px; box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 30px 50px -28px rgba(27,35,51,.55); transform: rotate(-3deg); max-width: 420px; justify-self: center; }
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: sepia(.08) saturate(1.05); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 1.9rem var(--f-sign); color: var(--blue); }
.tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 32px; transform: translateX(-50%) rotate(2deg); background: rgba(168,213,209,.75); box-shadow: 0 1px 3px rgba(0,0,0,.08); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 52%); }
.letter__nest { position: absolute; width: 58%; right: -22%; bottom: -18%; }
.prose--letter { font-size: 1.22rem; }
.prose--letter > p:first-child::first-letter { font: 600 4.3em/.82 var(--f-display); float: left; margin: .06em .1em 0 0; color: var(--blue); font-variation-settings: "SOFT" 100, "WONK" 1; }
.signature { margin: 1.4rem 0 1.6rem; display: inline-block; position: relative; }
.signature span { font: 4.2rem/1 var(--f-sign); color: var(--blue); display: inline-block; padding-right: 20px; }
.signature svg { width: 220px; height: 24px; margin-top: -8px; }
.signature path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 230; transition: stroke-dashoffset 1.4s var(--ease) .4s; }
.is-in .signature path, .signature.is-in path { stroke-dashoffset: 0; }

/* Nest drawing */
.nest { overflow: visible; }
.nest__bowl { fill: #6b3c1c; opacity: 0; transition: opacity 1s .6s; }
.nest.is-in .nest__bowl { opacity: .92; }
.quoteband__nest .nest__bowl { fill: #8a5a2c; }
.nest__twigs path { stroke: var(--roux); stroke-width: 3.2; stroke-dasharray: 420; stroke-dashoffset: 420; }
.nest__twigs path:nth-child(3n) { stroke: var(--roux-2); stroke-width: 2.4; }
.nest__twigs path:nth-child(4n) { stroke: #5b3418; }
.nest.is-in .nest__twigs path { animation: draw 1.6s var(--ease) forwards; }
.nest.is-in .nest__twigs path:nth-child(n) { animation-delay: calc(var(--k, 0) * 1s); }
.nest__twigs path:nth-child(2) { --k: .08; } .nest__twigs path:nth-child(3) { --k: .16; } .nest__twigs path:nth-child(4) { --k: .24; }
.nest__twigs path:nth-child(5) { --k: .32; } .nest__twigs path:nth-child(6) { --k: .4; } .nest__twigs path:nth-child(7) { --k: .48; }
.nest__twigs path:nth-child(8) { --k: .56; } .nest__twigs path:nth-child(9) { --k: .64; } .nest__twigs path:nth-child(10) { --k: .72; } .nest__twigs path:nth-child(11) { --k: .8; } .nest__twigs path:nth-child(12) { --k: .88; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.egg ellipse { fill: var(--egg); stroke: rgba(27,35,51,.18); stroke-width: 1.5; }
.egg circle { fill: #4f7f7b; opacity: .55; }
.egg { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(-30px) scale(.9); }
.nest.is-in .egg { animation: settle .9s var(--ease-out) forwards; animation-delay: calc(.9s + var(--e) * .18s); }
.nest.is-in .egg--rock { animation: settle .9s var(--ease-out) forwards 1.26s, rock 6s ease-in-out infinite 3s; }
@keyframes settle { 0% { opacity: 0; transform: translateY(-30px) scale(.9); } 60% { opacity: 1; transform: translateY(3px) scale(1.02, .97); } 100% { opacity: 1; transform: none; } }
@keyframes rock { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-7deg); } 92% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
.nest__bird { fill: var(--blue); }
.nest__bird .eye { fill: #fff; }
.nest__bird .legs { stroke: var(--roux); stroke-width: 2; fill: none; }
.nest__bird .wing { fill: var(--blue-2); transform-box: fill-box; transform-origin: 0 50%; }
.nest__bird { opacity: 0; }
.nest.is-in .nest__bird { animation: land 1.4s var(--ease-out) forwards 1.8s; }
@keyframes land { 0% { opacity: 0; transform: translate(330px, -120px) scale(.7); } 100% { opacity: 1; transform: translate(236px, 40px); } }

/* --------------------------------------------------------------- pot */
.pot { padding-block: clamp(64px, 9vw, 130px); }
.pot__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tile { position: relative; }
.tile__link { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.tile__link:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 28px 50px -30px rgba(27,35,51,.55); border-color: var(--tc); }
.tile__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--tc); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; opacity: .9; transition: filter .7s var(--ease), transform 1.2s var(--ease), opacity .5s; }
.tile__link:hover .tile__media img { filter: none; mix-blend-mode: normal; opacity: 1; transform: scale(1.06); }
.tile__no { position: absolute; top: 14px; left: 14px; background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.tile__body { display: flex; flex-direction: column; padding: 22px 22px 20px; border-top: 4px solid var(--tc); }
.tile__name { font: 580 1.62rem/1.08 var(--f-display); letter-spacing: -.01em; font-variation-settings: "SOFT" 70, "opsz" 96; color: var(--ink); }
.tile__desc { margin-top: .6rem; color: var(--ink-2); font-size: 1.04rem; line-height: 1.45; flex: 1; }
.tile__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px dashed var(--rule-2); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tile__read { display: inline-flex; align-items: center; gap: 6px; color: var(--tc); font-weight: 750; }
.tile__read svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.tile__link:hover .tile__read svg { transform: translateX(5px); }

/* --------------------------------------------------------- quote band */
.quoteband { position: relative; overflow: hidden; background: var(--blue-2); color: var(--paper); padding-block: clamp(80px, 12vw, 170px); }
.quoteband::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(168,213,209,.18), transparent 60%), radial-gradient(50% 60% at 10% 90%, rgba(0,74,173,.6), transparent 70%); }
.quoteband__grid { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.quoteband__nest .nest__twigs path { stroke: #d8b48a; }
.quoteband__nest .nest__twigs path:nth-child(3n) { stroke: #b9874f; }
.quoteband__nest .nest__twigs path:nth-child(4n) { stroke: #f0d9b8; }
.quoteband__q { margin: 0; }
.quoteband__q p { margin: 0; font: 420 clamp(1.9rem, 1rem + 3.2vw, 3.6rem)/1.12 var(--f-display); letter-spacing: -.018em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-style: italic; text-wrap: balance; }
.quoteband__q p .w { opacity: .18; transition: opacity .4s; }
.quoteband__q p .w.on { opacity: 1; }
.quoteband__q footer { margin-top: 1.6rem; font: 600 .82rem var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--egg); }
.quoteband__q cite { font-style: normal; }
.flock { position: absolute; inset: 0; pointer-events: none; }
.flock__bird { position: absolute; width: calc(54px - var(--i) * 4px); height: auto; color: var(--egg); fill: currentColor; top: calc(12% + var(--i) * 9%); left: -60px; opacity: .85; }
.flock__bird .w1, .flock__bird .w2 { transform-box: view-box; transform-origin: 32px 18px; animation: flap .55s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }

/* ------------------------------------------------------------- latest */
.latest { padding-block: clamp(64px, 9vw, 130px); }
.paper-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 0 clamp(20px, 2.6vw, 40px); }
.paper-grid__lead { grid-row: span 2; padding-right: clamp(20px, 2.6vw, 40px); border-right: 1px solid var(--rule); }
.paper-grid__side { grid-column: 2 / span 2; }
.paper-grid__side + .paper-grid__side { border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 24px; }
.paper-grid__side { display: grid !important; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.paper-grid__list { grid-column: auto; }
.paper-grid { grid-template-areas: none; }
.paper-grid > .paper-grid__list { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink); }

.card { position: relative; }
.card__media { display: block; overflow: hidden; background: var(--paper-2); border-radius: 2px; aspect-ratio: 3/2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__blank { width: 100%; height: 100%; display: grid; place-items: center; color: var(--rule-2); }
.card__blank svg { width: 40px; height: 40px; }
.card__body { padding-top: 16px; }
.card__title { font-family: var(--f-display); font-weight: 580; font-size: 1.42rem; line-height: 1.15; letter-spacing: -.012em; margin: .45rem 0 0; font-variation-settings: "SOFT" 40, "opsz" 72; text-wrap: balance; }
.card__title a { text-decoration: none; background: linear-gradient(var(--egg), var(--egg)) 0 92% / 0 .22em no-repeat; transition: background-size .5s var(--ease); }
.card__title a:hover { background-size: 100% .22em; }
.card__dek { margin: .6rem 0 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.5; }
.card--lg .card__media { aspect-ratio: 4/3.2; }
.card--lg .card__title { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.7rem); line-height: 1.04; font-variation-settings: "SOFT" 50, "opsz" 144; }
.card--lg .card__dek { font-size: 1.16rem; }
.card--sm .card__media { aspect-ratio: 16/10; }
.card--sm .card__title { font-size: 1.2rem; }
.paper-grid__side .card__body { padding-top: 0; }
.paper-grid__side .card__media { aspect-ratio: 4/3; }

/* Story grid (index / topic / search) */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 40px); }
.grid3 .card { padding-top: 22px; border-top: 1px solid var(--ink); }

/* --------------------------------------------------------- subscribe */
.subband { padding-block: clamp(56px, 8vw, 110px); background: var(--paper-2); border-top: 1px solid var(--rule); position: relative; overflow: hidden; }
.subband__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.subband--compact { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(28px, 4vw, 48px); margin-block: 48px; }
.subband--compact .wrap { padding: 0; }
.subband--compact .subband__grid { grid-template-columns: 170px 1fr; }
.subband--compact .section-title { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); }
.subband__pitch { font-size: 1.18rem; color: var(--ink-2); margin: 1rem 0 1.4rem; max-width: 48ch; }
.subform { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; position: relative; }
.subform input[type=email] { flex: 1 1 260px; min-height: 56px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 1.1rem; }
.subform input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,74,173,.15); }
.subform .btn { min-height: 56px; }
.subform__msg { flex-basis: 100%; margin: 6px 0 0; font: italic 1.1rem var(--f-text); color: var(--blue); min-height: 1.4em; }
.envelope { width: 100%; overflow: visible; }
.env-back { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.env-fold { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.env-letter rect { fill: #fff; stroke: var(--rule-2); stroke-width: 1.5; }
.env-letter path { stroke: var(--egg-2); stroke-width: 4; stroke-linecap: round; }
.env-letter { transition: transform 1s var(--ease); }
.subband.is-in .env-letter { animation: peek 4s var(--ease) infinite 1s; }
@keyframes peek { 0%, 100% { transform: translateY(26px); } 40%, 60% { transform: translateY(0); } }
.env-seal { fill: var(--cayenne); }
.env-seal-f { color: #fff; }
.subband__art { position: relative; }
.envelope-bird { position: absolute; width: 56px; top: -10px; right: -10px; fill: var(--blue); opacity: 0; }
.envelope-bird .w1, .envelope-bird .w2 { transform-box: view-box; transform-origin: 32px 18px; animation: flap .4s ease-in-out infinite alternate; }
.subband.is-sent .envelope { animation: away 1.6s var(--ease) forwards; }
.subband.is-sent .envelope-bird { animation: carry 1.6s var(--ease) forwards; }
@keyframes away { 0% { transform: none; } 40% { transform: translate(-6px, 6px) rotate(-3deg); } 100% { transform: translate(380px, -260px) rotate(18deg) scale(.3); opacity: 0; } }
@keyframes carry { 0% { opacity: 0; transform: translate(-40px, 40px); } 30% { opacity: 1; transform: translate(-60px, 30px); } 100% { opacity: 0; transform: translate(340px, -280px); } }

/* ------------------------------------------------------------- footer */
.footer { position: relative; background: var(--ink); color: #d9d4ca; padding-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.footer a { color: #fff; }
.footer__birds { position: absolute; top: 30px; left: 0; right: 0; height: 80px; pointer-events: none; }
.fbird { position: absolute; width: 36px; height: 18px; color: var(--gold); left: 8%; top: calc(var(--i) * 10px); opacity: 0; }
.footer.is-in .fbird { animation: fledge 4.5s var(--ease) forwards; animation-delay: calc(var(--i) * .35s); }
@keyframes fledge { 0% { opacity: 0; transform: translate(0, 40px) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(85vw, -60px) scale(1); } }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__logo { display: block; width: min(320px, 80vw); color: #fff; }
.footer__brand p { max-width: 40ch; margin: 1.4rem 0 0; font-size: 1.08rem; line-height: 1.6; color: #c9c3b8; }
.footer__h { margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { padding: .32rem 0; }
.footer__list a { text-decoration: none; font-size: 1.06rem; }
.footer__list a:hover { text-decoration: underline; }
.footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1.2rem 0 0; }
.footer__social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font: 600 .8rem var(--f-label); letter-spacing: .08em; text-decoration: none; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 26px 34px; font: 500 .86rem var(--f-label); letter-spacing: .04em; color: #a9a397; }
.footer__base p { margin: 0; }
.footer__credit a { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.admin-pill { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 999px; font: 650 .95rem var(--f-label); text-decoration: none; box-shadow: var(--shadow); }

/* footer top band: a line to remember, a last chance to subscribe, a nest with its bird */
.footer { background: radial-gradient(70% 90% at 90% 0%, rgba(0,74,173,.35), transparent 60%), var(--ink); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__eyebrow { margin: 0 0 .8rem; font: 700 .78rem var(--f-label); font-stretch: 82%; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer__line { margin: 0; font: 420 clamp(1.8rem, 1rem + 2.6vw, 3.2rem)/1.1 var(--f-display); letter-spacing: -.02em; color: #F7F2E9; font-variation-settings: "SOFT" 80, "opsz" 144; text-wrap: balance; }
.footer__line em { color: var(--gold); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.footer__sub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem; max-width: 560px; }
.footer__sub input { flex: 1 1 240px; min-height: 54px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font: 400 1.05rem var(--f-text); }
.footer__sub input::placeholder { color: #a9a397; }
.footer__sub input:focus { outline: none; border-color: var(--gold); }
.footer__sub button { min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font: 700 .95rem var(--f-label); letter-spacing: .04em; }
.footer__sub button:hover { background: #f0d3a6; }
.footer__sub .subform__msg { color: var(--gold); }
.footer__nest { width: 100%; max-width: 320px; justify-self: end; }
.footer__nest .nest__twigs path { stroke: #d8b48a; }
.footer__nest .nest__twigs path:nth-child(3n) { stroke: #b9874f; }
.footer__nest .nest__bowl { fill: #6b4423; }
.footer__nest .nest__bird { fill: var(--gold); }
.footer__nest .nest__bird .wing { fill: #c9a063; }
.footer__list a:hover { color: var(--gold); }

/* the notebook paper from the letter, reused for the About page and the contact form */
.notebook { position: relative; background: repeating-linear-gradient(transparent 0 37px, rgba(0,74,173,.08) 37px 38px), var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px) clamp(52px, 7vw, 92px); box-shadow: 0 1px 0 rgba(27,35,51,.04), 0 24px 40px -30px rgba(27,35,51,.4); }
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(34px, 5vw, 66px); width: 1px; background: rgba(194,70,43,.3); }
.notebook::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(12px, 2vw, 22px); width: 10px; background: radial-gradient(circle, var(--paper) 4px, transparent 5px) 0 18px / 10px 76px repeat-y; }

/* ------------------------------------------------------------- article */
.article-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); text-align: center; }
.article-head .kickers { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.article-title { font-family: var(--f-display); font-weight: 560; font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.6rem); line-height: 1; letter-spacing: -.028em; margin: 1rem auto 0; max-width: 18ch; font-variation-settings: "SOFT" 60, "opsz" 144; text-wrap: balance; }
.article-dek { margin: 1.4rem auto 0; max-width: 40ch; font: italic 400 clamp(1.2rem, 1rem + .6vw, 1.5rem)/1.45 var(--f-text); color: var(--ink-2); text-wrap: pretty; }
.article-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); text-align: left; }
.article-by img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.article-by strong { display: block; font: 600 1.05rem var(--f-display); }
.article-by .byline { margin: 2px 0 0; }
.article-cover { margin: 0 auto; max-width: 1180px; padding-inline: var(--gutter); }
.article-cover img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: 2px; }
.article-cover figcaption, .prose figcaption { margin-top: .7rem; font: 500 .86rem/1.45 var(--f-label); letter-spacing: .02em; color: var(--ink-3); }
.article-layout { display: grid; grid-template-columns: 1fr minmax(0, 700px) 1fr; padding-block: clamp(36px, 5vw, 64px); padding-inline: var(--gutter); }
.article-layout > * { grid-column: 2; }
.share { grid-column: 1; grid-row: 1 / span 3; justify-self: end; position: sticky; top: 100px; align-self: start; margin-right: 44px; display: flex; flex-direction: column; gap: 10px; }
.share p { margin: 0 0 4px; font: 700 .7rem var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; }
.share a, .share button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--card); display: grid; place-items: center; font: 700 .8rem var(--f-label); text-decoration: none; color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.share a:hover, .share button:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

.prose { font-size: 1.24rem; line-height: 1.72; color: #222a38; }
.prose > * { margin-block: 0 1.15em; }
.prose > p:first-of-type::first-letter { font: 600 4.6em/.8 var(--f-display); float: left; margin: .07em .09em 0 0; color: var(--blue); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.prose--letter > p:first-of-type::first-letter { font-size: 4.3em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); color: var(--ink); letter-spacing: -.012em; line-height: 1.15; text-wrap: balance; }
.prose h2 { font-size: 2rem; font-weight: 600; margin-top: 2em; font-variation-settings: "SOFT" 60, "opsz" 96; }
.prose h2::before { content: ""; display: block; width: 46px; height: 10px; margin-bottom: .55em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M2 7c12-4 28-6 42-3' fill='none' stroke='%23004AAD' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.prose h3 { font-size: 1.55rem; font-weight: 600; margin-top: 1.8em; }
.prose h4 { font-size: 1.25rem; font-weight: 650; margin-top: 1.6em; }
.prose a { color: var(--blue); text-decoration-color: rgba(0,74,173,.4); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--blue); background: var(--blue-3); }
.prose strong, .prose b { font-weight: 650; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose figure { margin: 2.2em 0; }
.prose figure img, .prose > p > img { width: 100%; border-radius: 2px; }
.prose figure.wide { margin-inline: clamp(-140px, -8vw, 0px); }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--blue); font: italic 400 1.45rem/1.5 var(--f-display); color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.prose blockquote.pull-quote { border: 0; padding: 0; text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.25; color: var(--blue); position: relative; padding-top: 1.1em; }
.prose blockquote.pull-quote::before { content: "“"; position: absolute; top: -.2em; left: 50%; transform: translateX(-50%); font: 700 4rem/1 var(--f-display); color: var(--egg); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 26px; margin: 2.4em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M10 13h34M76 13h34' stroke='%23C6B699' stroke-width='1.2'/%3E%3Cpath d='M66 4c-7 1-13 6-15 13l-1 4-2 3 1 .4 2-3 3-1c7-2 12-8 12-16z' fill='%23004AAD'/%3E%3C/svg%3E") center / 120px 26px no-repeat; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 4px; background: #000; margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .6em .5em; text-align: left; }
.prose p.cta { margin: 1.6em 0; }
.prose p.cta a { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; background: var(--blue); color: #fff; border-radius: 999px; text-decoration: none; font: 650 .95rem var(--f-label); letter-spacing: .04em; }
.prose p.cta a:hover { background: var(--blue-2); }
.prose .align-center { text-align: center; }
.prose mark { background: linear-gradient(transparent 55%, rgba(168,213,209,.8) 55%); padding: 0 .1em; }
.prose p.note { background: var(--blue-3); padding: 1em 1.2em; border-radius: 6px; font-size: 1.1rem; }

.endmark { display: flex; justify-content: center; margin: 2.6em 0 1.6em; color: var(--blue); }
.endmark svg { width: 34px; height: 34px; }
.filed { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 1.4em; border-block: 1px solid var(--rule); font: 600 .78rem var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.filed a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tc); color: var(--tc); text-decoration: none; letter-spacing: .08em; }
.filed a:hover { background: var(--tc); color: #fff; }
.authorbox { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-top: 2.4em; padding: 26px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; }
.authorbox img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.authorbox h2 { margin: 0; font: 600 1.4rem var(--f-display); }
.authorbox p { margin: .4rem 0 .8rem; font-size: 1.06rem; color: var(--ink-2); }
.authorbox a { color: var(--blue); font-weight: 600; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 3em; }
.prevnext a { display: block; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; background: var(--card); transition: border-color .25s, transform .3s var(--ease); }
.prevnext a:hover { border-color: var(--blue); transform: translateY(-3px); }
.prevnext small { display: block; font: 700 .72rem var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--roux); }
.prevnext strong { display: block; margin-top: 6px; font: 580 1.15rem/1.25 var(--f-display); }
.prevnext .next { text-align: right; grid-column: 2; }

.comments { margin-top: 3.4em; }
.comments h2 { font: 600 1.8rem var(--f-display); margin: 0 0 1rem; }
.comment { padding: 18px 0; border-top: 1px solid var(--rule); }
.comment strong { font: 650 1.05rem var(--f-display); }
.comment time { margin-left: 8px; font: 500 .82rem var(--f-label); color: var(--ink-3); }
.comment p { margin: .4rem 0 0; font-size: 1.1rem; }
.form { display: grid; gap: 16px; margin-top: 1.4rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font: 650 .82rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--rule-2); border-radius: 8px; background: var(--card); font: 400 1.12rem var(--f-text); letter-spacing: 0; text-transform: none; color: var(--ink); }
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,74,173,.13); }
.form .btn { justify-self: start; }
.alert { padding: 14px 18px; border-radius: 8px; background: var(--blue-3); color: var(--blue-2); font-size: 1.08rem; margin: 1rem 0; }
.alert--err { background: #fbe8e3; color: #8a2a17; }
.related { padding-block: clamp(56px, 7vw, 100px); background: var(--paper-2); border-top: 1px solid var(--rule); }

/* --------------------------------------------- page heads (index, topic) */
.pagehead { padding-block: clamp(40px, 6vw, 90px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--ink); margin-bottom: clamp(32px, 4vw, 56px); }
.pagehead h1 { font-family: var(--f-display); font-weight: 560; font-size: clamp(2.6rem, 1.3rem + 5vw, 5.6rem); line-height: .98; letter-spacing: -.03em; margin: 0; font-variation-settings: "SOFT" 70, "opsz" 144; }
.pagehead h1 em { font-style: italic; color: var(--blue); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 450; }
.pagehead p.lede { max-width: 52ch; font-size: 1.24rem; color: var(--ink-2); margin: 1.2rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6rem; }
.chips a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--rule-2); text-decoration: none; font: 600 .86rem var(--f-label); letter-spacing: .04em; background: var(--card); transition: all .2s; }
.chips a:hover, .chips a.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.topic-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding-block: clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--ink); margin-bottom: clamp(32px, 4vw, 56px); }
.topic-hero__media { aspect-ratio: 5/4; overflow: hidden; background: var(--tc); border-radius: 2px; position: relative; }
.topic-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.topic-hero__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--tc); }
.topic-hero h1 { font-family: var(--f-display); font-weight: 560; font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5rem); line-height: .98; letter-spacing: -.03em; margin: .5rem 0 0; color: var(--ink); font-variation-settings: "SOFT" 70, "opsz" 144; }
.topic-hero .lede { font-size: 1.24rem; color: var(--ink-2); margin: 1.1rem 0 0; }
.topic-hero .count { margin-top: 1.6rem; font: 650 .8rem var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--tc); }
.topic-intro { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 72px); }
.empty { text-align: center; padding: 60px 20px 90px; }
.empty .nest { width: 260px; margin: 0 auto 20px; }
.empty h2 { font: 560 2rem var(--f-display); margin: 0; }
.empty p { color: var(--ink-2); font-size: 1.15rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--ink); font-size: .86rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.pager__btn { text-decoration: none; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; }
.pager__btn:hover { background: var(--ink); color: var(--paper); }
.pager__btn.is-off { opacity: .35; border-style: dashed; }
.pager__info { color: var(--ink-3); }

.page-body { display: grid; grid-template-columns: minmax(0, 700px); justify-content: center; padding-bottom: clamp(60px, 7vw, 100px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(60px, 7vw, 110px); }
.contact-card { background: var(--card); border: 1px solid var(--rule); padding: 28px; border-radius: 6px; align-self: start; }
.contact-card h2 { font: 600 1.5rem var(--f-display); margin: 0 0 .6rem; }
.contact-card a { color: var(--blue); font-weight: 600; word-break: break-word; }
.nf { text-align: center; padding-block: clamp(50px, 8vw, 120px); }
.nf .nest { width: min(360px, 80vw); margin: 0 auto 12px; }
.nf h1 { font: 560 clamp(2.4rem, 1.4rem + 4vw, 4.4rem)/1 var(--f-display); letter-spacing: -.03em; margin: 0; }
.nf p { color: var(--ink-2); font-size: 1.2rem; max-width: 44ch; margin: 1rem auto 1.6rem; }

/* ------------------------------------------------------- reveal motion */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--n, 0) * 70ms); }
.js [data-reveal="tilt"] { transform: translateY(30px) rotate(-7deg); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="tilt"].is-in { transform: rotate(-3deg); }
.js .tg-logo[data-logo] .tg-feather { opacity: 0; transform: translate(40px, -40px) rotate(24deg); }
.js .tg-logo[data-logo] .tg-tagline { opacity: 0; transform: translateY(20px); }
.js .tg-logo[data-logo].is-drawn .tg-feather, .tg-logo.is-drawn .tg-feather { opacity: 1; transform: none; transition: opacity .6s, transform 1.3s var(--ease-out); }
.js .tg-logo[data-logo].is-drawn .tg-tagline, .tg-logo.is-drawn .tg-tagline { opacity: 1; transform: none; transition: opacity .8s .2s, transform 1s var(--ease) .2s; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .front { grid-template-columns: 1fr; }
  .front__index { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); padding-top: 18px; }
  .front__index ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 20px; }
  .front__index li + li { border-top: 0; }
  .pot__grid, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-grid { grid-template-columns: 1fr 1fr; }
  .paper-grid__lead { grid-column: 1 / -1; grid-row: auto; border-right: 0; padding-right: 0; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
  .paper-grid__side { grid-column: auto; display: block !important; }
  .paper-grid__side + .paper-grid__side { border-top: 0; padding-top: 0; margin-top: 0; }
  .paper-grid__side .card__body { padding-top: 16px; }
  .share { display: none; }
}
@media (max-width: 860px) {
  .mainnav { display: none; }
  .menu-btn { display: inline-flex; }
  .nameplate { border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--ink); margin-bottom: 4px; padding-bottom: 14px; }
  .letter .wrap { padding-left: 46px; }
  .letter::before { left: 30px; }
  .notebook { padding-left: 52px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nest { justify-self: start; max-width: 220px; }
  .front__note { margin-top: 18px; }
  .hide-sm { display: none; }
  .front__slide { grid-template-columns: 1fr; }
  .front__media { aspect-ratio: 4/3; }
  .letter__grid, .quoteband__grid, .subband__grid, .contact-grid, .topic-hero, .footer__grid { grid-template-columns: 1fr; }
  .letter__nest { right: -6%; bottom: -14%; width: 46%; }
  .polaroid { max-width: 320px; }
  .quoteband__nest { width: 220px; }
  .subband__art { max-width: 200px; }
  .subband--compact .subband__grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1.125rem; }
  .pot__grid, .grid3, .paper-grid { grid-template-columns: 1fr; }
  .utility__row { min-height: 48px; }
  .utility__meta span:first-child { display: none; }
  .utility__meta .dot:first-of-type { display: none; }
  .front__index ol { grid-template-columns: 1fr; }
  .front__index li:nth-child(n+4) { display: none; }
  .prose { font-size: 1.16rem; }
  .prose figure.wide { margin-inline: 0; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { grid-column: auto; }
  .authorbox { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .ticker__label { padding: 0 12px; font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__items { animation: none !important; flex-wrap: wrap; width: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .tg-logo[data-logo] .tg-feather, .js .tg-logo[data-logo] .tg-tagline { opacity: 1; transform: none; }
  .nest__twigs path { stroke-dashoffset: 0; }
  .egg, .nest__bird { opacity: 1; transform: none; }
}
@media print {
  .masthead, .sticky-bar, .footer, .share, .subband, .related, .comments, .admin-pill { display: none !important; }
  body::before { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   Read it like a book
   ========================================================================== */
.read-modes { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 1.6rem 0 0; }
.read-modes__or { font: italic 1rem var(--f-text); color: var(--ink-3); }
.book-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--card); color: var(--blue); font: 700 .92rem var(--f-label); font-stretch: 82%; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s, transform .25s var(--ease); }
.book-btn svg { width: 26px; height: 20px; transition: transform .5s var(--ease); transform-origin: center; }
.book-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.book-btn:hover svg { transform: rotateY(180deg); }
html.book-open, html.book-open body { overflow: hidden; }

.book { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); color: #F3E9D8;
  background: radial-gradient(70% 70% at 50% 40%, #3a2a1e 0%, #1e1611 70%, #140f0b 100%); opacity: 0; transition: opacity .45s var(--ease); }
.book::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.book.is-on { opacity: 1; }
.book__bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px clamp(14px, 3vw, 28px); }
.book__title { min-width: 0; margin: 0; font: italic 500 1.05rem var(--f-display); color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book__tools { display: flex; gap: 8px; flex: none; }
.book__btn svg { width: 18px; height: 18px; }
.book__btn[data-book-sound] { display: inline-flex; align-items: center; gap: 8px; }
.book__btn { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(243,233,216,.35); background: rgba(0,0,0,.2); color: #F3E9D8; font: 600 .82rem var(--f-label); letter-spacing: .06em; }
.book__btn:hover { border-color: var(--gold); color: var(--gold); }
.book__btn--close { background: #F3E9D8; color: #1e1611; border-color: #F3E9D8; }
.book__btn--close:hover { background: var(--gold); color: #1e1611; }
.book__stage { position: relative; display: grid; place-items: center; padding: 4px 12px; min-height: 0; }
.book__flip { margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.book__nav { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3vw, 28px); padding: 12px 14px 18px; }
.book__turn { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(243,233,216,.4); background: transparent; color: #F3E9D8; font: 600 .9rem var(--f-label); letter-spacing: .04em; }
.book__turn:hover:not([disabled]) { background: #F3E9D8; color: #1e1611; }
.book__turn[disabled] { opacity: .3; cursor: default; }
.book__count { min-width: 120px; text-align: center; font: italic 500 1rem var(--f-display); color: var(--gold); }

/* pages */
.bk-page { position: relative; overflow: hidden; background: #FBF6EC; color: #241C14; font: 400 16.5px/1.6 var(--f-text); }
.bk-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 30px 34px 22px; }
.bk-page.bk-left { background: linear-gradient(to left, rgba(80,55,30,.18), rgba(80,55,30,0) 9%), #FBF6EC; }
.bk-page.bk-right { background: linear-gradient(to right, rgba(80,55,30,.18), rgba(80,55,30,0) 9%), #FBF6EC; }
.bk-run { flex: none; height: 18px; margin-bottom: 14px; font: 600 10px/18px var(--f-label); font-stretch: 82%; letter-spacing: .18em; text-transform: uppercase; color: #9a8466; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(154,132,102,.25); }
.bk-body { flex: 1; min-height: 0; overflow: hidden; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.bk-folio { flex: none; height: 22px; margin-top: 10px; text-align: center; font: italic 500 13px/22px var(--f-display); color: #8a7457; }
.bk-body > * { margin: 0 0 .75em; }
.bk-body p + p { text-indent: 1.4em; margin-top: -.75em; }
.bk-body p.bk-cont { text-indent: 0; }
.bk-body p.bk-first::first-letter { font: 600 3.3em/.8 var(--f-display); float: left; margin: .07em .08em 0 0; color: var(--blue); font-variation-settings: "SOFT" 100, "WONK" 1; }
.bk-body h2, .bk-body h3, .bk-body h4 { font-family: var(--f-display); text-align: left; line-height: 1.2; color: #1B2333; margin: 1em 0 .5em; }
.bk-body h2 { font-size: 20px; } .bk-body h3 { font-size: 18px; } .bk-body h4 { font-size: 16.5px; }
.bk-body > h2:first-child, .bk-body > h3:first-child, .bk-body > h4:first-child { margin-top: 0; }
.bk-body figure { margin: .4em 0 .9em; text-align: center; }
.bk-body img { max-width: 100%; height: auto; width: auto; margin: 0 auto; border-radius: 2px; object-fit: contain; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 14px -8px rgba(60,40,20,.5); }
.bk-body figcaption { margin-top: .5em; font: 500 11.5px/1.4 var(--f-label); color: #8a7457; text-align: center; }
.bk-body blockquote { margin: .8em 0; padding: 0 0 0 .9em; border-left: 2px solid var(--blue); font: italic 17px/1.5 var(--f-display); text-align: left; }
.bk-body blockquote.pull-quote { border: 0; padding: 0; text-align: center; color: var(--blue); font-size: 19px; }
.bk-body a { color: var(--blue); }
.bk-body hr { border: 0; height: 18px; margin: 1em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M10 13h34M76 13h34' stroke='%23C6B699' stroke-width='1.2'/%3E%3Cpath d='M66 4c-7 1-13 6-15 13l-1 4-2 3 1 .4 2-3 3-1c7-2 12-8 12-16z' fill='%23004AAD'/%3E%3C/svg%3E") center / 90px 18px no-repeat; }
.bk-body ul, .bk-body ol { padding-left: 1.3em; text-align: left; }
.bk-body p.cta a { font-weight: 700; }
.bk-video a { display: inline-block; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 999px; text-decoration: none; font: 700 13px var(--f-label); }
.bk-opener { text-align: center; margin: 4px 0 1.1em !important; padding-bottom: .9em; border-bottom: 1px solid rgba(154,132,102,.3); }
.bk-opener h1 { margin: .2em 0 .25em; font: 600 25px/1.08 var(--f-display); letter-spacing: -.015em; color: #1B2333; text-wrap: balance; }
.bk-kicker { margin: 0; font: 700 10.5px var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--roux); }
.bk-by { margin: 0; font: italic 13px var(--f-text); color: #8a7457; }
.bk-endpaper .bk-run, .bk-endpaper .bk-folio { visibility: hidden; border: 0; }
.bk-endpaper .bk-body { display: grid; place-items: center; text-align: center; }
.bk-ex { width: 82%; padding: 30px 18px; border: 1px solid rgba(154,132,102,.35); outline: 1px solid rgba(154,132,102,.18); outline-offset: 6px; max-width: 80%; }
.bk-ex svg { width: 120px; margin: 14px auto; }
.bk-ex__k { margin: 0; font: 700 10.5px var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--roux); }
.bk-ex__t { margin: .5em 0 0; font-family: var(--f-sign); font-size: 46px; line-height: 1.5; color: var(--blue); text-align: center; }
.bk-ex__d { margin: 0; font: italic 13px var(--f-text); color: #8a7457; }
.bk-blank .bk-body { display: grid; place-items: center; }
.bk-blank__f { width: 34px; height: 34px; color: #c9b38f; }

/* covers: blue cloth with gold foil */
.bk-page.bk-cover { padding: 0; background:
  radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.08), transparent 60%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px), #0A2E6E; color: var(--gold); }
.bk-cover__in { position: absolute; inset: 16px; border: 1.5px solid rgba(226,192,141,.55); outline: 1px solid rgba(226,192,141,.25); outline-offset: 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px; text-align: center; }
.bk-cover__logo { width: 62%; filter: brightness(0) saturate(100%) invert(84%) sepia(22%) saturate(611%) hue-rotate(338deg) brightness(93%) contrast(88%); }
.bk-cover__rule { width: 60px; height: 1px; background: rgba(226,192,141,.6); }
.bk-cover__win { width: 70%; aspect-ratio: 4/3; border: 6px solid #F3E9D8; box-shadow: 0 10px 24px rgba(0,0,0,.4); overflow: hidden; }
.bk-cover__win img { width: 100%; height: 100%; object-fit: cover; }
.bk-cover h2 { margin: 6px 0 0; font: 600 23px/1.15 var(--f-display); letter-spacing: -.01em; color: #F3E9D8; text-wrap: balance; }
.bk-cover__by { margin: 0; font: 34px/1 var(--f-sign); color: var(--gold); }
.bk-cover__hint { margin-top: 6px; font: 600 10.5px var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: rgba(226,192,141,.75); }
.bk-cover__feather { width: 44px; height: 44px; color: var(--gold); }
.bk-cover__end { margin: 0; font: italic 600 30px var(--f-display); color: #F3E9D8; }
.bk-cover__next-k { margin: 14px 0 0; font: 700 10.5px var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(226,192,141,.75); }
.bk-cover__next { font: 600 18px/1.25 var(--f-display); color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(226,192,141,.5); }
.bk-cover__web { margin-top: 14px; font: 600 12px var(--f-label); letter-spacing: .08em; color: #F3E9D8; }
.bk-cover__site { margin: 8px 0 0; font: 600 10px var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: rgba(226,192,141,.6); }
@media (max-width: 620px) {
  .bk-page { font-size: 16px; }
  .bk-sheet { padding: 22px 22px 16px; }
  .book__btn[data-book-sound] { width: 42px; padding: 0; justify-content: center; }
  .book__btn[data-book-sound] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .book__btn--close { padding: 0 14px; }
  .book__turn { padding: 0 14px; font-size: .82rem; }
}

.bk-ex__logo { width: 78%; max-width: 240px; margin: 14px auto 0; display: block; }
.bk-ex__k { margin-bottom: 4px; }

/* Floating "read as a book" button on story pages */
.book-fab { position: fixed; right: 20px; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; border: 0;
  background: #0A2E6E; color: #F3E9D8; font: 700 .9rem var(--f-label); font-stretch: 82%; letter-spacing: .06em; box-shadow: 0 14px 30px -12px rgba(10,46,110,.75);
  transform: translateY(140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.book-fab.is-on { transform: none; opacity: 1; }
.book-fab svg { width: 28px; height: 22px; color: var(--gold); }
.book-fab:hover { background: var(--blue); }
.book-fab:hover svg { animation: fabflip .8s var(--ease); }
@keyframes fabflip { 50% { transform: rotateY(180deg); } }
body[data-onesignal] .book-fab { bottom: 96px; }
@media (max-width: 620px) { .book-fab { right: 14px; bottom: 16px; min-height: 52px; padding: 0 16px 0 14px; } body[data-onesignal] .book-fab { bottom: 84px; } .book-fab span { font-size: .82rem; } }

.altcha-error { flex-basis: 100%; margin: 6px 0 0; color: var(--cayenne); font: 600 .95rem var(--f-label); }
altcha-widget { display: contents; }

/* Reader notes: a row of note cards */
.notes { margin-top: 3.2em; }
.notes__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.notes__head h2 { margin: 0; font: 600 1.8rem/1.1 var(--f-display); letter-spacing: -.01em; }
.notes__ctrl { display: flex; gap: 8px; }
.notes__ctrl button { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.notes__ctrl button:hover { background: var(--ink); color: var(--paper); }
.notes__ctrl svg { width: 18px; height: 18px; }
.notes__track { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 18px var(--gutter) 26px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; align-items: start; }
.notes__track::-webkit-scrollbar { display: none; }
.notes__track:focus-visible { outline-offset: -3px; }
.note { position: relative; scroll-snap-align: start; padding: 30px 24px 20px 30px; transform: rotate(var(--r)); transition: transform .4s var(--ease);
  background: repeating-linear-gradient(transparent 0 29px, rgba(0,74,173,.09) 29px 30px), #FFFDF6; background-position: 0 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 30px -22px rgba(27,35,51,.55); border-radius: 2px; }
.note::before { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 1px; background: rgba(194,70,43,.28); }
.note:hover { transform: rotate(0) translateY(-3px); }
.note__tape { position: absolute; top: -11px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: rgba(168,213,209,.75); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 52%); }
.note__body { font: 400 1.06rem/1.75 var(--f-text); color: var(--ink-2); max-height: calc(1.06rem * 1.75 * 7); overflow: hidden; position: relative; transition: max-height .5s var(--ease); }
.note__body p { margin: 0; }
.note__body.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(rgba(255,253,246,0), #FFFDF6); }
.note.is-open .note__body { max-height: 200em; }
.note.is-open .note__body::after { display: none; }
.note__more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--blue); font: 700 .86rem var(--f-label); letter-spacing: .04em; text-decoration: underline; text-underline-offset: .2em; }
.note__by { margin: 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.note__by strong { font: 1.9rem/1.1 var(--f-sign); font-weight: 400; color: var(--blue); }
.note__by time { font: 500 .78rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.notes__dots { display: flex; justify-content: center; gap: 8px; }
.notes__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); transition: background .3s, transform .3s; }
.notes__dots span.on { background: var(--blue); transform: scale(1.25); }
