:root {
    --ink: #211f26;
    --muted: #6c6872;
    --line: #e6e2e8;
    --paper: #ffffff;
    --wash: #f7f5f8;
    --magenta: #b20f75;
    --violet: #684dcc;
    --accent: #7b48a9;
    --max-width: 1250px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--magenta); }
button, input { font: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
    z-index: 20;
    background: linear-gradient(112deg, var(--magenta), var(--violet));
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.header-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 25%;
    background: rgba(0, 0, 0, .08);
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto 52px;
    align-items: center;
    gap: 24px;
    width: min(calc(100% - 36px), var(--max-width));
    min-height: 72px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.brand:hover { color: #fff; opacity: .9; }
.brand img { width: auto; max-width: 220px; height: 42px; object-fit: contain; }

.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px 13px 6px 13px;
    background: linear-gradient(135deg, #ffcb36 0 34%, #ef3da0 35% 66%, #7d66ff 67%);
    transform: rotate(10deg);
}

.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a { color: #fff; font-size: .98rem; font-weight: 700; }
.primary-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.search-form { position: relative; display: flex; align-items: center; }
.site-header .search-form { justify-self: end; }
.search-form input {
    width: 100%;
    min-height: 42px;
    padding: 9px 44px 9px 13px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    outline: none;
}
.search-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(104, 77, 204, .14); }
.search-form button {
    position: absolute;
    right: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}
.search-form svg { width: 23px; height: 23px; fill: currentColor; }
.site-header .search-form input {
    position: absolute;
    right: 0;
    width: 0;
    padding-right: 38px;
    padding-left: 0;
    border-color: transparent;
    background: transparent;
    color: #fff;
    opacity: 0;
    transition: width .25s ease, opacity .2s ease, background .2s ease;
}
.site-header .search-form:focus-within input {
    width: 220px;
    padding-left: 12px;
    background: #2d2037;
    opacity: 1;
}
.site-header .search-form button { color: #fff; }

.nav-toggle { display: none; }

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    width: min(calc(100% - 36px), var(--max-width));
    margin: 0 auto;
    padding: 42px 0 56px;
}

.main-content { min-width: 0; }
.section-head { margin-bottom: 28px; }
.compact-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-head h1, .static-page h1, .article-detail h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}
.eyebrow {
    margin: 0 0 7px;
    color: var(--magenta);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 26px;
}

.hero-grid { margin-bottom: 48px; }
.hero-grid .news-card:first-child { grid-column: span 2; }
.hero-grid .news-card:first-child .card-image { aspect-ratio: 16 / 8.2; }
.hero-grid .news-card:first-child h2 { font-size: clamp(1.45rem, 2.4vw, 2.2rem); }

.news-card { min-width: 0; }
.card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9.7;
    overflow: hidden;
    background: #ded8e2;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .card-image img { transform: scale(1.025); }
.image-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #ded8e2, #f2eff4); }
.story-label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 9px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.card-content { padding-top: 14px; }
.card-content h2 { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.17; letter-spacing: -.025em; }
.card-content small { display: block; margin-bottom: 8px; color: var(--muted); font-size: .78rem; }
.card-content p { display: -webkit-box; margin: 0; overflow: hidden; color: #49454f; font-size: .94rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.group-block { margin: 48px 0; }
.group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 5px solid var(--line);
}
.group-heading h2 { margin: 0 0 -5px; padding: 0 0 9px; border-bottom: 5px solid var(--accent); font-size: 1.45rem; }
.group-heading span { color: var(--muted); font-size: .78rem; }

.sidebar { align-self: start; position: sticky; top: 24px; }
.sidebar-heading { margin-bottom: 4px; border-bottom: 5px solid var(--line); }
.sidebar-heading span { color: var(--magenta); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-heading h2 { display: table; margin: 2px 0 -5px; padding-bottom: 8px; border-bottom: 5px solid var(--accent); font-size: 1.35rem; }
.sidebar-story { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sidebar-thumb { aspect-ratio: 1 / .75; overflow: hidden; background: var(--wash); }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-story span { color: var(--accent); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.sidebar-story h3 { margin: 2px 0 0; font-size: .9rem; line-height: 1.24; }
.sidebar-empty { padding: 18px; background: var(--wash); color: var(--muted); font-size: .9rem; }

.breadcrumb { display: flex; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: .82rem; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-detail > .story-label { position: static; display: inline-block; margin-bottom: 14px; }
.article-detail h1 { max-width: 850px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; color: var(--muted); font-size: .84rem; }
.article-deck { max-width: 780px; margin: 0 0 24px; color: #4f4a55; font-size: 1.2rem; }
.article-cover { width: 100%; max-height: 560px; margin: 26px 0; object-fit: cover; }
.article-body { max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.78; }
.article-body h2, .article-body h3 { margin-top: 1.7em; font-family: Arial, Helvetica, sans-serif; line-height: 1.2; }
.article-body img { height: auto; margin: 24px auto; }
.article-body a { color: var(--magenta); text-decoration: underline; }

.static-page { max-width: 780px; }
.static-page h1 { margin-bottom: 28px; }
.static-page h2 { margin: 32px 0 8px; font-size: 1.35rem; line-height: 1.2; }
.static-page p, .static-page li { color: #45414a; }
.static-page a { color: var(--magenta); text-decoration: underline; }
.legal-date { color: var(--muted) !important; font-size: .9rem; font-weight: 700; text-transform: uppercase; }
.legal-copy ul { padding-left: 22px; }

.compact-head .search-form { max-width: 540px; margin-top: 24px; }
.results-note { margin: 0 0 22px; color: var(--muted); }
.empty-state { grid-column: 1 / -1; padding: 40px; background: var(--wash); text-align: center; }
.empty-state h2 { margin-top: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.pagination a { padding: 9px 15px; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; }
.pagination a:hover { background: var(--magenta); color: #fff; }
.pagination span { color: var(--muted); font-size: .82rem; }

.site-footer { margin-top: auto; background: #211b28; color: #fff; }
.footer-inner {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto 52px;
    align-items: center;
    gap: 24px;
    width: min(calc(100% - 36px), var(--max-width));
    margin: 0 auto;
    padding: 28px 0;
}
.footer-brand { max-width: 620px; }
.footer-brand > a { font-size: 1.2rem; font-weight: 800; }
.footer-brand p { margin: 6px 0 0; color: #c8c1cd; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 34px; }
.footer-links a { color: #fff; font-size: .84rem; font-weight: 700; }

@media (max-width: 1050px) {
    .header-inner { grid-template-columns: 1fr auto 46px; }
    .primary-nav { gap: 18px; }
    .page-shell { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
    .hero-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid .news-card:first-child { grid-column: span 2; }
}

@media (max-width: 780px) {
    .header-inner { grid-template-columns: 1fr 42px 42px; min-height: 64px; gap: 6px; }
    .brand { font-size: 1rem; }
    .brand img { max-width: 170px; height: 36px; }
    .nav-toggle {
        display: grid;
        place-content: center;
        gap: 4px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; background: #fff; }
    .primary-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        display: none;
        padding: 16px 18px 22px;
        background: #34243f;
        box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
    }
    .primary-nav.is-open { display: grid; gap: 0; }
    .primary-nav a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
    .page-shell { grid-template-columns: 1fr; padding-top: 28px; }
    .sidebar { position: static; }
    .hero-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr; gap: 16px; }
    .footer-links { justify-content: flex-start; gap: 20px; }
}

@media (max-width: 560px) {
    .hero-grid, .news-grid { grid-template-columns: 1fr; }
    .hero-grid .news-card:first-child { grid-column: auto; }
    .hero-grid .news-card:first-child .card-image { aspect-ratio: 16 / 9.7; }
    .group-heading span { display: none; }
    .article-detail h1, .section-head h1, .static-page h1 { font-size: 2.15rem; }
    .footer-links { display: grid; grid-template-columns: repeat(2, auto); }
}
