/* ==========================================================================
   Dr. Noah Pression theme, v2
   Ink (dark) by default; "Bone" light reading mode via html[data-theme="light"].
   Red is the only accent. No gradients, no shadows, no glows.
   Panels: radius 0. Buttons and inputs: radius 2px.

   Contrast on ink #0D0C0C (and coal #1A1717):
     bone     16:1   body text
     ash      6.6:1  muted text (6.0:1 on coal). Dark grounds only.
     ember    4.9:1  small red text and links (4.5:1 on coal)
     flag-red 3.1:1  fills, rules, marks, large type only. NEVER small text.
     bone on flag-red 5.2:1  buttons and the Radix band
   Bone mode: ink on bone 16:1, muted #5C5752 6.2:1, accent #C1121F 5.2:1.
   ========================================================================== */

/* Fonts (self-hosted, no third-party requests) --------------------------- */
/* Atkinson Hyperlegible Next and Crimson Pro are variable fonts: one file per
   subset covers every weight used here. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/AtkinsonHyperlegibleNext-latin-ext.woff2") format("woff2"); 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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/AtkinsonHyperlegibleNext-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/CrimsonPro-latin-ext.woff2") format("woff2"); 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: "Crimson Pro"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/CrimsonPro-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/CrimsonPro-Italic-latin-ext.woff2") format("woff2"); 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: "Crimson Pro"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/CrimsonPro-Italic-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/SpecialElite-latin-ext.woff2") format("woff2"); 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: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/SpecialElite-latin.woff2") format("woff2"); 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; }

/* Tokens ------------------------------------------------------------------ */
:root {
    /* Brand colours (exact) */
    --ink: #0D0C0C;
    --coal: #1A1717;
    --bone: #EFEBE4;
    --ash: #9A9590;
    --rule: #3A3333;
    --flag-red: #C1121F;
    --ember: #E8424C;
    --oxblood: #5E0B12;

    /* Roles: Ink mode (default) */
    --bg: var(--ink);
    --raised: var(--coal);
    --fg: var(--bone);
    --muted: var(--ash);
    --line: var(--rule);
    --accent: var(--ember);      /* small red text, links */
    --fill: var(--flag-red);     /* button fills, thick rules, marks */
    --on-fill: var(--bone);
    --hover-fill: var(--oxblood);
    --focus: var(--ember);
    --wm-accent: var(--ember);   /* the A in the wordmark */
    --deco-opacity: 1;           /* the oxblood roots */

    /* Type */
    --font-display: "Special Elite", "Courier New", Courier, monospace;
    --font-read: var(--gh-font-body, "Crimson Pro"), Georgia, "Times New Roman", serif;
    --font-ui: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: var(--gh-font-heading, "Special Elite"), "Courier New", Courier, monospace;

    /* Layout */
    --gutter: 16px;
    --max: 75rem;           /* 1200px page */
    --measure: 40.5rem;     /* reading column: ~65ch of Crimson Pro at 20px */
    --wide: 62.5rem;        /* 1000px wide cards in posts */
    --roots-wide: 68.75rem; /* 1100px figures on Roots pages */
    --radius: 2px;

    color-scheme: dark;
}

/* Bone: the light reading mode (opt-in, see site.js) */
:root[data-theme="light"] {
    --bg: #EFEBE4;
    --raised: #E4DED5;
    --fg: #0D0C0C;
    --muted: #5C5752;
    --line: #CFC7BC;
    --accent: #C1121F;
    --fill: #C1121F;
    --on-fill: #EFEBE4;
    --hover-fill: #5E0B12;
    --focus: #C1121F;
    --wm-accent: #C1121F;
    --deco-opacity: 0.22;
    color-scheme: light;
}

@media (min-width: 700px) {
    :root { --gutter: 24px; }
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Base -------------------------------------------------------------------- */
html { background: var(--bg); }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: hidden;
}
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; outline: none; }
.np-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--fg); text-decoration-color: var(--fill); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.005em;
    text-wrap: balance;
}
em, i { font-style: italic; }
strong, b { font-weight: 700; }

::selection { background: var(--fill); color: var(--on-fill); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

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

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--fill);
    color: var(--on-fill);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: var(--gutter); color: var(--on-fill); }

.container {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--text { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.container--roots { max-width: calc(var(--roots-wide) + 2 * var(--gutter)); }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* The label: Atkinson 13px, 700, 0.12em, uppercase. The only uppercase on the site. */
.np-label {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.np-label a { color: inherit; text-decoration: none; }
.np-label a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fill); }

.empty { color: var(--muted); padding: 1.5rem 0; }

/* Wordmark ---------------------------------------------------------------- */
.wordmark {
    display: block;
    width: auto;
    height: 2.25rem;
    aspect-ratio: 1961.4 / 303.4;
    color: var(--fg);
}
.wordmark--hero { height: auto; width: min(100%, 56rem); margin: 0 auto; }

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    border: 2px solid var(--fill);
    border-radius: var(--radius);
    background: var(--fill);
    color: var(--on-fill);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-style: normal;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn em { font-style: normal; }
.btn:hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--bone); }
.btn--ghost { background: transparent; border-color: var(--muted); color: var(--fg); }
.btn--ghost:hover { background: var(--hover-fill); border-color: var(--hover-fill); color: var(--bone); }
.btn--large { font-size: 1.25rem; padding: 0.75rem 1.5rem; min-height: 52px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header ------------------------------------------------------------------ */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner {
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0.75rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 0.75rem 1.75rem;
}
.site-header__brand { flex: 0 0 auto; color: var(--fg); text-decoration: none; padding: 0.25rem 0; }
.site-header__brand:hover { color: var(--fg); }
.site-header__brand .wordmark { height: 2rem; }

.site-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-family: var(--font-display); font-size: 1.0625rem; }
.nav a { display: inline-block; padding: 0.4rem 0; color: var(--fg); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav-current a { border-bottom-color: var(--fill); color: var(--fg); }
.site-nav__member { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.site-header__actions .btn { min-height: 40px; padding: 0.4rem 0.95rem; font-size: 1rem; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.6rem;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 700;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 961px) {
    .site-header { position: sticky; top: 0; }
}

@media (max-width: 960px) {
    .site-header__inner { flex-wrap: wrap; gap: 0.6rem; }
    .site-header__inner { flex-wrap: wrap; }
    .site-header__brand { flex: 1 1 0; min-width: 0; }
    .site-header__brand .wordmark { height: auto; width: 13.5rem; max-width: 100%; }
    .site-header__desktop { display: none; }
    .site-nav { order: 4; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.5rem 0 1rem; border-top: 1px solid var(--line); }
    .nav { flex-direction: column; gap: 0; font-size: 1.25rem; }
    .nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
    .nav a:hover, .nav-current a { border-bottom-color: var(--line); color: var(--accent); }
    .site-nav__member { display: flex; }
    .js .menu-toggle { display: inline-flex; }
    .js .site-header:not([data-open]) .site-nav { display: none; }
}
@media (max-width: 380px) {
    .menu-toggle__text { display: none; }
    .site-header__brand .wordmark { width: 11.5rem; }
}

/* Decorative roots field (oxblood). Never behind body text. */
.hero__roots, .section-head__roots, .roots-head__field, .pair-panel__roots, .error-page__roots {
    position: absolute;
    pointer-events: none;
    user-select: none;
    max-width: none;
    opacity: var(--deco-opacity);
}

/* Home: hero -------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: clamp(3.5rem, 2rem + 7vw, 7.5rem) 0 clamp(3rem, 2rem + 5vw, 6rem);
    border-bottom: 1px solid var(--line);
}
.hero__mark { position: relative; margin: 0 auto 2.5rem; max-width: 56rem; }
.hero__roots {
    left: 50%;
    top: 50%;
    width: clamp(46rem, 140%, 88rem);
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.hero__title { position: relative; }
.hero__plate {
    position: relative;
    max-width: 40rem;
    margin: 0 auto;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
    background: var(--bg);
    border-top: 4px solid var(--fill);
}
.hero__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
    line-height: 1.1;
    color: var(--accent);
    margin-bottom: 1rem;
}
.hero__intro {
    font-family: var(--font-read);
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    line-height: 1.5;
    max-width: 34rem;
    margin: 0 auto;
    color: var(--fg);
}
.hero__actions { justify-content: center; margin-top: 1.75rem; }

/* Home: block heads ------------------------------------------------------- */
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.block-head__title { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); margin-top: 0.4rem; }
.block-head__more { font-family: var(--font-display); text-decoration: none; padding: 0.4rem 0; }
.block-head__lede { color: var(--muted); margin-bottom: 1.75rem; max-width: 40rem; }

/* Home: now playing ------------------------------------------------------- */
.now-playing { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0; }
.now-playing__kicker { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.now-playing__dot { width: 1.1rem; height: 1.1rem; color: var(--fill); }
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--raised);
    border-top: 4px solid var(--fill);
}
.feature__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__blank { display: grid; place-items: center; height: 100%; background: var(--ink); }
.feature__blank svg { width: 34%; color: var(--ember); }
.feature__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center;
    width: 4.5rem; height: 4.5rem;
    background: var(--flag-red); color: var(--bone);
    border-radius: 50%;
}
.feature__play svg { width: 2rem; height: 2rem; margin-left: 0.2rem; }
.feature__media:hover .feature__play { background: var(--oxblood); }
.feature__body { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
.feature__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.feature__title a { color: var(--fg); text-decoration: none; }
.feature__title a:hover { color: var(--accent); }
.feature__excerpt { font-family: var(--font-read); font-size: 1.25rem; line-height: 1.45; }
.feature__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
@media (min-width: 900px) {
    .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* "Read the roots" link (home, tracklists) */
.roots-link { font-family: var(--font-display); font-size: 1.0625rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.roots-link::after { content: " \2192"; }
.roots-link:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fill); }

/* Home: release block ----------------------------------------------------- */
.release-block { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0; }
.release-block__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
    align-items: start;
}
.release-block__cover { display: block; border: 1px solid var(--line); background: var(--ink); }
.release-block__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.release-block__body { display: flex; flex-direction: column; gap: 0.75rem; }
.release-block__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.release-block__title a { color: var(--fg); text-decoration: none; }
.release-block__title a:hover { color: var(--accent); }
.release-block__line { font-family: var(--font-read); font-size: 1.25rem; line-height: 1.45; font-style: italic; }
.release-block .btn-row { margin-top: 0.75rem; }
@media (min-width: 760px) {
    .release-block__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Tracklist (home release block and the Release page) */
.tracklist { counter-reset: none; border-top: 2px solid var(--fill); margin-top: 0.5rem; }
.track {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.25rem 1rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}
.track__no { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--accent); }
.track__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.track__body .np-label { font-size: 0.75rem; color: var(--muted); }
.track__title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; color: var(--fg); text-decoration: none; }
.track__title:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--fill); }
.track__credit { font-size: 0.875rem; color: var(--muted); }
.track__roots { grid-column: 2; }
.track__roots:empty { display: none; }
@media (min-width: 640px) {
    .track { grid-template-columns: 3rem minmax(0, 1fr) auto; }
    .track__roots { grid-column: 3; align-self: center; }
}

/* Home: section panels ---------------------------------------------------- */
.sections { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.sections__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
}
.section-panel {
    background: var(--raised);
    border-top: 4px solid var(--fill);
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.section-panel__title { font-size: 1.75rem; }
.section-panel__title a { color: var(--fg); text-decoration: none; }
.section-panel__title a:hover { color: var(--accent); }
.section-panel__desc { color: var(--muted); margin-bottom: 0.75rem; }
.section-panel__list { flex: 1; margin-bottom: 0.75rem; }
.section-panel__list li { padding: 0.65rem 0; border-top: 1px solid var(--line); font-family: var(--font-read); font-size: 1.25rem; line-height: 1.3; }
.section-panel__list a { color: var(--fg); text-decoration: none; }
.section-panel__list a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--fill); }
.section-panel__meta { display: block; font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; }
.section-panel__empty { color: var(--muted); font-style: italic; }
.section-panel__more { font-family: var(--font-display); text-decoration: none; align-self: flex-start; padding: 0.35rem 0; }

/* Home: latest roots ------------------------------------------------------ */
.home-roots { padding: 0 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* Radix band (flag-red ground, bone text, the same in both modes) --------- */
.radix-band { background: var(--flag-red); color: var(--bone); padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.radix-band__inner {
    display: grid;
    gap: 1.5rem 3rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    align-items: center;
}
.radix-band__title { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); font-family: var(--font-display); }
.radix-band__title em { font-style: normal; }
.radix-band__text { font-family: var(--font-read); font-size: 1.3rem; line-height: 1.45; max-width: 34rem; margin-top: 0.5rem; }
.radix-band a { color: var(--bone); }
.radix-band .btn { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.radix-band .btn:hover { background: var(--oxblood); border-color: var(--oxblood); }
.radix-band .signup-form__input { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.radix-band .signup-form__input::placeholder { color: var(--ash); }
.radix-band :focus-visible { outline-color: var(--bone); }

/* Support row ------------------------------------------------------------- */
.support-row { padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.support-row__inner { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.support-row__item { background: var(--raised); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.support-row__title { font-size: 1.6rem; }
.support-row__item .btn { margin-top: 0.5rem; }

/* Signup form ------------------------------------------------------------- */
.signup-form { width: 100%; max-width: 32rem; }
.signup-form__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signup-form__input {
    flex: 1 1 13rem;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    background: var(--bg);
    color: var(--fg);
    border: 2px solid var(--muted);
    border-radius: var(--radius);
    font-family: var(--font-ui);
}
.signup-form__input::placeholder { color: var(--muted); opacity: 1; }
.signup-form__msg { display: none; margin-top: 0.6rem; font-size: 0.95rem; }
.signup-form.loading .signup-form__msg--loading,
.signup-form.success .signup-form__msg--success,
.signup-form.error .signup-form__msg--error { display: block; }
.signup-form.success .signup-form__row { display: none; }

/* Section heads (list pages, tags, author) -------------------------------- */
.section-head {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2.75rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
.section-head__roots {
    width: 38rem;
    height: auto;
    right: -12rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}
.section-head__inner { position: relative; }
.section-head__title { font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4.25rem); margin: 0.6rem 0 0.75rem; max-width: 18ch; }
.section-head__desc { font-family: var(--font-read); font-size: 1.375rem; line-height: 1.45; max-width: 36rem; }
.section-head__link { margin-top: 1rem; font-family: var(--font-display); }
.section-head__link a { text-decoration: none; }
/* Below 900px the text runs full width, so the roots shrink into the top-right corner. */
@media (max-width: 900px) {
    .section-head__roots { width: 13rem; right: -5rem; top: -6rem; transform: none; }
    .section-head__title, .section-head__desc { max-width: none; }
}
.author-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.about-avatar { width: 8rem; height: 8rem; object-fit: cover; border-radius: 50%; border: 3px solid var(--fill); background: var(--raised); margin-bottom: 1.25rem; }
.author-head .about-avatar { margin-bottom: 0; }

/* Cards ------------------------------------------------------------------- */
.list-body { padding-bottom: 2rem; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
    gap: 1.25rem;
}
.card-grid--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); }
.card { background: var(--raised); display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; border-bottom: 3px solid var(--fill); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--blank { display: grid; place-items: center; }
.card__media--blank svg { width: 28%; color: var(--ember); }
.card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__title { font-size: 1.5rem; line-height: 1.2; }
.card__title a { color: var(--fg); text-decoration: none; }
.card__title a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--fill); }
.card__excerpt { font-family: var(--font-read); font-size: 1.125rem; line-height: 1.45; }
.card__meta { display: flex; gap: 0.75rem; align-items: center; font-size: 0.875rem; color: var(--muted); margin-top: auto; padding-top: 0.5rem; }
.card__lock { color: var(--accent); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips:empty { display: none; }
.chip a {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
}
.chip a:hover { border-color: var(--fill); color: var(--fg); }
.chip--poet a { color: var(--accent); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem 0 1rem; }
.pagination__count { color: var(--muted); font-size: 0.875rem; }

/* Articles ---------------------------------------------------------------- */
.article { padding-bottom: 3rem; }
.article-header { padding-top: clamp(2.5rem, 2rem + 4vw, 5rem); padding-bottom: 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.article-title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1.08; }
.article-dek { font-family: var(--font-read); font-size: 1.5rem; line-height: 1.4; font-style: italic; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.credit-line { font-family: var(--font-read); font-size: 1.375rem; font-style: italic; line-height: 1.4; }
.release-line { font-size: 1rem; color: var(--muted); }
.release-line a { font-family: var(--font-read); font-size: 1.15rem; }
.note-adapted { border-left: 4px solid var(--fill); background: var(--raised); padding: 0.6rem 0.9rem; font-size: 0.95rem; }

.article-image { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto 2.5rem; padding: 0 var(--gutter); }
.article-image--wide { max-width: calc(var(--roots-wide) + 2 * var(--gutter)); }
.article-image img { width: 100%; }
.article-image figcaption, .gh-content figcaption {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--muted);
    padding-top: 0.6rem;
    text-align: left;
}
.article-after { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.75rem; }

/* Content grid: main column, wide, full (Ghost's kg-width-wide / kg-width-full). */
.gh-content {
    --main: min(var(--measure), 100% - 2 * var(--gutter));
    --side: calc((min(var(--wide), 100% - 2 * var(--gutter)) - var(--main)) / 2);
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, var(--side))
        [main-start] var(--main)
        [main-end] minmax(0, var(--side))
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
    font-family: var(--font-read);
    font-size: 1.25rem;     /* 20px */
    line-height: 1.6;
    overflow-wrap: break-word;
}
.gh-content > * { grid-column: main-start / main-end; min-width: 0; }
.gh-content > * + * { margin-top: 1.2em; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { width: 100%; }

.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 2em; }
.gh-content h2 { font-size: 1.75rem; }
.gh-content h3 { font-size: 1.375rem; }
.gh-content h4 { font-size: 1.1rem; font-family: var(--font-ui); font-weight: 700; }
.gh-content h2 + *, .gh-content h3 + *, .gh-content h4 + * { margin-top: 0.6em; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li + li { margin-top: 0.35em; }
.gh-content li::marker { color: var(--accent); }
.gh-content hr { border: 0; height: auto; margin-top: 2.5em; margin-bottom: 1.3em; text-align: center; overflow: visible; }
.gh-content hr::after { content: "\2022  \2022  \2022"; color: var(--fill); font-size: 1.25rem; letter-spacing: 0.5em; }
.gh-content blockquote:not([class]) { border-left: 4px solid var(--fill); padding-left: 1.1em; font-style: italic; }
.gh-content blockquote.kg-blockquote-alt { font-family: var(--font-read); font-style: italic; font-size: 1.75rem; line-height: 1.35; text-align: center; padding: 0 1rem; }
.gh-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--raised); padding: 0.1em 0.3em; }
.gh-content pre { background: var(--raised); padding: 1rem; overflow-x: auto; font-size: 0.95rem; line-height: 1.5; }
.gh-content pre code { background: none; padding: 0; }
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 0.95rem; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 0.5rem; text-align: left; vertical-align: top; }
.gh-content th { color: var(--muted); }
.gh-content .table-wrap, .gh-content .kg-html-card { overflow-x: auto; }
.gh-content iframe { max-width: 100%; }

/* Verse: #poem posts and lyrics. Ghost writes one <p> per stanza with <br> between
   lines; site.js wraps each line in .line for a hanging indent on wrapped lines. */
.poem { font-size: 1.3125rem; line-height: 1.7; }   /* 21px / 1.7 */
.poem > p, .song-content > p.verse, .song-content .kg-toggle-content > p {
    text-align: left;
    hyphens: none;
}
.poem > p + p { margin-top: 1.5em; }   /* stanza break */
.song-content > p.verse { font-size: 1.3125rem; line-height: 1.7; }
.song-content > p.verse + p.verse { margin-top: 1.4em; }
.line { display: block; padding-left: 1.5em; text-indent: -1.5em; }
.article--poem .article-header { text-align: left; }

/* Song and Setting -------------------------------------------------------- */
.song-content > .kg-embed-card:first-child,
.song-content > .kg-video-card:first-child,
.song-content > .np-video:first-child {
    grid-column: wide-start / wide-end;
    margin-bottom: 0.5em;
}
.np-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    border: 1px solid var(--rule);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--bone);
}
.np-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/np-roots-oxblood.svg") center / 120% auto no-repeat;
}
.np-video__label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    line-height: 1.2;
    text-align: center;
    padding: 1rem;
}
.np-video__label::before {
    content: "";
    width: 4rem; height: 4rem;
    border-radius: 50%;
    background: var(--flag-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l9-6z' fill='%23EFEBE4'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.np-video small { font-family: var(--font-ui); font-size: 0.875rem; color: var(--ash); }

.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; border-top: 2px solid var(--fill); border-bottom: 1px solid var(--line); padding: 1rem 0; font-family: var(--font-ui); font-size: 1rem; line-height: 1.4; }
.listen:not(:has(a)) { display: none; }
.listen__label { color: var(--fg); }
.gh-content > .listen--inline { margin-top: 0.75em; }

.rights { border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.875rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.4rem; }
.rights__title { color: var(--fg); margin-bottom: 0.2rem; }
.rights__credit { color: var(--fg); font-size: 0.9375rem; }
.rights__notes { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* Pair panels ("Read the roots", "The piece") ----------------------------- */
.pair-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--raised);
    border-left: 6px solid var(--fill);
}
.pair-panel__roots { width: 20rem; height: auto; right: -10rem; top: 50%; transform: translateY(-50%); z-index: -1; }
.pair-panel__kicker { padding: 1.25rem 1.5rem 0; }
.pair-panel__link { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.5rem 1.5rem 1.4rem; text-decoration: none; max-width: calc(100% - 10rem); }
@media (max-width: 700px) {
    .pair-panel__roots { display: none; }
    .pair-panel__link { max-width: none; }
}
.pair-panel__cta { font-family: var(--font-display); font-size: 1.5rem; color: var(--fg); }
.pair-panel__title { font-family: var(--font-read); font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.pair-panel__meta { font-size: 0.9375rem; color: var(--muted); }
.pair-panel__link:hover .pair-panel__title { color: var(--fg); text-decoration-color: var(--fill); }
.pair-panel__link:hover .pair-panel__cta { color: var(--accent); }
.pair-panel--back .pair-panel__cta { font-size: 1.25rem; }

.piece-back { font-family: var(--font-display); font-size: 1.0625rem; margin-bottom: 0.25rem; }
.piece-back a { text-decoration: none; }
.piece-back a:hover { text-decoration: underline; }
.piece-back em { font-style: normal; }

/* Share ------------------------------------------------------------------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.share__label { color: var(--fg); }
.share__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share__btn {
    display: inline-flex; align-items: center; gap: 0.4em;
    min-height: 40px; padding: 0.35rem 0.8rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; color: var(--fg);
    font-family: var(--font-ui); font-size: 0.9375rem; text-decoration: none;
}
.share__btn:hover { border-color: var(--fill); color: var(--fg); }
.share__copy { display: none; }
.js .share__copy { display: inline-flex; }
.share__status { flex-basis: 100%; font-size: 0.875rem; color: var(--muted); min-height: 1.2em; }
.share__status:empty { display: none; }

/* Members CTA (Ghost renders partials/content-cta.hbs in place of gated content) */
.members-cta {
    grid-column: main-start / main-end;
    background: var(--raised);
    border-top: 4px solid var(--fill);
    padding: 1.75rem 1.5rem;
    margin-top: 2rem;
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.members-cta__title { font-size: 1.6rem; }
.members-cta__title em { font-style: normal; }

/* Roots explainers -------------------------------------------------------- */
.roots-head {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--raised);
    border-bottom: 4px solid var(--fill);
    margin-bottom: 2.5rem;
}
.roots-head__field { width: 44rem; height: auto; right: -14rem; top: 50%; transform: translateY(-50%); z-index: -1; }
.roots-head__inner { position: relative; padding-top: clamp(2.25rem, 1.75rem + 3vw, 4rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); display: flex; flex-direction: column; gap: 0.85rem; }
.roots-head .article-title { max-width: 20ch; }
.roots-head .article-dek { max-width: 40rem; }
@media (max-width: 900px) {
    .roots-head__field { width: 13rem; right: -5rem; top: -6rem; transform: none; }
}

/* Roots body: explainer text in Atkinson 17px / 1.55, figures up to 1100px. */
.roots-content {
    --measure: 44rem;       /* ~68ch of Atkinson at 17px */
    --wide: var(--roots-wide);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.55;
}
.roots-content h2 { font-size: 1.75rem; margin-top: 2.25em; }
.roots-content h3 { font-size: 1.3rem; }
.roots-content > p:first-child { font-size: 1.25rem; line-height: 1.5; }

/* Components for Roots (HTML cards). See ghost-config/snippets/roots-skeleton.html. */

/* .np-keyfacts: 3-4 big facts. <ul class="np-keyfacts"><li><strong>1920</strong> caption</li>...</ul> */
.gh-content > .np-keyfacts { grid-column: wide-start / wide-end; }
.np-keyfacts {
    list-style: none;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 4px solid var(--fill);
    font-family: var(--font-ui);
}
.np-keyfacts li { margin: 0 !important; background: var(--raised); padding: 1.1rem 1.25rem 1.25rem; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.np-keyfacts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); line-height: 1.05; color: var(--fg); margin-bottom: 0.4rem; }

/* .np-timeline: <ol class="np-timeline"><li><time>1920</time><p>...</p></li>...</ol> */
.np-timeline { list-style: none; padding: 0 !important; position: relative; font-family: var(--font-ui); }
.np-timeline li { position: relative; margin: 0 !important; padding: 0 0 1.5rem 1.75rem; border-left: 2px solid var(--line); }
.np-timeline li:last-child { padding-bottom: 0.25rem; }
.np-timeline li::before {
    content: "";
    position: absolute;
    left: -7px; top: 0.35rem;
    width: 12px; height: 12px;
    background: var(--fill);
    border-radius: 50%;
}
.np-timeline time { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; color: var(--accent); margin-bottom: 0.25rem; }
.np-timeline p { margin: 0; }
.np-timeline p + p { margin-top: 0.5em; }
@media (min-width: 760px) {
    .np-timeline li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; padding-left: 0; border-left: 0; }
    .np-timeline li::before { left: calc(9rem + 0.625rem - 5px); }
    .np-timeline li::after { content: ""; position: absolute; left: calc(9rem + 0.625rem); top: 0; bottom: 0; width: 2px; background: var(--line); z-index: -1; }
    .np-timeline time { text-align: right; padding-right: 1.25rem; margin: 0; }
    .np-timeline li > :not(time) { grid-column: 2; padding-left: 1.25rem; }
    .np-timeline { isolation: isolate; }
}

/* .np-figure-grid: 2-3 archival images with captions and credit lines. */
.gh-content > .np-figure-grid { grid-column: wide-start / wide-end; }
.np-figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.np-figure-grid figure { margin: 0; display: flex; flex-direction: column; }
.np-figure-grid img { width: 100%; height: auto; background: var(--raised); border: 1px solid var(--line); }   /* never crop an archival image */
.np-figure-grid figcaption small, .np-credit { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

/* .np-pull: pull quote. <blockquote class="np-pull"><p>...</p><cite>...</cite></blockquote> */
.np-pull { border-left: 6px solid var(--fill); padding: 0.25rem 0 0.25rem 1.5rem; margin-top: 1.75em !important; margin-bottom: 0.75em; }
.np-pull p { font-family: var(--font-read); font-style: italic; font-size: 1.75rem; line-height: 1.35; color: var(--fg); }
.np-pull cite { display: block; margin-top: 0.75rem; font-family: var(--font-ui); font-style: normal; font-size: 0.875rem; color: var(--muted); }
.np-pull cite::before { content: "\2014\00a0"; }

/* .np-terms: Key terms. <section class="np-terms"><h3>Key terms</h3><dl><dt>..</dt><dd>..</dd></dl></section> */
.np-terms { background: var(--raised); border-top: 4px solid var(--fill); padding: 1.25rem 1.5rem 1.5rem; font-family: var(--font-ui); }
.np-terms h3 { margin: 0 0 0.75rem; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.np-terms dl { margin: 0; }
.np-terms dt { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.3; color: var(--fg); }
.np-terms dt:not(:first-child) { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.np-terms dd { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.5; }

/* .np-connect: the link across to Star Wars Death Math. */
.np-connect {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 1rem;
    align-items: start;
    border: 2px solid var(--fill);
    padding: 1.1rem 1.25rem;
    font-family: var(--font-ui);
    font-size: 1rem;
}
.np-connect::before {
    content: "";
    grid-row: span 2;
    width: 2.5rem; height: 2.5rem;
    background: url("../images/np-a-simple-red.svg") center / contain no-repeat;
}
.np-connect p { margin: 0; }
.np-connect p:first-child { font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.np-connect p + p { margin-top: 0.15rem; }
.np-connect a { font-weight: 700; }

/* .np-sources: numbered sources in caption type with a hanging indent.
   Also applied to the list after a "Sources" heading (id="sources"). */
.np-sources, .gh-content #sources + ol, .gh-content #sources + ul {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted);
    padding-left: 2.25em !important;
}
.np-sources li, .gh-content #sources + ol li, .gh-content #sources + ul li { padding-left: 0.35em; overflow-wrap: anywhere; }
.np-sources li::marker, .gh-content #sources + ol li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.np-sources a, .gh-content #sources + ol a { color: var(--accent); }
.gh-content #sources { border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 1.375rem; }

/* Ghost cards (kg-*). card_assets: true loads Ghost's own card CSS/JS; these rules
   bring them into the brand (square panels, our fonts and colours). ----------- */
.kg-image-card img, .kg-gallery-image img { margin: 0 auto; }
.kg-image-card.kg-width-full figcaption { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; width: 100%; }
.kg-embed-card > iframe, .kg-embed-card > div { width: 100%; }
.kg-embed-card iframe[src*="youtube"], .kg-embed-card iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.kg-embed-card iframe[src*="bandcamp"] { width: 100%; border: 0; }
.kg-video-card video { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }   /* Ghost's card script refines the ratios */
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-row:not(:first-of-type) { margin-top: 0.75em; }
.kg-gallery-image:not(:first-of-type) { margin-left: 0.75em; }

.kg-bookmark-card { font-family: var(--font-ui); }
.gh-content .kg-bookmark-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 8rem;
    background: var(--raised);
    color: var(--fg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--fill);
    border-radius: 0;
    text-decoration: none;
}
.gh-content .kg-bookmark-container:hover { border-color: var(--fill); }
.kg-bookmark-content { flex: 1 1 18rem; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.kg-bookmark-title { font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--fg); }
.kg-bookmark-description { font-size: 0.875rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-bookmark-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--muted); }
.kg-bookmark-icon { width: 18px; height: 18px; }
.kg-bookmark-author::after { content: "\00a0\2022"; }
.kg-bookmark-thumbnail { flex: 0 1 12rem; min-height: 8rem; position: relative; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
    .kg-bookmark-thumbnail { flex: 1 1 100%; order: -1; min-height: 10rem; }
}

.gh-content .kg-callout-card {
    display: flex;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0;
    background: var(--raised);
    border-left: 4px solid var(--fill);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--fg);
}
.gh-content .kg-callout-card-accent { background: var(--fill); color: var(--on-fill); border-left-color: var(--fill); }
.gh-content .kg-callout-card-accent a { color: var(--on-fill); }
.kg-callout-emoji { font-size: 1.25rem; line-height: 1.3; }
.kg-callout-text { min-width: 0; }

.gh-content .kg-toggle-card {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 1.25rem;
}
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.gh-content .kg-toggle-heading-text { font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; margin: 0; }
.gh-content .kg-toggle-heading > * { margin: 0; }
.kg-toggle-card-icon { flex: none; width: 1.25rem; height: 1.25rem; background: none; border: 0; color: var(--accent); padding: 0; }
.kg-toggle-card-icon svg { width: 100%; height: 100%; }
.kg-toggle-content { margin-top: 0.75rem; }
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }

.gh-content .kg-button-card { display: flex; justify-content: center; }
.gh-content .kg-btn, .gh-content .kg-button-card a.kg-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.1rem;
    border-radius: var(--radius); background: var(--fill); color: var(--on-fill);
    font-family: var(--font-display); font-size: 1.0625rem; text-decoration: none;
}
.gh-content .kg-audio-card, .gh-content .kg-file-card-container, .gh-content .kg-product-card-container, .gh-content .kg-header-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}
.gh-content .kg-audio-card, .gh-content .kg-file-card-container, .gh-content .kg-product-card-container {
    background: var(--raised) !important;
    color: var(--fg);
    border: 1px solid var(--line);
}

/* Release page ------------------------------------------------------------ */
.release { padding: clamp(2rem, 1.5rem + 3vw, 4rem) 0 3rem; }
.release__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.release__cover { border: 1px solid var(--line); background: var(--ink); }
.release__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.release__cover figcaption { font-size: 0.875rem; color: var(--muted); padding: 0.6rem 0.75rem; }
.release__main { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.release__head { display: flex; flex-direction: column; gap: 0.85rem; }
.release__head .btn-row { margin-top: 0.5rem; }
.release__notes { display: block; font-size: 1.25rem; }
.release__notes > * + * { margin-top: 1.1em; }
.release__notes .kg-embed-card, .release__notes .kg-html-card { margin-top: 1.5em; }
.release__tracks-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
@media (min-width: 861px) {
    .release__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .release__cover { position: sticky; top: 6rem; }
}

/* Join and Support pages -------------------------------------------------- */
.join-head__promise { font-family: var(--font-read); font-size: 1.375rem; line-height: 1.45; border-left: 4px solid var(--fill); padding-left: 1rem; }
.tiers { padding: 0.5rem 0 2.5rem; }
.tier-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.tier { background: var(--raised); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; border-top: 4px solid var(--muted); }
.tier--paid { border-top-color: var(--fill); }
.tier__name { font-size: 1.875rem; margin-bottom: 0.4rem; }
.tier__price { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.1; }
.tier__price span { font-size: 1.0625rem; color: var(--muted); }
.tier__alt { color: var(--muted); font-size: 0.9375rem; }
.tier__desc { margin-top: 0.75rem; font-family: var(--font-read); font-size: 1.15rem; line-height: 1.45; font-style: italic; }
.tier__benefits { list-style: none; margin: 1rem 0 0; padding: 0; flex: 1; border-top: 1px solid var(--line); }
.tier__benefits li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line); font-size: 0.9875rem; line-height: 1.45; }
.tier__benefits li::before {
    content: "";
    position: absolute; left: 0; top: 0.8rem;
    width: 0.95rem; height: 0.95rem;
    background: url("../images/np-a-simple-red.svg") center / contain no-repeat;
}
.tier__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tiers__note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }

.support-options { padding: 0.5rem 0 2.5rem; }
.support-options__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.support-option { background: var(--raised); border-top: 4px solid var(--fill); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.support-option__title { font-size: 1.75rem; }
.support-option p:not(.np-label) { flex: 1; }
.support-option .btn { margin-top: 0.5rem; }
.support-options__where { margin-top: 1.25rem; color: var(--muted); }

/* Errors ------------------------------------------------------------------ */
.error-page { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3.5rem, 2rem + 8vw, 8rem) 0; text-align: center; }
.error-page__roots { width: 56rem; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; }
.error-page__inner {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    max-width: 34rem;
    padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: var(--bg);              /* solid plate: no text on the roots */
    border-top: 4px solid var(--fill);
}
.error-page__title { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }
.error-page__text { font-family: var(--font-read); font-size: 1.5rem; font-style: italic; }
.error-page__links { margin-top: 1.25rem; display: grid; gap: 0.6rem; width: min(100%, 24rem); text-align: left; }
.error-page__links a {
    display: flex; align-items: baseline; gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--fill);
    font-family: var(--font-display); font-size: 1.25rem;
    color: var(--fg); text-decoration: none;
}
.error-page__links a:hover { border-color: var(--fill); color: var(--accent); }
.error-page__links .np-label { min-width: 2rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 4px solid var(--fill); background: var(--bg); margin-top: 2rem; }
.site-footer__inner {
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 2.5rem var(--gutter) 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
}
.footer-signup { display: grid; gap: 1rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.footer-signup__title { font-size: 2rem; }
.footer-signup__title em { font-style: normal; }
.footer-signup__text { color: var(--muted); margin-top: 0.25rem; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-nav a { display: inline-block; padding: 0.35rem 0; color: var(--fg); text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social a {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg);
}
.social a:hover { border-color: var(--fill); color: var(--accent); }
.social .icon { width: 20px; height: 20px; }
.site-footer__sister { color: var(--muted); }
.site-footer__sister a strong { font-family: var(--font-display); font-weight: 400; font-size: 1.0625rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.site-footer__copy { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.site-footer__a { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; color: var(--fill); }

.mode-toggle {
    display: inline-flex; align-items: center; gap: 0.15rem;
    min-height: 40px; padding: 0.3rem 0.85rem;
    background: transparent; color: var(--muted);
    border: 1px solid var(--line); border-radius: var(--radius);
    font-family: var(--font-ui); font-size: 0.875rem;
}
.mode-toggle:hover { border-color: var(--fill); }
.article-meta .mode-toggle { min-height: 32px; padding: 0.15rem 0.6rem; margin-left: auto; font-size: 0.8125rem; }
.mode-toggle__opt--ink, .mode-toggle[aria-pressed="true"] .mode-toggle__opt--bone { color: var(--fg); font-weight: 700; }
.mode-toggle[aria-pressed="true"] .mode-toggle__opt--ink { color: var(--muted); font-weight: 400; }
.mode-toggle__sep { color: var(--muted); }

/* Small screens ----------------------------------------------------------- */
@media (max-width: 480px) {
    .gh-content { font-size: 1.1875rem; }
    .poem, .song-content > p.verse { font-size: 1.25rem; }
    .roots-content { font-size: 1.0625rem; }
    .hero__actions .btn, .feature__links .btn { flex: 1 1 auto; }
    .np-pull p { font-size: 1.5rem; }
    .np-connect { grid-template-columns: minmax(0, 1fr); }
    .np-connect::before { grid-row: auto; width: 2rem; height: 2rem; }
}

/* Motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print ------------------------------------------------------------------- */
@media print {
    :root { --bg: #fff; --raised: #fff; --fg: #000; --muted: #333; --accent: #000; --line: #ccc; }
    .site-header__actions, .menu-toggle, .site-footer, .share, .members-cta, .listen, .np-sprite,
    .hero__roots, .section-head__roots, .roots-head__field, .pair-panel__roots { display: none !important; }
}
