/* ================================================
   adhoc.quest - Styles
   Wabi-sabi meets punk rebellion
   A naturalist's broken-grid journal
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Palette */
    --aged-parchment: #F0EBE1;
    --shibori-night: #1A2744;
    --rain-glass: #7BA7C2;
    --broken-kiln: #D4654A;
    --cracked-glaze: #3D5A6E;
    --pressed-leaf: #5A7C5E;
    --morning-fog: #C8D6DF;
    --studio-dark: #1C1C1F;

    /* Typography */
    --font-headline: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-handwritten: 'Caveat', cursive;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Grid / Layout */
    --grid-columns: 12;
    --wabi-entropy: 0;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--shibori-night);
    background-color: var(--aged-parchment);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Paper Grain Overlay --- */
.paper-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
    mix-blend-mode: multiply;
}

/* --- Ink Blots --- */
.ink-blot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ink-blot-1 {
    width: 300px;
    height: 280px;
    top: 15vh;
    left: 70%;
    background: radial-gradient(ellipse at 45% 55%, var(--shibori-night) 0%, transparent 70%);
    opacity: 0.05;
    transform: rotate(15deg);
}

.ink-blot-2 {
    width: 250px;
    height: 320px;
    top: 180vh;
    left: 5%;
    background: radial-gradient(ellipse at 60% 40%, var(--shibori-night) 0%, transparent 65%);
    opacity: 0.06;
    transform: rotate(-25deg);
}

.ink-blot-3 {
    width: 350px;
    height: 280px;
    top: 380vh;
    left: 55%;
    background: radial-gradient(ellipse at 50% 50%, var(--shibori-night) 0%, transparent 60%);
    opacity: 0.04;
    transform: rotate(40deg);
}

.ink-blot-4 {
    width: 200px;
    height: 260px;
    top: 560vh;
    left: 20%;
    background: radial-gradient(ellipse at 55% 45%, var(--shibori-night) 0%, transparent 68%);
    opacity: 0.07;
    transform: rotate(-10deg);
}

/* --- Crack Overlay --- */
.crack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.crack-lines path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.crack-lines.animated path {
    animation: crack-draw 2.5s ease-out forwards;
}

@keyframes crack-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Navigation: Cloud Formation --- */
.nav-cloud {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 24px;
    width: 320px;
    height: 100px;
}

.nav-link {
    position: absolute;
    top: var(--nav-y, 30px);
    left: var(--nav-x, 20px);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--cracked-glaze);
    text-decoration: none;
    transition: color 200ms ease, transform 150ms ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--broken-kiln);
    transform: translate(
        calc((var(--nav-x, 0px) * 0.02) - 2px),
        calc((var(--nav-y, 0px) * 0.02) - 1px)
    );
}

/* Nav on dark sections */
body .nav-cloud.nav-inverted .nav-link {
    color: var(--morning-fog);
}

body .nav-cloud.nav-inverted .nav-link:hover {
    color: var(--broken-kiln);
}

/* --- Fade Reveal (primary animation pattern) --- */
.fade-reveal {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.fade-reveal.revealed {
    opacity: 1;
}

/* --- Annotations --- */
.annotation {
    position: absolute;
    z-index: 10;
    transform: rotate(var(--rotate-offset, 0deg));
}

.annotation.fade-reveal {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform: rotate(calc(var(--rotate-offset, 0deg) - 2deg));
}

.annotation.fade-reveal.revealed {
    transform: rotate(var(--rotate-offset, 0deg));
}

.caveat-text {
    font-family: var(--font-handwritten);
    font-size: 20px;
    color: var(--broken-kiln);
    line-height: 1.4;
}

.struck {
    text-decoration: line-through;
    text-decoration-color: var(--broken-kiln);
    text-decoration-thickness: 2px;
    opacity: 0.6;
}

.correction {
    font-weight: 700;
}

.annotation-arrow {
    display: block;
    margin-top: 4px;
}

/* --- Content Blocks (Broken Grid) --- */
.content-block {
    position: relative;
    z-index: 5;
    transform: rotate(var(--rotate-offset, 0deg));
    margin-top: var(--overlap, 0px);
    padding: 32px 40px;
    clip-path: polygon(
        1% 0%,
        99% 1%,
        100% 98%,
        2% 100%
    );
}

.block-heading {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--shibori-night);
    margin-bottom: 1.2em;
}

.block-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--shibori-night);
    margin-bottom: 1.8em;
    max-width: 600px;
}

.block-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--cracked-glaze);
    margin-top: 1em;
}

/* ================================================
   SECTION 1: OPENING
   ================================================ */
.section-opening {
    position: relative;
    min-height: 100vh;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 0;
    overflow: visible;
}

/* Hero fish - columns 2-9, rotated */
.fish-hero {
    grid-column: 2 / 9;
    grid-row: 1;
    width: 100%;
    max-width: 600px;
    height: auto;
    transform: rotate(1.2deg);
    margin-top: 8vh;
    justify-self: center;
    position: relative;
    z-index: 5;
}

/* Hero title - overlapping fish tail area */
.hero-title-block {
    grid-column: 2 / 8;
    grid-row: 1;
    align-self: end;
    margin-bottom: -30px;
    margin-left: -20px;
    position: relative;
    z-index: 10;
    transform: rotate(-0.5deg);
}

.hero-title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: clamp(2.6rem, 6.5vw, 5.5rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--shibori-night);
}

.hero-dot {
    color: var(--broken-kiln);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--cracked-glaze);
    margin-top: 0.5em;
    margin-left: 4px;
}

/* Annotation in opening */
.annotation-hero {
    grid-column: 7 / 11;
    grid-row: 1;
    align-self: end;
    margin-bottom: 40px;
    right: var(--x-offset, 0);
}

/* Orphaned botanical - upper right void */
.botanical-orphan {
    position: absolute;
    top: 30px;
    right: 80px;
    width: 100px;
    height: auto;
    opacity: 0.7;
    transform: rotate(-3deg);
    z-index: 3;
}

/* Specimen labels in SVG */
.specimen-label {
    font-family: var(--font-handwritten);
}

/* ================================================
   SECTION 2: FIRST PASSAGE
   ================================================ */
.section-passages {
    position: relative;
    min-height: 150vh;
    padding: 80px 40px 120px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px 16px;
    align-content: start;
}

/* Cool wash background shift */
.section-passages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--morning-fog);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Left-heavy block (columns 1-5) */
.block-left {
    grid-column: 1 / 6;
    background: rgba(240, 235, 225, 0.6);
    margin-left: calc(var(--x-offset, 0px));
}

/* Sea fan botanical */
.botanical-seafan {
    grid-column: 7 / 12;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 300px;
    height: auto;
    justify-self: end;
    transform: rotate(var(--rotate-offset, 0deg));
    margin-right: calc(var(--x-offset, 0px));
    position: relative;
    z-index: 4;
}

/* Passage annotation 1 */
.annotation-passage-1 {
    grid-column: 7 / 12;
    grid-row: 2;
    align-self: start;
    left: var(--x-offset, 0);
    margin-top: -20px;
}

/* Right-heavy block (columns 7-12) */
.block-right {
    grid-column: 7 / 13;
    background: rgba(240, 235, 225, 0.6);
    margin-left: calc(var(--x-offset, 0px));
}

/* Medium fish: Mandarin */
.fish-mandarin {
    grid-column: 1 / 5;
    width: 100%;
    max-width: 200px;
    height: auto;
    justify-self: start;
    margin-left: 20px;
    transform: rotate(var(--rotate-offset, 0deg));
    z-index: 4;
}

/* Left block 2 */
.block-left-2 {
    grid-column: 1 / 7;
    background: rgba(240, 235, 225, 0.6);
    margin-left: calc(var(--x-offset, 0px));
}

/* Pressed leaf botanical */
.botanical-leaf {
    grid-column: 8 / 12;
    width: 100%;
    max-width: 220px;
    height: auto;
    justify-self: end;
    transform: rotate(var(--rotate-offset, 0deg));
    z-index: 4;
}

/* Passage annotation 2 (with strikethrough) */
.annotation-passage-2 {
    grid-column: 1 / 6;
    left: var(--x-offset, 0);
    margin-top: -10px;
}

/* ================================================
   SECTION 3: SPECIMEN GALLERY
   ================================================ */
.section-gallery {
    position: relative;
    min-height: 150vh;
    padding: 100px 40px 120px;
    overflow: visible;
}

.gallery-title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--shibori-night);
    margin-bottom: 10px;
    transform: rotate(-0.5deg);
    margin-left: 8%;
}

.gallery-annotation {
    position: relative;
    margin-left: 8%;
    margin-bottom: 60px;
}

/* Taxonomy lines */
.taxonomy-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Specimen Cards - scattered layout */
.specimen-card {
    position: relative;
    display: inline-block;
    background: rgba(240, 235, 225, 0.7);
    padding: 30px 28px 20px;
    margin-bottom: 40px;
    z-index: 5;
    transform: rotate(var(--rotate-offset, 0deg)) translateX(var(--x-offset, 0px));
    clip-path: polygon(0% 1%, 99% 0%, 100% 99%, 1% 100%);
}

.fish-specimen {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.specimen-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid rgba(61, 90, 110, 0.2);
}

.specimen-name {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 16px;
    color: var(--shibori-night);
}

.specimen-common {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--shibori-night);
}

.specimen-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cracked-glaze);
    margin-top: 4px;
}

.specimen-note {
    position: relative;
    margin-top: 12px;
}

.specimen-note .caveat-text {
    font-size: 18px;
}

/* Scattered card positions */
.specimen-card-1 {
    width: 42%;
    max-width: 480px;
    margin-left: 5%;
}

.specimen-card-2 {
    width: 40%;
    max-width: 460px;
    margin-left: 50%;
    margin-top: -60px;
}

.specimen-card-3 {
    width: 45%;
    max-width: 500px;
    margin-left: 15%;
    margin-top: -30px;
}

.specimen-card-4 {
    width: 38%;
    max-width: 440px;
    margin-left: 55%;
    margin-top: -50px;
}

/* Small inline fish ornaments */
.fish-small {
    width: 50px;
    height: auto;
    position: absolute;
    z-index: 6;
}

.fish-ornament-1 {
    bottom: 25%;
    left: 48%;
    transform: rotate(12deg);
}

.fish-ornament-2 {
    bottom: 45%;
    right: 8%;
    transform: rotate(-8deg) scaleX(-1);
}

/* ================================================
   SECTION 4: DEEP SECTION (Dark)
   ================================================ */
.section-deep {
    position: relative;
    min-height: 150vh;
    padding: 100px 40px 120px;
    background-color: var(--shibori-night);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px 16px;
    align-content: start;
    overflow: visible;
}

.section-deep .block-heading {
    color: var(--aged-parchment);
}

.section-deep .block-body {
    color: var(--aged-parchment);
    opacity: 0.92;
}

.section-deep .block-meta {
    color: var(--rain-glass);
}

.section-deep .caveat-text {
    color: var(--broken-kiln);
    opacity: 0.85;
}

/* Deep blocks layout */
.block-deep-1 {
    grid-column: 1 / 7;
    margin-left: calc(var(--x-offset, 0px));
}

.botanical-deep-kelp {
    grid-column: 8 / 12;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 180px;
    height: auto;
    justify-self: center;
    transform: rotate(var(--rotate-offset, 0deg));
    z-index: 4;
}

.block-deep-2 {
    grid-column: 6 / 13;
    margin-left: calc(var(--x-offset, 0px));
}

.fish-deep-idol {
    grid-column: 1 / 6;
    width: 100%;
    max-width: 280px;
    height: auto;
    justify-self: start;
    margin-left: 30px;
    transform: rotate(var(--rotate-offset, 0deg));
    z-index: 4;
}

.annotation-deep {
    grid-column: 6 / 12;
    right: var(--x-offset, 0);
    align-self: start;
}

.block-deep-3 {
    grid-column: 2 / 8;
    margin-left: calc(var(--x-offset, 0px));
}

/* ================================================
   SECTION 5: CLOSING
   ================================================ */
.section-closing {
    position: relative;
    min-height: 100vh;
    padding: 100px 40px 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    overflow: visible;
}

.botanical-closing {
    width: 90%;
    max-width: 650px;
    height: auto;
    transform: rotate(-0.8deg);
    z-index: 4;
}

.annotation-closing {
    position: relative;
    align-self: flex-end;
    margin-right: 10%;
}

.block-closing {
    max-width: 600px;
    text-align: left;
    margin-left: 10%;
    align-self: flex-start;
}

.closing-text {
    font-style: italic;
    max-width: 550px;
}

.closing-meta {
    margin-top: 2em;
}

.fish-closing-ornament {
    position: relative;
    margin-top: 40px;
    opacity: 0.5;
}

/* ================================================
   FISH SWIMMING ANIMATIONS
   ================================================ */

/* Gentle swimming: translate + rotate oscillation */
@keyframes swim-gentle-1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(1.2deg); }
}

@keyframes swim-gentle-2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-1.5deg); }
}

@keyframes swim-gentle-3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes swim-gentle-4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3.5px) rotate(-1.8deg); }
}

/* Fin oscillation */
@keyframes fin-wave-1 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

@keyframes fin-wave-2 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2.5deg); }
}

@keyframes fin-wave-3 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* Apply swimming to fish groups */
.fish-hero .fish-body-group {
    animation: swim-gentle-1 6s ease-in-out infinite alternate;
    transform-origin: center center;
}

.fish-mandarin .fish-body-group {
    animation: swim-gentle-2 5s ease-in-out infinite alternate;
    transform-origin: center center;
}

.specimen-card-1 .fish-body-group {
    animation: swim-gentle-3 7s ease-in-out infinite alternate;
    transform-origin: center center;
}

.specimen-card-2 .fish-body-group {
    animation: swim-gentle-4 5.5s ease-in-out infinite alternate;
    transform-origin: center center;
}

.specimen-card-3 .fish-body-group {
    animation: swim-gentle-1 8s ease-in-out infinite alternate;
    transform-origin: center center;
}

.specimen-card-4 .fish-body-group {
    animation: swim-gentle-2 6.5s ease-in-out infinite alternate;
    transform-origin: center center;
}

.fish-deep-idol .fish-body-group {
    animation: swim-gentle-3 7.5s ease-in-out infinite alternate;
    transform-origin: center center;
}

.fish-closing-lion {
    animation: swim-gentle-4 6s ease-in-out infinite alternate;
    transform-origin: center center;
}

/* Fin animations */
.fin-dorsal {
    animation: fin-wave-1 4s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

.fin-tail {
    animation: fin-wave-2 3.5s ease-in-out infinite alternate;
    transform-origin: right center;
}

.fin-pectoral {
    animation: fin-wave-3 4.5s ease-in-out infinite alternate;
    transform-origin: left center;
}

.fin-ventral {
    animation: fin-wave-1 5s ease-in-out infinite alternate;
    transform-origin: top center;
}

/* Small ornament fish */
.fish-ornament-1 .fish-body-group {
    animation: swim-gentle-2 4.5s ease-in-out infinite alternate;
    transform-origin: center center;
}

.fish-ornament-2 .fish-body-group {
    animation: swim-gentle-3 5.2s ease-in-out infinite alternate;
    transform-origin: center center;
}

.fish-closing-ornament .fish-body-group {
    animation: swim-gentle-1 6s ease-in-out infinite alternate;
    transform-origin: center center;
}

/* Enhanced swimming when cursor is nearby */
.fish-excited .fish-body-group {
    animation-duration: 2s !important;
}

/* ================================================
   LINKS & HOVER INTERACTIONS
   ================================================ */
a {
    color: var(--rain-glass);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover {
    color: var(--broken-kiln);
}

/* ================================================
   RESPONSIVE: MOBILE (< 768px)
   ================================================ */
@media (max-width: 768px) {

    .nav-cloud {
        width: 240px;
        padding: 12px 16px;
    }

    .nav-link {
        font-size: 11px;
    }

    /* Opening */
    .section-opening {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
    }

    .fish-hero {
        width: 85%;
        max-width: 400px;
        margin: 6vh auto 0;
        transform: rotate(0.8deg);
    }

    .hero-title-block {
        margin-left: 8px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .annotation-hero {
        position: relative;
        margin-top: 30px;
        margin-left: 16px;
    }

    .botanical-orphan {
        width: 70px;
        top: 15px;
        right: 20px;
    }

    /* Passages */
    .section-passages {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .block-left,
    .block-right,
    .block-left-2 {
        width: 100%;
        margin-left: 0;
        transform: rotate(0.3deg);
    }

    .block-left {
        margin-left: -8px;
    }

    .block-right {
        margin-left: 8px;
    }

    .block-left-2 {
        margin-left: -12px;
    }

    .botanical-seafan,
    .fish-mandarin,
    .botanical-leaf {
        width: 60%;
        max-width: 220px;
        margin: 0 auto;
    }

    .annotation-passage-1,
    .annotation-passage-2 {
        position: relative;
        left: auto;
        margin-left: 16px;
    }

    /* Gallery */
    .gallery-title {
        margin-left: 0;
        font-size: clamp(1.6rem, 8vw, 3rem);
    }

    .gallery-annotation {
        margin-left: 0;
    }

    .specimen-card {
        width: 90% !important;
        margin-left: 5% !important;
        margin-right: 5%;
        display: block;
    }

    .specimen-card-2,
    .specimen-card-4 {
        margin-left: 8% !important;
    }

    .specimen-card-1,
    .specimen-card-3 {
        margin-left: 2% !important;
    }

    .fish-small {
        display: none;
    }

    /* Deep */
    .section-deep {
        display: flex;
        flex-direction: column;
        padding: 60px 20px;
        gap: 30px;
    }

    .block-deep-1,
    .block-deep-2,
    .block-deep-3 {
        width: 100%;
        margin-left: 0;
    }

    .block-deep-1 { margin-left: -8px; }
    .block-deep-2 { margin-left: 12px; }
    .block-deep-3 { margin-left: -6px; }

    .botanical-deep-kelp {
        width: 50%;
        max-width: 140px;
        margin: 0 auto;
    }

    .fish-deep-idol {
        width: 70%;
        max-width: 240px;
        margin: 0 auto;
    }

    .annotation-deep {
        position: relative;
        right: auto;
        margin-left: 20px;
    }

    /* Closing */
    .section-closing {
        padding: 60px 20px 100px;
    }

    .botanical-closing {
        width: 95%;
        max-width: 500px;
    }

    .annotation-closing {
        margin-right: 5%;
    }

    .block-closing {
        margin-left: 5%;
    }

    .content-block {
        padding: 24px 20px;
    }

    .block-body {
        font-size: 16px;
        max-width: 100%;
    }
}

/* ================================================
   RESPONSIVE: TABLET (769px - 1024px)
   ================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .specimen-card-1,
    .specimen-card-3 {
        width: 55%;
    }

    .specimen-card-2,
    .specimen-card-4 {
        width: 50%;
        margin-left: 40%;
    }

    .section-opening {
        padding: 50px 30px;
    }

    .section-passages {
        padding: 60px 30px 100px;
    }
}

/* ================================================
   ADDITIONAL REFINEMENTS
   ================================================ */

/* Subtle background alternation between sections */
.section-passages {
    background: linear-gradient(
        180deg,
        var(--aged-parchment) 0%,
        rgba(200, 214, 223, 0.12) 50%,
        var(--aged-parchment) 100%
    );
}

.section-gallery {
    background: var(--aged-parchment);
}

.section-closing {
    background: linear-gradient(
        180deg,
        var(--aged-parchment) 0%,
        rgba(200, 214, 223, 0.1) 60%,
        var(--aged-parchment) 100%
    );
}

/* Selection styling */
::selection {
    background-color: var(--rain-glass);
    color: var(--aged-parchment);
}

/* Ensure SVG illustrations don't interfere with text selection */
svg {
    user-select: none;
}

/* Smooth edge treatment via subtle box shadow on content blocks */
.content-block {
    box-shadow: 0 1px 8px rgba(26, 39, 68, 0.04);
}

.specimen-card {
    box-shadow: 0 2px 12px rgba(26, 39, 68, 0.06);
}
