* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8f5ed;
    color: #292d25;
    font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid #af653f;
    outline-offset: 4px;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.site-header {
    border-bottom: 1px solid #d8d7c9;
    background: #fffdf7;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
    flex-wrap: wrap;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.brand span {
    color: #a25739;
}

.brand small {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 6px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.skip {
    position: absolute;
    left: 8px;
    top: -100px;
}

.skip:focus {
    top: 0;
    background: white;
    z-index: 5;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 48px 0;
    border-bottom: 1px solid #c7c8b7;
}

.hero-copy {
    padding: 24px 0;
}

h1 {
    font-size: clamp(30px, 4.4vw, 57px);
    line-height: 1.25;
    margin: 12px 0 20px;
    letter-spacing: -.04em;
}

h2 {
    font-size: 26px;
    line-height: 1.4;
    margin: 0 0 22px;
}

h3 {
    font-size: 21px;
    line-height: 1.4;
    margin: 8px 0;
}

p {
    margin: 0 0 16px;
}

.eyebrow {
    color: #526344;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cta {
    display: inline-block;
    padding: 12px 24px;
    background: #40553b;
    color: white;
    border-radius: 3px;
}

figure {
    margin: 0;
}

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

.hero img {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 140px 140px 8px 8px;
}

figcaption {
    font-size: 13px;
    color: #666b5e;
    margin-top: 8px;
}

main > section {
    margin-block: 36px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
}

.topic-grid a {
    background: #e7e9dc;
    padding: 18px 12px;
    font-weight: 700;
}

.topic-grid small {
    display: block;
    color: #65765b;
}

.stories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
}

.story {
    background: #fffdf7;
    border: 1px solid #e2ded1;
}

.story img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.story-copy {
    padding: 20px;
}

.story-copy p {
    font-size: 15px;
    margin: 0;
}

.note {
    background: #e7e9dc;
    padding: 28px;
}

.note a {
    text-decoration: underline;
}

.crumb {
    font-size: 14px;
    padding-top: 22px;
}

.reading {
    max-width: 760px;
    margin: 32px auto;
}

.reading h1 {
    font-size: clamp(30px,4vw,44px);
}

.reading figure {
    margin-block: 24px;
}

.reading section {
    margin-block: 30px;
}

.lead {
    font-size: 19px;
    color: #526344;
}

.site-footer {
    background: #343e30;
    color: #fffdf7;
    padding: 34px 0;
    margin-top: 40px;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }
    .hero img {
        max-height: 300px;
    }
    .topic-grid {
        grid-template-columns: repeat(3,1fr);
    }
    .stories {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }
    .story-copy {
        padding: 12px;
    }
    nav {
        gap: 12px;
    }
}

@media (max-width: 440px) {
    .stories {
        grid-template-columns: 1fr;
    }
    .wrap {
        width: calc(100% - 28px);
    }
}

/* Prevent narrow viewport overflow. */
.hero > *,
.story,
.topic-grid > * {
    min-width: 0;
}

nav a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}
