/*
Sponsords Field Notes design DNA
Warm documentary partnership journal: issue masthead, full-bleed cover story,
asymmetric editorial grids, ruled desks, paper-note accents and a dark colophon.
Fonts: Fraunces + Manrope + Space Mono.
Palette: oat #f4ebdd, oxblood #6e2639, marigold #e6a62f, midnight #172235, sky #a7d8de.
*/
:root {
    --oat: #f4ebdd;
    --wine: #6e2639;
    --gold: #e6a62f;
    --night: #172235;
    --sky: #a7d8de;
    --cream: #fffaf1;
    --line: #cbbba6;
    --white: #ffffff;
    --shadow: 12px 14px 0 var(--gold);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--oat);
    color: var(--night);
    font: 17px/1.68 Manrope, sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--night);
    color: white;
}

.skip-link:focus {
    top: 12px;
}

.masthead {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--night);
    background: var(--oat);
}

.mast-top {
    display: flex;
    justify-content: space-between;
    padding: 10px 28px;
    border-bottom: 1px solid var(--line);
    font: 12px "Space Mono", monospace;
}

.brand-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 28px 14px;
}

.brand {
    font: clamp(48px, 7vw, 92px)/0.9 Fraunces, serif;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.brand em {
    color: var(--wine);
    font-style: normal;
}

.issue {
    justify-self: start;
    font: 12px "Space Mono", monospace;
}

.join {
    justify-self: end;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}

.nav a,
.label,
.eyebrow {
    font: 700 11px "Space Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav a:hover,
footer a:hover,
.text-link:hover {
    color: var(--wine);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--wine);
    border-radius: 999px;
    background: var(--wine);
    color: white;
    font: 700 12px "Space Mono", monospace;
    text-transform: uppercase;
    text-decoration: none;
}

.button:hover {
    background: var(--night);
    border-color: var(--night);
}

.button.outline {
    background: transparent;
    color: var(--night);
    border-color: var(--night);
}

.button.gold {
    background: var(--gold);
    color: var(--night);
    border-color: var(--night);
}

.menu-button,
.mobile-menu {
    display: none;
}

.container {
    width: min(1240px, calc(100% - 44px));
    margin: auto;
}

.section {
    padding: 88px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--night);
}

.section-head h2,
.display-title {
    max-width: 900px;
    margin: 0 0 18px;
    font: clamp(42px, 5vw, 72px)/0.98 Fraunces, serif;
    letter-spacing: -0.045em;
}

.section-head p {
    max-width: 420px;
}

.lead {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: end;
    overflow: hidden;
    color: white;
    background-position: center;
    background-size: cover;
}

.lead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 34, 53, 0.05), rgba(23, 34, 53, 0.94));
}

.lead-copy {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    padding: 90px 6vw 64px;
}

.lead h1 {
    max-width: 1000px;
    margin: 15px 0 24px;
    font: clamp(56px, 8vw, 112px)/0.9 Fraunces, serif;
    letter-spacing: -0.055em;
}

.lead p {
    max-width: 760px;
    font-size: 21px;
}

.ticker {
    display: flex;
    gap: 42px;
    overflow: hidden;
    padding: 16px 0;
    background: var(--gold);
    font: 700 12px "Space Mono", monospace;
    white-space: nowrap;
}

.ticker span {
    flex: none;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    gap: 22px;
}

.story {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.story:first-child {
    grid-row: span 2;
}

.story img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.story:first-child img {
    aspect-ratio: 4 / 5;
}

.story h3 {
    margin: 16px 0 8px;
    font: 29px/1.05 Fraunces, serif;
}

.story:first-child h3 {
    font-size: 44px;
}

.story a {
    text-decoration: none;
}

.note-strip {
    position: relative;
    padding: 75px 0;
    overflow: hidden;
    background: var(--wine);
    color: white;
}

.note-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.note-grid h2 {
    margin: 0;
    color: var(--sky);
    font: 64px/0.95 Fraunces, serif;
}

.paper-note {
    padding: 38px;
    transform: rotate(-1.2deg);
    background: var(--cream);
    color: var(--night);
    box-shadow: var(--shadow);
}

.paper-note li {
    margin: 14px 0;
}

.path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--night);
    border-bottom: 1px solid var(--night);
}

.path article {
    min-height: 260px;
    padding: 28px;
    border-right: 1px solid var(--night);
}

.path article:last-child {
    border-right: 0;
}

.path strong {
    color: var(--wine);
    font: 52px Fraunces, serif;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-bar button {
    padding: 10px 16px;
    border: 1px solid var(--night);
    border-radius: 999px;
    background: transparent;
}

.filter-bar button.active {
    background: var(--night);
    color: white;
}

.dispatches,
.guide-grid,
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dispatch,
.guide-card,
.tool-card {
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--cream);
}

.dispatch:nth-child(2n),
.guide-card:nth-child(3n + 2) {
    background: var(--sky);
}

.dispatch h3,
.guide-card h3,
.tool-card h3 {
    margin-top: 45px;
    font: 31px/1.08 Fraunces, serif;
}

.dispatch a,
.guide-card a,
.tool-card a {
    text-decoration: none;
}

.newsletter {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 45px;
    align-items: center;
    padding: 75px max(24px, calc((100vw - 1240px) / 2));
    background: var(--gold);
}

.newsletter h2 {
    margin: 0;
    font: 58px/0.95 Fraunces, serif;
}

.newsletter form {
    display: flex;
    gap: 10px;
}

.newsletter input {
    min-width: 0;
    flex: 1;
    padding: 15px;
    border: 1px solid var(--night);
    background: var(--cream);
}

.form-status {
    margin-top: 12px;
    font-weight: 700;
}

.page-hero {
    padding: 76px 0 58px;
    border-bottom: 1px solid var(--night);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
    align-items: end;
}

.page-hero h1 {
    margin: 12px 0 20px;
    font: clamp(54px, 7vw, 96px)/0.92 Fraunces, serif;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 720px;
    font-size: 20px;
}

.page-hero img,
.page-banner img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.article-shell {
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
    padding: 70px 0 100px;
}

.article-aside {
    position: sticky;
    top: 24px;
    padding-top: 15px;
    border-top: 1px solid var(--night);
}

.article-aside a {
    display: block;
    margin: 12px 0;
    text-decoration: none;
}

.article-body {
    max-width: 790px;
}

.article-body h2 {
    margin: 62px 0 18px;
    font: 44px/1.02 Fraunces, serif;
    letter-spacing: -0.035em;
}

.article-body h3 {
    margin-top: 36px;
    font: 28px/1.1 Fraunces, serif;
}

.article-body p,
.article-body li {
    max-width: 74ch;
}

.article-body blockquote {
    margin: 44px 0;
    padding: 28px 32px;
    border-left: 6px solid var(--gold);
    background: var(--cream);
    font: 27px/1.35 Fraunces, serif;
}

.article-body table,
.data-table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
}

.article-body th,
.article-body td,
.data-table th,
.data-table td {
    padding: 13px;
    border: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.callout {
    margin: 36px 0;
    padding: 28px;
    background: var(--sky);
}

.tool-shell {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 55px;
    align-items: start;
    padding: 70px 0 100px;
}

.tool-panel {
    padding: 34px;
    border: 1px solid var(--night);
    background: var(--cream);
    box-shadow: 10px 12px 0 var(--gold);
}

.field {
    margin-bottom: 22px;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 8px;
    font: 700 12px "Space Mono", monospace;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--night);
    background: white;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.check-list {
    display: grid;
    gap: 10px;
}

.check-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    background: white;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.output {
    margin-top: 24px;
    padding: 26px;
    background: var(--night);
    color: white;
}

.output[hidden] {
    display: none;
}

.progress {
    height: 14px;
    overflow: hidden;
    border: 1px solid var(--night);
    background: white;
}

.progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--wine);
    transition: width 0.2s ease;
}

.faq details {
    padding: 20px 0;
    border-top: 1px solid var(--night);
}

.faq summary {
    font: 26px/1.1 Fraunces, serif;
    cursor: pointer;
}

.legal {
    max-width: 860px;
    padding: 70px 0 100px;
}

.legal h1 {
    font: clamp(52px, 7vw, 88px)/0.95 Fraunces, serif;
}

.legal h2 {
    margin-top: 48px;
    font: 36px/1.05 Fraunces, serif;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

footer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 50px;
    padding: 70px max(24px, calc((100vw - 1240px) / 2));
    background: var(--night);
    color: white;
}

footer h2 {
    margin: 0 0 12px;
    font: 52px Fraunces, serif;
}

footer a {
    display: block;
    margin: 9px 0;
    color: #dde4eb;
    text-decoration: none;
}

.cookie-bar {
    position: fixed;
    z-index: 80;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    width: min(360px, calc(100% - 36px));
    padding: 16px;
    border: 1px solid var(--night);
    background: var(--cream);
    box-shadow: 8px 9px 0 var(--gold);
}

.cookie-bar .button {
    justify-self: start;
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar p {
    margin: 0;
    font-size: 14px;
}

.not-found {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 70px 22px;
    text-align: center;
}

@media (max-width: 900px) {
    .mast-top,
    .brand-row .issue,
    .brand-row .join,
    .nav {
        display: none;
    }

    .brand-row {
        grid-template-columns: 1fr auto;
        padding: 16px 20px;
    }

    .brand {
        font-size: 48px;
    }

    .menu-button {
        display: block;
        padding: 10px 12px;
        border: 1px solid var(--night);
        background: transparent;
    }

    .mobile-menu.open {
        display: grid;
        gap: 14px;
        padding: 20px;
        border-top: 1px solid var(--line);
    }

    .mobile-menu a {
        text-decoration: none;
    }

    .story-grid,
    .note-grid,
    .path,
    .dispatches,
    .guide-grid,
    .tool-grid,
    .newsletter,
    .page-hero-grid,
    .article-shell,
    .tool-shell,
    .contact-grid,
    footer {
        grid-template-columns: 1fr;
    }

    .lead {
        min-height: 650px;
    }

    .story:first-child img {
        aspect-ratio: 4 / 3;
    }

    .path article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--night);
    }

    .article-aside {
        position: static;
    }

    .newsletter {
        padding: 55px 24px;
    }

    .newsletter form {
        flex-direction: column;
    }

    footer {
        gap: 28px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(100% - 30px, 1240px);
    }

    .section {
        padding: 62px 0;
    }

    .section-head {
        display: block;
    }

    .lead-copy {
        padding: 70px 20px 42px;
    }

    .lead h1 {
        font-size: clamp(50px, 15vw, 72px);
    }

    .note-grid {
        gap: 40px;
    }

    .note-grid h2,
    .newsletter h2 {
        font-size: 46px;
    }

    .paper-note {
        padding: 25px;
        transform: none;
        box-shadow: 7px 8px 0 var(--gold);
    }

    .page-hero {
        padding-top: 52px;
    }

    .page-hero h1 {
        font-size: 52px;
    }

    .tool-panel {
        padding: 22px;
        box-shadow: 6px 7px 0 var(--gold);
    }

    .article-body h2 {
        font-size: 36px;
    }

    .cookie-bar {
        right: 10px;
        bottom: 10px;
        grid-template-columns: 1fr auto;
        gap: 10px;
        width: calc(100% - 20px);
        padding: 12px;
        box-shadow: 4px 5px 0 var(--gold);
    }

    .cookie-bar p {
        font-size: 12px;
        line-height: 1.35;
    }

    .cookie-bar .button {
        min-height: 38px;
        padding: 8px 12px;
    }
}
