:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e5e7eb;
    --border-strong: #dbe3ef;
    --text: #111827;
    --muted: #4b5563;
    --accent: #1e3a8a;
    --accent-2: #dc2626;
    --success: #16a34a;
    --accent-soft: rgba(30, 58, 138, 0.08);
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 16px 34px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

body::before {
    content: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    width: 100%;
}

code {
    font-family: Consolas, "SFMono-Regular", Menlo, Monaco, "Liberation Mono", monospace;
    font-size: 0.95em;
    color: var(--accent);
    background: rgba(30, 58, 138, 0.08);
    border-radius: 10px;
    padding: 0.08rem 0.35rem;
}

.site-shell {
    position: relative;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 40px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-copy,
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 20px;
}

.hero-copy::after {
    content: none;
}

.eyebrow,
.section-kicker,
.hero-alert-label,
.timeline-date,
.fallback-badge,
.media-kind {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
    font-weight: 700;
}

.eyebrow,
.section-kicker,
.hero-alert-label {
    color: var(--accent);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.7rem, 2.35vw, 2.25rem);
    line-height: 1.12;
    max-width: 17ch;
}

.hero-subtitle {
    margin: 10px 0 0;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.65;
    font-size: 1rem;
}

.hero-alert {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), rgba(30, 58, 138, 0.02));
}

.hero-alert::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--accent-2);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.08);
}

.hero-alert p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.96rem;
}

.content {
    display: grid;
    gap: 16px;
}

.panel {
    border-radius: var(--radius-xl);
    padding: 20px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    line-height: 1.15;
}

.section-note {
    margin: 0;
    max-width: 42ch;
    color: var(--muted);
    line-height: 1.55;
    text-align: right;
}

.gallery-summary {
    margin: 2px 0 14px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.facts-grid,
.timeline,
.media-grid {
    display: grid;
    gap: 10px;
}

.facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.fact-card,
.timeline-card,
.story-card,
.media-card,
.empty-state {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.fact-card {
    position: relative;
    padding: 14px;
}

.fact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--accent), rgba(30, 58, 138, 0.32));
}

.fact-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fact-value {
    display: block;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

.timeline {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.timeline-card {
    padding: 16px;
    border-left: 3px solid var(--accent);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.12);
}

.timeline-card p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.story-stack {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.story-card {
    padding: 18px;
}

.story-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.story-card p {
    margin: 0 0 12px;
    color: #1f2937;
    line-height: 1.8;
}

.story-card p strong {
    font-weight: 800;
    color: var(--text);
}

.story-card p:last-child {
    margin-bottom: 0;
}

.story-card--list ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 10px;
}

.story-card--list li {
    color: var(--text);
    line-height: 1.65;
}

.story-card--list li::marker {
    color: var(--accent);
    font-weight: 700;
}

.gallery-group + .gallery-group {
    margin-top: 18px;
}

.gallery-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.gallery-title-row h3 {
    font-size: 1.05rem;
}

.gallery-title-row span {
    color: var(--muted);
    font-size: 0.95rem;
}

.media-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.media-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-preview {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: #ffffff;
}

.media-preview--video video {
    background: #0f172a;
}

.media-open {
    display: block;
}

.media-preview--fallback {
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 18px;
    background: linear-gradient(180deg, #f8fafc, #ffffff 100%);
}

.fallback-mark {
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
    color: var(--muted);
}

.fallback-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.14);
}

.media-body {
    padding: 14px 14px 16px;
    display: grid;
    gap: 10px;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.media-kind {
    color: var(--accent);
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.12);
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
}

.media-body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.media-body p {
    margin: 0;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.66rem 0.95rem;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-secondary {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--accent);
}

.button-secondary:hover {
    background: rgba(30, 58, 138, 0.05);
    border-color: rgba(30, 58, 138, 0.24);
}

.empty-state {
    margin-top: 12px;
    padding: 18px;
    border-style: dashed;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: start;
    }

    .section-note {
        text-align: left;
        max-width: none;
    }

    .section-head--gallery {
        align-items: start;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 18px, 1180px);
        padding-top: 14px;
    }

    .hero-copy,
    .panel {
        border-radius: 20px;
    }

    .hero-copy,
    .panel {
        padding: 18px;
    }

    .hero-alert {
        flex-direction: column;
    }

    .gallery-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .media-preview img,
    .media-preview video,
    .media-preview--fallback {
        height: 210px;
    }
}
