/* =========================================================
   miris.monster — street-style / card-grid / forest-green
   Baskerville refined typography over a grain overlay system.
   ========================================================= */

:root {
    --c-bg-primary:    #0D1F17;
    --c-bg-card:       #142E22;
    --c-grid:          #2D4A3E;
    --c-accent:        #D4A24C;
    --c-accent-2:      #C47A3A;
    --c-text-primary:  #E8E0D4;
    --c-text-secondary:#B8AFA3;
    --c-text-meta:     #5A7A6A;
    --c-highlight:     #6BA368;
    --c-shadow:        #091510;

    --gutter: 24px;
    --side-pad: 64px;
    --max-w: 1440px;
    --col-count: 12;
    --row-h: 220px;
    --row-h-tall: 280px;

    --serif: "Libre Baskerville", "Lora", Georgia, "Times New Roman", serif;
    --sans:  "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
    --mono:  "IBM Plex Mono", "Menlo", "Consolas", monospace;
}

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

html {
    scroll-behavior: smooth;
    background: var(--c-bg-primary);
}

body {
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--c-text-primary);
    background: var(--c-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Hide the SVG filter container while keeping it usable */
.grain-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ---------------------------------------------------------
   FIXED GRID-LINE BACKDROP (light-table effect)
   --------------------------------------------------------- */

.grid-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: var(--c-bg-primary);
    background-image:
        repeating-linear-gradient(
            to right,
            rgba(45, 74, 62, 0) 0,
            rgba(45, 74, 62, 0) calc((100vw - var(--side-pad) * 2) / 12 - 1px),
            rgba(45, 74, 62, 0.4) calc((100vw - var(--side-pad) * 2) / 12 - 1px),
            rgba(45, 74, 62, 0.4) calc((100vw - var(--side-pad) * 2) / 12)
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(45, 74, 62, 0) 0,
            rgba(45, 74, 62, 0) 79px,
            rgba(45, 74, 62, 0.32) 79px,
            rgba(45, 74, 62, 0.32) 80px
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(45, 74, 62, 0) 0,
            rgba(45, 74, 62, 0) 319px,
            rgba(45, 74, 62, 0.55) 319px,
            rgba(45, 74, 62, 0.55) 321px
        );
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* Registration dots at intersections */
.grid-dots {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(45, 74, 62, 0.7) 0, rgba(45, 74, 62, 0.7) 1.5px, transparent 2px);
    background-size: 80px 80px;
    background-attachment: fixed;
    background-position: 0 0;
    opacity: 0.65;
}

/* Page-wide grain layer */
.grain-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='5'/><feColorMatrix type='matrix' values='0 0 0 0 0.91  0 0 0 0 0.88  0 0 0 0 0.83  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    animation: grainShimmer 0.8s steps(4) infinite;
}

@keyframes grainShimmer {
    0%   { background-position: 0 0; }
    25%  { background-position: -50px 30px; }
    50%  { background-position: 40px -20px; }
    75%  { background-position: -30px -40px; }
    100% { background-position: 0 0; }
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--c-bg-primary);
    border-bottom: 1px solid var(--c-grid);
    z-index: 50;
    display: flex;
    align-items: stretch;
}

.nav-bar.is-scrolled {
    box-shadow: 0 2px 0 var(--c-shadow);
}

.nav-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.nav-brand {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--c-text-primary);
    text-decoration: none;
    font-variant-caps: small-caps;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-links a {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-text-secondary);
    text-decoration: none;
    background-image: linear-gradient(var(--c-accent), var(--c-accent));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    transition: background-size 220ms ease-out, color 220ms ease-out;
    padding-bottom: 2px;
}

.nav-links a:hover {
    color: var(--c-text-primary);
    background-size: 100% 1px;
}

.pipe {
    color: var(--c-grid);
    font-family: var(--sans);
    font-size: 0.7rem;
}

.nav-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix type='matrix' values='0 0 0 0 0.91  0 0 0 0 0.88  0 0 0 0 0.83  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
    transition: opacity 220ms ease-out;
}

.nav-bar.is-scrolled .nav-grain {
    opacity: 0.35;
}

/* ---------------------------------------------------------
   HERO SECTION
   --------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px var(--side-pad) 80px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 2;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 3;
    text-align: left;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-bottom: 3.2rem;
    border-bottom: 1px solid var(--c-grid);
    padding-bottom: 1.2rem;
}

.meta-tick {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--c-text-meta);
    letter-spacing: 0.06em;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-text-primary);
    margin-bottom: 1.4rem;
}

.hero-subtitle {
    font-family: var(--sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--c-text-secondary);
    margin-bottom: 4rem;
    max-width: 50ch;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--c-grid);
    padding-top: 1.2rem;
}

/* CRT scan-line effect */
.hero-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 1px,
        rgba(13, 31, 23, 0.18) 1px,
        rgba(13, 31, 23, 0.18) 2px
    );
    opacity: 0.55;
}

.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0.45;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' seed='1'/><feColorMatrix type='matrix' values='0 0 0 0 0.91  0 0 0 0 0.88  0 0 0 0 0.83  0 0 0 0.95 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 260px 260px;
    animation: grainShimmer 0.8s steps(4) infinite;
}

/* ---------------------------------------------------------
   CHAPTER MARKERS
   --------------------------------------------------------- */

.chapter-marker {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6rem var(--side-pad) 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.chapter-tag {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--c-accent);
    letter-spacing: 0.08em;
    border: 1px solid var(--c-accent);
    padding: 0.35rem 0.6rem;
    line-height: 1;
}

.chapter-rule {
    flex: 1;
    height: 1px;
    background: var(--c-grid);
    position: relative;
}

.chapter-rule::before,
.chapter-rule::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--c-grid);
    top: -1.5px;
}

.chapter-rule::before { left: 18%; }
.chapter-rule::after  { left: 73%; }

.chapter-name {
    font-family: var(--sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-text-secondary);
}

/* ---------------------------------------------------------
   GRID FIELD + CARDS
   --------------------------------------------------------- */

.grid-field,
.contact-sheet {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem var(--side-pad) 4rem;
    position: relative;
    z-index: 2;
}

.grid-canvas {
    display: grid;
    grid-template-columns: repeat(var(--col-count), 1fr);
    grid-auto-rows: var(--row-h);
    gap: var(--gutter);
}

.card {
    grid-column: var(--col-start, auto) / span var(--col-span, 3);
    grid-row: span var(--row-span, 1);
    background-color: var(--c-bg-card);
    border: 2px solid var(--c-grid);
    box-shadow: 4px 4px 0 rgba(20, 45, 30, 0.45);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 500ms ease-out,
        border-color 220ms ease-out,
        box-shadow 220ms ease-out;
}

.card:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 8px 8px 0 rgba(20, 45, 30, 0.55);
    border-color: var(--c-highlight);
}

.card:hover .card-grain {
    opacity: 0.6;
}

.card.card-offset {
    margin-left: calc(((100% / 12) - var(--gutter) / 12) * 0.5);
}

/* Card index (top-right registration) */
.card-index {
    position: absolute;
    top: 8px;
    right: 10px;
    font-family: var(--mono);
    font-size: 0.625rem;
    color: var(--c-text-meta);
    opacity: 0.7;
    letter-spacing: 0.08em;
    z-index: 5;
}

/* L-shaped corner brackets */
.bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--c-text-meta);
    z-index: 4;
    pointer-events: none;
}
.bracket-tl { top: 4px;    left: 4px;   border-right: none;  border-bottom: none; }
.bracket-tr { top: 4px;    right: 4px;  border-left: none;   border-bottom: none; }
.bracket-bl { bottom: 4px; left: 4px;   border-right: none;  border-top: none;    }
.bracket-br { bottom: 4px; right: 4px;  border-left: none;   border-top: none;    }

/* Visual / image part of card */
.card-visual {
    position: relative;
    flex: 1 1 auto;
    min-height: 120px;
    overflow: hidden;
    background-color: var(--c-shadow);
    background-position: center;
    background-size: cover;
}

.card-visual-tall   { min-height: 280px; }
.card-visual-wide   { min-height: 180px; }
.card-visual-square { min-height: 160px; }

/* Image cards: CSS-generated abstract textures (no photography per design) */
.card-image-a .card-visual {
    background-image:
        repeating-linear-gradient(105deg, rgba(196, 122, 58, 0.18) 0 2px, transparent 2px 18px),
        repeating-linear-gradient(15deg, rgba(13, 31, 23, 0.65) 0 1px, transparent 1px 9px),
        radial-gradient(circle at 30% 65%, rgba(212, 162, 76, 0.35), transparent 55%),
        linear-gradient(180deg, #1b3a2c 0%, #0d1f17 100%);
}
.card-image-b .card-visual {
    background-image:
        repeating-linear-gradient(90deg, rgba(212, 162, 76, 0.12) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(0deg, rgba(232, 224, 212, 0.05) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 70% 30%, rgba(212, 162, 76, 0.55), transparent 38%),
        linear-gradient(180deg, #142e22 0%, #091510 100%);
}
.card-image-c .card-visual {
    background-image:
        repeating-linear-gradient(60deg, rgba(45, 74, 62, 0.45) 0 2px, transparent 2px 20px),
        repeating-linear-gradient(120deg, rgba(45, 74, 62, 0.35) 0 1px, transparent 1px 14px),
        linear-gradient(110deg, #0d1f17 0%, #142e22 50%, #0d1f17 100%);
}
.card-image-d .card-visual {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(196, 122, 58, 0.45), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(107, 163, 104, 0.25), transparent 45%),
        repeating-linear-gradient(45deg, rgba(13, 31, 23, 0.55) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #142e22 0%, #0d1f17 100%);
}
.card-image-e .card-visual {
    background-image:
        repeating-linear-gradient(0deg, rgba(232, 224, 212, 0.08) 0 2px, transparent 2px 6px),
        repeating-linear-gradient(90deg, rgba(212, 162, 76, 0.18) 0 1px, transparent 1px 12px),
        linear-gradient(180deg, #0d1f17 0%, #142e22 100%);
}
.card-image-f .card-visual {
    background-image:
        repeating-linear-gradient(35deg, rgba(45, 74, 62, 0.55) 0 1px, transparent 1px 11px),
        radial-gradient(ellipse at 50% 50%, rgba(13, 31, 23, 0.85), transparent 60%),
        linear-gradient(180deg, #142e22 0%, #091510 100%);
}
.card-image-g .card-visual {
    background-image:
        repeating-linear-gradient(0deg, rgba(212, 162, 76, 0.12) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(45, 74, 62, 0.35) 0 1px, transparent 1px 32px),
        radial-gradient(circle at 25% 75%, rgba(196, 122, 58, 0.4), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(212, 162, 76, 0.25), transparent 35%),
        linear-gradient(180deg, #142e22 0%, #0d1f17 100%);
}

/* Card grain overlay */
.card-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' seed='3'/><feColorMatrix type='matrix' values='0 0 0 0 0.91  0 0 0 0 0.88  0 0 0 0 0.83  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    transition: opacity 220ms ease-out;
    animation: grainShimmer 0.8s steps(4) infinite;
}

/* Redaction bars (fake censored text) */
.redaction-bar {
    position: absolute;
    background: var(--c-bg-primary);
    height: 14px;
    border: 1px solid rgba(13, 31, 23, 0.7);
    box-shadow: 0 0 0 1px rgba(45, 74, 62, 0.4);
    z-index: 2;
}
.redaction-1 { top: 30%; left: 12%; width: 35%; }
.redaction-2 { top: 58%; left: 28%; width: 22%; height: 10px; }

/* Card text region */
.card-text {
    padding: 1.1rem 1.2rem 1.2rem;
    text-align: left;
    position: relative;
    z-index: 3;
}

.card-text-pad {
    padding: 1.4rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.card-text-tight {
    padding: 0.7rem 0.9rem 0.9rem;
}

.card-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--c-text-primary);
    margin-bottom: 0.4rem;
}

.card-title-sm {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--c-text-primary);
    margin-bottom: 0.4rem;
}

.card-meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-meta);
    margin-bottom: 0.7rem;
}

.card-body {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text-secondary);
    margin-bottom: 0.7rem;
}

.card-body-sm {
    font-size: 0.95rem;
    line-height: 1.55;
}

.card-mono {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--c-text-meta);
    letter-spacing: 0.04em;
}

.card-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--c-text-primary);
    letter-spacing: -0.01em;
}

.card-quote-sm {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--c-text-primary);
}

/* Empty cards (frame reserved) */
.card-empty {
    background-color: transparent;
    border-style: dashed;
    border-width: 1px;
    border-color: var(--c-grid);
    box-shadow: none;
    align-items: center;
    justify-content: center;
}

.card-empty:hover {
    border-color: var(--c-text-meta);
    box-shadow: none;
    transform: translate(-2px, -2px) !important;
}

.empty-mark {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--c-text-meta);
    opacity: 0.55;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Text-only cards (no visual) */
.card-text-only {
    background-color: var(--c-bg-card);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    max-width: var(--max-w);
    margin: 6rem auto 0;
    padding: 0 var(--side-pad) 4rem;
    position: relative;
    z-index: 2;
}

.footer-rule {
    height: 1px;
    background: var(--c-grid);
    margin-bottom: 3rem;
    position: relative;
}

.footer-rule::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--c-bg-primary);
    border: 1px solid var(--c-grid);
}

.footer-rule::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 9px;
    height: 9px;
    background: var(--c-bg-primary);
    border: 1px solid var(--c-grid);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--gutter);
}

.footer-col { text-align: left; }

.footer-brand {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--c-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.footer-tag {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--c-text-secondary);
    line-height: 1.5;
}

.footer-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-accent);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--c-grid);
    padding-bottom: 0.5rem;
}

.footer-line {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--c-text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.footer-line a {
    color: var(--c-text-primary);
    text-decoration: none;
    background-image: linear-gradient(var(--c-accent), var(--c-accent));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    transition: background-size 220ms ease-out, color 220ms ease-out;
    padding-bottom: 1px;
}

.footer-line a:hover {
    color: var(--c-accent);
    background-size: 100% 1px;
}

.swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: var(--sw, var(--c-bg-card));
    border: 1px solid var(--c-grid);
    vertical-align: middle;
    margin: 0 1px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1024px) {
    :root {
        --side-pad: 32px;
        --col-count: 8;
        --gutter: 18px;
        --row-h: 200px;
    }
    .grid-canvas {
        grid-template-columns: repeat(8, 1fr);
    }
    .card {
        grid-column: var(--col-start, auto) / span min(var(--col-span, 3), 8);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 2.5rem;
    }
    .hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); }
    .grid-backdrop {
        background-image:
            repeating-linear-gradient(to right, rgba(45, 74, 62, 0) 0, rgba(45, 74, 62, 0) calc((100vw - 64px) / 8 - 1px), rgba(45, 74, 62, 0.4) calc((100vw - 64px) / 8 - 1px), rgba(45, 74, 62, 0.4) calc((100vw - 64px) / 8)),
            repeating-linear-gradient(to bottom, rgba(45, 74, 62, 0) 0, rgba(45, 74, 62, 0) 79px, rgba(45, 74, 62, 0.32) 79px, rgba(45, 74, 62, 0.32) 80px);
    }
}

@media (max-width: 720px) {
    :root {
        --side-pad: 16px;
        --col-count: 4;
        --gutter: 14px;
        --row-h: 180px;
    }
    .grid-canvas {
        grid-template-columns: repeat(4, 1fr);
    }
    .card {
        grid-column: 1 / -1 !important;
        grid-row: span 1 !important;
        margin-left: 0 !important;
    }
    .nav-inner {
        padding: 0 16px;
    }
    .nav-links a { font-size: 0.62rem; letter-spacing: 0.12em; }
    .nav-links { gap: 0.35rem; }
    .hero {
        padding: 100px 16px 60px;
    }
    .hero-meta {
        gap: 0.8rem;
    }
    .meta-tick { font-size: 0.7rem; }
    .chapter-marker {
        padding: 4rem 16px 1.5rem;
        gap: 0.8rem;
    }
    .chapter-name { font-size: 0.65rem; letter-spacing: 0.16em; }
    .footer-inner { grid-template-columns: 1fr; row-gap: 2rem; }
}
