/* =========================================================================
   Atlas Wegontwerp — Editorial design system
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    --c-paper:        #f4efe4;
    --c-paper-deep:   #ebe5d5;
    --c-paper-ink:    #e3dcc8;
    --c-ink:          #1c1a17;
    --c-ink-soft:     #2d2a25;
    --c-ink-muted:    #5b564c;
    --c-ink-faint:    #8b8576;
    --c-rule:         #c7c1b0;
    --c-rule-strong:  #1c1a17;
    --c-red:          #c8102e;
    --c-red-deep:     #9c0c24;
    --c-blue:         #1d3d75;
    --c-flag-orange:  #ff8000;

    --max-w: 1320px;
    --gutter: 28px;
    --rule: 1px solid var(--c-rule);
    --rule-strong: 1.5px solid var(--c-ink);

    --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --f-body:    'Newsreader', 'Source Serif Pro', Georgia, serif;
    --f-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 18px;
    font-variation-settings: "opsz" 16, "wght" 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
    mix-blend-mode: multiply;
    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.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
    color: var(--c-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--c-ink-muted);
    transition: color .2s, border-color .2s;
}
a:hover { color: var(--c-red); border-bottom-color: var(--c-red); }

::selection { background: var(--c-red); color: var(--c-paper); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--c-paper);
    border-bottom: var(--rule-strong);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--c-ink);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 32px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: none;
    color: var(--c-ink);
    font-family: var(--f-display);
}
.brand-mark {
    width: 28px; height: 28px;
    border-radius: 50%;
    background:
        conic-gradient(from -90deg,
            var(--c-red) 0deg 90deg,
            #f4efe4 90deg 180deg,
            var(--c-blue) 180deg 270deg,
            var(--c-ink) 270deg 360deg);
    border: 1.5px solid var(--c-ink);
    flex-shrink: 0;
    transform: translateY(4px);
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    text-transform: lowercase;
}
.brand-sub {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 15px;
    font-variation-settings: "opsz" 24, "wght" 400, "SOFT" 30;
    color: var(--c-ink-muted);
    margin-top: 4px;
}
.nav {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}
.nav a {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: none;
    color: var(--c-ink-soft);
    position: relative;
}
.nav a::before {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -3px;
    height: 1.5px;
    background: var(--c-red);
    transition: right .25s ease;
}
.nav a:hover { color: var(--c-ink); }
.nav a:hover::before { right: 0; }
.lang-switch {
    display: flex;
    gap: 4px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
}
.lang-switch a {
    border: 1px solid var(--c-ink);
    padding: 6px 10px;
    color: var(--c-ink);
    text-transform: uppercase;
    background: transparent;
}
.lang-switch a:hover { background: var(--c-paper-deep); }
.lang-switch a.active {
    background: var(--c-ink);
    color: var(--c-paper);
}

/* ---------- Layout primitives ---------- */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* ---------- Issue masthead band (above hero) ---------- */
.masthead {
    border-bottom: var(--rule);
    background: var(--c-paper);
}
.masthead-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    flex-wrap: wrap;
}
.masthead-inner span { display: inline-flex; gap: 8px; align-items: center; }
.masthead-inner .dot {
    width: 6px; height: 6px;
    background: var(--c-red);
    border-radius: 50%;
}

/* ---------- Hero ---------- */
.hero {
    padding: 88px 0 96px;
    border-bottom: var(--rule-strong);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: end;
}
.hero-kicker {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-red);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}
.hero-kicker::before,
.hero-kicker::after {
    content: "";
    flex: 0 0 40px;
    height: 1px;
    background: var(--c-red);
}
.hero-kicker::after { flex: 1; }
.hero h1 {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 0;
    font-size: clamp(48px, 7.2vw, 104px);
    line-height: 0.92;
    letter-spacing: -0.025em;
    margin: 0 0 32px;
    color: var(--c-ink);
    text-wrap: balance;
}
.hero h1 em {
    font-style: italic;
    font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 100;
    color: var(--c-red);
    font-weight: 400;
}
.hero h1 .stroke {
    display: inline-block;
    position: relative;
}
.hero h1 .stroke::after {
    content: "";
    position: absolute;
    left: -4px; right: -4px;
    bottom: 0.18em;
    height: 0.14em;
    background: var(--c-flag-orange);
    z-index: -1;
    opacity: 0.85;
}
.hero p.lead {
    font-family: var(--f-body);
    font-variation-settings: "opsz" 18, "wght" 380;
    font-size: 21px;
    line-height: 1.45;
    color: var(--c-ink-soft);
    max-width: 38em;
    margin: 0 0 40px;
}
.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--rule-strong);
    padding-top: 24px;
    gap: 32px;
}
.hero-meta .stat .num {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 144, "wght" 500;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    display: block;
}
.hero-meta .stat .num em {
    font-style: italic;
    color: var(--c-red);
    font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 60;
}
.hero-meta .stat .label {
    display: block;
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    line-height: 1.4;
    max-width: 16em;
}

/* Hero plate (the schematic) */
.hero-plate {
    border: var(--rule-strong);
    background: var(--c-paper);
    padding: 16px;
    position: relative;
    box-shadow: 6px 6px 0 var(--c-ink);
}
.hero-plate::before {
    content: "PLATE I / TURBOROTONDE";
    position: absolute;
    top: -1.5px; left: -1.5px;
    background: var(--c-ink);
    color: var(--c-paper);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 5px 11px 4px;
}
.hero-plate img { width: 100%; }
.hero-plate-caption {
    margin-top: 10px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--c-ink-muted);
    line-height: 1.5;
    border-top: var(--rule);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Animated reveal */
@media (prefers-reduced-motion: no-preference) {
    .hero h1, .hero p.lead, .hero-meta, .hero-plate, .hero-kicker {
        opacity: 0;
        transform: translateY(14px);
        animation: rise .9s cubic-bezier(.2,.7,.25,1) forwards;
    }
    .hero-kicker { animation-delay: .05s; }
    .hero h1 { animation-delay: .12s; }
    .hero p.lead { animation-delay: .26s; }
    .hero-meta { animation-delay: .38s; }
    .hero-plate { animation-delay: .5s; }
}
@keyframes rise {
    to { opacity: 1; transform: none; }
}

/* ---------- Section / chapter ---------- */
section.chapter {
    border-bottom: var(--rule-strong);
    position: relative;
    background: var(--c-paper);
}
section.chapter.alt {
    background: var(--c-paper-deep);
}
.chapter-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 88px 32px 96px;
    display: grid;
    grid-template-columns: minmax(160px, 200px) 1fr;
    gap: 48px;
}
.chapter-marker {
    font-family: var(--f-display);
    font-style: italic;
    font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 100;
    font-size: clamp(96px, 14vw, 200px);
    line-height: 0.85;
    color: var(--c-ink);
    letter-spacing: -0.04em;
    position: sticky;
    top: 80px;
    align-self: start;
    -webkit-text-stroke: 1.5px var(--c-ink);
    color: transparent;
    user-select: none;
}
.chapter-marker .lbl {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-red);
    -webkit-text-stroke: 0;
    margin-bottom: 12px;
    font-variation-settings: normal;
}
.chapter-body { min-width: 0; }

.chapter-body h2 {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 0;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.018em;
    margin: 0 0 28px;
    color: var(--c-ink);
    text-wrap: balance;
}
.chapter-body h2 em {
    font-style: italic;
    color: var(--c-red);
    font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 80;
}
.chapter-intro {
    font-family: var(--f-body);
    font-variation-settings: "opsz" 30, "wght" 380;
    font-size: 21px;
    line-height: 1.42;
    color: var(--c-ink-soft);
    max-width: 38em;
    margin: 0 0 56px;
    border-bottom: var(--rule);
    padding-bottom: 28px;
}

.chapter-body h3 {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 60, "wght" 520, "SOFT" 0;
    font-size: 22px;
    line-height: 1.2;
    margin: 40px 0 14px;
    color: var(--c-ink);
}
.chapter-body p {
    margin: 0 0 18px;
    font-variation-settings: "opsz" 18, "wght" 400;
}
.chapter-body p em { font-style: italic; }
.chapter-body ul, .chapter-body ol {
    padding-left: 22px;
    margin: 0 0 22px;
}
.chapter-body li { margin-bottom: 8px; }

/* Drop cap on first paragraph after chapter-intro */
.dropcap::first-letter {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 144, "wght" 380;
    font-size: 5.4em;
    float: left;
    line-height: 0.82;
    margin: 0.05em 0.1em 0 -0.04em;
    color: var(--c-red);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ---------- Timeline ---------- */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1.5px solid var(--c-ink);
}
.timeline li {
    position: relative;
    padding: 0 0 22px 28px;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: -7px; top: 7px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-paper);
    border: 1.5px solid var(--c-ink);
}
.timeline li.key::before { background: var(--c-red); border-color: var(--c-red); }
.timeline .year {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--c-red);
    margin-right: 12px;
    font-weight: 500;
}

/* ---------- Principle plates (replaces .pros) ---------- */
.principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 32px 0 40px;
    border-top: var(--rule-strong);
    border-left: var(--rule-strong);
}
.principle {
    border-right: var(--rule-strong);
    border-bottom: var(--rule-strong);
    padding: 26px 28px 30px;
    background: var(--c-paper);
    position: relative;
    transition: background .2s;
}
section.chapter.alt .principle { background: var(--c-paper-deep); }
.principle:hover { background: var(--c-paper-ink); }
.principle .num {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--c-red);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.principle .num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-rule);
}
.principle h4 {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 60, "wght" 480;
    font-size: 22px;
    line-height: 1.18;
    margin: 0 0 12px;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}
.principle p {
    margin: 0;
    font-size: 16px;
    color: var(--c-ink-soft);
    line-height: 1.5;
}

/* ---------- Pull quote ---------- */
.pull-quote {
    margin: 56px 0 0;
    padding: 36px 0 0;
    border-top: var(--rule-strong);
    font-family: var(--f-display);
    font-style: italic;
    font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 80;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--c-ink);
    max-width: 22em;
    position: relative;
}
.pull-quote::before {
    content: "“";
    position: absolute;
    top: -28px; left: -16px;
    font-size: 100px;
    line-height: 1;
    color: var(--c-red);
    font-style: normal;
    font-variation-settings: "opsz" 144, "wght" 500;
}
.pull-quote cite {
    display: block;
    margin-top: 20px;
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
}

/* ---------- Plate (single figure) ---------- */
.plate {
    margin: 56px 0 0;
    border: var(--rule-strong);
    background: var(--c-paper);
    padding: 14px 14px 0;
    position: relative;
}
.plate::before {
    content: attr(data-plate);
    position: absolute;
    top: -1.5px; left: -1.5px;
    background: var(--c-ink);
    color: var(--c-paper);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 5px 11px 4px;
}
.plate img { width: 100%; display: block; }
.plate-meta {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 16px;
    padding: 14px 4px 16px;
    border-top: var(--rule);
    margin-top: 14px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--c-ink-muted);
    line-height: 1.5;
}
.plate-meta strong {
    display: block;
    color: var(--c-ink);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    color: var(--c-red);
}
.plate-meta .credit a {
    color: var(--c-ink-muted);
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: var(--c-rule);
    text-underline-offset: 2px;
}
.plate-meta .credit a:hover { color: var(--c-red); text-decoration-color: var(--c-red); }

/* ---------- Atlas gallery (Dutch examples) ---------- */
.atlas {
    margin-top: 48px;
    border-top: var(--rule-strong);
    padding-top: 40px;
}
.atlas-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.atlas-head h3 {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 144, "wght" 380, "SOFT" 0;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.014em;
}
.atlas-head h3 em {
    font-style: italic;
    color: var(--c-red);
    font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 80;
}
.atlas-head .index {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
}
.atlas-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 24px;
}
.atlas-item {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}
.atlas-item.feature { grid-column: span 3; }
.atlas-item.wide    { grid-column: span 4; }
.atlas-figure {
    position: relative;
    border: 1.5px solid var(--c-ink);
    overflow: hidden;
    background: var(--c-paper);
}
.atlas-figure::before {
    content: attr(data-plate);
    position: absolute;
    top: 0; left: 0;
    background: var(--c-ink);
    color: var(--c-paper);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 5px 10px 4px;
    z-index: 2;
}
.atlas-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
    display: block;
}
.atlas-item.wide .atlas-figure img { aspect-ratio: 16 / 6; }
.atlas-item:hover .atlas-figure img { transform: scale(1.04); }
.atlas-caption {
    padding: 14px 2px 0;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--c-ink-muted);
    line-height: 1.55;
}
.atlas-caption .loc {
    display: block;
    font-family: var(--f-display);
    font-variation-settings: "opsz" 40, "wght" 480, "SOFT" 0;
    font-style: normal;
    font-size: 19px;
    letter-spacing: -0.008em;
    color: var(--c-ink);
    margin-bottom: 6px;
    line-height: 1.2;
}
.atlas-caption .tag {
    display: inline-block;
    background: var(--c-ink);
    color: var(--c-paper);
    padding: 3px 8px 2px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 6px;
    margin-bottom: 6px;
}
.atlas-caption .tag.red { background: var(--c-red); }
.atlas-caption .tag.blue { background: var(--c-blue); }
.atlas-caption .credit {
    display: block;
    margin-top: 10px;
    color: var(--c-ink-faint);
    font-size: 10px;
}
.atlas-caption .credit a {
    color: var(--c-ink-muted);
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: var(--c-rule);
}
.atlas-caption .credit a:hover { color: var(--c-red); }
.atlas-caption p {
    margin: 6px 0 0;
    font-family: var(--f-body);
    font-variation-settings: "opsz" 14, "wght" 400;
    font-size: 14px;
    color: var(--c-ink-soft);
    letter-spacing: 0;
    line-height: 1.5;
}

/* ---------- Comparison table ---------- */
.table-wrap {
    margin-top: 24px;
    overflow-x: auto;
    border-top: var(--rule-strong);
    border-bottom: var(--rule-strong);
}
table.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    background: transparent;
    font-family: var(--f-body);
}
table.compare th, table.compare td {
    padding: 18px 18px;
    text-align: left;
    border-bottom: var(--rule);
    vertical-align: top;
    line-height: 1.5;
}
table.compare thead th {
    background: transparent;
    color: var(--c-ink);
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: var(--rule-strong);
    padding-bottom: 14px;
}
table.compare thead th .flag {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 0;
}
table.compare tbody tr:hover { background: rgba(200, 16, 46, 0.04); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare th:first-child,
table.compare td:first-child {
    font-family: var(--f-display);
    font-variation-settings: "opsz" 30, "wght" 480;
    font-size: 16px;
    color: var(--c-ink);
    width: 18%;
    background: transparent;
    letter-spacing: -0.005em;
}

/* ---------- References ---------- */
.refs h3 {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-red);
    margin: 0 0 14px;
    font-weight: 500;
}
.refs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    border-top: var(--rule);
}
.refs li {
    border-bottom: var(--rule);
    padding: 14px 0;
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
    color: var(--c-ink-soft);
}
.refs li em { color: var(--c-ink); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--c-ink);
    color: var(--c-paper);
    padding: 64px 32px 40px;
    border-top: 4px solid var(--c-red);
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.site-footer .brand-name { color: var(--c-paper); }
.site-footer .brand-sub { color: rgba(244, 239, 228, 0.65); }
.site-footer p { color: rgba(244, 239, 228, 0.75); font-size: 15px; line-height: 1.55; }
.site-footer h5 {
    font-family: var(--f-mono);
    color: var(--c-paper);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
    font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; font-size: 14px; }
.site-footer a {
    color: rgba(244, 239, 228, 0.8);
    border-bottom: none;
    font-family: var(--f-body);
}
.site-footer a:hover { color: var(--c-red); }
.footer-bottom {
    max-width: var(--max-w);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(244, 239, 228, 0.15);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 239, 228, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .chapter-inner { grid-template-columns: 1fr; gap: 20px; padding: 64px 28px 72px; }
    .chapter-marker {
        position: static;
        font-size: 100px;
        margin-bottom: 12px;
    }
    .two-col { grid-template-columns: 1fr; gap: 36px; }
    .principles { grid-template-columns: 1fr; }
    .atlas-grid { grid-template-columns: repeat(2, 1fr); }
    .atlas-item, .atlas-item.feature, .atlas-item.wide { grid-column: span 2; }
    .hero-meta { grid-template-columns: 1fr; gap: 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .header-inner {
        grid-template-columns: auto auto;
        gap: 18px;
        padding: 12px 20px;
    }
    .nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; gap: 18px; }
    .hero { padding: 56px 0 72px; }
}
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; }
    .atlas-grid { grid-template-columns: 1fr; }
    .atlas-item, .atlas-item.feature, .atlas-item.wide { grid-column: span 1; }
    .plate-meta { grid-template-columns: 1fr; gap: 8px; }
}
