* {
    box-sizing: border-box;
}

:root {
    --paper: #f5efe6;
    --ink: #333b37;
    --green: #405b4e;
    --rust: #a04e38;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    line-height: 1.8;
}

a {
    color: var(--green);
    text-underline-offset: 4px;
}

a:focus-visible {
    outline: 3px solid var(--rust);
    outline-offset: 4px;
}

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

.wrap {
    width: min(1180px, 92%);
    margin-inline: auto;
}

header {
    border-bottom: 1px solid #d8cfc1;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 750;
}

.brand img {
    width: 48px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

nav a {
    text-decoration: none;
    font-size: 15px;
}

.eyebrow {
    color: var(--rust);
    font-size: 13px;
    letter-spacing: .15em;
    font-weight: 700;
}

h1,
h2,
h3 {
    line-height: 1.35;
    margin: 0 0 16px;
}

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

h2 {
    font-size: clamp(24px, 3vw, 34px);
}

h3 {
    font-size: 21px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    padding-block: 54px;
}

.hero-art {
    display: grid;
    grid-template-columns: 1fr .58fr;
    gap: 12px;
    align-items: end;
}

.hero-art img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 48% 48% 8px 8px;
}

.hero-art img + img {
    border-radius: 8px;
    transform: rotate(3deg);
}

.note {
    border-left: 3px solid #c27c65;
    padding: 12px 16px;
    background: #fffaf3;
    font-size: 15px;
}

.button {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.section {
    padding-block: 34px;
    border-top: 1px solid #d8cfc1;
}

.story {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 26px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #d8cfc1;
}

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

.story:nth-of-type(even) {
    grid-template-columns: 1fr 240px;
}

.story:nth-of-type(even) img {
    grid-column: 2;
    grid-row: 1;
}

.story:nth-of-type(even) .story-text {
    grid-column: 1;
    grid-row: 1;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
}

.sidebar {
    align-self: start;
    background: #e1e7dd;
    padding: 24px;
    border-radius: 8px;
}

.sidebar li {
    margin-block: 10px;
}

.reading {
    max-width: 790px;
    margin-inline: auto;
    padding-block: 40px;
}

.reading h2 {
    margin-top: 32px;
}

.reading figure {
    margin: 24px 0;
}

.reading figure img {
    width: 100%;
    max-width: 510px;
    border-radius: 8px;
}

figcaption {
    font-size: 13px;
    color: #535b54;
    margin-top: 8px;
}

footer {
    margin-top: 40px;
    background: #33473d;
    color: #fff;
    padding-block: 32px;
}

footer a {
    color: #fff;
}

footer p {
    margin: 8px 0;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 10px;
    top: 10px;
    background: white;
    padding: 8px;
    z-index: 9;
}

@media (max-width: 760px) {
    .hero, .layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero {
        padding-block: 30px;
    }

    .story, .story:nth-of-type(even) {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .story:nth-of-type(even) img, .story:nth-of-type(even) .story-text {
        grid-column: auto;
        grid-row: auto;
    }

    .story img {
        aspect-ratio: 16/10;
    }

    .hero-art img + img {
        transform: none;
    }
}

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

.story, .hero, .layout {
    min-width: 0;
}

@media (max-width: 980px) {
    .story, .story:nth-of-type(even) {
        grid-template-columns: minmax(0, 1fr);
    }
    .story:nth-of-type(even) img, .story:nth-of-type(even) .story-text {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Prevent narrow grid tracks and horizontal overflow. */
.hero > *,
.layout > *,
.story > * {
    min-width: 0;
}

@media (max-width: 480px) {
    .wrap {
        width: 90%;
    }

    nav {
        gap: 8px 16px;
    }

    .sidebar {
        padding: 18px;
    }
}
