:root {
    --paper: #f4efe6;
    --paper-2: #fbf8f2;
    --ink: #142226;
    --muted: #5c6a6e;
    --lake: #0b3a4a;
    --lake-deep: #072830;
    --water: #1a6d78;
    --copper: #c4622d;
    --line: #e2d9cb;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Avenir Next", "Segoe UI", sans-serif;
    --measure: 40rem;
    --wide: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
}

img, video { max-width: 100%; }

a { color: var(--water); }

a:hover { color: var(--copper); }

h1, h2, h3, .brand, .card-title {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--paper-2);
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 50;
}

.skip:focus { top: 1rem; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    z-index: 20;
}

.site-header.is-solid {
    position: sticky;
    top: 0;
    background: var(--lake);
    color: #f7f3ea;
}

.site-header.is-overlay {
    position: fixed;
    inset: 0 0 auto 0;
    color: #f7f3ea;
    background: linear-gradient(to bottom, rgba(7, 24, 32, 0.55), rgba(7, 24, 32, 0));
}

.site-header.is-overlay.is-scrolled {
    background: rgba(11, 58, 74, 0.94);
}

.brand {
    color: inherit;
    text-decoration: none;
    font-size: 1.45rem;
}

.site-header nav ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-header nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--copper);
}

.nav-toggle {
    display: none;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    padding: 0.35rem 0.7rem;
    font: inherit;
}

.hero {
    position: relative;
    min-height: 100svh;
    color: #f7f3ea;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--lake-deep);
}

.hero-still,
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero video { opacity: 0; }

.hero.is-playing video { opacity: 1; }

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 24, 32, 0.78) 0%, rgba(7, 24, 32, 0.15) 46%, rgba(7, 24, 32, 0.25) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(var(--wide), calc(100% - 2.5rem));
    margin: 0 auto 8vh;
}

.hero h1 {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(3.2rem, 9vw, 7.2rem);
    max-width: 12ch;
    text-wrap: balance;
}

.hero-lead {
    margin: 0;
    max-width: 28rem;
    font-size: 1.2rem;
}

.hero-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    background: var(--paper-2);
    color: var(--lake);
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font: inherit;
    cursor: pointer;
}

.hero-play[hidden] { display: none; }

.kicker {
    margin: 0;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
}

.hero .kicker { color: #f0c7b0; }

.band {
    width: min(var(--wide), calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.5rem 0 1rem;
}

.band-tight { padding-top: 2.5rem; }

.intro { max-width: var(--measure); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-head a { text-decoration: none; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    padding-bottom: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper-2);
    color: inherit;
    text-decoration: none;
    min-height: 100%;
    border: 1px solid transparent;
}

.card:hover { border-color: var(--copper); color: inherit; }

.card img,
.card-fallback {
    aspect-ratio: 3 / 2;
    width: 100%;
    object-fit: cover;
    background: #d5e3e4;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1rem 1.15rem;
}

.card-title {
    margin: 0;
    font-size: 1.45rem;
}

.card-excerpt {
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sheet {
    width: min(var(--measure), calc(100% - 2rem));
    margin: 2.5rem auto 3rem;
}

.sheet-header { margin-bottom: 1.5rem; }

.sheet-header-wide { width: min(var(--wide), calc(100% - 2rem)); margin: 0 auto 1rem; }

.sheet h1, .sheet-header h1 {
    margin: 0.35rem 0 0.6rem;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    text-wrap: balance;
}

.lede, .meta { color: var(--muted); }

.article-photo,
.sheet-photo {
    display: block;
    width: min(var(--wide), 100%);
    margin: 0 auto;
    max-height: 70vh;
    object-fit: cover;
}

.prose > * + * { margin-top: 1rem; }

.prose h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.8rem;
}

.prose h3 { font-size: 1.35rem; }

.prose p, .prose li { font-size: 1.08rem; }

.prose ul, .prose ol { padding-left: 1.2rem; }

.prose img { display: block; width: 100%; height: auto; }

.prose figure { margin: 1.4rem 0; }

.text-link, .source-link a {
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.source-link { margin-top: 1.5rem; }

.ad-slot:empty { display: none; }

.ad-slot.is-ready {
    margin: 2rem 0;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
    min-height: 6rem;
}

.ad-label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer {
    margin-top: 3rem;
    background: var(--lake-deep);
    color: #e7efe9;
}

.footer-inner {
    width: min(var(--wide), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer a,
.site-footer button {
    color: inherit;
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-links { display: flex; gap: 1rem; }

.consent {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem;
}

.consent[hidden],
.consent-settings[hidden],
#consent-save[hidden] { display: none !important; }

.consent-panel {
    width: min(52rem, 100%);
    margin: 0 auto;
    background: var(--paper-2);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(7, 24, 32, 0.2);
    padding: 1.1rem 1.15rem 0.9rem;
}

.consent-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
}

.consent-settings {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.consent-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.consent-row p,
.consent-note {
    display: block;
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.consent-always { color: var(--muted); font-size: 0.85rem; }

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.button, .consent-actions button, .hero-play {
    font: inherit;
}

.consent-actions .button,
.button {
    background: var(--lake);
    color: #f7f3ea;
    border: 0;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.button-quiet {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.button-text {
    background: transparent;
    color: var(--water);
}

.consent-more { margin: 0.7rem 0 0; font-size: 0.92rem; }

.empty { color: var(--muted); }

:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .nav-toggle { display: inline-flex; }

    .site-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--lake);
        color: #f7f3ea;
        padding: 0.5rem 1.25rem 1rem;
    }

    .site-header nav.is-open { display: block; }

    .site-header nav ul {
        flex-direction: column;
        gap: 0.7rem;
    }

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

    .hero-copy { margin-bottom: 12vh; }
}

@media (min-width: 801px) and (max-width: 1040px) {
    .cards { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
