/*! supposedly — built from assets/css/. Edit the sources, then run ./build.sh */

/* ---------- 00-fonts.css ---------- */
/* ==========================================================================
   SELF-HOSTED WEBFONTS  (woff2, latin-subset)

   Louise        the wordmark, and only the wordmark. A 19th-century
                 correspondence hand from the Degheest revival. Its r and e
                 are near-identical glyphs, so any string with an r misreads
                 — "Sonya Supposedly" has none. Needs ~1.4x a serif's size.
   Chubbo        body. A warm transitional serif with a REAL italic, which
                 matters: 838 <em>/<i> across 136 of the 168 posts.
   Director      house display — the home hero and everything in the base
                 room. Monospaced.
   Lineal        post titles (--f-title), and the /letters/ channel head
   Space Grotesk labels, metadata, nav, buttons, chips
   Format 1452   zines
   Monor         Wanderverse & fiction display, and every <code>/<pre>
   Tribalium     the 404 and nothing else

   Which display face applies is decided by the palette blocks in
   01-vars.css, so type follows the room automatically.
   ========================================================================== */

/* ---- wordmark ---- */
@font-face{font-family:'Louise';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/louise-regular.woff2) format('woff2');}

/* ---- body ---- */
@font-face{font-family:'Chubbo';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/chubbo-variable.woff2) format('woff2');}
@font-face{font-family:'Chubbo';font-style:italic;font-weight:200 800;font-display:swap;src:url(../fonts/chubbo-variable-italic.woff2) format('woff2');}

/* ---- house display (monospace) ---- */
@font-face{font-family:'Director';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/director-light.woff2) format('woff2');}
@font-face{font-family:'Director';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/director-regular.woff2) format('woff2');}
@font-face{font-family:'Director';font-style:normal;font-weight:700 900;font-display:swap;src:url(../fonts/director-bold.woff2) format('woff2');}

/* ---- display: house ---- */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/space-grotesk-variable.woff2) format('woff2');}

/* ---- display: zines. One cut; mapped across the range so nothing fakes a bold. ---- */
@font-face{font-family:'Format 1452';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/format-1452.woff2) format('woff2');}

/* ---- display: Wanderverse, and the code face ---- */
@font-face{font-family:'Monor';font-style:normal;font-weight:100 600;font-display:swap;src:url(../fonts/monor-regular.woff2) format('woff2');}
@font-face{font-family:'Monor';font-style:normal;font-weight:700 900;font-display:swap;src:url(../fonts/monor-bold.woff2) format('woff2');}

/* ---- labels ---- */
@font-face{font-family:'Lineal';font-style:normal;font-weight:100 600;font-display:swap;src:url(../fonts/lineal-regular.woff2) format('woff2');}
@font-face{font-family:'Lineal';font-style:normal;font-weight:700 900;font-display:swap;src:url(../fonts/lineal-bold.woff2) format('woff2');}

/* ---- the 404 ---- */
@font-face{font-family:'Tribalium Neue';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/tribalium-neue.woff2) format('woff2');}

/* ---------- 01-vars.css ---------- */
/* ==========================================================================
   TOKENS & PALETTES
   Three palettes, each pulled from art Sonya already owns:

   base      "Lilac garden"  — the Jay Holloway watercolour rabbit.
                               House style. Home, essays, letters,
                               motherhood, about, archive.
   zines     "Riso"          — the pink lop holding a fountain pen.
                               Fluorescent pink + peach, halftone.
   storybook "Storybook"     — the mother-rabbit-and-robot plates.
                               Cream, dusty blue, sepia. Wanderverse.

   Palette is selected on <body> by [data-palette] (channel + post primary
   tag) and by Ghost's own tag-* body classes. Later blocks win, so a post
   tagged both `wanderverse` and `zines` prints riso.
   ========================================================================== */

:root {
    /* --- type -------------------------------------------------------
       Only --f-display changes per room; it is redeclared in the palette
       blocks below, so the display face follows the colour automatically.
       Everything else is constant site-wide — which is what keeps three
       display faces from reading as three different websites.            */
    --f-display: "Director", ui-monospace, "SF Mono", Menlo, monospace;
    --f-body: "Chubbo", "Iowan Old Style", Charter, Georgia, serif;
    /* Post titles get their own face, so an article reads consistently
       wherever it lives. The room still announces itself on its channel
       page, its palette and its cards. */
    --f-title: "Lineal", "Helvetica Neue", Arial, sans-serif;
    /* Lineal's capital N has no left stem, so "NEWSLETTER" reads as
       "/VEWSLETTER" at label size. Labels use the house display face, which
       costs nothing extra since it is already loaded. Lineal gets the Letters
       room instead, where it is large enough for the N to resolve. */
    --f-label: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    --f-wordmark: "Louise", "Snell Roundhand", cursive;
    /* Monor ships only 155 glyphs — no curly quotes, em dash or ellipsis.
       Director is the fallback rather than a system mono, so the missing
       punctuation still lands on a typewriter face at the same rhythm. */
    --f-mono: "Monor", "Director", ui-monospace, Menlo, monospace;

    /* --- measure & rhythm ------------------------------------------- */
    /* 1rem = 10px (html font-size: 62.5%) */
    /* Chubbo averages 0.524em per lowercase character, so 640px at 18px
       lands at ~68. If the body ever goes back to Director (0.70em mono),
       these need to go up to 76/98/122 or the measure collapses to 46. */
    --content-width: 64rem;    /* 640px — ~68 characters of Chubbo at 18px */
    --wide-width: 92rem;       /* 920px — wide cards, feature images */
    --container-width: 122rem; /* 1220px — the page */
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --band: clamp(3rem, 7vw, 6rem);

    --radius: 2px;
    --rule-w: 1px;

    /* --- base palette (light) --------------------------------------- */
    --paper: #efeaf3;
    --paper-2: #e5deec;
    --sheet: #fcfafd;
    --ink: #221d2c;
    --ink-2: #544a67;
    --ink-3: #837897;
    --accent: #6b4fa8;
    --accent-ink: #ffffff;
    --hot: #d91e63;
    --leaf: #44704a;
    --rule: #cfc4dd;
    --rule-2: #ded6e7;
    --shadow: 34 29 44;
    --grain: 0;
    --tint: 107 79 168; /* --accent as rgb triplet, for translucent fills */
}

/* ---- base palette (dark) --------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-scheme="light"]) {
        --paper: #17131f;
        --paper-2: #1e1929;
        --sheet: #231d30;
        --ink: #eee8f6;
        --ink-2: #b7acc9;
        --ink-3: #8a7ea0;
        --accent: #b79cec;
        --accent-ink: #17131f;
        --hot: #ff5c93;
        --leaf: #82b487;
        --rule: #3a3149;
        --rule-2: #2c2539;
        --shadow: 0 0 0;
        --tint: 183 156 236;
    }
}

:root[data-scheme="dark"] {
    --paper: #17131f;
    --paper-2: #1e1929;
    --sheet: #231d30;
    --ink: #eee8f6;
    --ink-2: #b7acc9;
    --ink-3: #8a7ea0;
    --accent: #b79cec;
    --accent-ink: #17131f;
    --hot: #ff5c93;
    --leaf: #82b487;
    --rule: #3a3149;
    --rule-2: #2c2539;
    --shadow: 0 0 0;
    --tint: 183 156 236;
}

/* ==========================================================================
   STORYBOOK — Wanderverse & fiction
   ========================================================================== */

body[data-palette="wanderverse"],
body[data-palette="fiction"],
body.tag-wanderverse,
body.tag-fiction,
.pal-storybook {
    --f-display: "Monor", "Director", ui-monospace, Menlo, monospace;
    --paper: #f4ede1;
    --paper-2: #eae0cf;
    --sheet: #fbf7ef;
    --ink: #2a241d;
    --ink-2: #5c5145;
    --ink-3: #8b7e6d;
    --accent: #45647a;
    --accent-ink: #fbf7ef;
    --hot: #a85b51;
    --leaf: #6e7a55;
    --rule: #d6c8b0;
    --rule-2: #e6dbc8;
    --shadow: 42 36 29;
    --tint: 69 100 122;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-scheme="light"]) body[data-palette="wanderverse"],
    :root:not([data-scheme="light"]) body[data-palette="fiction"],
    :root:not([data-scheme="light"]) body.tag-wanderverse,
    :root:not([data-scheme="light"]) body.tag-fiction,
    :root:not([data-scheme="light"]) .pal-storybook {
        --paper: #16130f;
        --paper-2: #1f1b16;
        --sheet: #262019;
        --ink: #f1e7d6;
        --ink-2: #bcae99;
        --ink-3: #8e8271;
        --accent: #97bad0;
        --accent-ink: #16130f;
        --hot: #d89a90;
        --leaf: #a3b183;
        --rule: #3a322a;
        --rule-2: #2a241d;
        --shadow: 0 0 0;
        --tint: 151 186 208;
    }
}

:root[data-scheme="dark"] body[data-palette="wanderverse"],
:root[data-scheme="dark"] body[data-palette="fiction"],
:root[data-scheme="dark"] body.tag-wanderverse,
:root[data-scheme="dark"] body.tag-fiction,
:root[data-scheme="dark"] .pal-storybook {
    --paper: #16130f;
    --paper-2: #1f1b16;
    --sheet: #262019;
    --ink: #f1e7d6;
    --ink-2: #bcae99;
    --ink-3: #8e8271;
    --accent: #97bad0;
    --accent-ink: #16130f;
    --hot: #d89a90;
    --leaf: #a3b183;
    --rule: #3a322a;
    --rule-2: #2a241d;
    --shadow: 0 0 0;
    --tint: 151 186 208;
}

/* ==========================================================================
   LETTERS — no palette of its own, just a display face.
   Scoped to [data-palette], which only the /letters/ channel sets. Deliberately
   NOT body.tag-newsletter: 87 posts carry that tag, including essays and the
   motherhood writing, and those should stay in the house voice.
   ========================================================================== */

body[data-palette="newsletter"] {
    --f-display: "Lineal", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   RISO — Zines.  Declared last so it wins on posts tagged both.
   ========================================================================== */

body[data-palette="zines"],
body.tag-zines,
.pal-riso {
    --f-display: "Format 1452", "Helvetica Neue", Arial, sans-serif;
    --paper: #fff8f3;
    --paper-2: #ffede2;
    --sheet: #ffffff;
    --ink: #16110f;
    --ink-2: #574b45;
    --ink-3: #8a7a72;
    --accent: #d6006b;
    --accent-ink: #fff8f3;
    --hot: #ff2d8a;
    --leaf: #f2724a;
    --rule: #f3cdb6;
    --rule-2: #fbe3d5;
    --shadow: 22 17 15;
    --grain: 1;
    --tint: 255 45 138;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-scheme="light"]) body[data-palette="zines"],
    :root:not([data-scheme="light"]) body.tag-zines,
    :root:not([data-scheme="light"]) .pal-riso {
        --paper: #14100e;
        --paper-2: #1e1815;
        --sheet: #241d19;
        --ink: #fff1e6;
        --ink-2: #c6b2a6;
        --ink-3: #9a8579;
        --accent: #ff77b0;
        --accent-ink: #14100e;
        --hot: #ff5ca3;
        --leaf: #ffae86;
        --rule: #3b2e27;
        --rule-2: #2a211c;
        --shadow: 0 0 0;
        --tint: 255 92 163;
    }
}

:root[data-scheme="dark"] body[data-palette="zines"],
:root[data-scheme="dark"] body.tag-zines,
:root[data-scheme="dark"] .pal-riso {
    --paper: #14100e;
    --paper-2: #1e1815;
    --sheet: #241d19;
    --ink: #fff1e6;
    --ink-2: #c6b2a6;
    --ink-3: #9a8579;
    --accent: #ff77b0;
    --accent-ink: #14100e;
    --hot: #ff5ca3;
    --leaf: #ffae86;
    --rule: #3b2e27;
    --rule-2: #2a211c;
    --shadow: 0 0 0;
    --tint: 255 92 163;
}

/* ==========================================================================
   SECTION-LEVEL PALETTES
   .pal-riso / .pal-storybook re-declare the tokens above on any block, so a
   single page can carry more than one palette. Give the block its own
   background/colour, since it is no longer the <body> that paints them.
   ========================================================================== */

.pal-riso,
.pal-storybook {
    background: var(--paper);
    color: var(--ink);
}

/* ---------- 02-base.css ---------- */
/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 62.5%; /* 1rem = 10px */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.62;
    font-variant-numeric: oldstyle-num;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

/* Riso paper grain, only on the zines palette */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: calc(var(--grain) * .4);
    background-image: radial-gradient(rgb(var(--tint) / .55) .5px, transparent .5px);
    background-size: 4px 4px;
    mix-blend-mode: multiply;
}

:root[data-scheme="dark"] body::before { mix-blend-mode: screen; opacity: calc(var(--grain) * .3); }
@media (prefers-color-scheme: dark) {
    :root:not([data-scheme="light"]) body::before { mix-blend-mode: screen; opacity: calc(var(--grain) * .3); }
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Components below set display: grid/flex, which outranks the UA's
   [hidden] { display: none }. Without this, JS filtering silently no-ops. */
[hidden] { display: none !important; }

hr {
    height: 0;
    margin: var(--band) 0;
    border: 0;
    border-top: var(--rule-w) solid var(--rule);
}

/* ---- links ------------------------------------------------------------ */

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    text-decoration-color: rgb(var(--tint) / .4);
    transition: color .12s ease, text-decoration-color .12s ease, background-color .12s ease;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 1px;
}

/* ---- headings --------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--f-display);
    /* 600 lands on Space Grotesk SemiBold, Format 1452 and Monor Regular */
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.014em;
    text-wrap: balance;
    color: var(--ink);
}

h1 { font-size: clamp(3.2rem, 5.4vw, 5.2rem); }
h2 { font-size: clamp(2.6rem, 3.4vw, 3.4rem); }
h3 { font-size: clamp(2.1rem, 2.4vw, 2.5rem); }
h4 { font-size: 2rem; }
h5, h6 { font-size: 1.7rem; }

p, ul, ol, dl, blockquote, figure, pre, table { margin: 0; }

strong, b { font-weight: 700; }

/* Chubbo ships a true italic, so body-level quotes can slope honestly.
   The display faces still have none — see .gh-content > blockquote. */
blockquote { font-style: italic; }

::selection { background: rgb(var(--tint) / .28); }

/* ---- shared utilities -------------------------------------------------- */

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

.wrap-narrow { max-width: calc(var(--wide-width) + var(--gutter) * 2); }

.eyebrow {
    display: block;
    font-family: var(--f-label);
    font-size: 1.15rem;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
}

.eyebrow a { color: inherit; text-decoration-color: rgb(var(--tint) / .5); }
.eyebrow a:hover { color: var(--accent); }

.mono {
    font-family: var(--f-label);
    font-size: .82em;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: .02em;
}

.lede {
    font-size: 1.15em;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 1rem 1.6rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-label);
    font-size: 1.3rem;
    text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

/* ---- section headings -------------------------------------------------- */

.sec-head {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin-bottom: 2.4rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ink);
}

.sec-head h2 {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    letter-spacing: -.01em;
}

.sec-head .sec-more {
    margin-left: auto;
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---- buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.05rem 1.9rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-label);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}

.btn:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---- tag chips --------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
    display: inline-block;
    padding: .35rem .8rem;
    border: 1px solid var(--rule);
    border-radius: 100px;
    background: transparent;
    color: var(--ink-2);
    font-family: var(--f-label);
    font-size: 1.15rem;
    letter-spacing: .04em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- layout shell ------------------------------------------------------ */

.viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.main { flex: 1 0 auto; }

/* ---------- 03-head-foot.css ---------- */
/* ==========================================================================
   MASTHEAD
   ========================================================================== */

.head {
    position: relative;
    z-index: 50;
    border-bottom: var(--rule-w) solid var(--rule);
    background: var(--paper);
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 6.8rem;
    padding-block: 1rem;
}

/* ---- wordmark ---------------------------------------------------------- */

.brand {
    /* The name comes first in the DOM now, so the hare sits to its right
       without needing row-reverse. */
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    margin-right: auto;
    text-decoration: none;
    color: var(--ink);
}

/* The hare is a woodcut silhouette painted with currentColor through a mask,
   so it takes the room's ink and inverts correctly in dark mode. No circular
   crop: a leaping animal does not want to be an avatar. It faces left, back
   toward the wordmark. */
.brand-mark,
.foot-hare,
.error-hare {
    display: block;
    flex: none;
    aspect-ratio: 1426 / 1170;
    background-color: currentColor;
}

/* The masthead and footer marks are small and load on every page, so they use
   the 240px file. Only the 404, which renders the hare large, pulls the 720px
   one — and only on that page. */
.brand-mark,
.foot-hare {
    -webkit-mask: url(../images/hare-small.png) center / contain no-repeat;
    mask: url(../images/hare-small.png) center / contain no-repeat;
}

.error-hare {
    -webkit-mask: url(../images/hare.png) center / contain no-repeat;
    mask: url(../images/hare.png) center / contain no-repeat;
}

.brand-mark { width: 5rem; margin-top: -.2rem; }

.brand-name {
    /* deliberately --f-wordmark, not --f-display: the display face changes
       per room, and a masthead that changes face is not a masthead.
       Louise is a fine script — it needs ~1.4x a serif's size to hold, no
       negative tracking, and room for its ascenders and descenders. */
    font-family: var(--f-wordmark);
    font-weight: 400;
    font-size: 2.9rem;
    letter-spacing: 0;
    line-height: 1.24;
    white-space: nowrap;
}

.brand-logo { max-height: 3.6rem; width: auto; }

/* ---- nav --------------------------------------------------------------- */

.head-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.head-nav nav a {
    display: block;
    padding: .4rem 0;
    font-family: var(--f-label);
    font-size: 1.3rem;
    letter-spacing: .045em;
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.head-nav nav a:hover { color: var(--ink); border-bottom-color: var(--hot); }
.head-nav nav li.nav-current a { color: var(--ink); border-bottom-color: var(--ink); }

.head-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    padding: 0;
    border: 0;
    border-radius: 100%;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
}

.icon-btn:hover { background: rgb(var(--tint) / .12); color: var(--ink); }
.icon-btn svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

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

.head .btn { padding: .85rem 1.4rem; font-size: 1.2rem; }

/* ---- burger + mobile drawer -------------------------------------------- */

.burger { display: none; }

/* the drawer's own CTA — the header one is hidden at this width */
.head-nav-cta { display: none; }

@media (max-width: 860px) {
    .head-inner { min-height: 5.8rem; }
    .burger { display: inline-flex; }

    .head-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        padding: 1.6rem var(--gutter) 2.4rem;
        background: var(--paper);
        border-bottom: var(--rule-w) solid var(--rule);
        box-shadow: 0 18px 40px -24px rgb(var(--shadow) / .5);
    }

    body.nav-open .head-nav { display: block; }

    .head-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .head-nav li { border-bottom: var(--rule-w) solid var(--rule-2); }
    .head-nav nav a {
        padding: 1.2rem 0;
        font-size: 1.5rem;
        border-bottom: 0;
    }
    .head-nav nav li.nav-current a { color: var(--accent); }
    .head-actions .btn { display: none; }

    .head-nav-cta {
        display: flex;
        width: 100%;
        margin-top: 1.8rem;
    }
}

@media (max-width: 480px) {
    .brand-name { font-size: 2.4rem; }
    .brand-mark { width: 2.8rem; height: 2.8rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.foot {
    margin-top: var(--band);
    border-top: 2px solid var(--ink);
    background: var(--paper-2);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
}

.foot-hare {
    width: 11rem;
    margin-bottom: 1.4rem;
    color: var(--ink-3);
}

.foot h3 {
    margin-bottom: 1.2rem;
    font-family: var(--f-label);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-bottom: .5rem; }
.foot a { color: var(--ink-2); font-size: 1.6rem; text-decoration-color: transparent; }
.foot a:hover { color: var(--accent); text-decoration-color: currentColor; }

.foot-blurb { font-size: 1.6rem; color: var(--ink-2); max-width: 34ch; }

.foot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--rule-w) solid var(--rule);
    font-family: var(--f-label);
    font-size: 1.15rem;
    letter-spacing: .04em;
    color: var(--ink-3);
}

.foot-meta a { font-size: inherit; }

@media (max-width: 700px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}

/* ---------- 04-home.css ---------- */
/* ==========================================================================
   HOMEPAGE — HERO
   ========================================================================== */

.hero {
    padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
    border-bottom: var(--rule-w) solid var(--rule);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

/* The eyebrow is the emoji tagline now. The base .eyebrow is 11.5px uppercase
   with heavy tracking — which makes emoji tiny and would upper-case the two
   lowercase words. This one runs larger, untransformed, with lighter tracking. */
.hero-eyebrow {
    font-size: 1.55rem;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--ink-2);
}

.hero-thesis {
    margin: 1.6rem 0 0;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(3.6rem, 6.4vw, 6.6rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.hero-thesis em {
    font-style: normal;
    color: var(--hot);
}

.hero-stance {
    max-width: 40ch;
    margin-top: 1.8rem;
    font-size: clamp(1.75rem, 1.9vw, 2rem);
    line-height: 1.55;
    color: var(--ink-2);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 1.8rem;
    margin-top: 2.4rem;
}

/* ---- hero art ---------------------------------------------------------- */

.hero-art { position: relative; }

.hero-art figure {
    position: relative;
    margin: 0;
}

.hero-art-frame {
    position: relative;
    display: block;
}

/* riso mis-registration: a pink frame printed slightly off from the plate */
.hero-art-frame::before {
    content: "";
    position: absolute;
    inset: 1.4rem 1.4rem -1.4rem -1.4rem;
    border: 2px solid var(--hot);
    border-radius: var(--radius);
    opacity: .8;
}

.hero-art img {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -28px rgb(var(--shadow) / .55);
}

.hero-art figcaption {
    margin-top: 2.4rem; /* clears the offset registration frame */
    font-family: var(--f-label);
    font-size: 1.1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-align: right;
}

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 42rem; margin-inline: auto; }
    .hero-art-frame::before { inset: 1rem 1rem -1rem -1rem; }
}

/* ==========================================================================
   START HERE / CURRENTLY
   ========================================================================== */

.band {
    padding-block: var(--band);
    border-bottom: var(--rule-w) solid var(--rule);
}

.band-split {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.start-list { display: grid; gap: 0; margin-top: -.5rem; }

.start-row {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1.4rem;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: var(--rule-w) solid var(--rule-2);
    text-decoration: none;
    color: inherit;
}

.start-row:hover .start-title { color: var(--accent); }

.start-num {
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .06em;
    color: var(--hot);
    font-variant-numeric: lining-nums tabular-nums;
}

.start-title {
    display: block;
    font-family: var(--f-display);
    font-weight: 620;
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    line-height: 1.18;
    letter-spacing: -.015em;
}

.start-dek {
    display: block;
    margin-top: .35rem;
    font-size: 1.65rem;
    line-height: 1.45;
    color: var(--ink-2);
    text-wrap: pretty;
}

/* ---- currently --------------------------------------------------------- */

.currently {
    padding: 2rem 2.2rem 2.2rem;
    background: var(--sheet);
    border: var(--rule-w) solid var(--rule);
    border-top: 3px solid var(--hot);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px -28px rgb(var(--shadow) / .5);
}

.currently p {
    margin-top: 1rem;
    font-size: 1.65rem;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}

.currently-link {
    display: inline-block;
    margin-top: 1.4rem;
    font-family: var(--f-label);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .band-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DOORS — the collections
   ========================================================================== */

.doors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
    gap: 0;
    border-top: var(--rule-w) solid var(--rule);
    border-left: var(--rule-w) solid var(--rule);
}

.door {
    display: flex;
    flex-direction: column;
    padding: 2.2rem 2.2rem 2.4rem;
    border-right: var(--rule-w) solid var(--rule);
    border-bottom: var(--rule-w) solid var(--rule);
    background: var(--sheet);
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease;
    position: relative;
    overflow: hidden;
}

.door::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--door-color, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.door:hover { background: var(--paper-2); }
.door:hover::after { transform: scaleX(1); }

.door-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.door-name {
    font-family: var(--f-display);
    font-weight: 640;
    font-size: 2.4rem;
    letter-spacing: -.02em;
    color: var(--door-color, var(--ink));
}

.door-count {
    flex: none;
    font-family: var(--f-label);
    font-size: 1.15rem;
    letter-spacing: .06em;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
}

.door-gloss {
    font-size: 1.6rem;
    line-height: 1.45;
    color: var(--ink-2);
    text-wrap: pretty;
}

.door-list {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: var(--rule-w) dashed var(--rule);
    font-family: var(--f-label);
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--ink-3);
}

.door-list span { color: var(--ink-2); }
.door-list span::after { content: " · "; color: var(--hot); opacity: .7; }
.door-list span:last-child::after { content: ""; }

/* Per-door accent colours, drawn from the three palettes */
.door-essays     { --door-color: #6b4fa8; }
.door-wanderverse{ --door-color: #45647a; }
.door-zines      { --door-color: #d6006b; }
.door-letters    { --door-color: #44704a; }
.door-motherhood { --door-color: #a85b51; }

:root[data-scheme="dark"] .door-essays      { --door-color: #b79cec; }
:root[data-scheme="dark"] .door-wanderverse { --door-color: #97bad0; }
:root[data-scheme="dark"] .door-zines       { --door-color: #ff77b0; }
:root[data-scheme="dark"] .door-letters     { --door-color: #82b487; }
:root[data-scheme="dark"] .door-motherhood  { --door-color: #d89a90; }

@media (prefers-color-scheme: dark) {
    :root:not([data-scheme="light"]) .door-essays      { --door-color: #b79cec; }
    :root:not([data-scheme="light"]) .door-wanderverse { --door-color: #97bad0; }
    :root:not([data-scheme="light"]) .door-zines       { --door-color: #ff77b0; }
    :root:not([data-scheme="light"]) .door-letters     { --door-color: #82b487; }
    :root:not([data-scheme="light"]) .door-motherhood  { --door-color: #d89a90; }
}

/* ==========================================================================
   WANDERVERSE STRIP  (carries the storybook palette on the homepage)
   ========================================================================== */

.wander {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    border-block: 2px solid var(--ink);
}

.wander-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.wander-art { margin: 0; }

.wander-art img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 26px 54px -30px rgb(var(--shadow) / .6);
}

.wander-title {
    margin-top: 1rem;
    font-size: clamp(3rem, 5vw, 4.6rem);
    letter-spacing: -.028em;
}

.wander-intro {
    max-width: 46ch;
    margin-top: 1.2rem;
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}

.wander-list {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    border-top: var(--rule-w) solid var(--rule);
}

.wander-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .85rem 0;
    border-bottom: var(--rule-w) solid var(--rule-2);
}

.wander-list a {
    font-family: var(--f-display);
    font-weight: 580;
    font-size: 1.9rem;
    letter-spacing: -.012em;
    text-decoration-color: transparent;
}

.wander-list a:hover { text-decoration-color: currentColor; }
.wander-list .mono { color: var(--ink-3); font-size: 1.2rem; }

@media (max-width: 820px) {
    .wander-grid { grid-template-columns: 1fr; }
}

/* ---- small layout helpers ---------------------------------------------- */

.rows-sp { margin-top: var(--band); }
.band-tail { padding-bottom: var(--band); }

/* ---------- 05-feed.css ---------- */
/* ==========================================================================
   POST CARDS
   ========================================================================== */

.feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(30rem, 100%), 1fr));
    gap: clamp(2.4rem, 4vw, 4rem) clamp(2rem, 3vw, 3.2rem);
}

.feed-lead { grid-column: 1 / -1; }

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-pic {
    position: relative;
    display: block;
    margin-bottom: 1.4rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
    aspect-ratio: 4 / 3;
}

.card-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}

.card:hover .card-pic img { transform: scale(1.035); }

.feed-lead .card { flex-direction: row; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.feed-lead .card-pic { flex: 0 0 46%; margin-bottom: 0; aspect-ratio: 3 / 2; }
.feed-lead .card-body { flex: 1 1 auto; }
.feed-lead .card-title { font-size: clamp(2.6rem, 3.6vw, 3.6rem); }
.feed-lead .card-excerpt { font-size: 1.8rem; -webkit-line-clamp: 4; line-clamp: 4; }

@media (max-width: 760px) {
    .feed-lead .card { flex-direction: column; align-items: stretch; }
    .feed-lead .card-pic { flex: none; margin-bottom: 1.4rem; }
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .7rem;
    font-family: var(--f-label);
    font-size: 1.15rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
}

.card-meta .sep { color: var(--rule); }
.card-meta .card-section { color: var(--hot); font-weight: 700; }

.card-title {
    font-family: var(--f-display);
    font-weight: 620;
    font-size: clamp(2rem, 2.2vw, 2.3rem);
    line-height: 1.16;
    letter-spacing: -.018em;
    text-wrap: balance;
}

.card:hover .card-title { color: var(--accent); }

.card-excerpt {
    margin-top: .7rem;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* used in cards, list rows and post headers */
.members-badge {
    display: inline-block;
    margin-left: .4rem;
    padding: .05em .55em;
    border: 1px solid var(--hot);
    border-radius: 100px;
    color: var(--hot);
    font-family: var(--f-label);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .09em;
    text-transform: uppercase;
    vertical-align: .12em;
    white-space: nowrap;
}

/* ==========================================================================
   DENSE LIST ROWS  (recent, archive, channel overflow)
   ========================================================================== */

.rows { border-top: var(--rule-w) solid var(--rule); }

.row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr) auto;
    gap: 1.6rem;
    align-items: baseline;
    padding: 1.15rem 0;
    border-bottom: var(--rule-w) solid var(--rule-2);
    text-decoration: none;
    color: inherit;
}

.row:hover { background: rgb(var(--tint) / .06); }
.row:hover .row-title { color: var(--accent); }

.row-date {
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .03em;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}

.row-title {
    font-family: var(--f-display);
    font-weight: 580;
    font-size: 1.9rem;
    line-height: 1.3;
    letter-spacing: -.012em;
}

.row-tags {
    font-family: var(--f-label);
    font-size: 1.15rem;
    letter-spacing: .04em;
    color: var(--ink-3);
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 660px) {
    .row { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: 1.1rem 0; }
    .row-date { order: -1; }
    .row-tags { text-align: left; }
}

/* year group headings, inserted by JS on the archive */
.row-year {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin: 3.6rem 0 0;
    padding: 0 0 .6rem;
    border-bottom: 2px solid var(--ink);
    font-family: var(--f-display);
    font-weight: 640;
    font-size: 2.4rem;
    letter-spacing: -.01em;
    font-variant-numeric: lining-nums;
}

.row-year:first-child { margin-top: 0; }
.row-year small {
    font-family: var(--f-label);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--ink-3);
}

/* ==========================================================================
   PAGINATION / LOAD MORE
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-top: var(--band);
}

.pagination a, .pagination .page-number {
    font-family: var(--f-label);
    font-size: 1.3rem;
    letter-spacing: .06em;
    color: var(--ink-2);
}

.load-more-wrap { display: flex; justify-content: center; margin-top: var(--band); }
.load-more-wrap[hidden] { display: none; }

/* ==========================================================================
   ARCHIVE FILTER BAR
   ========================================================================== */

.filterbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.4rem;
    padding: 1.2rem 0;
    background: var(--paper);
    border-bottom: var(--rule-w) solid var(--rule);
}

.filter-input {
    flex: 1 1 22rem;
    min-width: 0;
    padding: .9rem 1.2rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-label);
    font-size: 1.35rem;
}

.filter-input::placeholder { color: var(--ink-3); }
.filter-input:focus { border-color: var(--accent); outline: none; }

.filter-count {
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .05em;
    color: var(--ink-3);
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }

.archive-empty {
    padding: 4rem 0;
    text-align: center;
    color: var(--ink-3);
    font-family: var(--f-label);
    font-size: 1.4rem;
}

/* ---------- 06-post.css ---------- */
/* ==========================================================================
   POST & PAGE
   ========================================================================== */

.article { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; }

/* ---- the Ghost content grid -------------------------------------------- */

.canvas,
.kg-width-full.kg-content-wide {
    --gap: var(--gutter);
    --main: min(var(--content-width), 100% - var(--gap) * 2);
    --wide: minmax(0, calc((var(--wide-width) - var(--content-width)) / 2));
    --full: minmax(var(--gap), 1fr);

    display: grid;
    grid-template-columns:
        [full-start] var(--full)
        [wide-start] var(--wide)
        [main-start] var(--main) [main-end]
        var(--wide) [wide-end]
        var(--full) [full-end];
}

.canvas > * { grid-column: main-start / main-end; }
.kg-width-wide, .kg-content-wide > div { grid-column: wide-start / wide-end; }
.kg-width-full { grid-column: full-start / full-end; }
.kg-width-full img { width: 100%; }

/* ---- header ------------------------------------------------------------ */

.post-head { padding-bottom: clamp(2rem, 4vw, 3.4rem); }

.post-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .8rem;
    margin-bottom: 1.4rem;
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
}

.post-kicker .sep { color: var(--rule); }
.post-kicker a { color: var(--hot); font-weight: 700; text-decoration: none; }
.post-kicker a:hover { text-decoration: underline; }

.post-title {
    font-family: var(--f-title);
    font-weight: 700;
    font-size: clamp(3.2rem, 5.6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -.028em;
}

.post-dek {
    max-width: 46ch;
    margin-top: 1.6rem;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.8rem, 2vw, 2.05rem);
    line-height: 1.4;
    color: var(--ink-2);
    text-wrap: pretty;
}

.feature-image {
    grid-column: wide-start / wide-end;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}

/* Feature images keep their own proportions — no crop, because a third of
   these are paintings and engravings and cropping them is a real loss. But
   43% of the archive is taller than 4:3 and some are portrait, which at the
   full 920px would put over a screen of image between the title and the first
   sentence. Capping the height lets landscape images run full width while
   tall ones scale down and centre. */
.feature-image img {
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    margin-inline: auto;
    border-radius: var(--radius);
}

.feature-image figcaption,
.gh-content figcaption,
.kg-card figcaption {
    margin-top: .9rem;
    font-family: var(--f-label);
    font-size: 1.15rem;
    line-height: 1.5;
    letter-spacing: .02em;
    color: var(--ink-3);
    text-align: left;
}

.feature-image figcaption a,
.gh-content figcaption a { color: var(--ink-3); }

/* ---- body prose -------------------------------------------------------- */

.gh-content {
    padding-block: clamp(2rem, 4vw, 3rem) var(--band);
    font-size: 1.85rem;  /* ~66 characters of Chubbo in the 640px column */
    line-height: 1.68;
    color: var(--ink);
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content > h2,
.gh-content > h3,
.gh-content > h4 { margin-top: 2.2em; }

.gh-content > h2 + *,
.gh-content > h3 + *,
.gh-content > h4 + * { margin-top: .8em; }

.gh-content > h2 {
    font-size: 1.5em;
    letter-spacing: -.02em;
}

.gh-content > h3 { font-size: 1.22em; }
.gh-content > h4 { font-size: 1.05em; letter-spacing: 0; }

.gh-content > ul, .gh-content > ol { padding-left: 1.4em; }
.gh-content li + li { margin-top: .4em; }
.gh-content li::marker { color: var(--ink-3); }

.gh-content > blockquote {
    position: relative;
    padding-left: 1.6rem;
    border-left: 3px solid var(--hot);
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.12em;
    line-height: 1.42;
    color: var(--ink-2);
}

.gh-content a { text-decoration-color: rgb(var(--tint) / .45); }

.gh-content hr {
    width: 100%;
    margin-block: 2em;
    border-top: 0;
    text-align: center;
}

.gh-content hr::after {
    content: "❦";
    display: block;
    color: var(--hot);
    font-size: 1.6rem;
    letter-spacing: .4em;
}

.gh-content :not(pre) > code {
    padding: .12em .4em;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper-2);
    font-family: var(--f-mono);
    font-size: .8em;
    color: var(--ink);
}

.gh-content pre {
    overflow-x: auto;
    padding: 1.6rem 1.8rem;
    border: var(--rule-w) solid var(--rule);
    border-radius: var(--radius);
    background: var(--sheet);
    font-family: var(--f-mono);
    font-size: 1.45rem;
    line-height: 1.6;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82em;
    font-variant-numeric: lining-nums tabular-nums;
}

.gh-content thead th {
    padding: .7em .8em;
    border-bottom: 2px solid var(--ink);
    font-family: var(--f-label);
    font-size: .78em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink-3);
}

.gh-content tbody td {
    padding: .7em .8em;
    border-bottom: var(--rule-w) solid var(--rule-2);
    vertical-align: top;
}

.gh-content tbody tr:hover { background: rgb(var(--tint) / .06); }

/* wide/full cards get breathing room */
.gh-content > .kg-card { margin-top: 2.4em; }
.gh-content > .kg-card + * { margin-top: 2.4em; }

.kg-width-full.kg-card-hascaption { display: grid; grid-template-columns: inherit; }
.kg-width-wide.kg-card-hascaption img { grid-column: wide-start / wide-end; }
.kg-width-full.kg-card-hascaption img { grid-column: 1 / -1; }
.kg-width-full.kg-card-hascaption figcaption { grid-column: main-start / main-end; }

.kg-image-card img, .kg-gallery-card img { border-radius: var(--radius); }

.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card > :where(iframe[src*="youtube"], iframe[src*="vimeo"]) {
    width: 100%; height: auto; aspect-ratio: 16 / 9;
}

/* ---- sidenotes ---------------------------------------------------------
   Add an HTML card in the Ghost editor:  <aside class="sidenote">…</aside>
   On wide screens it floats into the right margin; on narrow screens it
   becomes an indented aside in the flow.
   ---------------------------------------------------------------------- */

.gh-content .sidenote {
    margin-top: 1.5em;
    padding-left: 1.2rem;
    border-left: 2px solid var(--rule);
    font-family: var(--f-label);
    font-size: 1.35rem;
    line-height: 1.55;
    color: var(--ink-2);
}

@media (min-width: 1100px) {
    .gh-content .sidenote {
        float: right;
        clear: right;
        width: calc((var(--wide-width) - var(--content-width)) / 2 + 4rem);
        margin: .4em calc(-1 * ((var(--wide-width) - var(--content-width)) / 2 + 5rem)) 1em 0;
        padding-left: 1rem;
    }
}

/* ---- article footer ---------------------------------------------------- */

.post-foot {
    padding-block: 0 var(--band);
}

.post-foot-inner {
    padding-top: 2.4rem;
    border-top: 2px solid var(--ink);
}

.post-tags { margin-bottom: 2rem; }

.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---- read next --------------------------------------------------------- */

.readnext { padding-block: var(--band); border-top: var(--rule-w) solid var(--rule); }

.readnext-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
    gap: 2.4rem 3rem;
}

/* ---- error page -------------------------------------------------------- */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: clamp(4rem, 10vw, 9rem);
}

.error-code {
    font-family: var(--f-label);
    font-size: 1.3rem;
    letter-spacing: .2em;
    color: var(--hot);
}

.error-hare { width: min(30rem, 68vw); margin-block: 2.4rem; color: var(--ink-2); }
/* Tribalium Neue lives here and only here. Its strokes are far too fine to
   read at body size — which is fine for four words nobody came looking for. */
.error-page h1 {
    font-family: "Tribalium Neue", var(--f-display);
    font-weight: 400;
    font-size: clamp(3.2rem, 7.5vw, 6rem);
    line-height: 1.15;
    letter-spacing: .01em;
    color: var(--ink);
}
.error-page p { margin-top: 1.4rem; color: var(--ink-2); max-width: 46ch; text-wrap: balance; }
.error-page .btn { margin-top: 2.4rem; }

/* ---------- 07-channel-members.css ---------- */
/* ==========================================================================
   CHANNEL / TAG / AUTHOR HEADERS
   ========================================================================== */

.channel-head {
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 4vw, 3.5rem);
    border-bottom: 2px solid var(--ink);
}

.channel-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem clamp(2.5rem, 5vw, 4.5rem);
    align-items: end;
}

.channel-head-grid.has-art { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }

.channel-title {
    font-size: clamp(3.6rem, 7vw, 6.4rem);
    line-height: .98;
    letter-spacing: -.032em;
}

.channel-intro {
    max-width: 52ch;
    margin-top: 1.6rem;
    font-size: clamp(1.75rem, 1.9vw, 2rem);
    line-height: 1.55;
    color: var(--ink-2);
    text-wrap: pretty;
}

.channel-count {
    margin-top: 1.8rem;
    font-family: var(--f-label);
    font-size: 1.2rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
}

.channel-art img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 44px -30px rgb(var(--shadow) / .55);
}

.channel-art figcaption {
    margin-top: .8rem;
    font-family: var(--f-label);
    font-size: 1.05rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
}

@media (max-width: 820px) {
    .channel-head-grid.has-art { grid-template-columns: minmax(0, 1fr); }
    .channel-art { max-width: 30rem; }
}

.channel-body { padding-block: var(--band); }

/* ==========================================================================
   SUBSCRIBE / MEMBERS
   ========================================================================== */

.subscribe {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 4rem);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--sheet);
    text-align: center;
}

.subscribe-inner { max-width: 52rem; margin-inline: auto; }

.subscribe h2 {
    font-size: clamp(2.4rem, 3.4vw, 3.4rem);
    letter-spacing: -.02em;
}

.subscribe p {
    margin-top: 1rem;
    font-size: 1.7rem;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.subscribe-form input[type="email"] {
    flex: 1 1 22rem;
    min-width: 0;
    padding: 1.1rem 1.4rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.7rem;
}

.subscribe-form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.subscribe-form input[type="email"]::placeholder { color: var(--ink-3); }
.subscribe-form .btn { flex: 0 0 auto; }

.subscribe-fine {
    margin-top: 1.2rem;
    font-family: var(--f-label);
    font-size: 1.15rem;
    letter-spacing: .04em;
    color: var(--ink-3);
}

.subscribe-form .kg-signup-card-success,
.subscribe-form .kg-signup-card-error { flex: 1 0 100%; font-size: 1.4rem; }
.subscribe-form .kg-signup-card-error { color: var(--hot); }

/* Ghost's own signup/CTA cards inside content, restyled to match */
.gh-content .kg-signup-card,
.gh-content .kg-cta-card {
    border: 2px solid var(--ink) !important;
    border-radius: var(--radius);
    background: var(--sheet) !important;
}

.gh-content .kg-signup-card-heading,
.gh-content .kg-signup-card-subheading { color: var(--ink) !important; }

.gh-content .kg-signup-card-button,
.gh-content .kg-cta-card button {
    background: var(--ink) !important;
    color: var(--paper) !important;
    font-family: var(--f-label);
    letter-spacing: .05em;
}

/* ---- gated content ----------------------------------------------------- */

.gate {
    max-width: var(--content-width);
    margin: 0 auto var(--band);
    padding: clamp(2.4rem, 5vw, 3.6rem);
    border: 2px dashed var(--rule);
    border-radius: var(--radius);
    text-align: center;
    background: var(--paper-2);
}

.gate h3 { font-size: 2.4rem; }
.gate p { margin-top: 1rem; color: var(--ink-2); }
.gate .btn { margin-top: 2rem; }

/* ---- members forms ----------------------------------------------------- */

.members-page {
    max-width: 44rem;
    margin-inline: auto;
    padding-block: clamp(4rem, 9vw, 8rem);
    text-align: center;
}

.members-page h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
.members-page p { margin-top: 1.2rem; color: var(--ink-2); }
.members-page form { margin-top: 2.4rem; }

.members-page input[type="email"] {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius);
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.7rem;
}

.members-page .btn { width: 100%; margin-top: 1rem; }
.members-page .members-alt { margin-top: 2rem; font-family: var(--f-label); font-size: 1.3rem; }

/* ==========================================================================
   ABOUT PAGE — byline table promoted
   ========================================================================== */

body.page-about .gh-content > table {
    font-family: var(--f-body);
    font-size: .92em;
}

body.page-about .gh-content > table td:nth-child(2) {
    font-family: var(--f-label);
    font-size: .8em;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
}

body.page-about .gh-content > table td:nth-child(3) {
    font-family: var(--f-label);
    font-size: .8em;
    color: var(--ink-3);
    white-space: nowrap;
}

body.page-about .gh-content > table td:first-child a {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.15em;
    text-decoration: none;
}

body.page-about .gh-content > table td:first-child a:hover { text-decoration: underline; }

@media (max-width: 620px) {
    body.page-about .gh-content > table,
    body.page-about .gh-content > table tbody,
    body.page-about .gh-content > table tr,
    body.page-about .gh-content > table td { display: block; width: 100%; }
    body.page-about .gh-content > table thead { display: none; }
    body.page-about .gh-content > table tr { padding: 1rem 0; border-bottom: 1px solid var(--rule-2); }
    body.page-about .gh-content > table td { border: 0; padding: .1rem 0; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .head, .foot, .subscribe, .readnext, .filterbar, .icon-btn, .load-more-wrap { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .gh-content { font-size: 11pt; }
    a { text-decoration: underline; color: #000; }
    .gh-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
}

/* cut-out art (transparent PNG) — drop-shadow follows the silhouette, and
   a height cap keeps a tall portrait from stretching the masthead. */
.channel-art.cutout img {
    width: auto;
    max-height: 30rem;
    margin-left: auto;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 16px 28px rgb(var(--shadow) / .28));
}

@media (max-width: 820px) {
    .channel-art.cutout img { max-height: 22rem; margin-left: 0; }
}

.gate-alt { margin-top: 1.2rem; }
