
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --tone-hue: 91.5; --tone-chroma: 0.009;
  --tone-50: oklch(0.988 calc(var(--tone-chroma) * 0.3) var(--tone-hue)); --tone-100: oklch(0.976 calc(var(--tone-chroma) * 0.65) var(--tone-hue)); --tone-150: oklch(0.946 calc(var(--tone-chroma) * 0.92) var(--tone-hue)); --tone-200: oklch(0.905 calc(var(--tone-chroma) * 1.05) var(--tone-hue));
  --tone-300: oklch(0.87 calc(var(--tone-chroma) * 1) var(--tone-hue)); --tone-500: oklch(0.56 calc(var(--tone-chroma) * 0.75) var(--tone-hue)); --tone-600: oklch(0.46 calc(var(--tone-chroma) * 0.65) var(--tone-hue)); --tone-900: oklch(0.19 calc(var(--tone-chroma) * 0.35) var(--tone-hue));
  --canvas: var(--tone-150); --card: oklch(1 0 0); --text: var(--tone-900); --muted: var(--tone-600); --line: var(--tone-200); --line-strong: var(--tone-300); --fill: var(--tone-100);
  --primary: var(--tone-900); --primary-fg: var(--tone-50); --ring: oklch(0.72 calc(var(--tone-chroma) * 0.85) var(--tone-hue)); --danger: oklch(0.5 0.15 30); --radius: 0.625rem;
  /* Hovers, as the web app's (index.css, design-system skill "Buttons"): a ghost or icon button on the canvas tone 200
     (--sidebar-accent), also while its menu is open; a menu item tone 150; a ghost button on white and an outline button
     tone 100 (--muted). Dark: the web app's .dark values. */
  --hover-canvas: var(--tone-200); --hover-menu: var(--tone-150); --hover-card: var(--tone-100);
  --outline-border: var(--tone-200); --outline-bg: #ffffff; --outline-hover: var(--tone-100);
  /* Field tiles (the web app's tokens, apps/web/src/index.css "Field tiles"): field tone at rest, white with a ring when focused. */
  --field: var(--tone-100); --field-hover: color-mix(in oklab, var(--field) 98.5%, black); --field-focus-bg: #ffffff; --field-focus: var(--tone-900);
  --field-halo: oklch(0.205 0 0 / 0.08); --field-muted: var(--tone-600); --field-hint: color-mix(in oklab, var(--tone-500) 80%, var(--tone-600));
  --field-destructive: oklch(0.45 0.17 27); --label-scale: 0.75;
  --show-sun: block; --show-moon: none;
  color-scheme: light;
}
:root[data-theme="dark"] { --canvas: oklch(0.165 calc(var(--tone-chroma) * 0.3) var(--tone-hue)); --card: oklch(0.205 calc(var(--tone-chroma) * 0.25) var(--tone-hue)); --text: oklch(0.985 0 0); --muted: oklch(0.708 0 0); --line: oklch(1 0 0 / 13%);
    --line-strong: oklch(1 0 0 / 28%); --fill: oklch(0.269 calc(var(--tone-chroma) * 0.2) var(--tone-hue)); --primary: oklch(0.922 0 0); --primary-fg: oklch(0.205 0 0); --ring: oklch(0.556 0 0);
    --hover-canvas: color-mix(in oklab, var(--card) 50%, var(--canvas)); --hover-menu: var(--fill); --hover-card: color-mix(in oklab, var(--fill) 50%, transparent);
    --outline-border: oklch(1 0 0 / 15%); --outline-bg: oklch(1 0 0 / 4.5%); --outline-hover: oklch(1 0 0 / 7.5%);
    --field: color-mix(in oklab, var(--canvas) 40%, var(--card)); --field-hover: color-mix(in oklab, var(--field) 97%, white); --field-focus-bg: oklch(0.12 0 0);
    --field-focus: oklch(0.92 0 0); --field-halo: oklch(1 0 0 / 0.1); --field-muted: oklch(0.74 calc(var(--tone-chroma) * 0.35) var(--tone-hue)); --field-hint: color-mix(in oklab, var(--field-muted) 75%, var(--field));
    --field-destructive: oklch(0.704 0.191 22.216); --danger: oklch(0.704 0.191 22.216); --show-sun: none; --show-moon: block; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --canvas: oklch(0.165 calc(var(--tone-chroma) * 0.3) var(--tone-hue)); --card: oklch(0.205 calc(var(--tone-chroma) * 0.25) var(--tone-hue)); --text: oklch(0.985 0 0); --muted: oklch(0.708 0 0); --line: oklch(1 0 0 / 13%);
    --line-strong: oklch(1 0 0 / 28%); --fill: oklch(0.269 calc(var(--tone-chroma) * 0.2) var(--tone-hue)); --primary: oklch(0.922 0 0); --primary-fg: oklch(0.205 0 0); --ring: oklch(0.556 0 0);
    --hover-canvas: color-mix(in oklab, var(--card) 50%, var(--canvas)); --hover-menu: var(--fill); --hover-card: color-mix(in oklab, var(--fill) 50%, transparent);
    --outline-border: oklch(1 0 0 / 15%); --outline-bg: oklch(1 0 0 / 4.5%); --outline-hover: oklch(1 0 0 / 7.5%);
    --field: color-mix(in oklab, var(--canvas) 40%, var(--card)); --field-hover: color-mix(in oklab, var(--field) 97%, white); --field-focus-bg: oklch(0.12 0 0);
    --field-focus: oklch(0.92 0 0); --field-halo: oklch(1 0 0 / 0.1); --field-muted: oklch(0.74 calc(var(--tone-chroma) * 0.35) var(--tone-hue)); --field-hint: color-mix(in oklab, var(--field-muted) 75%, var(--field));
    --field-destructive: oklch(0.704 0.191 22.216); --danger: oklch(0.704 0.191 22.216); --show-sun: none; --show-moon: block; color-scheme: dark; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--canvas); color: var(--text);
  font: 400 1rem/1.6 "Inter Variable", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 0.375rem; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 60; width: auto; height: auto; margin: 0; clip: auto; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: var(--card); font-weight: 500; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* ---- top bar: the website's (sticky, 56 px, canvas with a hairline; 36 px buttons in the bar only) ---- */
header.site { position: sticky; top: 0; z-index: 40; background: var(--canvas); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 0.5rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-fg); font-size: 1.125rem; font-weight: 600; }
nav.sections { display: none; align-items: center; gap: 0.25rem; margin-left: 1rem; min-width: 0; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
@media (min-width: 48rem) { nav.sections { display: flex; } .menu { display: none; } header.site .wrap { gap: 1.5rem; } .tools { gap: 0.5rem; } }

/* Buttons (the web app's Button, components/ui/button.tsx): default, outline, ghost; 44 px on a public page, 36 px in the
   top bar only (sm: 12.8 px text, 12 px sides, 8 px corners; icons 36 px with 10 px corners), measured on the website. */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent; background-clip: padding-box; color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; outline: none; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.btn:focus-visible, button:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
input:focus-visible { outline: none; }
.btn:active, button:active { transform: translateY(1px); }
.btn.primary, button.primary { background: var(--primary); color: var(--primary-fg); }
.btn.primary:hover, button.primary:hover { background: color-mix(in oklab, var(--primary) 80%, transparent); }
.btn.outline, button.outline { border-color: var(--outline-border); background: var(--outline-bg); }
.btn.outline:hover, button.outline:hover { background: var(--outline-hover); }
button.ghost:hover, button.danger:hover { background: var(--hover-card); }
header.site .btn.ghost:hover, .pop[open] > summary { background: var(--hover-canvas); }
button.danger { color: var(--danger); border-color: var(--outline-border); }
button:disabled { opacity: 0.5; cursor: default; }
button.wide { width: 100%; }
.btn.icon { width: 2.75rem; padding: 0; }
header.site .btn { min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.8rem; border-radius: 0.5rem; gap: 0.25rem; }
header.site .btn.icon { width: 2.25rem; padding: 0; border-radius: var(--radius); }
nav.sections .btn[aria-current] { background: var(--card); }
.i-sun { display: var(--show-sun); } .i-moon { display: var(--show-moon); }

/* Pop-overs without script (<details>), as the web app's DropdownMenu: white, 10 px corners, a ring and a shadow, items
   with 8 px corners that hover tone 150. The theme menu, the account menu and the small-screen menu. */
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 50; min-width: 8rem; padding: 0.25rem; border-radius: var(--radius);
  background: var(--card); box-shadow: 0 0 0 1px color-mix(in oklab, var(--text) 10%, transparent), 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
  display: flex; flex-direction: column; }
.pop-panel .label { padding: 0.375rem 0.375rem 0.25rem; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.pop-panel a, .pop-panel button { display: flex; align-items: center; gap: 0.375rem; width: 100%; min-height: 2rem; padding: 0.25rem 0.375rem; border: 0; border-radius: 0.5rem;
  background: transparent; color: var(--text); font: inherit; font-size: 0.875rem; font-weight: 400; line-height: 1.25rem; text-decoration: none; cursor: pointer; justify-content: flex-start; }
header.site .pop-panel button { min-height: 2rem; padding: 0.25rem 0.375rem; }
.pop-panel a:hover, .pop-panel button:hover, .pop-panel a:focus-visible, .pop-panel button:focus-visible { background: var(--hover-menu); box-shadow: none; border-color: transparent; }
.pop-panel button:active { transform: none; }
.pop-panel a[aria-current] { font-weight: 500; }
.pop-panel a[aria-current]::after { content: "✓"; margin-left: auto; font-size: 0.8rem; }
.pop-panel hr { border: 0; border-top: 1px solid var(--line); margin: 0.25rem -0.25rem; }
/* The small-screen menu is the website's menu sheet in short: 44 px rows on a phone. */
.menu .pop-panel { min-width: 15rem; }
.menu .pop-panel a { min-height: 2.75rem; padding: 0 0.75rem; font-weight: 500; }
.who-box { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.375rem; font-size: 0.875rem; max-width: 16rem; }
.who-box span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .pop-panel { min-width: 13rem; }
#account-button .avatar { width: 1.75rem; height: 1.75rem; font-size: 0.8125rem; }

/* ---- type ---- */
main { flex: 1; padding: 2.5rem 0 5rem; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-weight: 750; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }
p { text-wrap: pretty; }
.eyebrow { margin: 0; font: 500 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kicker { display: inline-block; font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
a.kicker:hover { color: var(--text); }
.meta { font-size: 0.875rem; color: var(--muted); }
.meta a { text-decoration: none; color: var(--text); font-weight: 500; }
.meta a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.dek { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin: 0.75rem 0 0; }
.empty { color: var(--muted); }
a.story { display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; }
a.story:hover h2, a.story:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a.story p { margin: 0; }

/* ---- front page (after Medium's blog): masthead, the top story, then the feed beside a rail ---- */
/* Another 1 rem from the edges from where the top bar shows the sections (768 px) until the page stops growing (72 rem plus
   its 1 rem sides = 74 rem); above that none, the columns line up with the top bar (Johan 2026-10-24). */
@media (min-width: 48rem) and (max-width: 74rem) { .front { padding: 0 1rem; } }
.masthead { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1rem 0 2.5rem; text-align: center; }
.masthead h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.top { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { max-width: 52rem; }
.lead h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; }
.lead .dek { font-size: 1.25rem; max-width: 42rem; }
.cols { display: grid; gap: 3rem; padding-top: 2.5rem; }
/* Featured comes first in the page (above the feed on a phone); on a desktop it heads the right column. */
@media (min-width: 64rem) {
  .cols { grid-template-columns: minmax(0, 1fr) 20rem; grid-template-rows: auto 1fr; column-gap: 4rem; row-gap: 2.5rem; }
  .feed { grid-column: 1; grid-row: 1 / span 2; }
  .picks-wrap { grid-column: 2; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 2; }
  .picks-wrap, .rail { border-left: 1px solid var(--line); padding-left: 2.5rem; }
}
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.25rem; }
.block-head a { text-decoration: none; }
.block-head a:hover { color: var(--text); }
.rail { display: flex; flex-direction: column; gap: 2.5rem; }
.rail-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1rem; }
.picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.picks h3 { font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; background: var(--fill); font-size: 0.875rem; text-decoration: none; }
.pills a:hover { background: color-mix(in oklab, var(--fill) 80%, transparent); }
.box { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border-radius: calc(var(--radius) * 1.4); background: var(--card); border: 1px solid var(--line); }
.box h2 { font-size: 1.05rem; }
.box p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Who wrote it: a round initial, the names, the section. */
.who { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.who-name { color: var(--text); font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-size: 0.6875rem; font-weight: 600; flex-shrink: 0; }
.avatar.lg { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; }

/* The feed: one column of stories between hairlines (front page, sections, tags, authors, "More in"). */
.river { list-style: none; margin: 0; padding: 0; }
.river li { border-bottom: 1px solid var(--line); }
.river a.story { padding: 1.75rem 0; gap: 0.5rem; }
.story-main { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.river h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.river .dek { font-size: 1rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.river .meta { font-size: 0.8125rem; }

/* ---- video (Johan 2026-10-24): our poster with a play mark, YouTube's player only after play ---- */
.thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--fill); aspect-ratio: 16 / 9; flex-shrink: 0; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 85%, transparent); color: var(--primary-fg); transition: transform 150ms ease, background-color 150ms ease; }
.thumb .play svg { width: 1.25rem; height: 1.25rem; fill: currentColor; margin-left: 2px; }
.thumb.small .play { width: 2rem; height: 2rem; }
.thumb.small .play svg { width: 0.875rem; height: 0.875rem; }
a:hover .thumb .play { transform: scale(1.06); background: var(--primary); }
.tag-video { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 500; color: var(--text); }
.tag-video svg { width: 0.75rem; height: 0.75rem; fill: currentColor; }
.tag-video.inline { margin-right: 0.375rem; vertical-align: -0.05em; }
.river a.story.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; align-items: start; gap: 1rem; }
@media (min-width: 40rem) { .river a.story.has-thumb { grid-template-columns: minmax(0, 1fr) 12rem; gap: 1.5rem; } }
.lead-video .thumb { margin-bottom: 1rem; max-width: 52rem; }
.video { margin: 0 0 2rem; scroll-margin-top: 5rem; }
.video .poster { display: block; border-radius: var(--radius); }
.video .poster.locked .play { display: none; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .thumb .play { width: 4.5rem; height: 4.5rem; }
.video .thumb .play svg { width: 1.75rem; height: 1.75rem; }
.video-note { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); }
.video-note a { color: var(--text); text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: reduce) { .thumb .play { transition: none; } }

/* ---- list pages and the piece (Medium's reading column: 42 rem, a serif body) ---- */
.page-head { display: flex; flex-direction: column; gap: 0.5rem; max-width: 44rem; margin: 0 auto; padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.page-head .dek { margin: 0.25rem 0 0; }
.page-head + .river, .page-head + .empty { max-width: 44rem; margin: 0 auto; }
article.piece { max-width: 42rem; margin: 0 auto; }
article.piece > header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
article.piece h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; }
article.piece .dek { margin: 0; font-size: 1.375rem; line-height: 1.4; }
.byline { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 0; margin-top: 0.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline p { margin: 0; }
.byline-name { font-weight: 500; }
.byline-name a { text-decoration: none; }
.byline-name a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.body { font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif; font-size: 1.25rem; line-height: 1.6; letter-spacing: -0.003em; }
.body p { margin: 1.4em 0 0; }
.body > :first-child { margin-top: 0; }
.body h2, .body h3, .body h4 { font-family: "Inter Variable", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.body h2 { font-size: 1.5rem; margin: 2em 0 0; }
.body h3 { font-size: 1.25rem; margin: 1.75em 0 0; }
.body h4 { font-size: 1.1rem; margin: 1.5em 0 0; }
.body ul, .body ol { padding-left: 1.5em; margin: 1.4em 0 0; }
.body li { margin: 0.5em 0 0; }
.body li > p { margin: 0; }
.body blockquote { margin: 1.75em 0 0; padding-left: 1.25em; border-left: 3px solid var(--text); font-style: italic; }
.body a { text-underline-offset: 0.2em; }
.body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8em; background: var(--fill); padding: 0.1em 0.3em; border-radius: 0.25rem; }
.body pre { background: var(--fill); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: 1rem; line-height: 1.6; margin: 1.75em 0 0; }
.body pre code { background: none; padding: 0; font-size: 0.875rem; }
.body hr { border: 0; margin: 2.5em 0; text-align: center; overflow: visible; height: auto; }
.body hr::before { content: "· · ·"; letter-spacing: 1em; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.tags a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; text-decoration: none; border-radius: 999px; padding: 0 1rem; background: var(--fill); }
.tags a:hover { background: color-mix(in oklab, var(--fill) 80%, transparent); }
.more { max-width: 42rem; margin: 4rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.more .eyebrow { margin-bottom: 0.5rem; }

/* ---- the reader's corner, dialog and My subscription (island.ts) ---- */
/* Fixed, not relative: a relative modal dialog is placed against the page and scrolls away with it. Taller than the
   screen, it scrolls inside; the page behind stays put while one is open. */
html:has(.reader-dialog[open]) { overflow: hidden; }
.reader-dialog { position: fixed; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: 0; background: var(--card); color: var(--text); width: min(26rem, calc(100vw - 2rem)); }
.reader-dialog::backdrop { background: oklch(0 0 0 / 10%); }
.dialog-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.dialog-body h2 { font-size: 1.35rem; padding-right: 2.5rem; }
.dialog-head { display: flex; flex-direction: column; gap: 0.375rem; }
.dialog-head p { margin: 0; }
.dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; min-height: 0; width: 2.25rem; height: 2.25rem; padding: 0; display: grid; place-items: center;
  background: transparent; color: var(--muted); border-radius: 0.5rem; }
.dialog-close:hover { background: var(--hover-card); color: var(--text); }
.dialog-body form { display: flex; flex-direction: column; gap: 0.75rem; }
.consent { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.875rem; line-height: 1.4; cursor: pointer; }
.consent input { margin: 0.15rem 0 0; flex: none; width: 1rem; height: 1rem; }
.offer { margin: 0; }
/* Field tiles (as the web app's FieldTile): label floating over the value, 52 px, help inside, no border at rest. */
.tile { position: relative; display: flex; flex-direction: column; min-height: 3.25rem; padding: 0 0.75rem; border-radius: 0.5rem; background: var(--field); cursor: text;
  transition: background-color 150ms ease, box-shadow 150ms ease; }
.tile:hover:not(:focus-within) { background: var(--field-hover); }
.tile:focus-within { background: var(--field-focus-bg); box-shadow: 0 0 0 1.5px var(--field-focus), 0 0 0 5px var(--field-halo); }
.tile-label { position: absolute; top: 0.5rem; left: 0.75rem; max-width: calc(100% - 1.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 1rem; line-height: 1.25rem; font-weight: 400; color: var(--field-muted); pointer-events: none;
  transform-origin: left top; transform: scale(var(--label-scale)); transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), color 160ms ease; }
.tile:focus-within .tile-label { color: var(--text); }
.tile-control, .tile-control:focus-visible { outline: none; }
.tile-control { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; line-height: 1.25rem; padding: 1.5rem 0 0.5rem; }
.tile-control::placeholder { opacity: 0; color: var(--field-muted); transition: opacity 160ms ease; }
.tile:focus-within .tile-control::placeholder { opacity: 1; }
.tile:not(:focus-within):has(.tile-control:placeholder-shown):not(:has(:autofill)) .tile-label { transform: translateY(0.5rem) scale(1); }
.tile-help { margin: -0.4375rem 0 0; padding-bottom: 0.5rem; font-size: 0.75rem; line-height: 1rem; font-style: italic; color: var(--field-hint); }
@media (prefers-reduced-motion: reduce) { .tile, .tile-label, .tile-control::placeholder, .btn, button { transition: none; } }
/* A form-wide error (the web app's FormError): the field tone with a red edge, the message beside it. */
.form-error { margin: 0; min-height: 3.25rem; display: flex; align-items: center; padding: 0.625rem 0.75rem; border-radius: 0.5rem; background: var(--field);
  color: var(--field-destructive); font-size: 0.875rem; line-height: 1.25rem; box-shadow: inset 0 0 0 1px var(--field-destructive); }
.form-error:empty { display: none; }
.actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.fine { font-size: 0.8rem; color: var(--muted); margin: 0; }
.error { color: var(--danger); font-size: 0.875rem; margin: 0; }
.error:empty { display: none; }
.gate { margin: 2.5rem 0 0; padding: 2rem 1.5rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); background: var(--card); text-align: center;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.gate-title { font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0; }
.gate .meta { margin: 0 0 0.5rem; }
.account { max-width: 36rem; margin: 0 auto; }
.account h1 { margin-bottom: 1.5rem; }
.account-body { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.details { margin: 0; display: grid; gap: 0.75rem; }
.details .row { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.details dt { color: var(--muted); font-size: 0.9rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* ---- the cookie banner: the website's (a card bottom left, two equal choices, details) ---- */
.cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 50; width: min(26rem, calc(100vw - 2rem)); display: flex; flex-direction: column; gap: 1rem;
  padding: 1.25rem; border-radius: calc(var(--radius) * 1.4); background: var(--card);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--text) 10%, transparent), 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1); }
.cookie h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.cookie p { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.cookie p a { color: var(--text); text-underline-offset: 0.2em; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { flex: 1; }
.cookie-details summary { list-style: none; cursor: pointer; text-align: center; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; min-height: 2.25rem; display: grid; place-items: center; border-radius: 0.5rem; }
.cookie-details summary::-webkit-details-marker { display: none; }
.cookie-details dl { margin: 0.5rem 0 0.75rem; display: grid; gap: 0.5rem; font-size: 0.8125rem; }
.cookie-details dt { font-weight: 500; }
.cookie-details dt span { color: var(--muted); font-weight: 400; }
.cookie-details dd { margin: 0; color: var(--muted); }
.cookie-details .btn { width: 100%; }

/* ---- footer: the website's ---- */
footer.site { border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 2rem; padding-bottom: 2rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--text); }
