* {
    box-sizing: border-box;
}

:root {
    --ink: #342d2a;
    --muted: #6e615b;
    --paper: #fbf6ef;
    --accent: #963e32;
    --line: #e4d6c9;
}

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

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

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

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

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

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

.skip:focus {
    left: 10px;
    background: white;
    z-index: 10;
}

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

.brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 30px;
    font-weight: 800;
}

.brand span,.brand small {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-weight: 600;
}

main {
    padding: 32px 0 60px;
}

section {
    margin-bottom: 42px;
}

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

h1 {
    font-size: clamp(30px,4vw,54px);
    line-height: 1.25;
    letter-spacing: -1px;
}

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

h3 {
    font-size: 19px;
    line-height: 1.5;
}

p {
    color: var(--muted);
}

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

.hero,.category {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #ead8c9;
    border-radius: 4px 90px 4px 4px;
    overflow: hidden;
    align-items: stretch;
}

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

.hero img,.category img {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 22px;
    border-radius: 3px;
}

.cta:hover {
    color: white;
    background: #713126;
}

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

.topic-grid a {
    background: #fffaf5;
    border: 1px solid var(--line);
    padding: 18px;
    font-weight: 700;
}

.topic-grid span {
    color: var(--accent);
    margin-right: 14px;
    font-size: 13px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.section-head span {
    color: var(--muted);
    font-size: 13px;
}

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

.tile {
    background: #fffdf9;
    border: 1px solid var(--line);
    overflow: hidden;
}

.tile a {
    display: block;
    height: 100%;
}

.tile img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.tile-body {
    padding: 22px;
}

.tile-body h3 {
    margin-bottom: 8px;
}

.tile-body p {
    font-size: 15px;
}

.more {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.note {
    background: #e5e8dc;
    padding: 30px;
}

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

.crumb {
    font-size: 14px;
}

.article {
    max-width: 780px;
    margin: 0 auto 48px;
    background: #fffdf9;
    padding: clamp(20px,5vw,55px);
    border: 1px solid var(--line);
}

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

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

.article p {
    color: var(--ink);
}

.article-image {
    width: 100%;
    aspect-ratio: 16/9;
}

.footer {
    background: #382d28;
    color: #fff8f0;
    padding: 35px 0;
}

.footer p {
    color: #e3d4c9;
    font-size: 14px;
}

.footer a {
    text-decoration: underline;
}

@media(max-width:760px) {
    .hero,.category {
        grid-template-columns: 1fr;
        border-radius: 4px 40px 4px 4px;
    }
    .hero img,.category img {
        height: 280px;
        min-height: 0;
    }
    .grid,.topic-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }
    .brand small {
        display: none;
    }
    .brand span {
        display: block;
    }
    .nav {
        gap: 8px 18px;
    }
    .tile-body {
        padding: 14px;
    }
    .principles {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media(max-width:420px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .section-head {
        display: block;
    }
}

.nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 5px;
}
