/* ===================================================================
   historical.quest  ::  Geological Descent Through Time
   Palette
     #c4956a  Surface Amber
     #8a6e4e  Sediment Sepia
     #7a8a8e  Bedrock Stone
     #1e3a4a  Deep Stratum
     #0a0e14  Abyss Black
     #d4a847  Accent Gold
     #f0e8d4  Text Light (parchment)
     #1a1a1e  Text Dark (charcoal)
     #4a8a9e  Bioluminescent Teal (accent)
   =================================================================== */

:root {
    --c-surface: #c4956a;
    --c-sediment: #8a6e4e;
    --c-bedrock: #7a8a8e;
    --c-deep: #1e3a4a;
    --c-abyss: #0a0e14;
    --c-gold: #d4a847;
    --c-teal: #4a8a9e;
    --c-text-light: #f0e8d4;
    --c-text-dark: #1a1a1e;

    /* Driven by JS scroll-interp; falls back to surface amber */
    --bg-now: #c4956a;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-display: "Playfair Display", "Lora", Georgia, serif;
    --font-body: "Source Serif 4", "Lora", Georgia, serif;
    --font-mono: "Inconsolata", "Space Mono", ui-monospace, monospace;
    --font-medieval: "MedievalSharp", "Playfair Display", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--c-text-dark);
    background: var(--bg-now);
    transition: background-color 60ms linear;
    overflow-x: hidden;
    line-height: 1.75;
}

/* -------------------------------------------------------------------
   Grain / paper-noise SVG :: positioned full-screen, fixed, 5% alpha
   ------------------------------------------------------------------- */
.grain-svg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    opacity: 0.05;
    mix-blend-mode: multiply;
}

/* -------------------------------------------------------------------
   Core sample navigation (right edge)
   ------------------------------------------------------------------- */
.core-sample {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}

.core-bar {
    position: relative;
    width: 6px;
    height: 60vh;
    border-radius: 3px;
    overflow: visible;
    pointer-events: auto;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.core-segment {
    display: block;
    width: 100%;
    height: 20%;
    text-decoration: none;
    transition: filter 250ms ease, transform 250ms var(--spring);
    position: relative;
}

.core-segment:hover {
    filter: brightness(1.35);
    transform: scaleX(1.6);
}

.core-segment::after {
    content: attr(data-era);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-light);
    background: rgba(10, 14, 20, 0.78);
    padding: 4px 10px;
    border: 1px solid var(--c-gold);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms var(--spring);
}

.core-segment:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.seg-1 { background: var(--c-surface); border-radius: 3px 3px 0 0; }
.seg-2 { background: var(--c-sediment); }
.seg-3 { background: var(--c-bedrock); }
.seg-4 { background: var(--c-deep); }
.seg-5 { background: var(--c-abyss); border-radius: 0 0 3px 3px; }

.core-indicator {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--c-text-light);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 8px var(--c-gold), 0 0 18px rgba(212, 168, 71, 0.45);
    transition: top 80ms linear;
}

.core-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-text-light);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.7;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------------
   Strata :: shared
   ------------------------------------------------------------------- */
.excavation {
    position: relative;
    z-index: 2;
}

.stratum {
    position: relative;
    min-height: 120vh;
    padding: 14vh 8vw 18vh;
    overflow: hidden;
}

.stratum-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

/* Jagged clip-path bottom edge between strata. Polygon points are
   intentionally irregular to evoke a torn-rock boundary. */
.stratum::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 70px;
    background: var(--bg-now);
    z-index: 1;
    clip-path: polygon(
        0 100%,
        0 38%,
        4% 62%,
        9% 30%,
        14% 70%,
        21% 42%,
        28% 78%,
        35% 28%,
        42% 60%,
        49% 22%,
        56% 70%,
        63% 38%,
        71% 80%,
        78% 32%,
        85% 64%,
        92% 28%,
        100% 70%,
        100% 100%
    );
    box-shadow: 0 -4px 0 0 var(--c-gold);
    filter: drop-shadow(0 -2px 8px rgba(212, 168, 71, 0.35));
}

.stratum-5::after {
    display: none;
}

/* Per-stratum backgrounds (the hard color, behind the global bg-now).
   Layered so the JS-driven --bg-now provides smooth interpolation. */
.stratum-1 { background-color: var(--c-surface); color: var(--c-text-dark); }
.stratum-2 { background-color: var(--c-sediment); color: var(--c-text-light); }
.stratum-3 { background-color: var(--c-bedrock); color: var(--c-text-light); }
.stratum-4 { background-color: var(--c-deep); color: var(--c-text-light); }
.stratum-5 { background-color: var(--c-abyss); color: var(--c-text-light); }

/* Override solid colors with the JS-driven custom prop where helpful. */
.stratum-1 { background: var(--c-surface); }
.stratum-2 { background: var(--c-sediment); }
.stratum-3 { background: var(--c-bedrock); }
.stratum-4 { background: var(--c-deep); }
.stratum-5 { background: var(--c-abyss); }

/* Subtle inner texture for the parchment feel on shallow strata */
.stratum-1::before,
.stratum-2::before,
.stratum-3::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(26, 26, 30, 0.04) 0,
            rgba(26, 26, 30, 0.04) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(
            ellipse at 50% 30%,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 60%
        );
    pointer-events: none;
    z-index: 1;
}

.stratum-3::before {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(26, 26, 30, 0.06) 0,
            rgba(26, 26, 30, 0.06) 1px,
            transparent 1px,
            transparent 6px
        ),
        radial-gradient(
            circle at 30% 40%,
            rgba(212, 168, 71, 0.08) 0%,
            transparent 55%
        );
}

.stratum-4::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(244, 240, 224, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(244, 240, 224, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(115deg,
            rgba(244, 240, 224, 0.02) 0,
            rgba(244, 240, 224, 0.02) 2px,
            transparent 2px,
            transparent 9px);
    pointer-events: none;
    z-index: 1;
}

/* -------------------------------------------------------------------
   Typography :: shared building blocks
   ------------------------------------------------------------------- */
.meta-line {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 1.4rem;
}

.meta-faint {
    opacity: 0.45;
}

.era-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.era-subtitle {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4rem;
}

.prose-body,
.field-prose,
.codex-paragraph,
.tablet-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 38em;
    margin-bottom: 1.4rem;
}

/* -------------------------------------------------------------------
   Layer 1 :: Surface / Modern Era
   ------------------------------------------------------------------- */
.stratum-1 .era-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: var(--c-text-dark);
}

.field-notes {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(40px, auto);
    gap: 32px 28px;
    margin-top: 2.5rem;
}

.polaroid {
    background: var(--c-text-light);
    padding: 14px 14px 24px;
    box-shadow: 0 14px 40px rgba(26, 26, 30, 0.28),
                0 2px 8px rgba(26, 26, 30, 0.18);
    transition: transform 380ms var(--spring);
    position: relative;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.04);
}

.polaroid-a {
    grid-column: 1 / span 5;
    transform: rotate(-2.6deg);
}

.polaroid-b {
    grid-column: 8 / span 5;
    transform: rotate(2.4deg);
    margin-top: 1.5rem;
}

.polaroid-c {
    grid-column: 2 / span 4;
    transform: rotate(1.8deg);
    margin-top: -1rem;
}

.polaroid-frame {
    aspect-ratio: 10 / 7;
    background: var(--c-sediment);
    overflow: hidden;
}

.polaroid-image {
    display: block;
    width: 100%;
    height: 100%;
}

.polaroid-caption {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    color: var(--c-text-dark);
    margin-top: 12px;
    text-align: center;
    text-transform: uppercase;
}

.field-note {
    grid-column: 6 / span 7;
    align-self: center;
    background: rgba(240, 232, 212, 0.6);
    padding: 28px 32px;
    border-left: 4px solid var(--c-gold);
}

.field-note-narrow {
    grid-column: 7 / span 5;
    background: rgba(26, 26, 30, 0.85);
    color: var(--c-text-light);
    padding: 32px 36px;
    border-left: 4px solid var(--c-gold);
    transform: rotate(-0.6deg);
}

.field-note-narrow .meta-line {
    color: var(--c-gold);
    margin-bottom: 0.8rem;
}

.field-prose-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.45;
    color: var(--c-text-light);
}

/* -------------------------------------------------------------------
   Layer 2 :: Sediment / Industrial Age
   ------------------------------------------------------------------- */
.stratum-2 .era-title {
    font-size: clamp(3.3rem, 8.6vw, 5.2rem);
    color: var(--c-text-light);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 80px;
    margin-top: 3rem;
    align-items: start;
}

.split-left {
    position: relative;
    padding-right: 24px;
}

.prose-body {
    color: var(--c-text-light);
}

.prose-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    border-left: 3px solid var(--c-gold);
    padding: 1rem 0 1rem 1.6rem;
    margin: 2rem 0;
    color: var(--c-text-light);
}

.quote-attribution {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.8rem;
    font-style: normal;
}

.split-right {
    position: relative;
    border-left: 1px solid rgba(212, 168, 71, 0.4);
    padding-left: 28px;
    background:
        linear-gradient(
            180deg,
            rgba(26, 26, 30, 0.18) 0%,
            rgba(26, 26, 30, 0.05) 100%
        );
}

.meta-vertical {
    color: var(--c-gold);
    margin-bottom: 1.6rem;
}

.timeline-strip {
    list-style: none;
    position: relative;
}

.timeline-strip::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--c-gold), rgba(212, 168, 71, 0.1));
}

.timeline-tick {
    position: relative;
    padding: 0 0 1.4rem 32px;
}

.timeline-tick::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--c-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(212, 168, 71, 0.6);
}

.tick-year {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: var(--c-gold);
}

.tick-event {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-text-light);
    margin-top: 0.2rem;
    line-height: 1.45;
}

/* -------------------------------------------------------------------
   Layer 3 :: Bedrock / Renaissance - Medieval
   ------------------------------------------------------------------- */
.stratum-3 .era-title {
    font-size: clamp(3.6rem, 9vw, 5.8rem);
    color: var(--c-text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.codex {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.codex-page {
    position: relative;
    background: rgba(240, 232, 212, 0.04);
    max-width: 720px;
    padding: 64px 72px;
    color: var(--c-text-light);

    /* Illuminated border using nested gradients (gold-and-deep-blue interlocking) */
    border: 4px solid transparent;
    background-image:
        linear-gradient(rgba(122, 138, 142, 0.0), rgba(122, 138, 142, 0.0)),
        repeating-linear-gradient(
            45deg,
            #d4a847 0,
            #d4a847 8px,
            #1e3a4a 8px,
            #1e3a4a 16px,
            #d4a847 16px,
            #d4a847 22px,
            #0a0e14 22px,
            #0a0e14 28px
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        inset 0 0 0 2px rgba(240, 232, 212, 0.08),
        0 14px 40px rgba(0, 0, 0, 0.35);
}

.codex-page::before,
.codex-page::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--c-gold);
    background: rgba(10, 14, 20, 0.7);
}

.codex-page::before {
    top: -14px;
    left: -14px;
    transform: rotate(45deg);
}

.codex-page::after {
    bottom: -14px;
    right: -14px;
    transform: rotate(45deg);
}

.codex-paragraph {
    color: var(--c-text-light);
    margin-bottom: 1.6rem;
    text-align: justify;
}

.drop-cap {
    font-family: var(--font-medieval);
    font-size: 4em;
    float: left;
    line-height: 0.85;
    margin: 0.05em 0.12em 0 0;
    color: var(--c-gold);
    text-shadow:
        2px 2px 0 rgba(10, 14, 20, 0.6),
        0 0 12px rgba(212, 168, 71, 0.4);
}

.illuminated-quote {
    margin: 2.4rem 0;
    padding: 1.4rem 1.8rem;
    border: 2px solid var(--c-gold);
    background: rgba(10, 14, 20, 0.4);
    position: relative;
}

.illuminated-quote::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 168, 71, 0.4);
    pointer-events: none;
}

.illuminated-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--c-text-light);
}

.quote-translation {
    margin-top: 0.8rem;
    color: var(--c-gold);
    font-size: 1rem !important;
    font-style: normal !important;
    font-family: var(--font-mono) !important;
    letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------
   Layer 4 :: Deep Strata / Classical Antiquity
   ------------------------------------------------------------------- */
.stratum-4 .era-title {
    font-size: clamp(4rem, 10vw, 6.4rem);
    color: var(--c-text-light);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.broken-grid {
    position: relative;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(110px, auto);
    gap: 36px 28px;
    min-height: 60vh;
}

.tablet {
    background: linear-gradient(135deg, rgba(240, 232, 212, 0.08), rgba(240, 232, 212, 0.02));
    border: 1px solid rgba(212, 168, 71, 0.3);
    padding: 28px 32px;
    color: var(--c-text-light);
    position: relative;
    box-shadow:
        inset 0 0 24px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 500ms var(--spring);
}

.tablet::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 168, 71, 0.2);
    pointer-events: none;
}

.tablet-1 {
    grid-column: 1 / span 5;
    transform: rotate(-1.4deg);
}

.tablet-2 {
    grid-column: 7 / span 6;
    transform: rotate(1.6deg);
    margin-top: 1.5rem;
}

.tablet-3 {
    grid-column: 2 / span 6;
    transform: rotate(0.8deg);
    margin-top: 1rem;
}

.tablet-4 {
    grid-column: 8 / span 5;
    transform: rotate(-2.2deg);
    margin-top: -0.5rem;
}

.tablet-5 {
    grid-column: 4 / span 6;
    transform: rotate(-0.4deg);
}

.tablet-fragmented {
    /* Suggest a broken stone tablet with a chipped-off corner */
    clip-path: polygon(
        4% 0%, 96% 0%, 100% 12%, 100% 92%, 88% 100%, 0% 100%, 0% 50%, 6% 30%
    );
    background:
        linear-gradient(135deg, rgba(240, 232, 212, 0.10), rgba(240, 232, 212, 0.02));
}

.tablet-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.9rem;
}

.tablet-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--c-text-light);
}

/* -------------------------------------------------------------------
   Layer 5 :: Abyss / Pre-History
   ------------------------------------------------------------------- */
.stratum-5 {
    min-height: 130vh;
    padding-top: 18vh;
    padding-bottom: 22vh;
    color: var(--c-text-light);
    background:
        radial-gradient(
            ellipse at 50% 60%,
            rgba(74, 138, 158, 0.15) 0%,
            rgba(10, 14, 20, 0) 60%
        ),
        var(--c-abyss);
}

.stratum-abyss {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding-top: 8vh;
}

.stratum-5 .era-monumental {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(5rem, 14vw, 9rem);
    letter-spacing: 0.04em;
    color: var(--c-text-light);
    text-shadow:
        0 0 30px rgba(74, 138, 158, 0.45),
        0 0 80px rgba(212, 168, 71, 0.18);
    margin-bottom: 2rem;
}

.era-tagline {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    opacity: 0.85;
    margin-bottom: 4rem;
}

.era-mantra {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.7;
    color: var(--c-text-light);
    opacity: 0.92;
    max-width: 32em;
    margin: 0 auto;
}

/* Bioluminescent particles container */
.abyss-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -10vh;
    border-radius: 50%;
    will-change: transform, opacity;
    filter: blur(0.6px);
}

@keyframes drift-up {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    50% {
        transform: translateY(-60vh) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
    90% { opacity: 0.4; }
    100% {
        transform: translateY(-120vh) translateX(-10px) scale(0.85);
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* -------------------------------------------------------------------
   Margin artifacts (compass / quill / amphora / sundial)
   ------------------------------------------------------------------- */
.margin-artifact {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.4;
    pointer-events: none;
}

.margin-compass {
    top: 6%;
    right: -36px;
    transform: rotate(8deg);
}

.margin-quill {
    bottom: 8%;
    right: -22px;
    transform: rotate(-12deg);
}

.margin-amphora {
    top: 10%;
    right: -36px;
    width: 60px;
    height: 80px;
    transform: rotate(6deg);
}

.margin-sundial {
    bottom: -20px;
    right: -8px;
    width: 80px;
    height: 80px;
    transform: rotate(-14deg);
    opacity: 0.45;
}

/* -------------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 900ms ease-out,
        transform 900ms var(--spring);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------
   Colophon
   ------------------------------------------------------------------- */
.colophon {
    background: var(--c-abyss);
    color: var(--c-text-light);
    padding: 8vh 8vw 10vh;
    text-align: center;
    border-top: 1px solid rgba(212, 168, 71, 0.25);
}

.colophon .meta-line {
    color: var(--c-gold);
    margin-bottom: 1.4rem;
}

.colophon-domain {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.colophon-line {
    font-family: var(--font-body);
    font-size: 0.95rem;
    opacity: 0.7;
    max-width: 32em;
    margin: 0 auto;
}

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 900px) {
    .stratum {
        padding: 12vh 6vw 16vh;
    }

    .core-sample {
        right: 14px;
    }

    .core-bar {
        height: 50vh;
    }

    .field-notes {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .polaroid-a, .polaroid-b, .polaroid-c {
        grid-column: 1 / -1;
    }

    .field-note,
    .field-note-narrow {
        grid-column: 1 / -1;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-right {
        border-left: none;
        border-top: 1px solid rgba(212, 168, 71, 0.4);
        padding-left: 0;
        padding-top: 28px;
    }

    .codex-page {
        padding: 40px 28px;
    }

    .broken-grid {
        grid-template-columns: 1fr;
    }

    .tablet-1, .tablet-2, .tablet-3, .tablet-4, .tablet-5 {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .margin-artifact {
        display: none;
    }
}

@media (max-width: 560px) {
    .stratum-5 .era-monumental {
        font-size: clamp(3.6rem, 18vw, 6rem);
    }
}
