/* Generated by the blog engine from blog.config.json and the field-guide theme. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/cY9AfjOCX1hbuyalUrK4397yjIJFJpc.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/cY9CfjOCX1hbuyalUrK439vCjohCBJWxZA.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/KFIAZD4RUMEZIYV6FQ3T3GP5PDBDB6JY.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/7AHDUZ4A7LFLVFUIFSARGIWCRQJHISQP.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/GHM6WVH6MILNYOOCXHXB5GTSGNTMGXZR.woff2") format("woff2"); }

:root {
  --bg: #14110d;
  --bg-2: #1b1712;
  --bg-3: #221d16;
  --ink: #ede5d3;
  --ink-2: #d9d0bd;
  --ink-hi: #fff6e4;
  --dim: #a89c87;
  --faint: #8d8370;
  --line: rgba(237,229,211,.10);
  --line-soft: rgba(237,229,211,.055);
  --line-strong: rgba(237,229,211,.32);
  --gold: #c98f4e;
  --gold-br: #d9a45c;
  --gold-ink: #171207;
  --gold-soft: rgba(192,138,75,.13);
  --gold-line: rgba(201,143,78,.42);
  --surface: #1e1a14;
  --surface-hi: #29231b;
  --plate-1: #241e16;
  --plate-2: #17130e;
  --avatar-1: #3a3024;
  --avatar-2: #221d16;
  --device: #0b0908;
  --qr-bg: #ffffff;
  --scroll: #3a3227;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   Field Guide theme. Brand tokens (colors, fonts) and @font-face rules
   are written in front of this file from blog.config.json; this file
   reads them and never contains a brand value.
   ============================================================ */

:root {
  --ease: cubic-bezier(0.16,1,0.3,1);

  /* Type scale (px at desktop) */
  --t-micro: 12px;
  --t-small: 13.5px;
  --t-ui: 15px;
  --t-lead: 17px;
  --t-body: 20px;
  --t-h4: 22px;
  --t-h3: 28px;
  --t-h2: 36px;
  --t-h1: clamp(40px, 5.2vw, 60px);
  --t-display: clamp(34px, 4.2vw, 52px);

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 16px; --radius-sm: 10px;
  --shell: 1200px; --gutter: 32px;
  --measure: 40rem; /* 640px: about 66 characters of 20px serif */

  --grain: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .9 0 0 0 0 .83 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--scroll) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--gold-ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-br); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--gold-ink);
  padding: 10px 18px; border-radius: 0 0 12px 0; font: 700 14px/1 var(--sans); }
.skip-link:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.brand span { font: 500 20px/1 var(--serif); letter-spacing: .005em; }
.nav-right { display: flex; align-items: center; gap: var(--s-6); }
.nav-links { display: flex; gap: 28px; font-size: var(--t-small); color: var(--dim); }
.nav-links a { transition: color .3s var(--ease); padding-block: 6px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 500 var(--t-ui)/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); padding: 14px 22px; }
.btn-gold:hover { background: var(--gold-br); transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: var(--t-small); }

/* ---------- Link with arrow ---------- */
.go { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--t-ui)/1 var(--sans); color: var(--ink); }
.go svg { width: 16px; height: 16px; color: var(--gold); transition: transform .4s var(--ease); }
.go:hover svg { transform: translateX(3px); }

/* ---------- Meta row (topic + time) ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 var(--t-small)/1.3 var(--sans); color: var(--faint); }
.topic { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); }
.topic::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.meta time, .meta .rt { font-variant-numeric: tabular-nums; }

/* ---------- Plates: the guide's authored image language ---------- */
.plate {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at var(--gx, 70%) var(--gy, 30%), color-mix(in srgb, var(--gold) 20%, transparent), color-mix(in srgb, var(--gold) 5%, transparent) 42%, transparent 70%),
    linear-gradient(160deg, var(--plate-1), var(--plate-2) 70%);
  aspect-ratio: 4 / 3;
}
.plate::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; z-index: 2; }
.plate > svg.art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); z-index: 1; }
.plate > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Device frame for real screenshots ---------- */
.device {
  position: relative; padding: 7px; border-radius: 34px; background: var(--device);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 8px 18px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.device img { width: 100%; height: auto; border-radius: 27px; }

/* ============================================================
   FRONT PAGE, TOPIC PAGES, AUTHOR PAGES
   ============================================================ */
.masthead { padding: var(--s-8) 0 var(--s-7); }
.masthead-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: var(--s-7); align-items: end; }
.masthead-single { display: block; }
.masthead h1 { font: 500 var(--t-h1)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 15ch; }
.masthead h1 em { font-style: italic; color: var(--gold-br); font-weight: 400; }
.masthead p { margin-top: var(--s-4); font-size: var(--t-lead); color: var(--dim); max-width: 44ch; text-wrap: pretty; }
.masthead .glyph { width: 32px; height: 32px; color: var(--gold); margin-bottom: var(--s-4); }
.masthead .meta { margin-top: var(--s-4); }
.masthead .role { margin-top: var(--s-3); font: 500 var(--t-ui)/1.3 var(--sans); color: var(--gold-br); }
.masthead .avatar { width: 64px; height: 64px; font-size: 22px; margin-bottom: var(--s-5); }

/* Topic index: the guide's wayfinding. Fits however many topics have posts. */
.topic-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); border-top: 1px solid var(--line); }
.topic-index a {
  display: flex; flex-direction: column; gap: 6px; padding: var(--s-4) var(--s-3) var(--s-2) 0;
  border-top: 1px solid transparent; margin-top: -1px; transition: border-color .35s var(--ease);
}
.topic-index a:hover { border-top-color: var(--gold); }
.topic-index b { font: 500 22px/1.1 var(--serif); }
.topic-index span { font-size: var(--t-small); color: var(--faint); font-variant-numeric: tabular-nums; }

/* Featured story */
.featured { padding-bottom: var(--s-9); }
.featured-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: var(--s-8); align-items: center; }
.featured .plate { aspect-ratio: 5 / 4; --gx: 30%; --gy: 40%; }
.featured .plate .device { position: absolute; z-index: 3; width: 32%; right: 9%; bottom: -6%; transform: rotate(-2deg); transition: transform .8s var(--ease); }
.featured-card:hover .plate .device { transform: rotate(-2deg) translateY(-8px); }
.featured-copy h2 { margin-top: var(--s-4); font: 500 var(--t-display)/1.06 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.featured-copy h2 a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.featured-card:hover h2 a { background-size: 100% 1px; }
.featured-copy .dek { margin-top: var(--s-4); font: 400 21px/1.45 var(--serif); color: var(--dim); max-width: 34ch; text-wrap: pretty; }
.byline-sm { margin-top: var(--s-6); display: flex; align-items: center; gap: 12px; font-size: var(--t-small); color: var(--faint); }
.byline-sm strong { color: var(--ink); font-weight: 500; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--avatar-1), var(--avatar-2)); border: 1px solid var(--line-strong);
  font: 500 15px/1 var(--serif); color: var(--gold-br); letter-spacing: .02em;
}
.featured-copy .go { margin-top: var(--s-6); }

/* Shelves */
.shelves .shelf-pair { border-top: 1px solid var(--line); }
.shelf { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: var(--s-7); padding: var(--s-8) 0; border-bottom: 1px solid var(--line-soft); }
.shelf-head h2 { font: 500 var(--t-h3)/1.1 var(--serif); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.shelf-head h2 small { font: 500 var(--t-small)/1 var(--sans); color: var(--faint); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.shelf-head p { margin-top: var(--s-3); font-size: var(--t-ui); color: var(--dim); max-width: 30ch; text-wrap: pretty; }
.shelf-head h2 a { transition: color .3s var(--ease); }
.shelf-head h2 a:hover { color: var(--gold-br); }
.shelf-head .glyph { width: 28px; height: 28px; color: var(--gold); margin-bottom: var(--s-4); }
.shelf-head .shelf-all { margin-top: var(--s-3); font: 500 14px/1 var(--sans); color: var(--gold-br); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-6); }
.shelf .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; }
.shelf .cards:has(> :only-child) { grid-template-columns: minmax(0,1fr); max-width: 380px; }
.shelf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); padding: var(--s-8) 0; border-bottom: 1px solid var(--line-soft); }
.shelf-pair .shelf { grid-template-columns: 1fr; padding: 0; border: 0; gap: var(--s-5); }
.shelf-pair .card { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; align-items: start; }
.shelf-pair .card h3 { font-size: 20px; line-height: 1.3; }

.card { position: relative; display: flex; flex-direction: column; gap: var(--s-4); }
.card .plate { flex: none; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); }
.card:hover .plate { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(0,0,0,.9); border-color: var(--line); }
.card h3 { font: 500 var(--t-h4)/1.2 var(--serif); letter-spacing: -.005em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 2px solid var(--gold-br); outline-offset: 4px; border-radius: var(--radius); }
.card h3 a:hover, .card:hover h3 a { color: var(--ink-hi); }
.card .dek { font-size: var(--t-ui); line-height: 1.5; color: var(--dim); text-wrap: pretty; }
.card .meta { margin-top: auto; padding-top: var(--s-1); }
.card-body { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; }
.card-grid { padding-bottom: var(--s-9); }

/* Email capture */
.signup { padding: var(--s-9) 0; }
.signup-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s-7); align-items: center;
  padding: var(--s-8); border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%), var(--bg-2);
}
.signup h2 { font: 500 var(--t-h2)/1.1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.signup p { margin-top: var(--s-3); color: var(--dim); font-size: var(--t-lead); max-width: 38ch; text-wrap: pretty; }
.field { display: flex; gap: var(--s-2); padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .3s var(--ease); }
.field:focus-within { border-color: var(--gold-line); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 16px/1 var(--sans); padding: 0 var(--s-4); caret-color: var(--gold); }
.field input::placeholder { color: var(--faint); }
.field .btn-gold { padding: 13px 22px; }
.signup .form-note { margin-top: var(--s-3); padding-inline-start: var(--s-4); font-size: var(--t-small); color: var(--dim); max-width: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-7); color: var(--dim); font-size: var(--t-small); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
.foot-grid p { margin-top: var(--s-3); max-width: 32ch; color: var(--faint); }
.foot-grid h2 { font: 500 var(--t-small)/1 var(--sans); color: var(--ink); margin-bottom: var(--s-4); }
.foot-grid li + li { margin-top: 10px; }
.foot-grid a { transition: color .3s var(--ease); }
.foot-grid a:hover { color: var(--gold-br); }
.foot-base { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; color: var(--faint); }

/* ============================================================
   POST PAGE
   ============================================================ */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.post-head { padding: 40px 0 32px; }
.crumbs ol { display: flex; flex-wrap: nowrap; gap: 10px; min-width: 0; font-size: var(--t-small); color: var(--faint); }
.crumbs li { display: flex; gap: 10px; flex: none; }
.crumbs li + li::before { content: "/"; color: var(--faint); }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--dim); transition: color .3s var(--ease); white-space: nowrap; }
.crumbs a:hover { color: var(--gold-br); }
.post-head-grid { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--s-8); align-items: end; }
.post-head h1 { font: 500 var(--t-h1)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 18ch; }
.post-head .dek { margin-top: var(--s-5); font: 400 22px/1.5 var(--serif); color: var(--dim); max-width: 38ch; text-wrap: pretty; }
.post-facts { display: grid; gap: var(--s-4); padding-bottom: 6px; }
.author { display: flex; gap: 14px; align-items: center; }
.author .avatar { width: 48px; height: 48px; font-size: 17px; }
.author strong { display: block; font: 500 var(--t-ui)/1.3 var(--sans); }
.author a:hover strong { color: var(--gold-br); }
.author .role { font-size: var(--t-small); color: var(--faint); }
.facts { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: var(--s-6); row-gap: 4px; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-small); }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.post-facts .meta a.topic:hover { color: var(--gold-br); }

.hero { margin-bottom: var(--s-7); }
.hero .plate { width: 100%; aspect-ratio: 3 / 1; max-height: 360px; --gx: 50%; --gy: 42%; }
.hero .plate > svg.art { transform: scale(1.15); }

/* Article layout: two columns, centered */
.article-grid { display: grid; grid-template-columns: 220px minmax(0, var(--measure)); justify-content: center; gap: var(--s-8); align-items: start; }
.article-grid.no-toc { grid-template-columns: minmax(0, var(--measure)); }
.toc { position: sticky; top: 104px; font-size: var(--t-small); }
.toc-title { font: 500 var(--t-small)/1 var(--sans); color: var(--ink); display: flex; justify-content: space-between; margin-bottom: var(--s-4); }
.toc-title output { color: var(--faint); font-variant-numeric: tabular-nums; }
.toc ol { position: relative; padding-inline-start: 16px; }
.toc ol::before { content: ""; position: absolute; inset: 4px auto 4px 0; width: 1px; background: var(--line); }
.toc ol::after { content: ""; position: absolute; top: 4px; left: 0; width: 1px; height: calc((100% - 8px) * var(--p, 0)); background: var(--gold); }
.toc li + li { margin-top: 2px; }
.toc a { display: block; padding: 6px 0; color: var(--faint); line-height: 1.35; transition: color .3s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 700; }
.toc .toc-app { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line-soft); display: grid; gap: var(--s-3); color: var(--faint); }
.toc .toc-app a.go { display: inline-flex; padding: 0; color: var(--ink); font-size: var(--t-small); }
.toc-mobile { display: none; }

.prose { font: 400 var(--t-body)/1.65 var(--serif); color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; font: 500 var(--t-h2)/1.12 var(--serif); letter-spacing: -.014em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: 2em; font: 600 24px/1.3 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.prose h2 + p, .prose h3 + p { margin-top: .6em; }
.prose p { text-wrap: pretty; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .3s var(--ease); }
.prose a:hover { text-decoration-color: var(--gold-br); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead { font-size: 21px; line-height: 1.6; color: var(--ink); }
/* Plain Markdown lists and images only: components (class-bearing lists, device frames) keep their own styles */
.prose :is(ul, ol):not([class]) { padding-inline-start: 1.4em; }
.prose ul:not([class]) { list-style: disc; }
.prose ol:not([class]) { list-style: decimal; }
.prose :is(ul, ol):not([class]) > li + li { margin-top: .4em; }
.prose p > img { height: auto; border-radius: var(--radius-sm); }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface); }
.prose pre { overflow-x: auto; padding: var(--s-4); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; line-height: 1.5; }
.prose pre code { padding: 0; background: none; }
.prose blockquote:not(.pull) { padding-inline-start: var(--s-4); border-inline-start: 1px solid var(--gold-line); color: var(--dim); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font: 400 var(--t-ui)/1.5 var(--sans); }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--s-7); }

/* Key takeaways */
.takeaways { margin-bottom: var(--s-7); padding: var(--s-6) var(--s-6) var(--s-5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-family: var(--sans); }
.takeaways .kicker { margin: 0; font: 700 var(--t-small)/1 var(--sans); color: var(--gold-br); display: flex; align-items: center; gap: 10px; }
.takeaways .kicker svg { width: 18px; height: 18px; }
.prose .takeaways ul { margin-top: var(--s-4); display: grid; gap: var(--s-3); padding: 0; list-style: none; }
.takeaways li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); margin: 0; }
.takeaways li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }

/* Figure */
.figure { margin: var(--s-7) 0 !important; display: grid; grid-template-columns: 190px 1fr; gap: var(--s-6); align-items: center; padding: var(--s-6); border-radius: var(--radius);
  background: radial-gradient(90% 120% at 15% 50%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 60%), var(--bg-2); border: 1px solid var(--line-soft); }
.figure figcaption { font: 400 var(--t-ui)/1.55 var(--sans); color: var(--dim); }
.figure figcaption strong { display: block; margin-bottom: 6px; font: 500 var(--t-lead)/1.3 var(--serif); color: var(--ink); }

/* Pull quote */
.pull { margin: var(--s-8) 0 !important; padding: var(--s-6) 0; border-block: 1px solid var(--line); }
.pull p { font: italic 400 clamp(28px, 3vw, 34px)/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.pull svg { width: 28px; height: 22px; color: var(--gold); margin-bottom: var(--s-4); }

/* Callout */
.callout { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-4); padding: var(--s-5); border-radius: 14px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); font: 400 var(--t-lead)/1.55 var(--sans); color: var(--ink-2); }
.callout .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-br); }
.callout .ic svg { width: 18px; height: 18px; }
.callout strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .7em; }

/* Try this: step plan */
.plan { margin: var(--s-7) 0 !important; border-radius: 20px; border: 1px solid var(--gold-line); background: var(--bg-2); overflow: hidden; font-family: var(--sans); }
.plan-head { padding: var(--s-6) var(--s-6) var(--s-5); display: flex; justify-content: space-between; gap: var(--s-5); align-items: start; }
.plan-head h3 { margin: 0; font: 500 var(--t-h3)/1.1 var(--serif); color: var(--ink); }
.plan-head p { margin-top: 8px; font-size: var(--t-ui); color: var(--dim); max-width: 40ch; }
.plan-head .plan-total { flex: none; margin: 0; text-align: end; font-size: var(--t-small); color: var(--faint); }
.plan-total b { display: block; font: 500 28px/1 var(--serif); color: var(--gold-br); font-variant-numeric: tabular-nums; }
.plan-chart { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); gap: 8px; align-items: end; height: 96px; padding: 0 var(--s-6); }
.plan-chart i { display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 35%, transparent)); height: calc(var(--m) / var(--max) * 90px); }
.plan-steps { display: grid; gap: 0; padding: var(--s-4) var(--s-6) var(--s-5); }
.plan-steps li { display: grid; grid-template-columns: 84px 60px 1fr; gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-top: 1px solid var(--line-soft); margin: 0; }
.plan-steps li:first-child { border-top: 0; }
.plan-steps .days { font: 700 var(--t-small)/1.3 var(--sans); color: var(--gold-br); font-variant-numeric: tabular-nums; }
.plan-steps p { font-size: var(--t-ui); line-height: 1.55; color: var(--ink-2); margin: 0; }
.plan-steps p b { color: var(--ink); font-weight: 500; }
.plan-steps .len { font: 500 var(--t-ui)/1 var(--sans); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .plan-foot { margin: 0; padding: var(--s-4) var(--s-6); background: var(--gold-soft); font-size: var(--t-small); color: var(--dim); }

/* FAQ */
.faq { margin-top: var(--s-5) !important; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; flex: 1; text-align: start; font: 500 var(--t-h4)/1.3 var(--serif); color: var(--ink); }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--gold); transition: transform .4s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-5); margin: 0; font: 400 var(--t-lead)/1.6 var(--sans); color: var(--dim); max-width: 58ch; }

/* In-article app card */
.app-card { margin: var(--s-8) 0 0 !important; display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); align-items: center; padding: var(--s-6); border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(70% 100% at 0% 100%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 65%), linear-gradient(180deg, var(--bg-3), var(--bg-2)); font-family: var(--sans); overflow: hidden; }
.app-card .device { transform: rotate(-3deg); }
.app-id { display: flex; gap: 12px; align-items: center; }
.app-id img { width: 44px; height: 44px; border-radius: 11px; }
.app-id strong { display: block; font: 500 19px/1.2 var(--serif); color: var(--ink); }
.app-id span { font-size: var(--t-small); color: var(--dim); }
.app-card > div > p { margin-top: var(--s-4); font-size: var(--t-ui); line-height: 1.6; color: var(--dim); }
.app-free { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 6px; }
.app-free li { font-size: 12.5px; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.app-actions { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.app-actions .note { flex-basis: 100%; font-size: var(--t-small); color: var(--faint); }
.app-card .btn { white-space: normal; text-align: center; line-height: 1.3; padding: 14px 20px; }
.qr { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
.qr img { width: 56px; height: 56px; border-radius: 6px; background: var(--qr-bg); padding: 3px; }

/* Article footer bits */
.article-end { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; font: 400 var(--t-small)/1.5 var(--sans); color: var(--faint); }
.article-end strong { color: var(--ink); font-weight: 500; }
.article-end a:hover strong { color: var(--gold-br); }

.related { padding: var(--s-9) 0; }
.related + .signup { padding-top: 0; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-6); }
.related-head h2 { font: 500 var(--t-h2)/1.1 var(--serif); letter-spacing: -.012em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .article-grid { grid-template-columns: 200px minmax(0, var(--measure)); gap: var(--s-7); }
  .article-grid.no-toc { grid-template-columns: minmax(0, var(--measure)); }
}
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .masthead-grid, .featured-card, .post-head-grid, .signup-panel { grid-template-columns: 1fr; }
  .featured-card { gap: var(--s-7); }
  .shelf { grid-template-columns: 1fr; gap: var(--s-5); }
  .shelf-pair { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .article-grid, .article-grid.no-toc { grid-template-columns: minmax(0,1fr); }
  .article-grid > .prose { max-width: var(--measure); margin-inline: auto; width: 100%; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: var(--s-6); border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-family: var(--sans); }
  .toc-mobile summary { list-style: none; cursor: pointer; padding: var(--s-4) var(--s-5); display: flex; justify-content: space-between; align-items: center; font: 500 var(--t-ui)/1 var(--sans); color: var(--ink); }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary svg { width: 18px; height: 18px; color: var(--gold); transition: transform .4s var(--ease); }
  .toc-mobile[open] summary svg { transform: rotate(180deg); }
  .toc-mobile ol { padding: 0 var(--s-5) var(--s-4); display: grid; }
  .toc-mobile a { display: block; padding: 9px 0; font-size: var(--t-ui); color: var(--dim); border-top: 1px solid var(--line-soft); }
  .post-head-grid { gap: var(--s-6); }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: var(--s-7); }
  .shelf .cards:has(> :nth-child(2):last-child), .shelf .cards:has(> :only-child) { grid-template-columns: 1fr; max-width: none; }
  .shelf-pair .card { grid-template-columns: 1fr; }
  .nav { flex-wrap: nowrap; height: 60px; padding-block: 0; }
  .brand img { width: 28px; height: 28px; }
  .site-header .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-right { gap: 16px; min-width: 0; }
  .nav-links { order: 0; width: auto; border: 0; padding: 0; gap: 16px; overflow-x: auto; }
  .nav-links a { padding-block: 8px; white-space: nowrap; }
  .btn-sm { padding: 8px 12px; font-size: 13px; }
  .card .plate { aspect-ratio: 16 / 9; }
  html { scroll-padding-top: 72px; }
  .topic-index { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .topic-index a { padding-block: var(--s-3); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --t-body: 18.5px; --t-h2: 29px; --t-h3: 25px; --t-h4: 21px; --t-h1: clamp(36px, 9.5vw, 42px); --t-display: clamp(30px, 8.5vw, 36px); }
  .masthead { padding: var(--s-7) 0 var(--s-6); }
  .masthead-grid { gap: var(--s-6); }
  .featured { padding-bottom: var(--s-8); }
  .featured .plate .device { width: 34%; right: 6%; bottom: -8%; }
  .featured-copy .dek { font-size: 19px; }
  .shelf, .shelf-pair { padding: var(--s-7) 0; }
  .signup { padding: var(--s-8) 0; }
  .signup-panel { padding: var(--s-6) var(--s-5); border-radius: 18px; gap: var(--s-5); }
  .field { flex-direction: column; border-radius: 16px; padding: 6px; }
  .field input { padding: 14px 12px; }
  .field .btn-gold { width: 100%; border-radius: 12px; }
  .signup .form-note { padding-inline-start: 0; }
  .post-head .dek { font-size: 19px; }
  .hero .plate { aspect-ratio: 16 / 10; }
  .hero { margin-bottom: var(--s-6); }
  .prose .lead { font-size: 19.5px; line-height: 1.6; }
  .prose h3 { font-size: 22px; line-height: 1.3; }
  .takeaways { padding: var(--s-5); }
  .takeaways li { font-size: 16px; }
  .figure { grid-template-columns: 1fr; justify-items: center; padding: var(--s-5); }
  .figure .device { width: 200px; }
  .pull { margin: var(--s-7) 0 !important; }
  .plan-head { flex-direction: column; padding: var(--s-5) var(--s-5) var(--s-4); }
  .plan-head .plan-total { text-align: start; }
  .plan-chart { padding: 0 var(--s-5); height: 80px; gap: 6px; }
  .plan-chart i { height: calc(var(--m) / var(--max) * 75px); }
  .plan-steps { padding: var(--s-3) var(--s-5) var(--s-4); }
  .plan-steps li { grid-template-columns: auto 1fr; gap: 4px var(--s-3); }
  .plan-steps li p { grid-column: 1 / -1; grid-row: 2; }
  .plan .plan-foot { padding: var(--s-4) var(--s-5); }
  .app-card { grid-template-columns: 1fr; padding: var(--s-5); }
  .app-card .device { width: 150px; margin-inline: auto; transform: rotate(-3deg); }
  .qr { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .related-head { flex-direction: column; gap: var(--s-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .card:hover .plate, .featured-card:hover .plate .device, .btn-gold:hover, .go:hover svg, .btn:active { transform: none !important; }
  .featured-card:hover .plate .device { transform: rotate(-2deg) !important; }
  .featured-copy h2 a { background: none !important; }
}

/* Specificity guards: prose link styles must not reach components */
.prose a.btn { text-decoration: none; }
.prose a.btn-gold, .prose a.btn-gold:hover { color: var(--gold-ink); }
.author .avatar { color: var(--gold-br); font-size: 17px; }
.masthead .avatar { font-size: 22px; }
