:root {
    --ink: #17212b;
    --muted: #606b75;
    --paper: #f7f4ed;
    --surface: #fffefb;
    --rule: #d8d3c8;
    --accent: #a6333a;
    --accent-dark: #79252b;
    --navy: #153349;
    --navy-deep: #0d2536;
    --sand: #e9dfcd;
    --gold: #d69d4a;
    --shell: 1180px;
    --sans: "Segoe UI", Arial, Helvetica, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

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

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

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

img {
    max-width: 100%;
}

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

h1,
h2,
h3 {
    text-wrap: balance;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--surface);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.utility-bar {
    background: var(--navy-deep);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.035em;
}

.utility-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.42rem;
}

.utility-inner a {
    color: #fff;
}

.masthead {
    padding-block: 1.35rem 1.2rem;
    text-align: center;
}

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

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

.brand-mark {
    width: clamp(3.6rem, 7vw, 5rem);
    height: auto;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-kicker,
.brand-tagline {
    font-family: var(--sans);
    font-weight: 700;
    text-transform: uppercase;
}

.brand-kicker {
    margin-bottom: -0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.34em;
}

.brand-name {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.brand-tagline {
    align-self: stretch;
    padding-top: 0.22rem;
    border-top: 1px solid var(--ink);
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-align: center;
}

.main-nav {
    border-block: 1px solid var(--ink);
    background: var(--surface);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2.3vw, 1.8rem);
    overflow-x: auto;
    padding-block: 0.68rem;
    scrollbar-width: thin;
}

.nav-links a {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-search {
    padding-left: 1rem;
    border-left: 1px solid var(--rule);
}

.site-main {
    min-height: 55vh;
    padding-block: clamp(2rem, 5vw, 4.4rem);
}

.eyebrow,
.section-label,
.story-kicker,
.story-meta,
.article-byline,
.archive-badge,
.archive-story-date,
.archive-result-count,
.search-summary {
    font-family: var(--sans);
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.9fr);
    gap: clamp(1.5rem, 5vw, 4.3rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.lead-story {
    padding-right: clamp(0rem, 3vw, 2.5rem);
    border-right: 1px solid var(--rule);
}

.story-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-kicker span {
    padding-left: 0.7rem;
    border-left: 1px solid var(--rule);
    color: var(--muted);
}

.lead-story h1 {
    max-width: 14ch;
    margin-bottom: 1.1rem;
    font-size: clamp(3rem, 6.4vw, 6rem);
    letter-spacing: -0.055em;
    line-height: 0.94;
}

.lead-story h1 a {
    color: var(--ink);
    text-decoration: none;
}

.lead-story h1 a:hover {
    color: var(--accent-dark);
}

.dek {
    max-width: 52rem;
    color: #4f5b65;
    font-size: clamp(1.12rem, 2.1vw, 1.42rem);
    line-height: 1.5;
}

.story-meta {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.025em;
}

.lead-sidebar {
    align-self: stretch;
}

.compact-story {
    padding-block: 1.2rem;
    border-top: 1px solid var(--rule);
}

.compact-story:first-of-type {
    border-top: 3px solid var(--ink);
}

.compact-story h2 {
    margin: 0.4rem 0 0.6rem;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.15;
}

.compact-story h2 a,
.news-card h3 a,
.archive-story h2 a {
    color: var(--ink);
    text-decoration: none;
}

.compact-story h2 a:hover,
.news-card h3 a:hover,
.archive-story h2 a:hover {
    color: var(--accent-dark);
}

.compact-story > span {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.75rem;
}

.section-label {
    color: var(--accent-dark);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.archive-disclosure {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border-block: 1px solid #cdbb9e;
    background: #f1e8d8;
    color: #52493c;
    font-family: var(--sans);
    font-size: 0.8rem;
}

.archive-disclosure strong {
    color: var(--ink);
    text-transform: uppercase;
}

.section-block {
    margin-top: clamp(3rem, 8vw, 6rem);
    padding-top: 1rem;
    border-top: 3px solid var(--ink);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.section-heading > a {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
}

.story-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.news-card {
    min-height: 18rem;
    padding: 1.35rem;
    border-top: 4px solid var(--section-color, var(--accent));
    background: var(--surface);
}

.news-card h3 {
    margin: 0.55rem 0 0.75rem;
    font-size: 1.55rem;
    line-height: 1.12;
}

.news-card p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

.news-card .story-meta {
    margin-top: 1rem;
}

.section-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--rule);
}

.section-tile {
    display: flex;
    flex-direction: column;
    min-height: 13rem;
    padding: 1.25rem;
    border-right: 1px solid var(--rule);
    border-top: 5px solid var(--section-color, var(--accent));
    color: var(--ink);
    text-decoration: none;
}

.section-tile:nth-child(4n) {
    border-right: 0;
}

.section-tile strong {
    font-size: 1.55rem;
    line-height: 1.1;
}

.section-tile span {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.section-tile small {
    margin-top: auto;
    color: var(--accent-dark);
    font-family: var(--sans);
    font-weight: 700;
}

.archive-header {
    max-width: 58rem;
    margin-bottom: 2rem;
}

.archive-header h1,
.prose-page > h1,
.contact-page h1 {
    max-width: 15ch;
    margin-bottom: 1rem;
    font-size: clamp(3rem, 7vw, 5.6rem);
    letter-spacing: -0.05em;
    line-height: 0.97;
}

.archive-toolbar {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-block: 2rem 0;
    padding: 1rem;
    border-block: 1px solid var(--ink);
    background: var(--surface);
    font-family: var(--sans);
}

.archive-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.archive-toolbar label,
.search-box label,
.field-row label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.archive-toolbar select,
.field-row input,
.field-row select,
.field-row textarea,
.search-box input[type="text"] {
    min-height: 2.7rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #979790;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font: 1rem var(--sans);
}

.archive-toolbar select {
    min-width: 10rem;
}

.archive-result-count {
    margin-left: auto;
    padding-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.archive-story-list {
    border-bottom: 1px solid var(--rule);
}

.archive-story {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: clamp(1.2rem, 4vw, 3rem);
    padding-block: 1.65rem;
    border-top: 1px solid var(--rule);
}

.archive-story:first-child {
    border-top: 0;
}

.archive-story-date {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.archive-story h2 {
    max-width: 28ch;
    margin: 0.3rem 0 0.55rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.archive-story p {
    max-width: 47rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
}

.empty-state {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px dashed #aaa69b;
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.empty-state h1 {
    max-width: none;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.article-shell {
    max-width: 70rem;
    margin-inline: auto;
}

.article-header {
    max-width: 59rem;
}

.article-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.archive-badge {
    padding: 0.25rem 0.45rem;
    border: 1px solid #c8b897;
    background: #f0e7d7;
    color: #574c3b;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-header h1 {
    max-width: 17ch;
    margin-bottom: 1.1rem;
    font-size: clamp(3.2rem, 7.5vw, 6.6rem);
    letter-spacing: -0.055em;
    line-height: 0.94;
}

.article-byline {
    margin-top: 1.5rem;
    font-size: 0.88rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.8rem;
    padding-block: 0.8rem;
    border-block: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.78rem;
}

.archive-note {
    max-width: 59rem;
    margin-block: 1.5rem 2.5rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid #b5996d;
    background: #eee5d5;
    color: #51493d;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.archive-note p {
    margin: 0.2rem 0 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 42rem) minmax(15rem, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.article-body {
    font-size: clamp(1.12rem, 2vw, 1.23rem);
    line-height: 1.75;
}

.article-body p:first-child::first-letter {
    float: left;
    margin: 0.08em 0.11em 0 0;
    color: var(--accent-dark);
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.8;
}

.article-body p {
    margin-bottom: 1.4rem;
}

.article-rail {
    border-top: 3px solid var(--ink);
}

.article-rail section {
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
}

.article-rail h2 {
    margin-bottom: 0.8rem;
    font: 750 0.72rem var(--sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.source-list {
    margin: 0;
    padding-left: 1.3rem;
}

.source-list li {
    margin-bottom: 0.85rem;
    padding-left: 0.25rem;
}

.source-list a {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.source-list span {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font: 0.72rem var(--sans);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-list a {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--rule);
    background: var(--surface);
    font: 0.72rem var(--sans);
    text-decoration: none;
}

.related-stories {
    max-width: 70rem;
    margin-inline: auto;
}

.prose-page {
    max-width: 64rem;
}

.prose-page > p,
.prose-page > h2 {
    max-width: 48rem;
}

.prose-page h2 {
    margin-top: 2rem;
    font-size: 1.8rem;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-block: 3rem;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.standards-grid section {
    padding: 1.5rem;
    background: var(--surface);
}

.standards-grid h2 {
    margin-top: 0;
}

.standards-callout {
    max-width: 54rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border-top: 5px solid var(--accent-dark);
    background: var(--navy);
    color: #fff;
}

.standards-callout h2 {
    margin-top: 0;
    font-size: 2.2rem;
}

.standards-callout .eyebrow {
    color: #efc179;
}

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

.search-box {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-block: 1px solid var(--ink);
    background: var(--surface);
}

.search-box > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 48rem;
    margin-top: 0.35rem;
}

.search-box input[type="text"] {
    width: 100%;
    border-right: 0;
}

.search-box input[type="submit"],
.primary-button,
.button-link {
    display: inline-block;
    padding: 0.72rem 1rem;
    border: 1px solid var(--accent-dark);
    border-radius: 0;
    background: var(--accent-dark);
    color: #fff;
    font: 750 0.78rem var(--sans);
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.search-box input[type="submit"]:hover,
.primary-button:hover,
.button-link:hover {
    background: var(--accent);
    color: #fff;
}

.search-summary {
    padding-bottom: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact-form-panel {
    padding: clamp(1.25rem, 4vw, 2rem);
    border-top: 4px solid var(--accent-dark);
    background: var(--surface);
}

.field-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.field-row label {
    margin-bottom: 0.3rem;
}

.field-row textarea {
    resize: vertical;
}

.field-error,
.validation-summary {
    color: #9a1924;
    font-family: var(--sans);
    font-size: 0.78rem;
}

.validation-summary {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #d0a0a4;
    background: #fff1f2;
}

.success-message {
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid #92b19f;
    background: #edf8f0;
    color: #204d33;
    font-family: var(--sans);
}

.contact-aside {
    border-top: 3px solid var(--ink);
}

.contact-aside section {
    padding-block: 1.2rem;
    border-bottom: 1px solid var(--rule);
}

.contact-aside h2 {
    font-size: 1.35rem;
}

.contact-aside p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    margin-top: 3rem;
    padding-block: 2.5rem 1rem;
    background: var(--navy-deep);
    color: #fff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.footer-grid p {
    max-width: 36rem;
    color: #dbe5eb;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-grid nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.5rem 2rem;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.footer-grid a {
    color: #fff;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #bdcbd3;
    font: 0.72rem var(--sans);
}

@media (max-width: 900px) {
    .story-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-tile:nth-child(2n) {
        border-right: 0;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .utility-inner span:last-child {
        display: none;
    }

    .masthead {
        text-align: left;
    }

    .brand {
        gap: 0.55rem;
    }

    .brand-mark {
        width: 3.25rem;
    }

    .brand-tagline {
        letter-spacing: 0.12em;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .home-lead,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .lead-story {
        padding-right: 0;
        padding-bottom: 2rem;
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .lead-story h1,
    .article-header h1 {
        font-size: clamp(2.75rem, 14vw, 4.7rem);
    }

    .archive-disclosure {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .story-list-grid,
    .standards-grid,
    .article-rail {
        grid-template-columns: 1fr;
    }

    .section-directory {
        grid-template-columns: 1fr;
    }

    .section-tile,
    .section-tile:nth-child(2n) {
        min-height: 10rem;
        border-right: 0;
    }

    .archive-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .archive-toolbar select {
        width: 100%;
    }

    .archive-result-count {
        margin-left: 0;
    }

    .archive-story {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .search-box > div {
        grid-template-columns: 1fr;
    }

    .search-box input[type="text"] {
        border-right: 1px solid #979790;
        border-bottom: 0;
    }

    .footer-grid {
        flex-direction: column;
    }

    .footer-grid nav {
        grid-template-columns: 1fr;
    }
}
