/* =====================================================
   LAYER · 2 · WIKI — A Mail-Order Encyclopedia of the Upper Floor
   inflated-3d · broken-grid · serif-revival · warm-earthy
   slide-reveal · mixed-media · vintage · playful
   ===================================================== */

:root {
    --cream: #F1E5CF;
    --vellum: #E6D2A8;
    --paper-light: #F8EFDC;
    --terracotta: #C76F3F;
    --brick: #A04A28;
    --brass: #8B6E3C;
    --walnut: #3E2A1B;
    --olive: #6E8C5F;
    --bitumen: #2A1A12;

    --shadow-floor: 0 22px 28px -10px rgba(160, 74, 40, 0.34);
    --shadow-floor-tight: 0 12px 18px -8px rgba(160, 74, 40, 0.42);
    --shadow-floor-soft: 0 38px 52px -18px rgba(160, 74, 40, 0.30);

    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-settle: cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-balloon: 'Bagel Fat One', cursive;
    --font-display: 'Fraunces', serif;
    --font-body: 'Lora', Georgia, serif;
    --font-typewriter: 'Special Elite', 'Courier New', monospace;
    --font-caps: 'Cormorant Upright', serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--walnut);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.62;
    font-weight: 420;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "onum", "lnum" 0;
    overflow-x: hidden;
    position: relative;
}

/* warm-paper grain overlay (no gradient — just a subtle multiply texture) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 14% 20%, rgba(62,42,27,0.18) 1px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(160,74,40,0.14) 1px, transparent 2px),
        radial-gradient(circle at 35% 80%, rgba(62,42,27,0.10) 1px, transparent 2px);
    background-size: 7px 7px, 11px 11px, 9px 9px;
    mix-blend-mode: multiply;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.10;
    background:
        repeating-linear-gradient(91deg, rgba(62,42,27,0.05) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(2deg, rgba(160,74,40,0.04) 0 1px, transparent 1px 5px);
    mix-blend-mode: multiply;
}

/* Selection */
::selection {
    background: var(--terracotta);
    color: var(--paper-light);
}

a {
    color: var(--brick);
    text-decoration: none;
    border-bottom: 0.5px solid transparent;
    transition: color 280ms var(--ease-soft);
    position: relative;
}

/* =====================================================
   SLIDE-REVEAL system
   ===================================================== */

[data-slide] {
    opacity: 0;
    transition:
        transform 520ms var(--ease-soft),
        opacity 520ms var(--ease-soft);
    will-change: transform, opacity;
}

[data-slide="right"] { transform: translateX(96px); }
[data-slide="left"]  { transform: translateX(-96px); }
[data-slide="up"]    { transform: translateY(-22px); }
[data-slide="down"]  { transform: translateY(22px); }

[data-slide].has-arrived {
    opacity: 1;
    transform: translate(0, 0);
}

/* =====================================================
   GROUND FLOOR — MASTHEAD
   ===================================================== */

.masthead {
    position: relative;
    min-height: 78vh;
    padding: 38px 6vw 0 6vw;
    z-index: 2;
}

.masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 18px 24px;
    align-items: start;
    position: relative;
    z-index: 3;
}

.bolster-wrap {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    height: 138px;
    max-width: 980px;
    filter: drop-shadow(var(--shadow-floor));
}

.bolster-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wordmark {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.8vw, 36px);
    font-family: var(--font-balloon);
    color: var(--paper-light);
    font-size: clamp(1.6rem, 3.4vw, 3.2rem);
    letter-spacing: 0.02em;
    text-shadow:
        -2px -2px 0 rgba(248, 239, 220, 0.55),
        0 6px 8px rgba(160, 74, 40, 0.55),
        0 2px 0 var(--brick);
    padding: 0 36px;
}

.wordmark .word { letter-spacing: 0.04em; }
.wordmark .word-2 { color: var(--paper-light); transform: translateY(-2px); }
.wordmark .word-dot { color: var(--paper-light); opacity: 0.6; transform: translateY(-6px); }

.masthead-meta {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    font-family: var(--font-typewriter);
    font-size: 12px;
    color: var(--walnut);
    letter-spacing: 0.16em;
    margin-top: 14px;
    margin-left: 28px;
}
.masthead-meta .meta-line { line-height: 1.5; }

/* Staircase button (the only nav) */
.staircase-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    transition: transform 480ms var(--ease-settle);
}

.staircase-button:hover { transform: scale(1.04); }
.staircase-button.is-active { transform: scale(1.04); }

.staircase-svg {
    width: 92px;
    height: auto;
    transition: transform 480ms var(--ease-settle);
}
.staircase-button:hover .staircase-svg { transform: rotate(2deg); }

.staircase-label {
    font-family: var(--font-typewriter);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--walnut);
}

.directory-plate {
    position: absolute;
    top: 130px;
    right: 0;
    z-index: 12;
    background: var(--vellum);
    border: 1.4px solid var(--walnut);
    border-radius: 4px;
    padding: 18px 22px;
    min-width: 280px;
    box-shadow: var(--shadow-floor);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 360ms var(--ease-soft), opacity 360ms var(--ease-soft);
}
.directory-plate.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.directory-header {
    font-family: var(--font-typewriter);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--walnut);
    text-align: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--brass);
}
.directory-list { list-style: none; }
.directory-list li {
    border-bottom: 1px dashed rgba(62, 42, 27, 0.3);
}
.directory-list li:last-child { border-bottom: 0; }
.directory-list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 4px;
    color: var(--walnut);
    border: 0;
    font-family: var(--font-display);
    font-size: 17px;
    transition: color 280ms var(--ease-soft);
}
.directory-list .dir-floor {
    font-family: var(--font-balloon);
    font-size: 14px;
    color: var(--terracotta);
    min-width: 30px;
}
.directory-list .dir-name {
    font-style: italic;
    letter-spacing: 0.02em;
}
.directory-list a:hover { color: var(--brick); }
.directory-list a:hover .dir-name { text-decoration: underline; text-decoration-color: var(--brick); }

/* The big inflated 2 */
.big-two-stage {
    position: absolute;
    right: 6vw;
    top: 22vh;
    width: clamp(220px, 30vw, 420px);
    z-index: 2;
    transform-origin: 50% 90%;
    animation: inflateTwo 1100ms var(--ease-settle) 100ms both;
}

@keyframes inflateTwo {
    0%   { transform: scale(0.62); opacity: 0; }
    65%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1.0); opacity: 1; }
}

.big-two-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-floor-soft));
    cursor: pointer;
    transition: transform 240ms var(--ease-soft);
}
.big-two-stage.is-squish .big-two-svg {
    transform: scale(1.03, 0.97);
}

/* =====================================================
   FLOOR LINE motif
   ===================================================== */

.floor-line {
    position: relative;
    width: 100%;
    height: 60px;
    margin: 30px 0 36px 0;
}
.floor-line svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.floor-line-masthead {
    margin-top: 38px;
}
.floor-line-internal {
    margin: 56px 0 28px 0;
}
.floor-line-final {
    margin-top: 80px;
}

/* Floor line draw-on animation triggered on load */
.floor-line svg line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: drawLine 1400ms var(--ease-soft) 200ms forwards;
}
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}
/* Floor lines below the fold draw when in view */
.article-section .floor-line svg line,
.mixed-media-spread .floor-line svg line,
.colophon .floor-line svg line {
    animation: none;
    stroke-dashoffset: 0;
}
.article-section .floor-line.has-arrived svg line,
.mixed-media-spread .floor-line.has-arrived svg line,
.colophon .floor-line.has-arrived svg line {
    animation: drawLine 1100ms var(--ease-soft) forwards;
}

/* Hanging chipboard tags */
.hanging-tag {
    position: absolute;
    top: 0;
    width: 180px;
    height: 76px;
    z-index: 3;
    transform-origin: 50% 0;
    animation: tagSway 6s ease-in-out infinite alternate;
}
.hanging-tag svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.hanging-tag .tag-text {
    position: absolute;
    inset: 22px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-typewriter);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--walnut);
    pointer-events: none;
}
.hanging-tag-left  { left: 8vw; }
.hanging-tag-mid   { left: 50%; transform: translateX(-50%); }
.hanging-tag-right { right: 8vw; }

@keyframes tagSway {
    0%   { transform: rotate(-1.2deg); }
    100% { transform: rotate(1.2deg); }
}
.hanging-tag-mid {
    animation: tagSwayMid 6s ease-in-out infinite alternate;
}
@keyframes tagSwayMid {
    0%   { transform: translateX(-50%) rotate(-1deg); }
    100% { transform: translateX(-50%) rotate(1deg); }
}

/* =====================================================
   EDITOR'S NOTE
   ===================================================== */

.editors-note {
    position: relative;
    padding: 56px 8vw 20px 10vw;
    z-index: 2;
}

.note-wrap {
    max-width: 720px;
}

.note-paragraph {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(17px, 1.18vw, 19px);
    line-height: 1.66;
    color: var(--walnut);
    margin-bottom: 22px;
    max-width: 62ch;
}

.note-paragraph em { font-style: normal; font-weight: 600; color: var(--brick); }

/* Drop-cap with floor shadow */
.dropcap-wrap {
    float: left;
    width: 92px;
    height: 92px;
    margin: 4px 18px 0 0;
    position: relative;
}
.dropcap-shadow {
    position: absolute;
    bottom: -6px;
    left: -8px;
    width: 110px;
    height: 24px;
    overflow: visible;
}
.dropcap {
    font-family: var(--font-balloon);
    font-size: 92px;
    line-height: 1;
    color: var(--terracotta);
    text-shadow:
        -2px -2px 0 rgba(248, 239, 220, 0.6),
        4px 6px 0 var(--brick),
        0 8px 14px rgba(160, 74, 40, 0.4);
    display: inline-block;
    transform: translateY(-2px);
}

.dropcap-mini {
    font-family: var(--font-balloon);
    font-size: 1.6em;
    line-height: 1;
    color: var(--terracotta);
    margin-right: 4px;
    text-shadow:
        -1px -1px 0 rgba(248, 239, 220, 0.55),
        2px 2px 0 var(--brick);
}

.signature {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px dashed var(--brass);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: rotate(-0.4deg);
}
.sig-script {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--walnut);
}
.sig-tag {
    font-family: var(--font-typewriter);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--brass);
}

/* =====================================================
   ARTICLE SECTIONS
   ===================================================== */

.article-section {
    position: relative;
    padding: 30px 6vw 90px 6vw;
    z-index: 2;
}

.section-numeral {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 18px 2vw 36px 2vw;
    transform: rotate(-0.6deg);
}
.section-numeral-right {
    justify-content: flex-end;
    transform: rotate(0.4deg);
}
.section-numeral .numeral-prefix {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--brass);
    font-weight: 600;
}
.section-numeral .numeral {
    font-family: var(--font-balloon);
    font-size: clamp(54px, 7vw, 96px);
    color: var(--terracotta);
    line-height: 0.9;
    text-shadow:
        -2px -2px 0 rgba(248, 239, 220, 0.55),
        4px 6px 0 var(--brick),
        0 12px 18px rgba(160, 74, 40, 0.35);
}
.section-numeral .numeral-name {
    font-family: var(--font-caps);
    font-variant: small-caps;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: 0.18em;
    color: var(--walnut);
    margin-left: 14px;
    border-bottom: 1px solid var(--brass);
    padding-bottom: 4px;
}

/* Headings */
.section-h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--walnut);
    margin-bottom: 22px;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.section-h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    margin: 28px 0 12px 0;
    color: var(--brick);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-style: italic;
}

/* Body paragraphs */
.body-column p {
    margin-bottom: 18px;
    max-width: 62ch;
}
.body-column p em { color: var(--brick); font-style: italic; }
.body-column p strong { color: var(--walnut); }

/* Cross-reference link */
.x-link {
    color: var(--brick);
    border-bottom: 0;
    background-image: linear-gradient(var(--brick), var(--brick));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: left 100%;
    padding-bottom: 1px;
    transition: background-size 360ms var(--ease-soft), color 280ms var(--ease-soft);
    font-style: italic;
}
.x-link:hover {
    background-size: 100% 1.5px;
    color: var(--brick);
}

/* See also block */
.see-also {
    font-family: var(--font-caps);
    font-variant: small-caps;
    letter-spacing: 0.14em;
    font-size: 14px;
    color: var(--walnut);
    margin-top: 22px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.see-caps {
    font-family: var(--font-caps);
    font-variant: small-caps;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: var(--brass);
    margin-right: 4px;
}
.see-arrow {
    width: 26px;
    height: 16px;
    overflow: visible;
    transition: transform 280ms var(--ease-settle);
    transform-origin: center;
}
.see-also:hover .see-arrow,
.x-link:hover ~ .see-arrow {
    transform: scale(1.06) translateX(2px);
}

/* =====================================================
   BROKEN GRID variants
   ===================================================== */

.broken-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(8px, 1.4vw, 18px);
    align-items: start;
    position: relative;
    margin: 0 1vw;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-9 { grid-column: span 9; }

/* Specific layouts */
.grid-7-4 .col-7 { grid-column: 1 / span 7; }
.grid-7-4 .col-4 { grid-column: 9 / span 4; margin-top: 30px; margin-left: -12px; }

.grid-3-7-2 .col-3 { grid-column: 1 / span 3; padding-top: 58px; margin-right: -8px; }
.grid-3-7-2 .col-7 { grid-column: 4 / span 7; margin-top: -10px; }
.grid-3-7-2 .col-2 { grid-column: 11 / span 2; padding-top: 100px; margin-left: -14px; }

.grid-6-6 .col-6:nth-child(1) { grid-column: 1 / span 6; padding-right: 22px; }
.grid-6-6 .col-6:nth-child(2) { grid-column: 7 / span 6; padding-left: 22px; margin-top: 18px; }

/* =====================================================
   SPECIMEN (pull-quote area)
   ===================================================== */

.specimen {
    position: relative;
    padding: 20px;
    background: var(--paper-light);
    border: 1px solid rgba(62, 42, 27, 0.16);
    box-shadow: var(--shadow-floor-tight);
    transform: rotate(0.4deg);
}

.specimen-clipping {
    position: relative;
    margin-bottom: 22px;
}
.halftone-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        radial-gradient(circle, rgba(62,42,27,0.7) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.4px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--shadow-floor-tight);
    filter: sepia(0.4) contrast(1.05);
}
.halftone-inner {
    position: absolute;
    inset: 0;
    background-blend-mode: multiply;
    mix-blend-mode: multiply;
}

/* Themed halftone photo "scenes" — built entirely with gradients */
.halftone-bookshop {
    background:
        linear-gradient(180deg, transparent 50%, rgba(62, 42, 27, 0.55) 50%, rgba(62, 42, 27, 0.55) 70%, rgba(62, 42, 27, 0.3) 100%),
        linear-gradient(0deg, rgba(160, 74, 40, 0.5), rgba(199, 111, 63, 0.3));
}
.halftone-tokyo, .halftone-bookshop {
    position: relative;
}
.halftone-tokyo {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        linear-gradient(135deg, rgba(62,42,27,0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 60%, rgba(62,42,27,0.6) 0 24%, transparent 25%),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.5px);
    background-size: cover, cover, 3px 3px;
    border-radius: 3px;
    filter: sepia(0.5) contrast(1.05);
    box-shadow: var(--shadow-floor-tight);
}
.halftone-tram {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        linear-gradient(0deg, rgba(62,42,27,0.65) 0% 28%, transparent 28%),
        repeating-linear-gradient(90deg, rgba(62,42,27,0.4) 0 20px, rgba(62,42,27,0.2) 20px 40px),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.6px);
    background-size: cover, cover, 3px 3px;
    border-radius: 3px;
    filter: sepia(0.55) contrast(1.05);
    box-shadow: var(--shadow-floor-tight);
}
.halftone-balcony {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(62,42,27,0.55) 0 12%, transparent 13%),
        linear-gradient(180deg, transparent 70%, rgba(62,42,27,0.5) 70%),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.6px);
    background-size: cover, cover, 3px 3px;
    border-radius: 3px;
    filter: sepia(0.5) contrast(1.05);
    box-shadow: var(--shadow-floor-tight);
}
.halftone-letterpress {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        repeating-linear-gradient(45deg, rgba(62,42,27,0.4) 0 8px, transparent 8px 16px),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.6px);
    background-size: cover, 3px 3px;
    border-radius: 3px;
    filter: sepia(0.55) contrast(1.05);
    box-shadow: var(--shadow-floor-tight);
}
.halftone-attic {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        radial-gradient(ellipse at 80% 30%, rgba(62,42,27,0.45) 0 18%, transparent 19%),
        linear-gradient(180deg, rgba(62,42,27,0.2) 0%, rgba(62,42,27,0.55) 100%),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.6px);
    background-size: cover, cover, 3px 3px;
    border-radius: 3px;
    filter: sepia(0.5) contrast(1.05);
    box-shadow: var(--shadow-floor-tight);
}
.halftone-pavilion {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #c9b489;
    background-image:
        radial-gradient(ellipse at 50% 70%, rgba(62,42,27,0.55) 0 24%, transparent 25%),
        linear-gradient(180deg, rgba(62,42,27,0.18) 0%, transparent 60%),
        radial-gradient(circle, rgba(62,42,27,0.5) 1px, transparent 1.6px);
    background-size: cover, cover, 3px 3px;
    border-radius: 3px;
    filter: sepia(0.55) contrast(1.05);
    box-shadow: var(--shadow-floor-tight);
}

.torn-edge {
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: -3px;
    height: 8px;
    background:
        radial-gradient(ellipse 6px 4px at 4px 0, var(--paper-light) 50%, transparent 51%) repeat-x;
    background-size: 9px 8px;
}

.specimen-tag {
    position: absolute;
    top: -36px;
    left: 14px;
    width: 160px;
    height: 64px;
    transform: rotate(-3deg);
}
.specimen-tag svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.specimen-tag .tag-text {
    position: absolute;
    inset: 22px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-typewriter);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--walnut);
}

.specimen-badge {
    position: absolute;
    right: -28px;
    top: 30%;
    width: 130px;
    height: 130px;
    transform: rotate(8deg);
    filter: drop-shadow(var(--shadow-floor-tight));
    cursor: pointer;
    transition: transform 240ms var(--ease-soft);
}
.specimen-badge.is-squish { transform: rotate(8deg) scale(1.03, 0.97); }
.specimen-badge svg { width: 100%; height: 100%; }

.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 19px;
    line-height: 1.45;
    color: var(--walnut);
    max-width: 36ch;
    padding: 18px 14px 8px 14px;
    border-top: 1px dashed var(--brass);
    margin-top: 12px;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.pull-quote .quote-mark {
    font-family: var(--font-balloon);
    font-size: 30px;
    color: var(--terracotta);
    line-height: 0;
    vertical-align: -8px;
    margin: 0 4px;
}
.pull-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-family: var(--font-typewriter);
    font-style: normal;
    color: var(--brass);
    letter-spacing: 0.08em;
}

/* =====================================================
   PILLOW BULLETS
   ===================================================== */

.pillow-list {
    list-style: none;
    margin: 18px 0;
}
.pillow-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    line-height: 1.5;
}
.pillow-list-tight li { padding: 3px 0; font-size: 16px; }
.pillow {
    width: 22px;
    height: 14px;
    overflow: visible;
    transform: translateY(2px);
}

/* =====================================================
   MEZZANINE pull-out blocks
   ===================================================== */

.mezzanine {
    position: relative;
    margin: 60px 4vw 26px 8vw;
    max-width: 580px;
    background: var(--vellum);
    border: 1px solid rgba(62,42,27,0.18);
    padding: 18px 18px 22px 18px;
    box-shadow: 0 28px 36px -16px rgba(160,74,40,0.34);
    transform: translateY(-22px) rotate(-0.6deg);
    z-index: 4;
}
.mezzanine-1 { margin-left: 8vw; }
.mezzanine-2 { margin-left: 28vw; transform: translateY(-22px) rotate(0.5deg); }
.mezzanine-3 { margin-left: 14vw; transform: translateY(-22px) rotate(-0.4deg); }

.mezzanine::before {
    content: "MEZZANINE — pull-out";
    position: absolute;
    top: -14px;
    left: 18px;
    background: var(--brass);
    color: var(--paper-light);
    font-family: var(--font-typewriter);
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 3px 8px;
    border-radius: 2px;
}

.mezzanine-tape {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 110px;
    background: rgba(110, 140, 95, 0.55);
    color: var(--walnut);
    font-family: var(--font-typewriter);
    font-size: 9px;
    text-align: center;
    padding: 3px 6px;
    letter-spacing: 0.14em;
    transform: rotate(8deg);
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.mezzanine-tape-yellow { background: rgba(199, 111, 63, 0.55); }

.mezzanine-content {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 18px;
    align-items: start;
}
.mezzanine-caption {
    font-family: var(--font-typewriter);
    font-size: 12px;
    line-height: 1.55;
    color: var(--walnut);
}
.mezzanine-caption .cap-line { display: block; }
.mezzanine-caption strong {
    font-family: var(--font-caps);
    font-variant: small-caps;
    letter-spacing: 0.16em;
    margin-right: 8px;
    color: var(--brass);
}

.mezzanine-shadow {
    position: absolute;
    bottom: -22px;
    left: 8%;
    width: 84%;
    height: 30px;
    overflow: visible;
    pointer-events: none;
    z-index: -1;
}

/* =====================================================
   MARGINALIA
   ===================================================== */

.marginalia {
    font-family: var(--font-typewriter);
    font-size: 13px;
    line-height: 1.55;
    color: var(--walnut);
    padding: 20px 18px;
    background: rgba(230, 210, 168, 0.5);
    border-left: 3px solid var(--brass);
    transform: rotate(-0.4deg);
    max-width: 28ch;
}
.marginalia p { margin-bottom: 12px; }
.marginalia strong {
    font-family: var(--font-caps);
    font-variant: small-caps;
    letter-spacing: 0.16em;
    color: var(--brick);
    display: block;
    margin-bottom: 6px;
}
.marginalia .x-link {
    color: var(--brick);
    font-style: italic;
}
.marginal-glyph {
    margin-top: 14px;
    width: 90px;
    filter: drop-shadow(var(--shadow-floor-tight));
}
.marginal-glyph svg { width: 100%; height: auto; }

/* errata stub */
.errata-stub {
    padding: 14px 8px;
    background: rgba(248, 239, 220, 0.7);
    border: 1px dashed var(--brass);
    transform: rotate(1.2deg);
    font-family: var(--font-typewriter);
    font-size: 11px;
    line-height: 1.5;
    color: var(--walnut);
}
.errata-stub .postal {
    width: 100%;
    margin-bottom: 10px;
    filter: drop-shadow(var(--shadow-floor-tight));
}
.errata-stub .postal svg { width: 100%; height: auto; }
.errata-stub strong {
    font-family: var(--font-caps);
    font-variant: small-caps;
    letter-spacing: 0.18em;
    color: var(--brick);
}

/* =====================================================
   MIXED-MEDIA SPREAD
   ===================================================== */

.mixed-media-spread {
    position: relative;
    padding: 60px 6vw 80px 6vw;
    z-index: 2;
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper-light) 50%, var(--cream) 100%);
}

.spread-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(34px, 4vw, 56px);
    color: var(--walnut);
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.012em;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-style: italic;
}

.collage {
    position: relative;
    margin-bottom: 80px;
    max-width: 720px;
}
.collage-1 { margin-left: 6vw; transform: rotate(-0.6deg); }
.collage-2 { margin-left: auto; margin-right: 6vw; transform: rotate(0.6deg); }
.collage-3 { margin-left: 12vw; margin-right: auto; transform: rotate(-0.4deg); }

.collage-photo {
    width: 100%;
    aspect-ratio: 5/3;
    box-shadow: var(--shadow-floor);
    border-radius: 3px;
    border: 4px solid var(--paper-light);
    outline: 1px solid rgba(62,42,27,0.22);
}

.collage-inflated {
    position: absolute;
    right: -32px;
    bottom: -36px;
    width: 160px;
    height: 160px;
    z-index: 4;
    filter: drop-shadow(var(--shadow-floor));
    cursor: pointer;
    transition: transform 240ms var(--ease-soft);
}
.collage-inflated.is-squish { transform: scale(1.03, 0.97); }
.collage-inflated svg { width: 100%; height: 100%; }
.collage-inflated-cap { right: auto; left: -32px; bottom: -28px; width: 150px; height: 110px; }
.collage-inflated-pocket { width: 220px; height: 140px; right: -10px; bottom: -42px; }

.collage-caption {
    position: absolute;
    bottom: -54px;
    left: 24px;
    background: var(--paper-light);
    border: 1px solid rgba(62,42,27,0.18);
    padding: 8px 12px;
    transform: rotate(-1.4deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    max-width: 70%;
}
.cap-typewriter {
    font-family: var(--font-typewriter);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--brick);
    display: block;
    margin-bottom: 2px;
}
.cap-body {
    font-family: var(--font-typewriter);
    font-size: 12px;
    line-height: 1.5;
    color: var(--walnut);
}

/* =====================================================
   DIAGRAM (§ III)
   ===================================================== */

.diagram-wide {
    grid-column: 1 / span 12;
    margin: 0 1vw;
    padding: 20px 0;
}
.diagram-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(26px, 2.6vw, 36px);
    color: var(--walnut);
    text-align: center;
    margin-bottom: 24px;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.diagram-canvas {
    background: var(--paper-light);
    border: 1px solid rgba(62, 42, 27, 0.18);
    padding: 20px;
    box-shadow: var(--shadow-floor);
    overflow: hidden;
}
.diagram-svg { width: 100%; height: auto; display: block; }
.diagram-caption {
    margin-top: 18px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    color: var(--walnut);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.diagram-caption em { color: var(--brick); font-weight: 600; }
.diagram-caption strong { color: var(--walnut); font-style: normal; }

/* =====================================================
   LETTERS section
   ===================================================== */

.letters-intro {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--walnut);
    margin: 8px 8vw 36px 8vw;
    max-width: 56ch;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.letters-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 4vw;
}
.letter {
    background: var(--vellum);
    border: 1px solid rgba(62, 42, 27, 0.2);
    padding: 22px 26px;
    box-shadow: var(--shadow-floor-tight);
    font-family: var(--font-typewriter);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--walnut);
}
.letter p em { color: var(--brick); }
.letter-1 { transform: rotate(-0.7deg); }
.letter-2 { transform: rotate(0.5deg); margin-left: 20px; }
.letter-3 { transform: rotate(-0.4deg); margin-right: 24px; }
.letter-4 { transform: rotate(0.4deg); margin-left: 8px; }

.letter-header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--brass);
}
.letter-from {
    font-family: var(--font-caps);
    font-variant: small-caps;
    letter-spacing: 0.14em;
    font-size: 14px;
    color: var(--brick);
}
.letter-postmark {
    font-family: var(--font-typewriter);
    font-size: 11px;
    color: var(--brass);
    letter-spacing: 0.1em;
}

/* =====================================================
   ERRATA section
   ===================================================== */

.errata-section {
    padding-bottom: 60px;
}
.errata-h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    font-size: 22px;
    color: var(--brick);
    margin-bottom: 14px;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.ack-list p {
    margin-bottom: 14px;
    max-width: 56ch;
}
.errata-stamp {
    margin-top: 22px;
    width: 240px;
    transform: rotate(-2deg);
    filter: drop-shadow(var(--shadow-floor-tight));
}
.errata-stamp svg { width: 100%; height: auto; }

/* =====================================================
   COLOPHON
   ===================================================== */

.colophon {
    position: relative;
    background: var(--vellum);
    padding: 0 6vw 60px 6vw;
    z-index: 2;
}
.colophon-inner {
    display: grid;
    grid-template-columns: 130px 1fr 240px;
    gap: 36px;
    align-items: center;
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.colophon-mark {
    width: 120px;
    height: 120px;
    filter: drop-shadow(var(--shadow-floor));
    cursor: pointer;
    transition: transform 240ms var(--ease-soft);
}
.colophon-mark.is-squish { transform: scale(1.03, 0.97); }
.colophon-mark svg { width: 100%; height: 100%; }

.colophon-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--walnut);
}
.colophon-text strong {
    font-family: var(--font-balloon);
    color: var(--terracotta);
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0.04em;
}
.colophon-text em { color: var(--brick); font-style: italic; }
.colophon-meta {
    margin-top: 14px;
    font-family: var(--font-typewriter);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--brass);
}

.bulletin-tag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bulletin-tag {
    position: relative;
    width: 220px;
    height: 80px;
    display: block;
    cursor: pointer;
    border: 0;
    transform-origin: 50% 0;
    transition: transform 480ms var(--ease-settle);
    filter: drop-shadow(var(--shadow-floor-tight));
}
.bulletin-tag:hover { transform: rotate(2deg) scale(1.04); }
.bulletin-tag svg { width: 100%; height: 100%; overflow: visible; }
.bulletin-text {
    position: absolute;
    inset: 22px 0 0 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-typewriter);
    color: var(--walnut);
    pointer-events: none;
}
.bulletin-line-1 { font-size: 11px; letter-spacing: 0.18em; }
.bulletin-line-2 { font-size: 13px; letter-spacing: 0.16em; font-weight: bold; color: var(--brick); }
.bulletin-aside {
    font-family: var(--font-typewriter);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--brass);
    text-align: center;
    max-width: 220px;
    line-height: 1.5;
}

.printers-mark {
    margin-top: 50px;
    text-align: center;
    font-family: var(--font-caps);
    font-variant: small-caps;
    letter-spacing: 0.24em;
    font-size: 12px;
    color: var(--brass);
    border-top: 1px dashed var(--brass);
    padding-top: 18px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   RESPONSIVE — gentle, not hard breakpoints
   ===================================================== */

@media (max-width: 980px) {
    .masthead { min-height: 64vh; }
    .big-two-stage { right: 4vw; top: 32vh; width: 36vw; }
    .grid-7-4 .col-7,
    .grid-7-4 .col-4 { grid-column: 1 / span 12; margin-left: 0; }
    .grid-3-7-2 .col-3,
    .grid-3-7-2 .col-7,
    .grid-3-7-2 .col-2 { grid-column: 1 / span 12; padding-top: 0; margin: 0 0 24px 0; }
    .grid-6-6 .col-6:nth-child(1),
    .grid-6-6 .col-6:nth-child(2) { grid-column: 1 / span 12; padding: 0; }
    .specimen-badge { right: 6px; top: 12px; width: 96px; height: 96px; }
    .colophon-inner { grid-template-columns: 1fr; }
    .colophon-mark { margin: 0 auto; }
    .bulletin-tag-wrap { margin: 0 auto; }
    .marginalia { max-width: none; }
    .mezzanine-2, .mezzanine-3 { margin-left: 6vw; }
    .directory-plate { right: 4vw; }
}

@media (max-width: 640px) {
    .masthead { padding: 22px 4vw 0 4vw; }
    .masthead-inner { grid-template-columns: 1fr; }
    .staircase-button { grid-column: 1; grid-row: 3; flex-direction: row; margin-top: 8px; }
    .staircase-svg { width: 60px; }
    .bolster-wrap { height: 92px; }
    .wordmark { font-size: clamp(1.2rem, 6vw, 2rem); padding: 0 14px; gap: 10px; }
    .big-two-stage { position: relative; right: auto; top: auto; width: 70vw; margin: 22px auto 0 auto; }
    .editors-note { padding: 36px 6vw; }
    .dropcap-wrap { width: 70px; height: 70px; }
    .dropcap { font-size: 70px; }
    .dropcap-shadow { width: 86px; }
    .article-section { padding: 22px 4vw 60px 4vw; }
    .section-numeral { flex-wrap: wrap; gap: 8px; margin-left: 0; }
    .collage-inflated { right: -8px; bottom: -22px; width: 90px; height: 90px; }
    .collage-inflated-cap { left: -8px; width: 90px; height: 70px; }
    .collage-inflated-pocket { width: 130px; height: 90px; }
    .letters-stack { padding: 0 2vw; }
    .letter-1, .letter-2, .letter-3, .letter-4 { transform: none; margin: 0; }
}
