* {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #254438;
    --paper: #f7f5ec;
    --muted: #53665a;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.85 system-ui, "Microsoft YaHei", sans-serif;
}
a {
    color: inherit;
    text-underline-offset: 5px;
}
a:focus-visible {
    outline: 3px solid #b8773c;
    outline-offset: 4px;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
.skip {
    position: absolute;
    top: -100px;
}
.skip:focus {
    top: 8px;
    z-index: 4;
    background: white;
}
.mast {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px max(5vw, 20px);
    border-bottom: 1px solid #c9d1bd;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.4;
}
.brand small {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 400;
}
.mast nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}
.mast nav a {
    text-decoration: none;
}
main {
    max-width: 1180px;
    margin: auto;
    padding: 0 28px 64px;
}
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
}
.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #697c57;
}
h1,h2,h3 {
    line-height: 1.4;
    margin: 12px 0;
}
h1 {
    font-size: clamp(36px,5vw,66px);
    letter-spacing: -2px;
}
h1 span {
    display: block;
    font-size: clamp(24px,3vw,38px);
    letter-spacing: 0;
    margin-top: 12px;
}
h2 {
    font-size: clamp(23px,3vw,34px);
}
h3 {
    font-size: 25px;
}
p {
    margin: 12px 0 22px;
}
.hero-copy p:not(.eyebrow) {
    color: var(--muted);
}
.cta {
    display: inline-block;
    padding: 12px 24px;
    background: #254e3e;
    color: white;
    border-radius: 3px;
    text-decoration: none;
}
.hero-image {
    margin: 0;
    padding: 14px;
    background: #fffdf6;
    box-shadow: 8px 8px 0 #cbd8ba;
    transform: rotate(2deg);
}
.hero-image img {
    width: 100%;
}
figcaption {
    font-size: 13px;
    padding: 10px 0 0;
}
.section-head {
    border-top: 2px solid #49614b;
    padding: 24px 0;
}
.chapter {
    display: grid;
    grid-template-columns: 110px 220px 1fr;
    gap: 30px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid #c9d1bd;
}
.chapter img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 3px;
}
.number {
    font-size: 14px;
    font-weight: 700;
    color: #59734d;
    align-self: start;
}
.chapter:nth-of-type(even) {
    background: #edf0e2;
    padding-inline: 18px;
}
.read {
    font-size: 14px;
    font-weight: 700;
}
.note {
    margin-top: 42px;
    background: #e2e9d4;
    padding: 32px;
}
.detail {
    max-width: 850px;
    padding-top: 36px;
}
.detail h1 {
    font-size: clamp(32px,5vw,50px);
}
.detail-image {
    width: min(100%,520px);
    margin: 24px auto;
}
.detail section {
    border-bottom: 1px solid #c9d1bd;
    padding: 16px 0;
}
.detail aside {
    padding: 24px;
    background: #edf0e2;
    margin-top: 32px;
}
footer {
    background: #254438;
    color: #f7f5ec;
    padding: 40px max(5vw,24px);
    font-size: 14px;
}
@media (max-width: 720px) {
    main {
        padding-inline: 20px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0;
    }
    .hero-image {
        transform: none;
    }
    .chapter {
        grid-template-columns: 110px minmax(0,1fr);
        gap: 14px;
    }
    .number {
        grid-column: 1/-1;
    }
    .chapter h3 {
        font-size: 20px;
    }
    .chapter p {
        font-size: 15px;
    }
    .mast nav {
        gap: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Responsive overflow and active navigation */
.hero > *,
.chapter > * {
    min-width: 0;
}
.mast nav a[aria-current="page"] {
    text-decoration: underline;
}
@media (max-width: 420px) {
    .chapter {
        grid-template-columns: 1fr;
    }
    .chapter img {
        aspect-ratio: 4 / 3;
    }
}
