/* ============================================================
   39,000: İNFAZ TİMİ — STYLE.CSS
   Visual system: Departmento Munitorum field codex
   Ground rules: near-black field, aged-paper text, ember orange
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    /* Palette */
    --ink:          #0e0d0b;      /* page base — not pure black, closer to old ink */
    --ink-raised:   #1a1714;      /* card / panel surfaces */
    --ink-edge:     #2a2520;      /* visible borders */
    --ink-rule:     #3a3128;      /* secondary borders, rules */

    --paper:        #d4c9a8;      /* primary readable text — aged document */
    --paper-dim:    #8a7f68;      /* secondary text */
    --paper-ghost:  #4a4438;      /* tertiary, disabled */

    --ember:        #dc4e28;      /* primary accent — fire, alert, highlight */
    --ember-dim:    #9e3418;      /* accent hover / pressed */
    --ember-trace:  rgba(220, 78, 40, 0.12); /* accent tint */
    --ember-rule:   rgba(220, 78, 40, 0.35); /* accent border wash */

    --white-cold:   #f0ebe0;      /* near-white for hero text on black */

    /* Typography */
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:    'PT Serif', Georgia, serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Structure */
    --nav-h:        56px;
    --sidebar-w:    230px;
    --max-text:     720px;
    --max-wide:     1160px;
}

/* ─── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ember);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover { color: var(--white-cold); }

img { display: block; max-width: 100%; }

/* ─── TYPOGRAPHY SCALE ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--white-cold);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.05em; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--white-cold); font-weight: 700; }

ul, ol { padding-left: 1.4rem; margin-bottom: 0.9rem; }
li { margin-bottom: 0.3rem; }

/* ─── UTILITY ─────────────────────────────────────────────── */
.container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Field-manual horizontal rule — thick + thin double rule */
hr.sep, .rule-double {
    border: none;
    border-top: 3px solid var(--ember);
    box-shadow: 0 3px 0 0 var(--ink-edge);
    margin: 2.5rem 0;
}

/* Mono label — used for tags, eyebrows, callsigns */
.mono-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ember);
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
/*
   Design intent: military command post strip — flat black with
   a single ember rule below. Brand uses stencil slash between
   designation number and name.
*/
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--ink);
    border-bottom: 3px solid var(--ember);
    /* secondary thin rule below the accent */
    box-shadow: 0 3px 0 1px var(--ink-edge), 0 4px 16px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--max-wide);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--ember);
    line-height: 1;
}

/* slash divider between number and name */
.nav-number::after {
    content: ' //';
    color: var(--ink-rule);
    font-weight: 400;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--paper-dim);
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-dim);
    padding: 0 1.1rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-left: 1px solid var(--ink-edge);
    transition: color 0.15s, background 0.15s;
    position: relative;
}
.nav-link:first-child { border-left: none; }
.nav-link:hover { color: var(--white-cold); background: var(--ink-raised); }
.nav-link.active {
    color: var(--ember);
    background: var(--ember-trace);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px; /* sits on top of nav border-bottom */
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ember);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--ink-rule);
    padding: 8px 10px;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--paper-dim);
    transition: all 0.2s;
}

/* ─── HERO — LANDING PAGE ─────────────────────────────────── */
/*
   Design: stark cross-marked frame — the title is letterboxed
   between two full-width horizontal bars (top + bottom).
   Large stencil "39,000" sits as background texture numerics.
   No photo overlay box. Pure geometric authority.
*/
.hero {
    position: relative;
    background: var(--ink) url('hero-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
    /* letterbox bars */
    border-top: 4px solid var(--ember);
    border-bottom: 4px solid var(--ember);
    padding: 0;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
}

/* full image darkening — heavy vignette, not uniform overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,   rgba(14,13,11,0.97) 0%, rgba(14,13,11,0.55) 55%, rgba(14,13,11,0.30) 100%),
        linear-gradient(to right, rgba(14,13,11,0.70) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* ghost stencil numerals — background texture */
.hero::after {
    content: '39,000';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(9rem, 22vw, 18rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(220, 78, 40, 0.09);
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    user-select: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 4rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

/* operational badge — stencil-stamp style */
.hero-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ember);
    background: var(--ember-trace);
    border: 1px solid var(--ember-rule);
    border-left: 3px solid var(--ember);
    padding: 0.25rem 0.75rem;
    display: inline-block;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--white-cold);
    line-height: 0.9;
}

/* underline rule below the number, above the subtitle */
.hero-number::after {
    content: '';
    display: block;
    height: 4px;
    width: 60%;
    background: var(--ember);
    margin: 0.3rem 0 0.1rem;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--ember);
    line-height: 1;
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--paper-dim);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* meta strip below buttons */
.hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
    border-top: 1px solid var(--ink-rule);
    margin-top: 0.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--paper-ghost);
}
.meta-item svg { fill: var(--paper-ghost); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
/*
   Design: no rounded corners. Sharp-edged, militaristic.
   Primary = filled ember with left-notch clip.
   Secondary = ghost with dashed ember border.
*/
.btn {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.7rem 1.6rem;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    text-decoration: none;
}

.btn-primary {
    background: var(--ember);
    border-color: var(--ember);
    color: var(--white-cold);
}
.btn-primary:hover {
    background: var(--ember-dim);
    border-color: var(--ember-dim);
    color: var(--white-cold);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--paper-ghost);
    color: var(--paper-dim);
}
.btn-secondary:hover {
    border-color: var(--paper);
    color: var(--white-cold);
    transform: translateY(-1px);
}

/* small variant */
.btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 1.1rem;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

/* ─── SECTION TITLES — GLOBAL ─────────────────────────────── */
/*
   Double-rule treatment: thick ember line above text,
   thin rule extends full width below it.
   This is the signature structural device.
*/
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-cold);
    padding-top: 0.75rem;
    border-top: 4px solid var(--ember);
    border-bottom: 1px solid var(--ink-rule);
    padding-bottom: 0.6rem;
    margin-bottom: 1.75rem;
}
.section-title::after { display: none; } /* kill any old pseudo-element */

.section-description {
    color: var(--paper-dim);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 62ch;
}

/* ─── MAIN CONTENT WRAPPER ───────────────────────────────── */
.main-content {
    background: var(--ink);
}

/* ─── FEATURE SECTION ─────────────────────────────────────── */
.feature-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--ink-edge);
}

/* 
   Feature grid: asymmetric — first card gets 2 cols on wide,
   remaining two stack side by side. Breaks the SaaS uniform grid.
*/
.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
    border: 2px solid var(--ink-rule);
    margin-bottom: 1.5rem;
}

.feature-card {
    padding: 2rem 1.75rem;
    border-right: 2px solid var(--ink-rule);
    background: var(--ink-raised);
    position: relative;
    transition: background 0.2s;
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--ink-edge); }

/* top-left corner bracket mark */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-top: 3px solid var(--ember);
    border-left: 3px solid var(--ember);
    opacity: 0;
    transition: opacity 0.2s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-cold);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--paper-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-link {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember);
    transition: color 0.15s;
}
.feature-link:hover { color: var(--white-cold); }

/* painting guide — wide bar card */
.feature-bar {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 2rem;
    background: var(--ink-raised);
    border: 2px solid var(--ink-rule);
    border-top: none; /* connects visually to grid above */
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}
.feature-bar:hover {
    background: var(--ink-edge);
    border-color: var(--ember-rule);
    color: inherit;
}
.feature-bar .feature-icon {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0;
}

/* ─── ABOUT / PROSE BLOCK ─────────────────────────────────── */
.about-content p {
    color: var(--paper-dim);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 72ch;
}

/* ─── SPLIT BLOCK — text + image two-column ───────────────── */
/*
   Used in Cehennemin Dibi and Neden sections.
   Default: text left, image right.
   Modifier --reverse: image left, text right.
*/
.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 2px solid var(--ink-rule);
}

.split-block--reverse {
    direction: rtl;
}
.split-block--reverse > * {
    direction: ltr;
}

.split-text {
    padding: 2.5rem 2rem;
    background: var(--ink-raised);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-text p {
    color: var(--paper-dim);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0.9rem;
}
.split-text p:last-of-type { margin-bottom: 0; }

.split-text .section-title { margin-bottom: 1.25rem; }

.split-image {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-left: 4px solid var(--ember);
}

.split-block--reverse .split-image {
    border-left: none;
    border-right: 4px solid var(--ember);
}

.split-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s;
}

.split-block:hover .split-image img { filter: brightness(1); }

@media (max-width: 860px) {
    .split-block,
    .split-block--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .split-image {
        min-height: 0;
        border-left: none;
        border-right: none;
        border-top: 4px solid var(--ember);
    }
    .split-image img {
        position: relative;
        inset: auto;
        width: 100%;
        height: 240px;
        object-fit: cover;
    }
    .split-block--reverse .split-image {
        border-right: none;
        border-top: 4px solid var(--ember);
    }
}

/* ─── STAT ITEMS ──────────────────────────────────────────── */
.about-stats {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    border: 2px solid var(--ink-rule);
    width: fit-content;
}

.stat-item {
    padding: 1.25rem 2rem;
    border-right: 2px solid var(--ink-rule);
    text-align: center;
    background: var(--ink-raised);
}
.stat-item:last-child { border-right: none; }

.stat-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--ember);
    line-height: 1;
    letter-spacing: 0.04em;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-ghost);
    margin-top: 0.25rem;
}

/* ─── ABOUT SECTION ───────────────────────────────────────── */
.about-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--ink-edge);
}

/* ─── COMMUNITY SECTION ───────────────────────────────────── */
.community-section {
    padding: 4rem 0;
}

.community-links {
    display: flex;
    gap: 0;
    border: 2px solid var(--ink-rule);
}

.community-card {
    flex: 1;
    padding: 2rem 1.75rem;
    background: var(--ink-raised);
    border-right: 2px solid var(--ink-rule);
    text-decoration: none;
    color: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: background 0.2s;
}
.community-card:last-child { border-right: none; }
.community-card:hover { background: var(--ink-edge); color: var(--paper); }

/* top accent rule on hover */
.community-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 3px;
    background: var(--ember);
    opacity: 0;
    transition: opacity 0.2s;
}
.community-card:hover::before { opacity: 1; }

.community-icon {
    color: var(--ember);
    margin-bottom: 0.5rem;
}

.community-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--white-cold);
}

.community-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--paper-ghost);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.main-footer {
    background: var(--ink);
    border-top: 4px solid var(--ember);
    box-shadow: 0 -3px 0 1px var(--ink-edge);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ink-rule);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--ember);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--paper-ghost);
    line-height: 1.6;
    max-width: 30ch;
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ink-rule);
}

.footer-column a {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--paper-ghost);
    padding: 0.2rem 0;
    transition: color 0.15s;
}
.footer-column a:hover { color: var(--paper); }

.footer-bottom {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--paper-ghost);
    letter-spacing: 0.05em;
    line-height: 1.7;
}

.footer-license {
    color: var(--paper-ghost);
    margin-top: 0.4rem;
}
.footer-license strong { color: var(--paper-dim); font-weight: 600; }

/* ─── SRD LAYOUT ──────────────────────────────────────────── */
/*
   The sidebar is redesigned as a printed-index strip:
   ruled lines, stamped section numbers, stark mono type.
   Not a floating card — a structural column inset into the page.
*/
.srd-page { background: var(--ink); }

.srd-container {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: calc(100vh - var(--nav-h));
}

.srd-sidebar {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--ink-raised);
    /* stark right-border: double-line (thick + gap + thin) */
    border-right: 4px solid var(--ember);
    box-shadow: 4px 0 0 0 var(--ink-edge);
    display: flex;
    flex-direction: column;
}

.srd-sidebar::-webkit-scrollbar { width: 4px; }
.srd-sidebar::-webkit-scrollbar-track { background: var(--ink-raised); }
.srd-sidebar::-webkit-scrollbar-thumb { background: var(--ink-rule); }

.sidebar-header {
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 2px solid var(--ink-edge);
    background: var(--ink);
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember);
}
/* title is plain mono — remove display font default */
.sidebar-title { font-family: var(--font-mono); text-transform: uppercase; }

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

/* each link styled as a ruled index entry */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper-ghost);
    border-bottom: 1px solid var(--ink-edge);
    transition: background 0.12s, color 0.12s;
    text-decoration: none;
    position: relative;
}
.sidebar-link::before {
    content: '//';
    font-size: 0.6rem;
    color: var(--ink-rule);
    transition: color 0.12s;
}
.sidebar-link:hover {
    color: var(--paper);
    background: var(--ink-edge);
    color: var(--paper);
}
.sidebar-link:hover::before { color: var(--ember); }
.sidebar-link.active {
    color: var(--ember);
    background: var(--ember-trace);
    border-left: 3px solid var(--ember);
    padding-left: calc(1rem - 3px);
}
.sidebar-link.active::before { color: var(--ember); }

.sidebar-footer {
    padding: 1rem;
    border-top: 2px solid var(--ink-edge);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember);
    border: 2px solid var(--ember-rule);
    background: var(--ember-trace);
    transition: background 0.15s, border-color 0.15s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.download-btn:hover {
    background: var(--ember);
    border-color: var(--ember);
    color: var(--white-cold);
}

/* ─── SRD CONTENT AREA ────────────────────────────────────── */
.srd-content {
    padding: 0;
    overflow-x: hidden;
}

/* SRD page header — command document header */
.srd-header {
    background: var(--ink-raised);
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 4px solid var(--ember);
    box-shadow: 0 4px 0 0 var(--ink-edge);
}

.srd-main-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
}

.title-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--ember);
    line-height: 0.9;
    letter-spacing: -0.01em;
}

.title-text {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--paper-dim);
}

.srd-subtitle {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--paper-ghost);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.srd-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-badge {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-ghost);
    border: 1px solid var(--ink-rule);
    padding: 0.2rem 0.6rem;
    background: var(--ink);
}

/* ─── SRD SECTIONS ────────────────────────────────────────── */
.srd-section {
    padding: 2.5rem 2.5rem 1rem;
    border-bottom: 1px solid var(--ink-edge);
}
.srd-section:last-child { border-bottom: none; }

/* Section heading — double-rule treatment, full width */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-cold);
    padding-top: 0.6rem;
    border-top: 4px solid var(--ember);
    border-bottom: 1px solid var(--ink-rule);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-content {
    max-width: var(--max-text);
}

.section-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--paper);
    margin: 1.75rem 0 0.5rem;
    text-transform: uppercase;
}

.section-content h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ember);
    margin: 1.2rem 0 0.4rem;
    text-transform: uppercase;
}

.section-content p {
    color: var(--paper-dim);
    font-size: 0.98rem;
    line-height: 1.75;
}

.section-content ul,
.section-content ol {
    color: var(--paper-dim);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* ─── INFO BOXES ──────────────────────────────────────────── */
.info-box {
    display: flex;
    gap: 1rem;
    background: var(--ink-raised);
    border: 1px solid var(--ink-rule);
    border-left: 4px solid var(--ember);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.info-content {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--paper-dim);
    line-height: 1.65;
}

/* ─── RULES TABLES ────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.92rem;
}

.rules-table thead tr {
    background: var(--ink);
    border-bottom: 3px solid var(--ember);
}

.rules-table th {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember);
    padding: 0.6rem 1rem;
    text-align: left;
}

.rules-table td {
    padding: 0.55rem 1rem;
    color: var(--paper-dim);
    border-bottom: 1px solid var(--ink-edge);
}

.rules-table tbody tr:hover td {
    background: var(--ink-raised);
    color: var(--paper);
}

/* ─── PAGE HEADER — shared by Mahşer, Kaynaklar, Tim Kur ─── */
/*
   Full-width title block that sits above the page layout.
   Matches the builder-header and resources-header pattern:
   ember top-border, title, subtitle, optional epigraph.
*/
.page-header {
    background: var(--ink-raised);
    border-top: 4px solid var(--ember);
    border-bottom: 4px solid var(--ember);
    box-shadow: 0 4px 0 0 var(--ink-edge);
    padding: 2.5rem var(--max-wide);
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
}

.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white-cold);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.page-header__sub {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--paper-dim);
    margin-bottom: 0;
}

/* When an epigraph follows the subtitle inside page-header */
.page-header .epigraph {
    max-width: 680px;
    margin: 1.5rem 0 0;
}

/* ─── LORE PAGE (MAHŞER) ──────────────────────────────────── */
.lore-page { background: var(--ink); }

.lore-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    max-width: 100%;
}

/* TOC rail — same stark stamp-index as SRD sidebar */
.toc-rail {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 0;
    border-right: 4px solid var(--ember);
    box-shadow: 4px 0 0 0 var(--ink-edge);
    background: var(--ink-raised);
    display: flex;
    flex-direction: column;
}

.toc-rail::-webkit-scrollbar { width: 4px; }
.toc-rail::-webkit-scrollbar-track { background: var(--ink-raised); }
.toc-rail::-webkit-scrollbar-thumb { background: var(--ink-rule); }

.toc-rail h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem;
    font-weight: 600 !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember) !important;
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 2px solid var(--ink-edge);
    background: var(--ink);
}

.toc-rail a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--paper-ghost) !important;
    border-bottom: 1px solid var(--ink-edge);
    transition: background 0.12s, color 0.12s;
    line-height: 1.3 !important;
}
.toc-rail a::before {
    content: '//';
    font-size: 0.6rem;
    color: var(--ink-rule);
    flex-shrink: 0;
}
.toc-rail a:hover {
    color: var(--paper) !important;
    background: var(--ink-edge);
}

.toc-group { margin-bottom: 0; }
.toc-group-title {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--paper-dim) !important;
    padding: 0.6rem 1rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-edge);
    display: block;
}

.toc-sub {
    padding-left: 0.75rem;
    border-left: none !important;
}

/* ─── LORE MAIN CONTENT ───────────────────────────────────── */
.lore-main {
    padding: 0 3rem 4rem;
    max-width: 820px;
}

/* ─── LORE HERO BANNER ────────────────────────────────────── */
.lore-hero {
    background: var(--ink-raised);
    padding: 3.5rem 3rem 2.5rem;
    border-bottom: 4px solid var(--ember);
    box-shadow: 0 4px 0 0 var(--ink-edge);
    margin: 0 -3rem 0;
}

.lore-hero h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 7vw, 5rem) !important;
    color: var(--ember) !important;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.lore-hero .hero-sub {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--paper-ghost) !important;
    text-transform: none !important;
}

.epigraph {
    max-width: 680px;
    margin: 1.75rem 0 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--ember);
    background: var(--ember-trace);
    border-top: 1px solid var(--ember-rule);
    border-bottom: 1px solid var(--ember-rule);
    text-align: left;
}

.epigraph p {
    font-style: italic;
    color: var(--paper-dim) !important;
    font-size: 0.92rem !important;
    line-height: 1.6;
    margin: 0;
}

.epigraph .ep-src {
    font-style: normal;
    font-family: var(--font-mono);
    color: var(--paper-ghost) !important;
    font-size: 0.72rem !important;
    margin-top: 0.4rem;
}

/* ─── LORE SECTION HEADS ──────────────────────────────────── */
.sec-head {
    margin: 3rem 0 1.25rem;
    padding-top: 0.75rem;
    border-top: 4px solid var(--ember);
    border-bottom: 1px solid var(--ink-rule);
    padding-bottom: 0.5rem;
}
.sec-head:first-child { margin-top: 0; }

.sec-head h2 {
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    color: var(--white-cold) !important;
    letter-spacing: 0.04em;
}

.sec-tag {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    color: var(--ember) !important;
    letter-spacing: 0.12em;
    text-transform: uppercase !important;
    display: block;
    margin-bottom: 0.2rem;
}

h3.planet {
    font-family: var(--font-display);
    font-size: 1.3rem !important;
    color: var(--white-cold) !important;
    margin: 2rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pnum { color: var(--ember); font-weight: 900; margin-right: 0.2rem; }

.ptype {
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--paper-ghost) !important;
    margin-left: 0.4rem;
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
}

.lore-main h4 {
    font-family: var(--font-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--ember) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
    margin: 1.25rem 0 0.4rem !important;
}

.lore-main p {
    color: var(--paper-dim);
    font-size: 0.96rem;
    line-height: 1.75;
}

/* Faction cards */
.fc {
    background: var(--ink-raised);
    border: 1px solid var(--ink-rule);
    border-left: 4px solid var(--ember);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.fc h4 {
    color: var(--white-cold) !important;
    border-bottom: 1px solid var(--ink-edge);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem !important;
}

.fc-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 0.6rem;
}

.fc-leader {
    font-weight: 700;
    color: var(--white-cold);
}

.fc-why {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--paper-ghost);
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--ink-edge);
    letter-spacing: 0.03em;
}

/* Zone cards */
.zone {
    background: var(--ink-raised);
    border: 1px solid var(--ink-rule);
    border-top: 2px solid var(--ink-rule);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.zone h4 {
    color: var(--white-cold) !important;
    font-size: 1rem !important;
    margin: 0 0 0.35rem !important;
}

.z-desc {
    color: var(--paper-dim) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
}

.z-threat {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ember) !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.05em;
}

/* Dramatis Personae table */
.dtable {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.dtable thead tr {
    background: var(--ink);
    border-bottom: 3px solid var(--ember);
}

.dtable th {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ember);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.dtable td {
    padding: 0.5rem 0.75rem;
    color: var(--paper-dim);
    border-bottom: 1px solid var(--ink-edge);
}

.dtable .nm { color: var(--white-cold); font-weight: 600; }
.dtable .fac {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ember);
    letter-spacing: 0.04em;
}

.dtable tbody tr:hover td { background: var(--ink-raised); }

/* stamp / classified notice */
.stamp {
    background: var(--ink-raised);
    border: 2px solid var(--ink-rule);
    border-left: 6px solid var(--ember);
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--paper-ghost);
    letter-spacing: 0.06em;
}

.stamp-warn {
    color: var(--ember);
    margin-top: 0.4rem;
    font-weight: 600;
}

/* lore images */
.lore-img { margin: 1.5rem 0; border: 2px solid var(--ink-rule); }

/* ─── RESOURCES PAGE ──────────────────────────────────────── */
.resources-page { background: var(--ink); }

.resources-container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.resources-header {
    margin-bottom: 3rem;
    padding-top: 1rem;
    border-top: 4px solid var(--ember);
}

.resources-title {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em;
    color: var(--white-cold) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
}

.resources-subtitle {
    font-family: var(--font-body) !important;
    font-size: 1.05rem !important;
    color: var(--paper-dim) !important;
}

.resource-section {
    background: var(--ink-raised);
    border: 2px solid var(--ink-rule);
    border-top: 4px solid var(--ember);
    padding: 2rem;
    margin-bottom: 2rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--ink-rule);
    border: 1px solid var(--ink-rule);
}

.resource-card {
    background: var(--ink);
    border: none !important;
    padding: 1.25rem !important;
    transition: background 0.15s !important;
    box-shadow: none !important;
}
.resource-card:hover {
    transform: none !important;
    background: var(--ink-edge) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.resource-card h3 {
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    color: var(--white-cold) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem !important;
}

.resource-card .rc-sub {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    color: var(--ember) !important;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase;
}

.resource-card p {
    font-family: var(--font-body) !important;
    color: var(--paper-dim) !important;
    font-size: 0.9rem !important;
    line-height: 1.6;
}

.resource-link {
    font-family: var(--font-display) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase !important;
    color: var(--ember) !important;
    transition: color 0.15s !important;
}
.resource-link:hover {
    color: var(--white-cold) !important;
    transform: none !important;
}

.warning-box {
    background: var(--ember-trace) !important;
    border: 2px solid var(--ember-rule) !important;
    border-left: 6px solid var(--ember) !important;
    padding: 1.25rem !important;
    margin-bottom: 2rem !important;
}

/* ─── PAINTING GUIDE PAGE ─────────────────────────────────── */
.guide-page { background: var(--ink); }

.guide-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    max-width: 100%;
}

/* TOC duplicates the SRD sidebar pattern */
.guide-toc {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 0 !important;
    border-right: 4px solid var(--ember);
    box-shadow: 4px 0 0 0 var(--ink-edge);
    background: var(--ink-raised) !important;
}

.guide-toc::-webkit-scrollbar { width: 4px; }
.guide-toc::-webkit-scrollbar-track { background: var(--ink-raised); }
.guide-toc::-webkit-scrollbar-thumb { background: var(--ink-rule); }

.guide-toc h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember) !important;
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 2px solid var(--ink-edge);
    background: var(--ink);
    margin-bottom: 0 !important;
}

.guide-toc a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem !important;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--paper-ghost) !important;
    border-bottom: 1px solid var(--ink-edge);
    transition: background 0.12s, color 0.12s;
    line-height: 1.3 !important;
}
.guide-toc a::before {
    content: '//';
    font-size: 0.6rem;
    color: var(--ink-rule);
    flex-shrink: 0;
}
.guide-toc a:hover {
    color: var(--paper) !important;
    background: var(--ink-edge);
}

.guide-toc .toc-group-title {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--paper-dim) !important;
    padding: 0.6rem 1rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-edge);
    display: block;
    margin-top: 0 !important;
}

.guide-toc .toc-sub-link {
    padding-left: 1.5rem !important;
    font-size: 0.66rem !important;
}

.guide-main {
    padding: 0 3rem 4rem;
    max-width: 820px;
}

/* Guide hero banner */
.guide-hero {
    background: var(--ink-raised) !important;
    padding: 3.5rem 3rem 2.5rem;
    border-bottom: 4px solid var(--ember);
    box-shadow: 0 4px 0 0 var(--ink-edge);
    margin: 0 -3rem 0;
}

.guide-hero h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 6vw, 4rem) !important;
    color: var(--ember) !important;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.guide-hero .hero-sub {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--paper-ghost) !important;
    text-transform: none !important;
    max-width: 55ch;
}

/* Guide section heads — same double-rule pattern */
.guide-main .sec-head {
    margin: 2.5rem 0 1rem;
    padding-top: 0.75rem;
    border-top: 4px solid var(--ember);
    border-bottom: 1px solid var(--ink-rule);
    padding-bottom: 0.5rem;
}

.guide-main .sec-head h2 {
    font-family: var(--font-display) !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    color: var(--white-cold) !important;
    letter-spacing: 0.04em;
}

/* color swatch strip — recolor backgrounds to keep legibility */
.swatch-row {
    display: flex;
    gap: 0;
    margin: 1rem 0;
    border: 2px solid var(--ink-rule);
    overflow: hidden;
}

.swatch {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.swatch .sw-name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    word-break: break-word;
}

/* step list */
.step-list { list-style: none; padding: 0; margin: 1rem 0; }
.step-list li {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ink-edge);
    background: var(--ink-raised);
    margin-bottom: 2px;
}
.step-list li:last-child { border-bottom: none; }

.step-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ember);
    line-height: 1;
    flex-shrink: 0;
    width: 1.8rem;
}

.step-content { flex: 1; }
.step-content strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white-cold);
    margin-bottom: 0.2rem;
}

/* tip / note box */
.tip-box, .note-box {
    background: var(--ink-raised);
    border: 1px solid var(--ink-rule);
    border-left: 4px solid var(--ember);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
    color: var(--paper-dim);
    line-height: 1.65;
}

.tip-box strong, .note-box strong { color: var(--ember); }

/* progress bar in guide */
.prog-bar {
    height: 6px;
    background: var(--ink-rule);
    margin: 0.3rem 0 0.75rem;
}
.prog-fill {
    height: 100%;
    background: var(--ember);
}

/* ─── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--ink-raised);
        flex-direction: column;
        border-bottom: 3px solid var(--ember);
        z-index: 99;
        gap: 0;
    }
    .nav-links.active { display: flex; }

    .nav-link {
        height: 48px;
        border-left: none;
        border-bottom: 1px solid var(--ink-edge);
        padding: 0 1.5rem;
    }
    .nav-link.active::after { display: none; }
    .nav-link.active { border-left: 4px solid var(--ember); }

    .hero { min-height: 60vh; }
    .hero::after { display: none; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { border-right: none; border-bottom: 2px solid var(--ink-rule); }
    .feature-card:last-child { border-bottom: none; }

    .community-links { flex-direction: column; }
    .community-card { border-right: none; border-bottom: 2px solid var(--ink-rule); }

    .about-stats { flex-direction: column; width: 100%; }
    .stat-item { border-right: none; border-bottom: 2px solid var(--ink-rule); }
    .stat-item:last-child { border-bottom: none; }

    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: 1fr 1fr; }

    .srd-container { grid-template-columns: 1fr; }
    .srd-sidebar { display: none; }

    .lore-layout { grid-template-columns: 1fr; }
    .toc-rail { display: none; }
    .lore-main { padding: 0 1rem 3rem; }
    .lore-hero { margin: 0 -1rem; padding: 2.5rem 1rem 1.5rem; }

    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { display: none; }
    .guide-main { padding: 0 1rem 3rem; }
    .guide-hero { margin: 0 -1rem; padding: 2.5rem 1rem 1.5rem; }

    .resources-container { padding: 2rem 1rem 3rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn { width: fit-content; }
    .footer-links { grid-template-columns: 1fr; }
    .feature-bar { grid-template-columns: 1fr; }
}

/* ─── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
