/* =========================================================
   HUMANISTAN
   Main stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens and base styles
   --------------------------------------------------------- */

:root {
    --paper: #f4efe4;
    --paper-light: #fbf8f1;
    --ink: #292722;
    --muted: #736c60;
    --line: #d8cdbd;
    --rust: #934d33;
    --rust-dark: #713721;
    --research-ink: #172b34;
    --research-muted: #55707a;
    --research-wash: #e8eff0;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(42, 34, 25, 0.11);
    --serif: Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --max-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

button,
input,
textarea {
    font: inherit;
}

.shell {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--rust);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.section-rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 54px 0;
}

.button-link {
    display: inline-block;
    border: 1px solid currentColor;
    padding: 11px 18px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.button-link:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper-light);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000;
    background: var(--white);
    padding: 10px 14px;
}

/* ---------------------------------------------------------
   2. Masthead and navigation
   --------------------------------------------------------- */

.site-header {
    padding: 18px 0 14px;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand-logo {
    display: block;
    width: 82px;
    height: auto;
    flex: 0 0 auto;
}

.brand-seal {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border: 3px double var(--rust);
    border-radius: 50%;
    color: var(--rust);
    font-family: var(--sans);
    transform: rotate(-2deg);
}

.brand-seal::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--rust);
    border-radius: 50%;
    opacity: 0.7;
}

.seal-name,
.seal-motto {
    position: absolute;
    z-index: 1;
    font-size: 0.48rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.seal-name {
    top: 15px;
}

.seal-motto {
    bottom: 15px;
}

.seal-h {
    z-index: 1;
    font-family: var(--serif);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
}

.seal-compass {
    position: absolute;
    z-index: 1;
    top: 53px;
    right: 18px;
    font-size: 0.62rem;
}

.brand-tagline {
    display: grid;
    font-size: 0.9rem;
    line-height: 1.35;
}

.brand-tagline strong {
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    padding: 10px 13px;
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-nav {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 13px 0;
    list-style: none;
}

.primary-menu a {
    position: relative;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-menu a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 3px;
    background: var(--rust);
}

/* ---------------------------------------------------------
   3. Homepage
   --------------------------------------------------------- */

.home-page { background: #f4efe4; }
.home-main { overflow: hidden; }
.home-cover-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: #fff; }
.home-cover-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; width: min(calc(100% - 64px), 1450px); margin: 0 auto; padding: 26px 0 18px; }
.home-cover-brand { display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.home-cover-brand:hover { color: #fff; }
.home-cover-mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.home-cover-wordmark { font-family: var(--sans); font-size: .95rem; font-weight: 650; letter-spacing: .32em; text-transform: uppercase; }
.home-cover-header .primary-nav { justify-self: end; border: 0; }
.home-cover-header .primary-nav .shell { width: auto; }
.home-cover-header .primary-menu { justify-content: flex-end; gap: 30px; padding: 0; }
.home-cover-header .primary-menu a { color: #fff; font-size: .7rem; letter-spacing: .1em; }
.home-cover-header .primary-menu a[aria-current="page"]::after { display: none; }
.home-cover-header .menu-toggle { border-color: rgba(255,255,255,.6); color: #fff; }
.home-cover { position: relative; min-height: min(760px, 78vw); background: #25231f; color: #fff; overflow: hidden; }
.home-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.home-cover-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,16,.86) 0%, rgba(13,15,16,.60) 27%, rgba(13,15,16,.16) 55%, rgba(13,15,16,.04) 100%), linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 34%, rgba(0,0,0,.13) 100%); }
.home-cover-copy { position: relative; z-index: 3; width: min(calc(100% - 80px), 1450px); margin: 0 auto; padding-top: clamp(150px,15vw,230px); padding-bottom: 92px; }
.home-cover-kicker { margin-bottom: 20px; color: #d3aa63; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.home-cover h1 { max-width: 610px; margin-bottom: 22px; font-size: clamp(3.4rem,6.2vw,6.8rem); font-weight: 400; letter-spacing: -.035em; line-height: .93; text-wrap: balance; }
.home-cover-rule { display: block; width: 46px; height: 2px; margin: 26px 0 25px; background: #d3aa63; }
.home-cover-copy > p:not(.home-cover-kicker) { max-width: 360px; margin-bottom: 28px; color: rgba(255,255,255,.93); font-family: var(--sans); font-size: .95rem; line-height: 1.55; }
.home-cover-link { display: inline-flex; align-items: center; gap: 24px; border-bottom: 1px solid rgba(211,170,99,.9); padding: 0 0 7px; color: #fff; font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.home-cover-link:hover { color: #e5c98f; }
.home-cover-stamp { position: absolute; z-index: 3; right: max(38px, calc((100vw - 1450px)/2)); bottom: 34px; display: grid; width: 126px; height: 126px; place-items: center; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; color: rgba(255,255,255,.82); font-family: var(--sans); font-size: .55rem; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; transform: rotate(-6deg); }
.home-cover-stamp::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; }
.home-cover-stamp span, .home-cover-stamp strong { position: relative; z-index: 1; }
.home-cover-stamp strong { font-size: .78rem; }

.home-dispatches { position: relative; background: radial-gradient(circle at 18% 12%, rgba(107,79,49,.035), transparent 28%), linear-gradient(#f7f2e8,#f4efe4); padding: 68px 0 94px; }
.home-dispatches-layout { position: relative; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 28px 24px; }
.home-dispatches-intro { grid-column: 1 / span 3; align-self: start; padding: 26px 10px 0 0; }
.home-dispatches-intro h2 { max-width: 260px; margin-bottom: 20px; font-size: clamp(2.5rem,4vw,4.4rem); font-weight: 400; letter-spacing: -.035em; }
.home-hand-note { max-width: 250px; margin: 0; color: #49433b; font-size: 1.04rem; font-style: italic; line-height: 1.45; transform: rotate(-1deg); }
.field-story { position: relative; }
.field-story a { text-decoration: none; }
.field-story-image-link { display: block; background: #fff; padding: 8px; box-shadow: 0 12px 26px rgba(48,36,24,.12); }
.field-story-image-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.field-story-copy { padding: 16px 2px 0; }
.field-story-meta { margin-bottom: 8px; color: #9a6731; font-family: var(--sans); font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field-story h3 { margin-bottom: 9px; font-size: clamp(1.55rem,2.3vw,2.35rem); font-weight: 400; letter-spacing: -.025em; }
.field-story h3 a:hover { color: var(--rust); }
.field-story-copy > p:not(.field-story-meta) { margin-bottom: 12px; color: #5e574d; font-family: var(--sans); font-size: .82rem; line-height: 1.55; }
.field-read-more { display: inline-flex; gap: 14px; color: var(--ink); font-family: var(--sans); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-story-music { grid-column: 4 / span 6; }
.field-story-music .field-story-image-link img { aspect-ratio: 16 / 10; }
.field-story-music .field-story-copy { display: grid; grid-template-columns: 1fr; max-width: 510px; }
.field-story-august { grid-column: 10 / span 3; margin-top: 58px; }
.field-story-table { grid-column: 1 / span 4; margin-top: -28px; }
.field-story-table .field-story-image-link { transform: rotate(-1.1deg); }
.field-story-own { grid-column: 5 / span 4; margin-top: 54px; }
.field-story-own .field-story-image-link { transform: rotate(.7deg); }
.field-story-cheer { grid-column: 9 / span 4; margin-top: -8px; }
.field-story-cheer .field-story-image-link { transform: rotate(1deg); }
.field-story-silent { grid-column: 3 / span 5; margin-top: 34px; }
.field-story-silent .field-story-image-link img { aspect-ratio: 16 / 10; }
.home-field-note { grid-column: 8 / span 3; align-self: center; margin-top: 58px; border-top: 1px solid #bbb0a0; border-bottom: 1px solid #bbb0a0; padding: 24px 0; }
.home-field-note-quote { display: block; height: 24px; font-size: 2.8rem; line-height: 1; }
.home-field-note p { margin-bottom: 8px; font-size: 1.12rem; line-height: 1.5; }
.home-field-note-signature { color: var(--muted); font-size: .9rem; font-style: italic; }
.field-update { grid-column: 8 / span 5; align-self: end; margin-top: 34px; border: 1px solid #cfc3b1; background: rgba(255,255,255,.25); padding: 22px; }
.field-update h3 { margin-bottom: 7px; font-size: 1.15rem; font-weight: 500; }
.field-update > div > p:not(.field-story-meta) { margin-bottom: 14px; color: var(--muted); font-family: var(--sans); font-size: .74rem; line-height: 1.45; }
.field-update-form { display: grid; grid-template-columns: 1fr auto; }
.field-update-form input { min-width: 0; border: 1px solid #b9ad9d; border-right: 0; background: #fbf8f1; color: var(--ink); padding: 11px 12px; font-family: var(--sans); font-size: .76rem; }
.field-update-form input:focus { position: relative; z-index: 1; outline: 2px solid rgba(147,77,51,.23); outline-offset: 0; }
.field-update-form button { border: 1px solid #2a2926; background: #2a2926; color: #fff; padding: 0 17px; font-family: var(--sans); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.field-update-form button:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.field-update-status { margin: 10px 0 0; font-family: var(--sans); font-size: .74rem; }
.field-update-status.is-success { color: #46644c; }
.field-update-status.is-error { color: #8b4039; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.real-world-promo { background: var(--research-ink); color: var(--white); padding: 76px 0; }
.real-world-promo .promo-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.real-world-promo .eyebrow { color: #a7c1c6; }
.real-world-promo h2 { max-width: 720px; margin-bottom: 20px; font-family: var(--sans); font-size: clamp(2.2rem,4vw,4.7rem); font-weight: 650; letter-spacing: -.035em; }
.real-world-promo p { max-width: 660px; color: #cbd9dc; font-family: var(--sans); }
.real-world-promo .button-link:hover { background: var(--white); border-color: var(--white); color: var(--research-ink); }

@media (max-width: 1050px) {
    .home-cover-nav { width: min(calc(100% - 40px),1450px); }
    .home-cover-copy { width: min(calc(100% - 40px),1450px); }
    .home-cover-stamp { right: 24px; }
    .home-dispatches-layout { grid-template-columns: repeat(8,minmax(0,1fr)); }
    .home-dispatches-intro { grid-column: 1 / span 2; }
    .field-story-music { grid-column: 3 / span 4; }
    .field-story-august { grid-column: 7 / span 2; }
    .field-story-table { grid-column: 1 / span 3; }
    .field-story-own { grid-column: 4 / span 3; }
    .field-story-cheer { grid-column: 6 / span 3; }
    .field-story-silent { grid-column: 2 / span 4; }
    .home-field-note { grid-column: 6 / span 3; }
    .field-update { grid-column: 5 / span 4; }
}

@media (max-width: 900px) {
    .home-cover-wordmark { letter-spacing: .22em; }
    .home-cover-header .primary-menu { gap: 20px; }
    .home-cover { min-height: 720px; }
    .home-cover-copy { padding-top: 165px; }
    .home-dispatches-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 24px; }
    .home-dispatches-intro,.field-story-music,.field-story-august,.field-story-table,.field-story-own,.field-story-cheer,.field-story-silent,.home-field-note,.field-update { grid-column: auto; margin-top: 0; }
    .home-dispatches-intro { grid-column: 1 / -1; max-width: 620px; padding-top: 0; }
    .home-dispatches-intro h2 { max-width: none; }
    .field-story-music { grid-column: 1 / -1; }
    .field-story-music .field-story-image-link img { aspect-ratio: 16 / 9; }
    .field-update { grid-column: 1 / -1; }
    .real-world-promo .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .home-cover-nav { grid-template-columns: 1fr auto; gap: 14px; width: calc(100% - 28px); padding-top: 14px; }
    .home-cover-wordmark { font-size: .78rem; letter-spacing: .18em; }
    .home-cover-mark { width: 40px; height: 40px; font-size: 1.25rem; }
    .home-cover-header .menu-toggle { display: inline-block; }
    .home-cover-header .primary-nav { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
    .home-cover-header .primary-nav .shell { width: 100%; }
    .home-cover-header .primary-menu { display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(18,19,18,.94); padding: 8px 14px; }
    .menu-open .home-cover-header .primary-menu { display: flex; }
    .home-cover-header .primary-menu li { border-bottom: 1px solid rgba(255,255,255,.16); }
    .home-cover-header .primary-menu li:last-child { border-bottom: 0; }
    .home-cover-header .primary-menu a { padding: 12px 0; }
    .home-cover { min-height: 700px; }
    .home-cover-image { object-position: 58% center; }
    .home-cover-shade { background: linear-gradient(90deg, rgba(13,15,16,.82) 0%, rgba(13,15,16,.58) 58%, rgba(13,15,16,.20) 100%), linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.14)); }
    .home-cover-copy { width: calc(100% - 36px); padding-top: 156px; padding-bottom: 72px; }
    .home-cover h1 { max-width: 390px; font-size: clamp(3rem,15vw,5rem); }
    .home-cover-copy > p:not(.home-cover-kicker) { max-width: 285px; }
    .home-cover-stamp { display: none; }
    .home-dispatches { padding: 52px 0 70px; }
    .home-dispatches-layout { grid-template-columns: 1fr; gap: 42px; }
    .home-dispatches-intro,.field-story-music,.field-story-august,.field-story-table,.field-story-own,.field-story-cheer,.field-story-silent,.home-field-note,.field-update { grid-column: 1; }
    .field-story-table .field-story-image-link,.field-story-own .field-story-image-link,.field-story-cheer .field-story-image-link { transform: none; }
    .field-update-form { grid-template-columns: 1fr; gap: 8px; }
    .field-update-form input { border-right: 1px solid #b9ad9d; }
    .field-update-form button { min-height: 44px; }
}

/* ---------------------------------------------------------
   4. Section and archive pages
   --------------------------------------------------------- */

.section-header {
    padding: 64px 0 52px;
    border-bottom: 1px solid var(--line);
}

.section-header h1 {
    max-width: 900px;
    margin-bottom: 14px;
    font-size: clamp(3.2rem, 7vw, 7.2rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.section-header .section-deck {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.24rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    padding: 54px 0 80px;
}

.archive-card {
    text-decoration: none;
}

.archive-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 14px;
}

.archive-card h2 {
    margin-bottom: 8px;
    font-size: 1.7rem;
    font-weight: 500;
}

.archive-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ---------------------------------------------------------
   5. Dispatch detail pages
   --------------------------------------------------------- */

.dispatch-page .dispatch-header {
    max-width: 920px;
    margin: 0 auto;
    padding: 66px 20px 42px;
    text-align: center;
}

.dispatch-page .dispatch-header h1 {
    margin-bottom: 18px;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.052em;
}

.dispatch-page .dispatch-deck {
    max-width: 720px;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 1.23rem;
}

.dispatch-byline {
    color: var(--rust);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dispatch-hero {
    width: min(calc(100% - 40px), 1280px);
    margin: 0 auto 52px;
}

.dispatch-hero img {
    width: 100%;
    box-shadow: var(--shadow);
}

.dispatch-caption {
    margin-top: 9px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.72rem;
}

.dispatch-body {
    width: min(calc(100% - 40px), 720px);
    margin: 0 auto;
    padding-bottom: 30px;
}

.dispatch-body p {
    margin-bottom: 1.45em;
}

.dispatch-body .dropcap::first-letter {
    float: left;
    padding: 0.08em 0.1em 0 0;
    color: var(--rust);
    font-size: 4.4em;
    line-height: 0.72;
}

.dispatch-body blockquote {
    margin: 38px 0;
    padding-left: 24px;
    border-left: 3px solid var(--rust);
    font-size: 1.4rem;
    font-style: italic;
}

.reality-bridge {
    width: min(calc(100% - 40px), 900px);
    margin: 45px auto 90px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 42px 0;
    text-align: center;
}

.reality-bridge h2 {
    margin-bottom: 12px;
    font-family: var(--sans);
    font-size: 1.8rem;
    font-weight: 650;
}

.reality-bridge p {
    max-width: 650px;
    margin: 0 auto 22px;
    color: var(--muted);
}

/* ---------------------------------------------------------
   6. Real World research system
   --------------------------------------------------------- */

.real-world-page,
.real-world-index {
    background: #f2f5f4;
    color: var(--research-ink);
    font-family: var(--sans);
}

.real-world-page .site-header,
.real-world-index .site-header,
.real-world-page .primary-nav,
.real-world-index .primary-nav,
.real-world-page .site-footer,
.real-world-index .site-footer {
    font-family: var(--serif);
}

.real-world-page .section-header,
.real-world-index .section-header {
    border-color: #c9d5d7;
}

.real-world-page .section-header h1,
.real-world-index .section-header h1 {
    font-family: var(--sans);
    font-weight: 650;
    letter-spacing: -0.055em;
}

.real-world-index .section-header h1 {
    font-size: clamp(3.8rem, 8vw, 8rem);
}

.real-world-page .eyebrow,
.real-world-index .eyebrow {
    color: var(--research-muted);
}

.research-categories {
    padding: 55px 0 85px;
}

.research-category {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) 1.45fr;
    gap: 54px;
    padding: 38px 0 48px;
    border-top: 1px solid #c9d5d7;
}

.research-category:first-child {
    border-top: 0;
}

.research-category h2 {
    margin-bottom: 9px;
    font-size: 1.55rem;
}

.research-category-intro {
    color: var(--research-muted);
    font-size: 0.94rem;
}

.research-list {
    display: grid;
    gap: 18px;
}

.research-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: end;
    padding-bottom: 16px;
    border-bottom: 1px solid #d3dedf;
    text-decoration: none;
}

.research-list strong {
    font-size: 1.15rem;
}

.research-list span {
    color: var(--research-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.research-header {
    width: min(calc(100% - 40px), 1000px);
    margin: 0 auto;
    padding: 66px 0 42px;
}

.research-header h1 {
    max-width: 900px;
    margin-bottom: 16px;
    font-family: var(--sans);
    font-size: clamp(3rem, 6vw, 6.2rem);
    font-weight: 650;
    letter-spacing: -0.055em;
}

.research-deck {
    max-width: 780px;
    color: var(--research-muted);
    font-size: 1.25rem;
}

.research-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 24px;
    color: var(--research-muted);
    font-size: 0.78rem;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 20px 0 0;
}

.topic-tag {
    border: 1px solid #bdcccf;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--research-muted);
    font-size: 0.7rem;
    text-decoration: none;
}

.from-humanistan {
    width: min(calc(100% - 40px), 1000px);
    margin: 0 auto 48px;
    background: var(--paper);
    padding: 22px 26px;
    color: var(--ink);
    font-family: var(--serif);
}

.from-humanistan strong {
    color: var(--rust);
    font-family: var(--sans);
    font-size: 0.73rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.research-body {
    width: min(calc(100% - 40px), 760px);
    margin: 0 auto;
    padding-bottom: 40px;
}

.research-body h2 {
    margin: 2.4em 0 0.65em;
    font-size: 1.75rem;
}

.research-body p,
.research-body li {
    color: #243e47;
}

.research-body a {
    color: #1d5f75;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: min(calc(100% - 40px), 1080px);
    margin: 36px auto 62px;
}

.evidence-card {
    background: var(--white);
    border-top: 4px solid #557c86;
    padding: 24px;
}

.evidence-card h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.evidence-card p {
    margin-bottom: 0;
    color: var(--research-muted);
    font-size: 0.88rem;
}

.sources {
    width: min(calc(100% - 40px), 900px);
    margin: 0 auto 85px;
    border-top: 1px solid #c9d5d7;
    padding-top: 34px;
}

.sources h2 {
    font-size: 1.35rem;
}

.sources ol {
    padding-left: 1.35rem;
}

.sources li {
    margin-bottom: 12px;
    color: var(--research-muted);
    font-size: 0.82rem;
}

.sources a {
    color: #1d5f75;
    overflow-wrap: anywhere;
}

.correction-note {
    margin-top: 28px;
    color: var(--research-muted);
    font-size: 0.78rem;
}


/* Real World category landing pages */

.category-articles {
    padding: 54px 0 20px;
}

.category-articles .evidence-grid {
    width: 100%;
    margin: 0;
}

.category-future {
    max-width: 760px;
    padding: 30px 0 80px;
}

/* ---------------------------------------------------------
   7. Explore
   --------------------------------------------------------- */

.explore-topics {
    padding: 54px 0 86px;
}

.topic-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 55px;
}

.topic-cloud a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: var(--sans);
    font-size: 0.8rem;
    text-decoration: none;
}

.explore-group {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 54px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.explore-group h2 {
    font-size: 2rem;
    font-weight: 500;
}

.explore-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.explore-link {
    border: 1px solid var(--line);
    padding: 20px;
    text-decoration: none;
}

.explore-link span {
    display: block;
    margin-bottom: 6px;
    color: var(--rust);
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.explore-link strong {
    display: block;
    font-weight: 500;
}

/* ---------------------------------------------------------
   8. About, utility and contact pages
   --------------------------------------------------------- */

.prose-page {
    width: min(calc(100% - 40px), 820px);
    margin: 0 auto;
    padding: 65px 0 90px;
}

.prose-page h1 {
    margin-bottom: 20px;
    font-size: clamp(3.1rem, 7vw, 6.4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.prose-page h2 {
    margin-top: 2.2em;
    font-size: 1.75rem;
}

.prose-page .lead {
    color: var(--muted);
    font-size: 1.3rem;
}

.principle-box {
    margin: 32px 0;
    border-left: 4px solid var(--rust);
    background: var(--paper-light);
    padding: 24px 28px;
}

.contact-form {
    margin-top: 38px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 750;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #bdb3a5;
    background: var(--paper-light);
    color: var(--ink);
    padding: 12px 13px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(147, 77, 51, 0.18);
    outline-offset: 1px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
}

.form-status {
    margin-top: 22px;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 0.88rem;
}

.status-success {
    border: 1px solid #5e8065;
    background: #eef5ed;
}

.status-error {
    border: 1px solid #a1615c;
    background: #f8eeee;
}

/* ---------------------------------------------------------
   9. Footer
   --------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
}

.footer-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 42px 0 34px;
}

.footer-brand {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-wordmark {
    color: var(--rust);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.footer-editorial,
.footer-utility nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-editorial a,
.footer-utility a {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-utility-wrap {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.18);
}

.footer-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0 20px;
}

.footer-utility p {
    margin: 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.7rem;
}

/* ---------------------------------------------------------
   10. Responsive layout
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .brand-tagline {
        display: none;
    }

    .home-header {
        gap: 28px;
    }

    .home-brand-logo {
        width: 150px;
    }

    .home-header .primary-menu {
        gap: 24px;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
        gap: 28px;
    }

    .home-intro,
    .real-world-promo .promo-grid,
    .research-category,
    .explore-group {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-right: 0;
    }

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

    .story-card-wide,
    .story-card-tall,
    .story-card-left,
    .story-card-right,
    .story-card-small-left,
    .story-card-small-right {
        grid-column: auto;
        margin-top: 0;
    }

    .archive-grid,
    .evidence-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 17px;
    }

    .site-header {
        padding: 14px 0;
    }

    .brand-logo {
        width: 68px;
    }

    .brand-seal {
        width: 84px;
        height: 84px;
    }

    .seal-name {
        top: 11px;
        font-size: 0.38rem;
    }

    .seal-motto {
        bottom: 11px;
        font-size: 0.34rem;
    }

    .seal-h {
        font-size: 2rem;
    }

    .seal-compass {
        top: 40px;
        right: 13px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
    }

    .menu-open .primary-menu {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .primary-menu li:last-child {
        border-bottom: 0;
    }

    .primary-menu a {
        display: block;
        padding: 13px 0;
    }

    .primary-menu a[aria-current="page"]::after {
        display: none;
    }

    .home-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .home-header-brand {
        justify-content: space-between;
    }

    .home-brand-logo {
        width: 145px;
    }

    .home-menu-toggle {
        display: inline-block;
    }

    .home-header .primary-nav {
        width: 100%;
    }

    .home-header .primary-menu {
        justify-content: flex-start;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 26px;
        padding-bottom: 28px;
    }

    .dispatch-grid,
    .archive-grid,
    .evidence-grid,
    .explore-pair,
    .form-row {
        grid-template-columns: 1fr;
    }

    .research-list a {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .research-list span {
        white-space: normal;
    }

    .footer-utility {
        align-items: flex-start;
        flex-direction: column;
    }

    .field-notes-stamp {
        width: 104px;
        margin-left: 0;
    }

}



/* ---------------------------------------------------------
   About page alignment
   --------------------------------------------------------- */

.about-header {
    padding: 64px 0 34px;
}

.about-header h1 {
    max-width: 900px;
    margin-bottom: 20px;
    font-size: clamp(3.1rem, 7vw, 6.4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.about-header .lead {
    max-width: 820px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.3rem;
}

.about-body {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 0 0 90px;
}

.about-body > * {
    max-width: 820px;
}

@media (max-width: 680px) {
    .about-header {
        padding: 42px 0 28px;
    }

    .about-body {
        padding-bottom: 70px;
    }
}



/* ---------------------------------------------------------
   Homepage V6 refinements
   --------------------------------------------------------- */
.home-cover-brand {
    gap: 14px;
}

.home-cover-logo-mark {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
}

.home-cover-logo-type {
    display: block;
}

.home-cover-logo-type .home-cover-tagline {
    display: block;
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--serif);
    font-size: 0.82rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.015em;
    line-height: 1.28;
    text-transform: none;
}

/* Real transparent distressed rubber-stamp artwork, not a CSS badge. */
.home-cover-stamp {
    position: absolute;
    z-index: 3;
    right: max(34px, calc((100vw - 1450px) / 2));
    bottom: 18px;
    display: block;
    width: 176px;
    height: 176px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    opacity: 0.88;
    transform: rotate(-2deg);
    filter: none;
}
.home-cover-stamp::after { content: none; }

/* Passport/map are intentionally substantial pieces of editorial ephemera. */
.home-ephemera {
    position: absolute;
    z-index: 5;
    top: -34px;
    right: -70px;
    width: 500px;
    height: 430px;
    pointer-events: none;
}

.home-map {
    position: absolute;
    top: 58px;
    right: -25px;
    width: 455px;
    max-width: none;
    opacity: 0.95;
    transform: rotate(4deg);
    box-shadow: 0 14px 30px rgba(48, 36, 24, 0.14);
}

.home-passport {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 150px;
    width: 245px;
    max-width: none;
    transform: rotate(7deg);
    filter: drop-shadow(0 17px 18px rgba(34, 28, 22, 0.24));
}

.home-entry-stamp {
    position: absolute;
    z-index: 5;
    top: 600px;
    right: 280px;
    width: 250px;
    max-width: none;
    opacity: 0.9;
    pointer-events: none;
}

/* Keep the ephemera visible and useful at laptop widths like the screenshot. */
@media (max-width: 1180px) {
    .home-ephemera {
        top: -24px;
        right: -38px;
        width: 410px;
        height: 370px;
    }
    .home-map { width: 385px; right: -20px; }
    .home-passport { width: 215px; right: 120px; }
    .home-entry-stamp { width: 220px; right: 190px; }
}

@media (max-width: 980px) {
    .home-dispatches-layout {
        padding-top: 18px;
    }
    .home-ephemera {
        top: 4px;
        right: -75px;
        width: 365px;
        height: 330px;
    }
    .home-map { width: 340px; right: -10px; top: 48px; }
    .home-passport { width: 190px; right: 105px; }
    .home-cover-stamp { width: 154px; height: 154px; right: 22px; bottom: 16px; }
    .home-entry-stamp { width: 205px; right: 130px; }
}

@media (max-width: 760px) {
    .home-cover-logo-mark { width: 66px; height: 66px; }
    .home-cover-logo-type .home-cover-tagline { font-size: 0.67rem; }
    .home-ephemera,
    .home-entry-stamp { display: none; }
    .home-cover-stamp { width: 126px; height: 126px; }
}

@media (max-width: 560px) {
    .home-cover-logo-type { display: none; }
    .home-cover-stamp { display: none; }
}


/* Homepage V7 refinements */
.home-dispatches-intro h2 { max-width: 285px; font-size: clamp(2rem, 2.7vw, 3.25rem); line-height: 1.02; }
.field-story-music { padding-bottom: 22px; }
.field-story-music .field-read-more { margin-bottom: 10px; }
.home-map { width: 490px; top: 48px; right: -50px; transform: rotate(3deg); filter: sepia(.08) contrast(.96); }
.home-passport { width: 252px; top: -6px; right: 155px; transform: rotate(6deg); }
@media (max-width: 1180px) { .home-map { width: 420px; right: -38px; } .home-passport { width: 225px; right: 125px; } }
@media (max-width: 980px) { .home-map { width: 375px; right: -20px; top: 42px; } .home-passport { width: 205px; right: 105px; } .home-dispatches-intro h2 { max-width: 250px; font-size: clamp(1.95rem, 4vw, 2.75rem); } }
