* {
    box-sizing: border-box;
}
:root {
    --ink: #252523;
    --orange: #b94617;
    --paper: #f7f3eb;
    --line: #ded6c9;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
}
a {
    color: inherit;
    text-decoration: none;
}
a:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}
a:hover {
    color: var(--orange);
}
img {
    display: block;
    width: 100%;
    height: auto;
}
.wrap {
    width: min(1200px, 92%);
    margin: 0 auto;
}
.masthead {
    background: #fffaf1;
    border-bottom: 1px solid var(--line);
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.brand {
    font-size: 24px;
    font-weight: 800;
}
.brand small {
    font-size: 12px;
    font-weight: 400;
    color: #756b60;
}
.mark {
    background: var(--orange);
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.hero {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    margin-top: 36px;
    background: #282c2e;
    color: #fff8eb;
}
.hero-copy {
    padding: clamp(25px, 4vw, 55px);
    align-self: center;
}
.kicker {
    font-size: 12px;
    letter-spacing: 1.4px;
    color: var(--orange);
    font-weight: 700;
}
.hero .kicker {
    color: #ffad78;
}
h1 {
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.28;
    margin: 14px 0 20px;
}
h2 {
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.4;
    margin: 8px 0;
}
h3 {
    font-size: 20px;
    line-height: 1.4;
    margin: 7px 0;
}
p {
    margin: 8px 0 16px;
    overflow-wrap: anywhere;
}
.cta {
    display: inline-block;
    padding: 10px 20px;
    background: #ffd2a9;
    color: #3b2015;
    margin-top: 12px;
    font-weight: 700;
}
.hero-image {
    position: relative;
    display: block;
    min-height: 330px;
}
.hero-image img {
    height: 100%;
    object-fit: cover;
}
.hero-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #15191de8);
    padding: 50px 24px 22px;
    color: white;
}
.hero-label strong {
    display: block;
    font-size: 30px;
}
.hero-label span {
    font-size: 13px;
}
.index-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
}
.index-strip a {
    padding: 22px 16px;
    border-right: 1px solid var(--line);
}
.index-strip a:last-child {
    border-right: 0;
}
.index-strip span {
    display: block;
    color: #665f57;
    font-size: 13px;
}
.shelf {
    margin: 46px 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    border-top: 2px solid var(--ink);
    padding-top: 14px;
    margin-bottom: 16px;
}
.section-head p {
    margin: 0;
    color: #665f57;
}
.section-head > a {
    color: var(--orange);
    white-space: nowrap;
    font-size: 14px;
}
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.story {
    background: #fffdf7;
    border-bottom: 3px solid #dbb49a;
}
.story img {
    aspect-ratio: 8 / 5;
    object-fit: cover;
}
.story-copy {
    padding: 18px;
}
.story-copy p {
    color: #615a51;
    font-size: 15px;
}
.reading-note {
    background: #efe5d5;
    padding: 30px;
    margin: 40px 0;
}
.subpage {
    padding: 28px 0;
    min-height: 60vh;
}
.crumb {
    font-size: 14px;
    color: #6d6359;
    gap: 8px;
}
.topic-intro {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}
.article-layout {
    max-width: 820px;
    margin: 30px auto;
    background: #fffdf8;
    padding: clamp(20px, 4vw, 48px);
}
.article-layout h2 {
    margin-top: 30px;
}
.article-layout figure {
    margin: 24px 0;
}
figcaption {
    color: #6c645c;
    font-size: 13px;
    margin-top: 8px;
}
.footer {
    background: #282c2e;
    color: #eee5d8;
    padding: 30px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer a {
    margin-right: 18px;
}
.footer p {
    font-size: 13px;
}
@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-image {
        min-height: 0;
    }
    .index-strip, .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .topbar {
        gap: 10px;
    }
    nav {
        gap: 12px;
    }
}
@media (max-width: 440px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy {
        padding: 24px;
    }
    .section-head {
        align-items: start;
    }
}

/* Navigation and keyboard accessibility */
nav.index-strip {
    gap: 0;
}
.topbar nav a[aria-current="page"] {
    color: var(--orange);
    font-weight: 700;
}
.hero-image {
    min-width: 0;
}
@media (max-width: 760px) {
    .hero-image img {
        height: auto;
        aspect-ratio: 8 / 5;
    }
}
