* {
    box-sizing: border-box;
}

:root {
    --paper: #faf5eb;
    --ink: #263f35;
    --red: #963e46;
    --line: #e4d8c6;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.85 system-ui, "Microsoft YaHei", sans-serif;
}

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

a:hover {
    text-decoration: underline;
}

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

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

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

.header {
    border-bottom: 1px solid var(--line);
}

.bar, .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

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

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

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

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

.hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    margin: 36px 0 58px;
    border: 1px solid var(--line);
    background: #f0e4d3;
}

.hero-copy {
    padding: clamp(24px, 5vw, 64px);
    align-self: center;
}

.kicker {
    color: var(--red);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 800;
}

h1 {
    font-size: clamp(30px, 4vw, 57px);
    line-height: 1.2;
    margin: 18px 0;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.4;
    margin: 0 0 12px;
}

h3 {
    font-size: 20px;
    line-height: 1.45;
    margin: 8px 0;
}

p {
    margin: 0 0 15px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
}

.cta {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 11px 20px;
    margin-top: 12px;
}

.section {
    margin: 48px 0;
}

.section-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 24px;
}

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

.card {
    background: #fffdf8;
    border: 1px solid var(--line);
}

.card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-copy {
    padding: 20px;
}

.card-copy p {
    color: #53635a;
    font-size: 15px;
}

.guide {
    background: #29473c;
    color: #fff6e4;
    padding: clamp(24px, 4vw, 44px);
}

.guide a {
    text-decoration: underline;
}

footer {
    background: #eae0d0;
    margin-top: 54px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.foot p {
    margin: 4px 0;
}

.article {
    max-width: 790px;
    margin: 34px auto;
}

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

.article h2 {
    margin-top: 30px;
}

.article figure {
    margin: 24px 0;
}

.article figure img {
    width: 100%;
    max-height: 510px;
    object-fit: cover;
}

figcaption, .note {
    font-size: 13px;
    color: #59655d;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero img {
        min-height: 0;
        aspect-ratio: 4/3;
    }
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bar {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .cards {
        grid-template-columns: 1fr;
    }
    nav {
        gap: 12px;
    }
    .hero-copy {
        padding: 24px;
    }
}

.guide-kicker {
    color: #f7dfaa;
}

.checklist {
    padding-inline-start: 1.5rem;
}

.hero > *, .cards > * {
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Prevent long text from overflowing narrow screens. */
main, .card-copy, .foot {
    overflow-wrap: anywhere;
}
