/* =========================================================
   PPUZZL.org (v2) — The Specimen Drawer
   palette: Vellum Oxblood / Cream Parchment / Ochre Sun
   typography: Fraunces (display) / Cormorant Garamond (body) / JetBrains Mono (meta)
   ========================================================= */

:root {
    --vellum-oxblood: #1B1A24;
    --cream-parchment: #F4E7CE;
    --ochre-sun: #E8AA45;

    --cream-glass: rgba(244, 231, 206, 0.92);
    --cream-frost: rgba(232, 219, 184, 0.32);
    --ink-hair: rgba(27, 26, 36, 0.20);

    --gutter: clamp(48px, 9vw, 180px);
    --gap: 28px;

    --serif-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --serif-body: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
    --mono: 'JetBrains Mono', 'Menlo', monospace;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    background: var(--vellum-oxblood);
    color: var(--cream-parchment);
    font-family: var(--serif-body);
    font-feature-settings: 'liga' on, 'kern' on, 'onum' on;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    cursor: none;
    min-height: 100vh;
    position: relative;
}

/* parchment grain noise overlay (filter ref) */
.parchment-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    filter: url(#grain);
    background: var(--cream-parchment);
    mix-blend-mode: overlay;
}

.bg-noise {
    position: fixed;
    width: 0;
    height: 0;
}

/* =========================================================
   FLEUR-DE-LYS CURSOR
   ========================================================= */
.cursor-fleur {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    color: var(--ochre-sun);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    transform: translate3d(-100px, -100px, 0) rotate(0deg);
    transition: opacity 0.35s ease, color 0.35s ease;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.cursor-fleur.over-card {
    opacity: 1;
}

/* =========================================================
   FLOATING ORNAMENTS (parallax)
   ========================================================= */
.ornaments {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.orn {
    position: absolute;
    color: var(--ochre-sun);
    opacity: 0;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    animation: ornAppear 1.6s ease-out forwards;
    animation-delay: 1.6s;
}

@keyframes ornAppear {
    to { opacity: 0.32; }
}

.orn-num {
    font-family: var(--serif-display);
    font-size: clamp(36px, 5vw, 78px);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.04em;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 320;
}

.orn-key, .orn-labyrinth, .orn-hourglass, .orn-leaf {
    opacity: 0;
    animation: ornAppearLeaf 1.8s ease-out forwards;
    animation-delay: 1.6s;
}

@keyframes ornAppearLeaf {
    to { opacity: 0.40; }
}

.orn-rule {
    animation: ornAppearRule 2.2s ease-out forwards;
    animation-delay: 2s;
}

@keyframes ornAppearRule {
    to { opacity: 0.45; }
}

/* idle drift */
.orn-num { animation: ornAppear 1.6s ease-out forwards, drift-a 13s ease-in-out infinite 2s; }
.orn-key { animation: ornAppearLeaf 1.8s ease-out forwards, drift-b 17s ease-in-out infinite 2s; }
.orn-labyrinth { animation: ornAppearLeaf 1.8s ease-out forwards, drift-c 15s ease-in-out infinite 2s; }
.orn-hourglass { animation: ornAppearLeaf 1.8s ease-out forwards, drift-a 18s ease-in-out infinite 2s; }
.orn-leaf { animation: ornAppearLeaf 1.8s ease-out forwards, drift-c 14s ease-in-out infinite 2s; }

@keyframes drift-a {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(6px, -8px, 0); }
}

@keyframes drift-b {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-8px, 6px, 0); }
}

@keyframes drift-c {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(4px, 10px, 0); }
}

/* =========================================================
   CHARTER PLATE (Section 1 — 100vh)
   ========================================================= */
.charter-plate {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    z-index: 3;
}

.opening-rule {
    position: absolute;
    top: 30%;
    left: 6%;
    right: 6%;
    height: 2px;
    width: 88%;
}

.opening-rule .rule-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawRule 0.7s ease-out 0.2s forwards;
}

@keyframes drawRule {
    to { stroke-dashoffset: 0; }
}

.charter-plaque {
    position: relative;
    text-align: center;
    padding: clamp(60px, 9vw, 130px) clamp(40px, 6vw, 80px);
    animation: plaqueDrift 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes plaqueDrift {
    0%, 100% { transform: translate3d(0, -6px, 0) rotate(-0.3deg); }
    50% { transform: translate3d(0, 6px, 0) rotate(0.3deg); }
}

.cartouche {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    animation: cartoucheAppear 0.9s ease-out 2.2s forwards;
}

.cartouche-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawRule 0.9s ease-out 2.2s forwards;
}

@keyframes cartoucheAppear {
    to { opacity: 1; }
}

.cartouche::after {
    content: '';
    position: absolute;
    inset: 16px;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(232, 170, 69, 0.045) 0%, transparent 70%);
    animation: cartoucheGlow 9s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cartoucheGlow {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.32; }
}

.wordmark {
    font-family: var(--serif-display);
    font-size: clamp(72px, 12vw, 220px);
    font-weight: 400;
    line-height: 0.92;
    color: var(--cream-parchment);
    letter-spacing: -0.02em;
    opacity: 0;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 240;
    animation: wordmarkFade 0.8s ease-out 0.9s forwards, wordmarkSwell 1.1s ease-out 0.9s forwards;
    margin-bottom: 0.4em;
    will-change: opacity, font-variation-settings;
}

@keyframes wordmarkFade {
    to { opacity: 1; }
}

@keyframes wordmarkSwell {
    0% { font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 240; }
    100% { font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 580; }
}

.wordmark-dot {
    color: var(--ochre-sun);
}

.wordmark-tld {
    font-style: italic;
    font-size: 0.62em;
    letter-spacing: 0;
    color: var(--cream-parchment);
    opacity: 0.85;
}

.volume-mark {
    font-family: var(--mono);
    font-size: clamp(11px, 1.2vw, 16px);
    letter-spacing: 0.42em;
    color: var(--ochre-sun);
    margin-top: 0.3em;
    min-height: 1.2em;
}

.volume-mark .vm-letter {
    display: inline-block;
    opacity: 0;
}

.charter-subline {
    font-family: var(--serif-body);
    font-style: italic;
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--cream-parchment);
    opacity: 0;
    margin-top: 2em;
    letter-spacing: 0.06em;
    animation: wordmarkFade 1s ease-out 2.6s forwards;
}

.charter-corner {
    position: absolute;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--cream-parchment);
    opacity: 0;
    animation: wordmarkFade 1.2s ease-out 2.4s forwards;
}

.charter-corner.top-left      { top: 32px; left: var(--gutter); opacity: 0; }
.charter-corner.top-right     { top: 32px; right: var(--gutter); }
.charter-corner.bottom-left   { bottom: 32px; left: var(--gutter); }
.charter-corner.bottom-right  { bottom: 32px; right: var(--gutter); }

.charter-corner { opacity: 0; animation: wordmarkFade 1.2s ease-out 2.6s forwards; }

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section {
    position: relative;
    padding: 18vh var(--gutter) 8vh;
    z-index: 3;
}

.section-head {
    margin-bottom: 9vh;
    max-width: 880px;
    position: relative;
}

.section-folio {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.42em;
    color: var(--ochre-sun);
    display: block;
    margin-bottom: 1.4em;
}

.section-title {
    font-family: var(--serif-display);
    font-size: clamp(48px, 7vw, 120px);
    font-weight: 400;
    line-height: 1.0;
    color: var(--cream-parchment);
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 420;
    margin-bottom: 0.6em;
    will-change: font-variation-settings;
}

.section-lede {
    font-family: var(--serif-body);
    font-style: italic;
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--cream-parchment);
    opacity: 0.78;
    max-width: 640px;
    line-height: 1.55;
}

/* page-turn divider */
.page-turn {
    width: 100%;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.page-turn svg {
    width: clamp(320px, 50vw, 600px);
    height: auto;
}

.pt-rule, .pt-quat {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.page-turn.in-view .pt-rule {
    animation: drawRule 1.2s ease-out forwards;
}
.page-turn.in-view .pt-quat {
    animation: drawRule 0.8s ease-out 0.5s forwards;
}

/* =========================================================
   GLASS DRAWER (the unit)
   ========================================================= */
.spec-drawer,
.color-plate,
.spec-tile,
.colophon-card {
    position: relative;
    background: var(--cream-glass);
    color: var(--vellum-oxblood);
    box-shadow:
        0 28px 80px -20px rgba(27, 26, 36, 0.55),
        0 6px 18px -6px rgba(27, 26, 36, 0.38),
        inset 0 0 0 0.5px rgba(27, 26, 36, 0.20);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    clip-path: polygon(
        2% 0.6%, 18% 0%, 35% 0.4%, 52% 0%, 70% 0.5%, 85% 0%, 99% 1%,
        100% 18%, 99.5% 36%, 100% 54%, 99.4% 72%, 100% 88%, 99% 99%,
        85% 100%, 70% 99.4%, 52% 100%, 35% 99.6%, 18% 100%, 2% 99.5%, 0.5% 88%,
        0% 70%, 0.5% 52%, 0% 34%, 0.6% 18%, 0% 4%
    );
    cursor: none;
}

.drawer-frost {
    position: absolute;
    inset: 0;
    background: var(--cream-frost);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);
    pointer-events: none;
    transition: backdrop-filter 0.2s ease;
}

.drawer-bevel {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            rgba(232, 170, 69, 0.18) 0%,
            rgba(232, 170, 69, 0.05) 12%,
            transparent 30%),
        linear-gradient(180deg,
            rgba(232, 170, 69, 0.14) 0%,
            transparent 8%);
    background-size: 200% 200%;
    animation: bevelShimmer 14s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes bevelShimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 6% 6%; }
}

.spec-drawer:hover,
.color-plate:hover,
.colophon-card:hover {
    transform: translate3d(0, -2px, 0) translateZ(24px);
    box-shadow:
        0 36px 110px -16px rgba(27, 26, 36, 0.62),
        0 10px 26px -8px rgba(27, 26, 36, 0.44),
        inset 0 0 0 0.5px rgba(27, 26, 36, 0.22);
}

.spec-drawer:hover .drawer-frost,
.color-plate:hover .drawer-frost,
.colophon-card:hover .drawer-frost {
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.spec-drawer:hover .drawer-bevel,
.color-plate:hover .drawer-bevel,
.colophon-card:hover .drawer-bevel {
    background:
        linear-gradient(135deg,
            rgba(232, 170, 69, 0.34) 0%,
            rgba(232, 170, 69, 0.09) 12%,
            transparent 30%),
        linear-gradient(180deg,
            rgba(232, 170, 69, 0.24) 0%,
            transparent 8%);
}

/* drawer entrance animation (set by JS via .in-view) */
.spec-drawer,
.color-plate,
.colophon-card {
    opacity: 0;
    transform: perspective(800px) translate3d(0, 0, -120px) rotateX(-8deg);
}

.spec-drawer.in-view,
.color-plate.in-view,
.colophon-card.in-view {
    opacity: 1;
    transform: perspective(800px) translate3d(0, 0, 0) rotateX(0deg);
}

/* =========================================================
   INDEX DRAWER GRID
   ========================================================= */
.drawer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.9fr 1.3fr;
    gap: var(--gap);
    align-items: start;
    perspective: 1200px;
}

.drawer-grid .span-2 { grid-column: span 2; }
.drawer-grid .span-3 { grid-column: span 3; }

.spec-drawer {
    min-height: 230px;
    padding: 0;
}

.drawer-body {
    position: relative;
    padding: 28px 30px 26px;
    z-index: 2;
}

.cat-code {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--vellum-oxblood);
    opacity: 0.72;
    display: block;
    margin-bottom: 1.2em;
}

.drawer-title {
    font-family: var(--serif-display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    color: var(--vellum-oxblood);
    line-height: 1.05;
    margin-bottom: 0.5em;
    font-variation-settings: 'opsz' 60, 'SOFT' 100, 'WONK' 1, 'wght' 460;
    letter-spacing: -0.01em;
}

.drawer-prov {
    font-family: var(--serif-body);
    font-style: italic;
    font-size: 16px;
    color: var(--vellum-oxblood);
    opacity: 0.86;
    margin-bottom: 1.4em;
    line-height: 1.4;
}

.drawer-meta {
    font-family: var(--serif-body);
    font-size: 13px;
    color: var(--vellum-oxblood);
    opacity: 0.62;
    display: block;
    letter-spacing: 0.02em;
}

.oldfig {
    font-feature-settings: 'onum' on;
}

.drawer-emblem {
    position: absolute;
    top: 24px;
    right: 26px;
    color: var(--vellum-oxblood);
    opacity: 0.45;
}

/* staggered z-offsets per drawer */
.drawer-1  { transform: translateY(0px); }
.drawer-2  { transform: translateY(20px); }
.drawer-3  { transform: translateY(-12px); }
.drawer-4  { transform: translateY(36px); }
.drawer-5  { transform: translateY(-8px); }
.drawer-6  { transform: translateY(28px); }
.drawer-7  { transform: translateY(8px); }
.drawer-8  { transform: translateY(-20px); }
.drawer-9  { transform: translateY(40px); }
.drawer-10 { transform: translateY(-4px); }
.drawer-11 { transform: translateY(16px); }
.drawer-12 { transform: translateY(-12px); }

/* =========================================================
   COLOR PLATES
   ========================================================= */
.color-plates {
    padding-bottom: 4vh;
}

.color-plate {
    width: 70%;
    margin: 0 auto 240px;
    min-height: 380px;
    padding: 0;
}

.color-plate:last-of-type {
    margin-bottom: 0;
}

.plate-inner {
    position: relative;
    z-index: 2;
    padding: clamp(40px, 5vw, 72px);
}

.plate-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 28px;
}

.drop-cap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.drop-cap .dc-ink {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.color-plate.in-view .drop-cap .dc-ink {
    animation: drawRule 1.6s ease-out forwards;
}

.plate-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--vellum-oxblood);
    opacity: 0.6;
    display: block;
    margin-bottom: 0.8em;
}

.plate-title {
    font-family: var(--serif-display);
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 400;
    color: var(--vellum-oxblood);
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 480;
    will-change: font-variation-settings;
}

.plate-quote {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: clamp(20px, 2vw, 28px);
    color: var(--vellum-oxblood);
    opacity: 0.85;
    line-height: 1.3;
    margin: 1.2em 0 1.8em;
    padding-left: 1.4em;
    border-left: 1px solid var(--ochre-sun);
    font-variation-settings: 'opsz' 36, 'SOFT' 80, 'wght' 400;
}

.plate-columns {
    column-count: 2;
    column-gap: 48px;
}

.plate-body {
    font-family: var(--serif-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--vellum-oxblood);
    margin-bottom: 1.2em;
    break-inside: avoid-column;
}

.plate-drop {
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: 3.2em;
    line-height: 0.9;
    float: left;
    margin: 0.06em 0.12em 0 0;
    color: var(--ochre-sun);
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 620;
}

.plate-folio-mark {
    display: block;
    text-align: center;
    margin-top: 2.4em;
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 14px;
    color: var(--vellum-oxblood);
    opacity: 0.5;
    letter-spacing: 0.3em;
}

/* =========================================================
   SPECIMEN WALL — 5 column dense grid
   ========================================================= */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    perspective: 1200px;
}

.spec-tile {
    min-height: 168px;
    padding: 0;
    cursor: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    opacity: 0;
    transform: perspective(800px) translate3d(0, 0, -120px) rotateX(-8deg);
}

.spec-tile.in-view {
    opacity: 1;
    transform: perspective(800px) translate3d(0, 0, 0) rotateX(0deg);
}

.spec-tile:hover {
    transform: translate3d(0, -2px, 0) translateZ(24px);
    box-shadow:
        0 36px 110px -16px rgba(27, 26, 36, 0.62),
        0 10px 26px -8px rgba(27, 26, 36, 0.44);
}

.spec-tile:hover .drawer-bevel {
    background:
        linear-gradient(135deg,
            rgba(232, 170, 69, 0.34) 0%,
            rgba(232, 170, 69, 0.09) 12%,
            transparent 30%),
        linear-gradient(180deg,
            rgba(232, 170, 69, 0.24) 0%,
            transparent 8%);
}

.spec-tile:hover .drawer-frost {
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.tile-body {
    position: relative;
    z-index: 2;
    padding: 18px 18px 16px;
}

.tile-cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--vellum-oxblood);
    opacity: 0.7;
    display: block;
    margin-bottom: 0.8em;
}

.tile-cat .tile-underline {
    display: block;
    width: 0%;
    height: 1px;
    background: var(--ochre-sun);
    margin-top: 4px;
    transition: width 0.2s ease-out;
}

.spec-tile:hover .tile-underline {
    width: 60%;
}

.tile-title {
    font-family: var(--serif-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--vellum-oxblood);
    line-height: 1.1;
    margin-bottom: 0.5em;
    font-variation-settings: 'opsz' 36, 'SOFT' 80, 'wght' 440;
}

.tile-prov {
    font-family: var(--serif-body);
    font-style: italic;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--vellum-oxblood);
    opacity: 0.78;
    margin-bottom: 0.4em;
}

.tile-year {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--vellum-oxblood);
    opacity: 0.55;
    display: block;
}

.tile-emblem {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--vellum-oxblood);
    opacity: 0.42;
}

/* hover overlay metadata */
.tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(244, 231, 206, 0.74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--vellum-oxblood);
    padding: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: var(--serif-body);
    font-size: 12.5px;
    line-height: 1.45;
    font-style: italic;
}

.tile-overlay .ovl-label {
    font-family: var(--mono);
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: 0.22em;
    color: var(--ochre-sun);
    display: block;
    margin-bottom: 0.5em;
}

.spec-tile:hover .tile-overlay {
    opacity: 1;
}

/* =========================================================
   COLOPHON DRAWER
   ========================================================= */
.colophon-drawer {
    padding: 18vh var(--gutter) 14vh;
    min-height: 40vh;
}

.colophon-card {
    padding: 0;
    min-height: 40vh;
}

.colophon-inner {
    position: relative;
    z-index: 2;
    padding: clamp(36px, 5vw, 70px);
}

.colophon-head {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 2.2em;
    padding-bottom: 1.6em;
    border-bottom: 0.5px solid rgba(27, 26, 36, 0.22);
}

.seal {
    flex-shrink: 0;
}

.colophon-title {
    font-family: var(--serif-display);
    font-size: clamp(36px, 5vw, 64px);
    color: var(--vellum-oxblood);
    line-height: 1;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1, 'wght' 460;
    letter-spacing: -0.01em;
    will-change: font-variation-settings;
}

.colophon-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 56px;
}

.col-block {
    color: var(--vellum-oxblood);
    font-family: var(--serif-body);
    font-size: 15px;
    line-height: 1.55;
}

.col-block p {
    margin-bottom: 0.8em;
}

.col-label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.32em;
    color: var(--ochre-sun);
    display: block;
    margin-bottom: 0.9em;
    margin-top: 1.2em;
}

.col-block:first-child .col-label,
.col-block .col-label:first-child {
    margin-top: 0;
}

.col-list {
    list-style: none;
    font-size: 14px;
    line-height: 1.7;
}

.col-list.serif li {
    font-family: var(--serif-body);
    font-size: 15px;
}

.col-list li em {
    font-family: var(--serif-body);
    font-style: italic;
    color: var(--vellum-oxblood);
    opacity: 0.65;
    font-size: 0.92em;
}

.col-mono {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--vellum-oxblood);
}

.colophon-foot {
    margin-top: 3em;
    padding-top: 1.4em;
    border-top: 0.5px solid rgba(27, 26, 36, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.colophon-foot .col-mono {
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--vellum-oxblood);
    opacity: 0.7;
}

/* =========================================================
   PAGE HANDLES (lower outer corners)
   ========================================================= */
.page-handle {
    position: fixed;
    bottom: 32px;
    width: 32px;
    height: 64px;
    color: var(--ochre-sun);
    opacity: 0.42;
    z-index: 10;
    cursor: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-handle:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.page-handle.handle-left { left: 24px; }
.page-handle.handle-right { right: 24px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    :root { --gutter: clamp(28px, 5vw, 64px); }

    .drawer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .drawer-grid .span-2 { grid-column: span 2; }
    .drawer-grid .span-3 { grid-column: span 2; }

    .wall-grid { grid-template-columns: repeat(3, 1fr); }

    .color-plate { width: 88%; margin-bottom: 160px; }
    .plate-columns { column-count: 1; }

    .colophon-cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
    body { cursor: auto; }
    .cursor-fleur { display: none; }
    .page-handle { display: none; }

    .drawer-grid { grid-template-columns: 1fr; }
    .drawer-grid .span-2, .drawer-grid .span-3 { grid-column: span 1; }

    .wall-grid { grid-template-columns: repeat(2, 1fr); }

    .color-plate { width: 94%; margin-bottom: 120px; }
    .plate-header { flex-direction: column; gap: 12px; }
    .drop-cap { width: 80px; height: 80px; }

    .charter-corner { font-size: 9px; letter-spacing: 0.22em; }
    .charter-corner.top-left, .charter-corner.top-right { top: 18px; }
    .charter-corner.bottom-left, .charter-corner.bottom-right { bottom: 18px; }
}
