/* ============================================================
   Shinpaisho.com — Stylesheet
   Memphis-meets-aurora-watercolor under a moonlit hush
   ============================================================ */

:root {
    --ink: #070b1a;
    --indigo: #0f1738;
    --violet: #3a1f5c;
    --mint: #1ce9c4;
    --magenta: #ff2d8c;
    --citrine: #f6c84b;
    --cyan: #7df9ff;
    --paper: #f4ecdb;

    --paper-88: rgba(244, 236, 219, 0.88);
    --paper-66: rgba(244, 236, 219, 0.66);
    --paper-44: rgba(244, 236, 219, 0.44);
    --paper-24: rgba(244, 236, 219, 0.24);

    --measure: 62ch;
    --gutter: clamp(1rem, 4vw, 3rem);

    --ease-breath: cubic-bezier(0.22, 1, 0.36, 1);

    /* Cursor proximity (set by JS) */
    --cursor-x: 50vw;
    --cursor-y: 50vh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--paper-88);
    font-family: "Spectral", Georgia, "Times New Roman", serif;
    font-weight: 300;
    font-size: clamp(1.075rem, 0.9rem + 0.4vw, 1.15rem);
    line-height: 1.78;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Indigo-blotter watercolor base layered over pre-dawn ink */
    background-image:
        radial-gradient(ellipse 80vw 60vh at 20% 8%, rgba(58, 31, 92, 0.55), transparent 60%),
        radial-gradient(ellipse 70vw 50vh at 90% 30%, rgba(15, 23, 56, 0.7), transparent 65%),
        radial-gradient(ellipse 90vw 70vh at 30% 75%, rgba(15, 23, 56, 0.55), transparent 60%),
        radial-gradient(ellipse 60vw 50vh at 80% 95%, rgba(58, 31, 92, 0.4), transparent 70%);
    background-attachment: fixed;
}

.defs { width: 0; height: 0; position: absolute; }

/* ============================================================
   AURORA — body-fixed atmospheric weather (CSS only)
   ============================================================ */
.aurora {
    position: fixed;
    inset: -25vh -25vw;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-layer-1 {
    background: conic-gradient(
        from 90deg at 30% 40%,
        transparent 0deg,
        rgba(28, 233, 196, 0.18) 40deg,
        transparent 110deg,
        rgba(125, 249, 255, 0.14) 200deg,
        transparent 280deg
    );
    opacity: 0.5;
    filter: blur(60px);
    animation: aurora-rotate-1 90s linear infinite;
}
.aurora-layer-2 {
    background: conic-gradient(
        from 210deg at 70% 60%,
        transparent 0deg,
        rgba(58, 31, 92, 0.4) 40deg,
        rgba(255, 45, 140, 0.14) 110deg,
        transparent 200deg,
        rgba(28, 233, 196, 0.12) 290deg,
        transparent 360deg
    );
    opacity: 0.55;
    filter: blur(80px);
    animation: aurora-rotate-2 180s linear infinite;
}
.aurora-layer-3 {
    background: conic-gradient(
        from 0deg at 50% 80%,
        transparent 0deg,
        rgba(125, 249, 255, 0.1) 60deg,
        transparent 130deg,
        rgba(246, 200, 75, 0.08) 240deg,
        transparent 300deg
    );
    opacity: 0.45;
    filter: blur(70px);
    animation: aurora-rotate-3 240s linear infinite reverse;
}

@keyframes aurora-rotate-1 { to { transform: rotate(360deg); } }
@keyframes aurora-rotate-2 { to { transform: rotate(-360deg); } }
@keyframes aurora-rotate-3 { to { transform: rotate(360deg); } }

.paper-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.32;
    mix-blend-mode: overlay;
}

/* Halo — subtle cursor-following watercolor pool */
.halo {
    position: fixed;
    width: 520px;
    height: 520px;
    left: var(--cursor-x);
    top: var(--cursor-y);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 45, 140, 0.06) 0%, rgba(28, 233, 196, 0.04) 35%, transparent 65%);
    pointer-events: none;
    z-index: 2;
    filter: blur(40px);
    transition: opacity 1.2s var(--ease-breath);
    opacity: 0;
}
.halo.is-active { opacity: 1; }

/* ============================================================
   ESSAY container
   ============================================================ */
.essay {
    position: relative;
    z-index: 5;
    max-width: 100%;
    padding: 0;
}

/* ============================================================
   THE THRESHOLD (Hero — 110vh)
   ============================================================ */
.threshold {
    position: relative;
    min-height: 110vh;
    padding: clamp(2rem, 5vh, 6rem) var(--gutter) clamp(3rem, 7vh, 8rem);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    padding-block: 1rem;
    color: var(--paper-66);
    font-family: "Public Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 4;
    position: relative;
}
.masthead-label { text-align: right; opacity: 0.78; }
.masthead-domain {
    font-family: "Cormorant Infant", "Cormorant", serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: 0.32em;
    text-transform: none;
    color: var(--paper-88);
    white-space: nowrap;
}
.masthead-vol { opacity: 0.66; }

.threshold-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.squiggle-hero {
    position: absolute;
    top: 22%;
    left: -5%;
    width: 110%;
    height: 320px;
    overflow: visible;
}
.squiggle-hero path {
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: squiggle-draw 3.6s var(--ease-breath) 0.4s forwards;
}
@keyframes squiggle-draw {
    to { stroke-dashoffset: 0; }
}

.threshold-quote {
    align-self: end;
    max-width: 30ch;
    margin: 0 auto;
    text-align: center;
    z-index: 4;
    position: relative;
}
.threshold-line {
    font-family: "Fraunces", "Cormorant", serif;
    font-weight: 300;
    font-style: italic;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--paper-88);
}
.quote-mark {
    color: var(--magenta);
    opacity: 0.5;
    font-style: normal;
    margin: 0 0.05em;
}
.threshold-attribution {
    margin-top: 1.6rem;
    font-family: "Public Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-44);
}

.threshold-scroll-hint {
    align-self: end;
    text-align: center;
    margin-top: 4rem;
    color: var(--paper-44);
    font-family: "Public Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    z-index: 4;
    position: relative;
    display: grid;
    gap: 0.8rem;
    justify-items: center;
}
.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--paper-44));
    animation: scroll-pulse 3.6s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
    50%      { transform: scaleY(1);   opacity: 0.9; }
}

/* ============================================================
   MARGINALIA — watercolor Memphis shapes
   ============================================================ */
.marginalia, .margin {
    position: relative;
    pointer-events: none;
    will-change: transform;
}

/* Triangles — citrine, mint, magenta */
.marginalia-tri-1 {
    position: absolute;
    top: 18%;
    right: 8%;
    width: 220px;
    height: 220px;
    transform: rotate(17deg);
}
.marginalia-tri-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(246, 200, 75, 0.5), transparent 55%),
        radial-gradient(circle at 60% 50%, rgba(246, 200, 75, 0.3), transparent 65%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    filter: blur(4px) url(#watercolor-soft);
}

.marginalia-dots-1 {
    position: absolute;
    top: 60%;
    left: 6%;
    width: 180px;
    height: 200px;
}
.marginalia-dots-1 span {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}
.marginalia-dots-1 span:nth-child(1) { width: 10px; height: 10px; top: 5%;  left: 12%; background: var(--cyan);   opacity: 0.5; }
.marginalia-dots-1 span:nth-child(2) { width: 14px; height: 14px; top: 22%; left: 60%; background: var(--mint);   opacity: 0.55; }
.marginalia-dots-1 span:nth-child(3) { width: 6px;  height: 6px;  top: 38%; left: 30%; background: var(--citrine);opacity: 0.45; }
.marginalia-dots-1 span:nth-child(4) { width: 12px; height: 12px; top: 54%; left: 80%; background: var(--magenta);opacity: 0.45; }
.marginalia-dots-1 span:nth-child(5) { width: 8px;  height: 8px;  top: 70%; left: 20%; background: var(--cyan);   opacity: 0.4; }
.marginalia-dots-1 span:nth-child(6) { width: 11px; height: 11px; top: 82%; left: 55%; background: var(--mint);   opacity: 0.5; }
.marginalia-dots-1 span:nth-child(7) { width: 5px;  height: 5px;  top: 92%; left: 35%; background: var(--citrine);opacity: 0.55; }

/* ============================================================
   CHAPTER SECTIONS
   ============================================================ */
.chapter {
    position: relative;
    padding: clamp(4rem, 12vh, 10rem) 0 clamp(4rem, 10vh, 8rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(0.75rem, 2vw, 1.5rem);
    row-gap: clamp(2rem, 5vh, 4rem);
    padding-inline: var(--gutter);
}

.chapter-head {
    grid-column: 3 / span 8;
    margin-bottom: clamp(2rem, 5vh, 4rem);
    text-align: left;
}
.chapter-eyebrow {
    display: inline-block;
    font-family: "Public Sans", sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--magenta);
    opacity: 0.78;
    margin-bottom: 1.4rem;
}
.chapter-title {
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--paper);
    max-width: 22ch;
}
.chapter-subtitle {
    margin-top: 1.4rem;
    font-family: "Spectral", serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--paper-66);
    max-width: 56ch;
}

/* ============================================================
   ENTRIES — numbered editorial fragments
   ============================================================ */
.entry {
    grid-column: 3 / span 7;
    max-width: var(--measure);
    position: relative;
    padding-block: clamp(1.5rem, 4vh, 3rem);
}

.entry-no {
    display: block;
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-style: italic;
    font-size: 4.2rem;
    line-height: 1;
    color: var(--paper-44);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    animation: numeral-breath 4s ease-in-out infinite;
}
@keyframes numeral-breath {
    0%, 100% { opacity: 0.42; }
    50%      { opacity: 0.78; }
}
.entry[data-entry="014"] .entry-no { animation-delay: -1.0s; }
.entry[data-entry="022"] .entry-no { animation-delay: -2.0s; }
.entry[data-entry="037"] .entry-no { animation-delay: -3.0s; }
.entry[data-entry="048"] .entry-no { animation-delay: -0.5s; }
.entry[data-entry="056"] .entry-no { animation-delay: -1.5s; }
.entry[data-entry="063"] .entry-no { animation-delay: -2.5s; }
.entry[data-entry="071"] .entry-no { animation-delay: -3.5s; }
.entry[data-entry="084"] .entry-no { animation-delay: -0.8s; }
.entry[data-entry="091"] .entry-no { animation-delay: -1.8s; }
.entry[data-entry="099"] .entry-no { animation-delay: -2.8s; }

.entry-title {
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--paper);
    margin-bottom: 1.6rem;
    max-width: 28ch;
}

.entry-body {
    font-family: "Spectral", serif;
    font-weight: 300;
    line-height: 1.78;
    color: var(--paper-88);
    margin-bottom: 1.2rem;
    max-width: 62ch;
}
.entry-body em { color: var(--cyan); opacity: 0.85; font-style: italic; }

.dropcap {
    float: left;
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: 4.2em;
    line-height: 0.86;
    color: var(--magenta);
    opacity: 0.30;
    padding-right: 0.12em;
    padding-top: 0.04em;
    margin-bottom: -0.2em;
    text-transform: uppercase;
}

.pull-line {
    grid-column: 3 / span 7;
    max-width: 48ch;
    margin: clamp(2rem, 5vh, 3.5rem) auto;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 45, 140, 0.4);
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-style: italic;
    font-variation-settings: "SOFT" 100;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.4;
    color: var(--paper);
}

/* ============================================================
   MARGIN — sidebar marginalia per entry
   ============================================================ */
.margin {
    grid-column: 11 / span 2;
    align-self: center;
    position: relative;
    height: 240px;
    transition: transform 0.6s var(--ease-breath);
    transform: scale(var(--s, 1)) rotate(var(--r, 0deg));
}

.margin-tri {
    position: relative;
}
.margin-tri::before {
    content: "";
    position: absolute;
    inset: 10%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    filter: blur(3px) url(#watercolor-soft);
}
.margin-citrine::before {
    background:
        radial-gradient(circle at 50% 60%, rgba(246, 200, 75, 0.65), transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(255, 45, 140, 0.25), transparent 70%);
    transform: rotate(17deg);
}
.margin-mint::before {
    background:
        radial-gradient(circle at 50% 60%, rgba(28, 233, 196, 0.55), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(125, 249, 255, 0.3), transparent 70%);
    transform: rotate(-23deg);
}
.margin-magenta::before {
    background:
        radial-gradient(circle at 50% 60%, rgba(255, 45, 140, 0.55), transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(58, 31, 92, 0.45), transparent 70%);
    transform: rotate(41deg);
}

.margin-glyph {
    grid-column: 11 / span 2;
    align-self: center;
    text-align: center;
    height: 110px;
}
.margin-glyph .glyph {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
    transition: transform 0.6s var(--ease-breath);
    transform: scale(var(--s, 1));
}
.margin-caption {
    display: block;
    font-family: "Public Sans", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper-44);
    margin-top: 0.6rem;
}

.margin-dots {
    grid-column: 11 / span 2;
    align-self: center;
    position: relative;
    height: 200px;
    width: 100%;
}
.margin-dots span {
    position: absolute;
    border-radius: 50%;
    filter: blur(1.5px);
    transition: transform 0.6s var(--ease-breath);
    transform: scale(var(--s, 1));
}
.margin-dots span:nth-child(1) { width: 10px; height: 10px; top: 4%;  left: 24%; background: var(--cyan);    opacity: 0.55; }
.margin-dots span:nth-child(2) { width: 14px; height: 14px; top: 14%; left: 64%; background: var(--mint);    opacity: 0.6; }
.margin-dots span:nth-child(3) { width: 6px;  height: 6px;  top: 26%; left: 38%; background: var(--citrine); opacity: 0.5; }
.margin-dots span:nth-child(4) { width: 12px; height: 12px; top: 38%; left: 12%; background: var(--magenta); opacity: 0.55; }
.margin-dots span:nth-child(5) { width: 8px;  height: 8px;  top: 50%; left: 70%; background: var(--cyan);    opacity: 0.45; }
.margin-dots span:nth-child(6) { width: 11px; height: 11px; top: 62%; left: 30%; background: var(--mint);    opacity: 0.6; }
.margin-dots span:nth-child(7) { width: 5px;  height: 5px;  top: 74%; left: 56%; background: var(--citrine); opacity: 0.5; }
.margin-dots span:nth-child(8) { width: 9px;  height: 9px;  top: 84%; left: 18%; background: var(--magenta); opacity: 0.5; }
.margin-dots span:nth-child(9) { width: 7px;  height: 7px;  top: 94%; left: 60%; background: var(--cyan);    opacity: 0.45; }
.margin-dots span:nth-child(10){ width: 13px; height: 13px; top: 18%; left: 86%; background: var(--mint);    opacity: 0.55; }
.margin-dots span:nth-child(11){ width: 4px;  height: 4px;  top: 44%; left: 92%; background: var(--citrine); opacity: 0.6; }
.margin-dots span:nth-child(12){ width: 10px; height: 10px; top: 70%; left: 84%; background: var(--magenta); opacity: 0.5; }

.margin-squiggle {
    grid-column: 11 / span 2;
    align-self: stretch;
    grid-row: span 2;
    height: 100%;
    min-height: 240px;
    text-align: center;
}
.margin-squiggle .glyph-vert {
    width: 60px;
    height: 100%;
    min-height: 240px;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   AURORA STRIP (between chapters, 45vh, no text)
   ============================================================ */
.aurora-strip {
    position: relative;
    height: 45vh;
    overflow: hidden;
    z-index: 3;
    margin-block: clamp(2rem, 6vh, 5rem);
}
.aurora-strip-layer {
    position: absolute;
    inset: -25%;
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events: none;
    will-change: transform;
}
.aurora-strip-1 {
    background: conic-gradient(
        from 30deg at 50% 50%,
        transparent 0deg,
        rgba(28, 233, 196, 0.32) 60deg,
        rgba(125, 249, 255, 0.18) 120deg,
        transparent 180deg,
        rgba(255, 45, 140, 0.16) 280deg,
        transparent 360deg
    );
    filter: blur(50px);
    animation: aurora-rotate-1 90s linear infinite;
}
.aurora-strip-2 {
    background: conic-gradient(
        from 200deg at 30% 60%,
        transparent 0deg,
        rgba(58, 31, 92, 0.5) 90deg,
        rgba(246, 200, 75, 0.12) 180deg,
        transparent 260deg
    );
    filter: blur(70px);
    animation: aurora-rotate-2 180s linear infinite;
}
.aurora-strip-3 {
    background: conic-gradient(
        from 0deg at 70% 40%,
        transparent 0deg,
        rgba(125, 249, 255, 0.18) 70deg,
        transparent 150deg,
        rgba(28, 233, 196, 0.12) 240deg,
        transparent 320deg
    );
    filter: blur(60px);
    animation: aurora-rotate-3 240s linear infinite reverse;
}
.aurora-strip-rev { animation-direction: reverse; }

/* ============================================================
   THE CLOSING SPREAD
   ============================================================ */
.spread {
    position: relative;
    z-index: 3;
    padding: clamp(4rem, 12vh, 10rem) var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    border-top: 1px solid rgba(244, 236, 219, 0.08);
    border-bottom: 1px solid rgba(244, 236, 219, 0.08);
    margin-top: clamp(3rem, 8vh, 6rem);
}

.spread-left {
    column-count: 1;
    padding-block: 2rem;
}
.spread-title {
    font-family: "Fraunces", serif;
    font-weight: 300;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.1;
    color: var(--paper);
    margin-bottom: 2.4rem;
    max-width: 22ch;
}
.index-list {
    list-style: none;
    counter-reset: indexCounter;
    padding-left: 0;
}
.index-list li {
    counter-increment: indexCounter;
    font-family: "Spectral", serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--paper-66);
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(244, 236, 219, 0.08);
    position: relative;
    padding-left: 3rem;
    transition: color 0.6s var(--ease-breath);
}
.index-list li::before {
    content: counter(indexCounter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.7rem;
    font-family: "Public Sans", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--magenta);
    opacity: 0.7;
}
.index-list li:hover {
    color: var(--paper);
}

.spread-stamp {
    margin-top: 2.4rem;
    font-family: "Cormorant Infant", serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--paper-44);
    letter-spacing: 0.12em;
}

.spread-right {
    position: relative;
    min-height: 600px;
}
.spread-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
    border-radius: 2px;
}
.spread-wash {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px) url(#watercolor-soft);
    mix-blend-mode: screen;
    pointer-events: none;
}
.spread-wash-violet {
    width: 70%; height: 60%; top: 5%; left: 10%;
    background: radial-gradient(circle, rgba(58, 31, 92, 0.85), transparent 70%);
}
.spread-wash-mint {
    width: 50%; height: 50%; top: 30%; right: 5%;
    background: radial-gradient(circle, rgba(28, 233, 196, 0.55), transparent 70%);
}
.spread-wash-magenta {
    width: 40%; height: 40%; bottom: 10%; left: 15%;
    background: radial-gradient(circle, rgba(255, 45, 140, 0.5), transparent 70%);
}
.spread-wash-citrine {
    width: 35%; height: 35%; bottom: 25%; right: 15%;
    background: radial-gradient(circle, rgba(246, 200, 75, 0.45), transparent 70%);
}
.spread-squiggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.spread-caption {
    margin-top: 1rem;
    font-family: "Cormorant Infant", serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--paper-44);
    text-align: right;
    letter-spacing: 0.18em;
}

/* ============================================================
   COLOPHON
   ============================================================ */
.colophon {
    text-align: center;
    padding: clamp(3rem, 8vh, 6rem) var(--gutter);
    z-index: 3;
    position: relative;
    color: var(--paper-44);
}
.colophon-line {
    font-family: "Cormorant Infant", serif;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    color: var(--paper-66);
    margin-bottom: 0.6rem;
}
.colophon-sub {
    font-family: "Spectral", serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--paper-44);
    max-width: 56ch;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   RESPONSIVE — mobile collapse to single column
   ============================================================ */
@media (max-width: 880px) {
    .chapter {
        grid-template-columns: 1fr;
        padding-inline: clamp(1.25rem, 5vw, 2.5rem);
    }
    .chapter-head, .entry, .pull-line {
        grid-column: 1;
        max-width: 100%;
    }
    .margin, .margin-glyph, .margin-dots, .margin-squiggle {
        grid-column: 1;
        height: 140px;
        margin: 1rem 0;
        max-width: 240px;
    }
    .margin-squiggle { height: 200px; }
    .spread {
        grid-template-columns: 1fr;
    }
    .spread-right { min-height: 360px; order: 2; }
    .spread-canvas { min-height: 360px; }
    .masthead {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    .masthead-label, .masthead-vol { text-align: center; }
    .marginalia-tri-1 { width: 140px; height: 140px; right: 4%; }
    .marginalia-dots-1 { width: 110px; height: 130px; }
}

@media (max-width: 520px) {
    .threshold-line { font-size: clamp(2rem, 9vw, 3.2rem); }
    .entry-no { font-size: 3.2rem; }
    .dropcap { font-size: 3.6em; }
}

/* Reduce motion — hush the aurora, freeze the breath */
@media (prefers-reduced-motion: reduce) {
    .aurora, .aurora-strip-layer { animation: none; }
    .scroll-line { animation: none; }
    .entry-no { animation: none; opacity: 0.6; }
    .squiggle-hero path { stroke-dashoffset: 0; animation: none; }
}
