/* ==========================================================================
   Self-hosted fonts (woff2, variable where available) — no external requests.
   Files in assets/fonts/. latin + latin-ext subsets per family/style.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/space-grotesk.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: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/eb-garamond-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: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/eb-garamond.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: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/eb-garamond-italic-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: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/eb-garamond-italic.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.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;
}

/* League Spartan — used for the homepage hero wordmark (.masthead) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/league-spartan.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: 'League Spartan';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/league-spartan-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;
}

/* ==========================================================================
   INDIGO — Literary Magazine theme
   Liminal, low-light, tactile. Authored as plain CSS (no build step).
   Sections:
     0. Reset / base        5. Entryway (the cover reveal)
     1. Tokens / variables   6. Broken grid + post cards
     2. Film grain           7. Reader (atmosphere → matte sanctuary)
     3. Typography           8. Manifesto / Gate / error
     4. Navigation + footer  9. Responsive
   ========================================================================== */

/* 0. RESET ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
    /* Matte midnight palette */
    --void:      #07070c;
    --midnight:  #0d0d16;   /* the matte sanctuary background */
    --charcoal:  #14141d;
    --deep:      #1a1a2b;
    --raised:    #20202f;

    /* Text */
    --silver:    #cccdd9;   /* primary prose */
    --silver-dim:#9a9bab;
    --muted:     #6d6e80;
    --faint:     #45465a;

    /* Accents (mood-switched below) */
    --violet:    #7d5cff;
    --amber:     #e2a85f;
    --accent:    var(--violet);
    --accent-soft: color-mix(in srgb, var(--accent) 28%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);

    /* Hairlines — the single-pixel border language */
    --hairline:  color-mix(in srgb, var(--silver) 14%, transparent);
    --hairline-strong: color-mix(in srgb, var(--silver) 26%, transparent);

    /* Type */
    --font-display: 'League Spartan', system-ui, sans-serif;
    --font-ui:      'Space Grotesk', system-ui, sans-serif;
    --font-prose:   'EB Garamond', 'Cormorant Garamond', Georgia, serif;

    /* Rhythm */
    --measure: 65ch;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --shell: 1320px;

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

html.mood-amber { --accent: var(--amber); }

/* 2. FILM GRAIN ------------------------------------------------------------ */
.film-grain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
}
body.has-grain .film-grain { opacity: 0.035; }
body.grain-subtle  .film-grain { opacity: 0.022; }
body.grain-standard .film-grain { opacity: 0.038; }
body.grain-heavy   .film-grain { opacity: 0.06; }
@media (prefers-reduced-motion: no-preference) {
    /* an almost-imperceptible flicker gives it living, analog tooth */
    body.has-grain .film-grain { animation: grain-shift 8s steps(6) infinite; }
}
@keyframes grain-shift {
    0%,100% { transform: translate(0,0); }
    20% { transform: translate(-2%, 1%); }
    40% { transform: translate(1%, -2%); }
    60% { transform: translate(-1%, 2%); }
    80% { transform: translate(2%, -1%); }
}

/* 3. BASE + TYPOGRAPHY ----------------------------------------------------- */
body {
    margin: 0;
    background-color: var(--midnight);
    color: var(--silver);
    font-family: var(--font-prose);
    font-size: 19px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.site-frame { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

::selection { background: var(--accent-soft); color: #fff; }

/* The geometric display voice */
.masthead, .reader__title, .section-head__title,
.manifesto__title, .gate__title, .piece-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 0.95;
    color: #f1f1f6;
}

/* 4. THE FOOTER --------------------------------------------------------------
   The header was killed sitewide — this is now the site's only navigation
   chrome. Composition borrowed from eleos.la's footer (bold CTA + link,
   info/nav columns, a giant mirrored wordmark bleeding across the bottom,
   a bottom bar) — palette stays the theme's own dark tokens throughout. */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--hairline); background: var(--void); overflow: hidden; }
.site-footer__inner { max-width: var(--shell); margin: 0 auto; padding: 5rem var(--gutter) 0; }

.site-footer__cta { max-width: 60ch; }
.site-footer__headline {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.08;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: #f1f1f6;
}
.site-footer__cta-link {
    display: inline-block;
    margin-top: 1.6rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.3rem;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-footer__cta-link:hover { color: #fff; border-color: #fff; }

/* Table-of-contents nav — three-column grid kept only to place the TOC in
   the right third; the left two-thirds stay empty. */
.site-footer__columns {
    margin-top: 4.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.site-footer__toc {
    grid-column: 3;
    counter-reset: toc;
}
.site-footer__toc-heading {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #f1f1f6;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--hairline);
}
.toc-list { display: flex; flex-direction: column; }
.toc-item { counter-increment: toc; border-bottom: 1px solid var(--hairline); }
.toc-item a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--silver-dim);
    transition: color 0.3s var(--ease);
}
.toc-item a:hover { color: #fff; }
.toc-item--current .toc-item__label { color: #fff; }
.toc-item__num {
    font-family: var(--font-ui);
    color: var(--faint);
    transition: color 0.3s var(--ease);
}
.toc-item__num::before { content: counter(toc, decimal-leading-zero); }
.toc-item a:hover .toc-item__num { color: var(--accent); }

/* Flush against the true left edge (no gutter — this lives outside
   .site-footer__inner on purpose) and pulled up into .site-footer__bottom via
   a negative bottom margin, so the panel crops the lower portion of the
   glyphs. (Earlier version relied on the wrapper's line-height:0 to collapse
   its box — that doesn't work, .site-footer__word is display:block, so
   line-height on the *wrapper* never collapsed anything; this negative-
   margin overlap is the actual mechanism and is what should be tuned from
   here on if the crop point needs to move.) */
.site-footer__word-wrap {
    margin-top: 3rem;
    margin-bottom: clamp(-14rem, -9vw, -2rem);
}
.site-footer__word {
    display: block;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(6rem, 26vw, 34rem);
    text-transform: uppercase;
    letter-spacing: -0.06em;
    line-height: 0.8;
    color: var(--raised);
    transform: scaleY(-1);
}

/* Solid + relatively positioned so this panel paints over (and thus visually
   crops) whatever part of the giant word overlaps it via the negative margin
   above. */
.site-footer__bottom { position: relative; z-index: 1; background: var(--void); border-top: 1px solid var(--hairline); }
.site-footer__bottom-inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 1.4rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.site-footer__top { color: var(--silver-dim); transition: color 0.3s var(--ease); }
.site-footer__top:hover { color: var(--accent); }

/* 5. THE HERO ---------------------------------------------------------------
   Structural reference: eleos.la. A full-bleed photograph, a massive tightly-
   kerned wordmark bleeding almost edge-to-edge over it, and two small corner
   captions (tagline bottom-left, scroll cue bottom-right) — no atmosphere
   blobs, no cover/index stage. */
.entryway {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--void);
}
.entryway__media { position: absolute; inset: 0; z-index: 0; }
.entryway__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.12) brightness(0.62);
}
.entryway__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(5,3,10,0.88) 0%, rgba(5,3,10,0.2) 42%, rgba(5,3,10,0.5) 100%);
}

.masthead {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4.5rem, 21vw, 30rem);
    text-transform: uppercase;
    letter-spacing: -0.07em;
    line-height: 0.78;
    color: #fdfdff;
    text-shadow: 0 20px 70px rgba(0,0,0,0.6);
    padding: 0 clamp(0.5rem, 2.5vw, 2rem);
}

.entryway__corner {
    position: absolute;
    z-index: 3;
    bottom: clamp(1.5rem, 4vw, 2.8rem);
}
.entryway__corner--left { left: var(--gutter); max-width: 34ch; }
.entryway__tagline {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    line-height: 1.55;
    text-transform: uppercase;
    color: var(--silver);
}
.entryway__issue {
    display: inline-block;
    margin-top: 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

/* 6. BROKEN GRID + CARDS --------------------------------------------------- */
.current-issue { max-width: var(--shell); margin: 0 auto; padding: 6rem var(--gutter) 0; }
.current-issue--standalone { padding-top: 3.5rem; }

.section-head { margin-bottom: 3.5rem; }
.section-head--center { text-align: center; }
.section-head__eyebrow { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.section-head__title { font-size: clamp(2rem, 6vw, 4.5rem); text-transform: uppercase; margin-top: 0.4rem; }
.section-head__desc { margin-top: 1rem; max-width: 50ch; color: var(--silver-dim); font-style: italic; }
.section-head--center .section-head__desc { margin-inline: auto; }
.section-head__rule { display: block; width: 100%; height: 1px; background: var(--hairline); margin-top: 2rem; }

/* Volume / issue channel header */
.issue-head { position: relative; }
.issue-head--imaged { padding: 2rem 0 0; margin-bottom: 1rem; }
.issue-head__atmosphere { position: absolute; inset: -9rem var(--gutter) 0; z-index: 0; overflow: hidden; }
.issue-head__atmosphere { left: 50%; transform: translateX(-50%); width: 100vw; }
.issue-head__image { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: saturate(0.65) brightness(0.6); }
.issue-head__inner { position: relative; z-index: 2; }

/* The uneven grid */
.grid-broken {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}
.grid-broken--compact { gap: 2rem; margin-top: 2.5rem; }

/* Default span */
.piece-card { grid-column: span 3; }

/* Asymmetric rhythm — varied spans, offsets and padding leave raw pockets */
.grid-broken > .piece-card:nth-child(7n+1) { grid-column: span 4; }
.grid-broken > .piece-card:nth-child(7n+2) { grid-column: span 2; padding-top: 4rem; }
.grid-broken > .piece-card:nth-child(7n+3) { grid-column: span 3; }
.grid-broken > .piece-card:nth-child(7n+4) { grid-column: span 3; padding-top: 6rem; }
.grid-broken > .piece-card:nth-child(7n+5) { grid-column: span 2; }
.grid-broken > .piece-card:nth-child(7n+6) { grid-column: span 4; padding-top: 3rem; }
.grid-broken > .piece-card:nth-child(7n+7) { grid-column: span 3; padding-left: clamp(0px, 4vw, 3rem); }

/* Cards rise gently into view (JS adds .is-revealed) */
.js .piece-card { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .piece-card.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .piece-card { opacity: 1; transform: none; } }

.piece-card__link { display: block; }
.piece-card__frame { overflow: hidden; border: 1px solid var(--hairline); }
.piece-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(0.4) saturate(0.85) contrast(1.05) brightness(0.82);
    transition: filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.piece-card--has-image:nth-child(even) .piece-card__image { aspect-ratio: 3 / 4; }
.piece-card__link:hover .piece-card__image { filter: grayscale(0) saturate(1) contrast(1.05) brightness(1); transform: scale(1.04); }

.piece-card__body { padding-top: 1.3rem; }
.piece-card__tag {
    font-family: var(--font-ui);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}
.piece-card__title {
    font-size: clamp(1.3rem, 2.5vw, 2.1rem);
    margin-top: 0.6rem;
    line-height: 1.04;
    transition: color 0.3s var(--ease);
}
.piece-card__link:hover .piece-card__title { color: var(--accent); }
.piece-card--textual .piece-card__title { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.piece-card__excerpt { margin-top: 0.9rem; color: var(--silver-dim); font-size: 1.02rem; }
.piece-card__byline {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.more-link {
    display: inline-block;
    margin: 3.5rem auto 0;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.3rem;
}
.more-link:hover { color: var(--accent); }

/* Pagination */
.pagination {
    max-width: var(--shell);
    margin: 4rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.pagination__link { color: var(--silver); border-bottom: 1px solid transparent; padding-bottom: 0.25rem; }
.pagination__link--prev:hover, .pagination__link--next:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pagination__link--disabled { color: var(--faint); cursor: default; }
.pagination__count { color: var(--muted); }

/* 7. READER — atmosphere → matte sanctuary -------------------------------- */
.reader { position: relative; }

.reader__entry {
    position: relative;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 4rem var(--gutter) 5rem;
    overflow: hidden;
}
.reader__entry--bare { min-height: 48vh; }

.reader__atmosphere { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 90% at 50% 0%, var(--deep), var(--void) 75%); }
.reader__entry-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(0.7) contrast(1.05) brightness(0.6);
}
.reader__haze { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; }
.reader__haze--one { width: 45vw; height: 45vw; top: -10%; left: 10%; background: color-mix(in srgb, var(--accent) 26%, transparent); animation: drift-a 28s var(--ease) infinite alternate; }
.reader__haze--two { width: 38vw; height: 38vw; bottom: -10%; right: 5%; background: color-mix(in srgb, #27275f 70%, transparent); animation: drift-b 34s var(--ease) infinite alternate; }
.reader__haze--three { width: 26vw; height: 26vw; top: 30%; left: 40%; background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* The dissolve — imagery softly resolves into matte midnight at the base */
.reader__dissolve {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(to bottom, transparent, var(--midnight) 92%);
}
@media (prefers-reduced-motion: reduce) { .reader__haze { animation: none !important; } }

.reader__entry-inner { position: relative; z-index: 2; max-width: 30ch; }
.reader__kicker {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
}
.reader__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 8vw, 6.5rem);
    margin-top: 1.2rem;
    text-transform: uppercase;
}
.reader__standfirst {
    margin-top: 1.6rem;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--silver-dim);
    line-height: 1.6;
    max-width: 38ch;
    margin-inline: auto;
}
.reader__meta {
    margin-top: 1.8rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap;
}
.reader__author { color: var(--silver); }
.reader__author:hover { color: var(--accent); }
.reader__descend { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2; width: 1px; height: 4rem; background: linear-gradient(var(--accent), transparent); }

/* The sacred column */
.reader__column {
    position: relative;
    z-index: 2;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 4.5rem var(--gutter) 2rem;
    background: var(--midnight);
}
.reader__prose { font-size: 1.16rem; line-height: 1.85; color: var(--silver); }
.reader__prose > * + * { margin-top: 1.7rem; }
.reader__prose p { hanging-punctuation: first; }
.reader__prose a { color: var(--silver); border-bottom: 1px solid var(--accent-soft); transition: border-color 0.3s; }
.reader__prose a:hover { border-bottom-color: var(--accent); }
.reader__prose h2, .reader__prose h3, .reader__prose h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #f1f1f6;
    margin-top: 3rem;
    line-height: 1.1;
}
.reader__prose h2 { font-size: 1.7rem; }
.reader__prose h3 { font-size: 1.35rem; }
.reader__prose blockquote {
    margin-left: 0; margin-right: 0;
    padding-left: 1.6rem;
    border-left: 1px solid var(--accent);
    font-style: italic;
    color: var(--silver-dim);
    font-size: 1.3rem;
}
.reader__prose hr { border: none; height: 1px; background: var(--hairline); margin: 3rem auto; width: 40%; }
.reader__prose img, .reader__prose .kg-card { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.reader__prose figcaption { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 0.8rem; }
.reader__prose code { font-family: 'Space Grotesk', monospace; font-size: 0.85em; background: var(--charcoal); padding: 0.15em 0.45em; border-radius: 3px; }
.reader__prose pre { background: var(--void); border: 1px solid var(--hairline); padding: 1.4rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; }
.reader__prose pre code { background: none; padding: 0; }
/* Poetry / experimental indentation — preserve the poet's whitespace */
.reader__prose pre.poem, .reader__prose .poem {
    font-family: var(--font-prose);
    font-size: 1.16rem;
    line-height: 1.9;
    background: none;
    border: none;
    padding: 0;
    white-space: pre-wrap;
    color: var(--silver);
}

/* Wide media breakout inside the narrow column */
.reader__prose .kg-width-wide { width: min(90vw, 1000px); margin-left: 50%; transform: translateX(-50%); }
.reader__prose .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.reader__footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.reader__footer-label { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-right: 0.8rem; }
.reader__tags a { color: var(--silver-dim); }
.reader__tags a:hover { color: var(--accent); }

.reader__related { max-width: var(--shell); margin: 5rem auto 0; padding: 4rem var(--gutter) 0; border-top: 1px solid var(--hairline); }
.reader__comments { padding-top: 2rem; }

/* 8. MANIFESTO / GATE / ERROR --------------------------------------------- */
.manifesto__hero, .gate__atmosphere, .error__atmosphere { position: relative; overflow: hidden; }
.manifesto__hero {
    min-height: 70vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 4rem var(--gutter) 5rem;
}
.manifesto__atmosphere { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 90% at 30% 10%, var(--deep), var(--void) 75%); }
.manifesto__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: saturate(0.6) brightness(0.6); }
.manifesto__hero-inner { position: relative; z-index: 2; max-width: var(--shell); margin: 0 auto; width: 100%; }
.manifesto__eyebrow { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.manifesto__title { font-size: clamp(3rem, 11vw, 9rem); text-transform: uppercase; margin-top: 1rem; max-width: 14ch; }
.manifesto__standfirst { margin-top: 1.6rem; font-size: 1.4rem; font-style: italic; color: var(--silver-dim); max-width: 44ch; }
.manifesto__prose { font-size: 1.22rem; }
.manifesto__prose p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-weight: 800;
    float: left;
    font-size: 4.6rem;
    line-height: 0.78;
    padding: 0.4rem 0.6rem 0 0;
    color: var(--accent);
}

/* The Gate */
.gate { position: relative; min-height: 90vh; display: flex; align-items: center; padding: 4rem var(--gutter) 5rem; overflow: hidden; }
.gate__atmosphere { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 100% at 50% 50%, var(--deep), var(--void) 70%); }
.gate__inner { position: relative; z-index: 2; max-width: var(--measure); margin: 0 auto; text-align: center; }
.gate__eyebrow { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.gate__title { font-size: clamp(2.6rem, 9vw, 7rem); text-transform: uppercase; margin-top: 1rem; }
.gate__prose { margin-top: 2.5rem; text-align: left; }
.gate__cta { margin-top: 3.5rem; }
.gate__button {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid var(--accent);
    padding: 1.1rem 2.6rem;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gate__button:hover { background: var(--accent-soft); box-shadow: 0 0 30px var(--accent-glow); }
.gate__note { margin-top: 1.6rem; font-style: italic; color: var(--muted); font-size: 0.95rem; }

/* THE SPINE — a vertical wordmark along the left edge, opt-in per page
   (Open Call, Sign Up, the refreshed Manifesto/About). Fixed so it stays
   put while the page scrolls; pointer-events: none so it never blocks
   clicks on whatever sits underneath it. */
.page-spine {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 5;
    width: clamp(2.2rem, 4vw, 3.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--void) 55%, transparent);
    pointer-events: none;
}
.page-spine__word {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--silver-dim);
    white-space: nowrap;
}
/* Pairs with .page-spine — nudges a page's readable content clear of the
   spine without affecting full-bleed layers (atmosphere/media) that don't
   carry this class. */
.has-spine { padding-left: clamp(3.5rem, 7vw, 6rem); }

/* Error */
.error { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.error__atmosphere { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% 40%, var(--deep), var(--void) 70%); }
.error__inner { position: relative; z-index: 2; padding: 0 var(--gutter); }
.error__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 16rem); color: var(--raised); line-height: 0.9; }
.error__title { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 3rem); text-transform: uppercase; margin-top: 1rem; color: #fff; }
.error__message { margin-top: 1rem; color: var(--silver-dim); }
.error .more-link { margin-top: 2.5rem; }

/* Author header avatar */
.author-head { display: flex; flex-direction: column; align-items: flex-start; }
.author-head__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; border: 1px solid var(--hairline-strong); }

/* 9. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 720px) {
    body { font-size: 18px; }

    /* The spine is a desktop-margin flourish — on narrow screens it would
       just crowd the content, so it disappears and everything using
       has-spine falls back to a normal mobile inset. */
    .page-spine { display: none; }
    .has-spine { padding-left: 1.4rem; }

    .entryway__corner--left { max-width: 78vw; }

    /* The broken grid relaxes to a clean single column on phones */
    .grid-broken { grid-template-columns: 1fr; gap: 3.5rem; }
    .grid-broken > .piece-card { grid-column: 1 / -1 !important; padding: 0 !important; }

    .reader__entry { min-height: 70vh; }
    .reader__column { padding-left: 1.4rem; padding-right: 1.4rem; }
    .manifesto__prose p:first-of-type::first-letter { font-size: 3.4rem; }

    .site-footer__columns { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

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