* {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #30251f;
    --paper: #f5eddf;
    --accent: #9b451e;
    --line: #cbbba4;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
}
a {
    color: inherit;
    text-underline-offset: 4px;
}
a:hover {
    color: var(--accent);
}
a:focus-visible {
    outline: 3px solid #c06c2c;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
figure {
    margin: 0;
}
h1, h2, h3, p {
    overflow-wrap: anywhere;
}
h1, h2, h3 {
    line-height: 1.4;
    margin-top: 0;
}
h1 {
    font-size: clamp(30px, 4.5vw, 62px);
}
h2 {
    font-size: clamp(24px, 3vw, 36px);
}
h3 {
    font-size: 22px;
}
.skip {
    position: absolute;
    top: -100px;
    padding: 10px;
    background: white;
}
.skip:focus {
    top: 0;
    z-index: 10;
}
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px max(5vw, 20px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
nav a {
    text-decoration: none;
    font-size: 14px;
}
main {
    max-width: 1240px;
    margin: auto;
    padding: 34px 24px 65px;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #29231e;
    color: #f9efde;
}
.hero-copy {
    padding: clamp(24px, 5vw, 64px);
    align-self: center;
}
.eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--accent);
}
.hero .eyebrow {
    color: #f0b66f;
}
.hero-image {
    position: relative;
    min-width: 0;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #211b17d9;
    padding: 8px 16px;
    font-size: 12px;
}
.cta {
    display: inline-block;
    padding: 12px 18px;
    background: #e8a656;
    color: #241b16;
    font-weight: bold;
    text-decoration: none;
}
.note {
    font-size: 13px;
    color: #e5cfb2;
}
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
}
.facts div {
    padding: 20px;
    border-right: 1px solid var(--line);
}
.facts div:last-child {
    border: 0;
}
.facts small, .facts strong {
    display: block;
}
.facts small {
    color: #795d48;
}
.intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 35px;
    padding: 52px 0;
    border-bottom: 1px solid var(--line);
}
.intro p:first-child {
    margin-top: 0;
}
.chapters {
    padding: 48px 0 10px;
}
.chapter {
    display: grid;
    grid-template-columns: 84px minmax(180px, 30%) 1fr;
    align-items: center;
    gap: 30px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}
.number {
    font-size: 40px;
    color: var(--accent);
    font-family: Georgia, serif;
    align-self: start;
}
.chapter-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.chapter h3 a {
    text-decoration: none;
}
.read {
    font-weight: bold;
    color: var(--accent);
}
.closing {
    margin-top: 30px;
}
.detail {
    max-width: 960px;
}
.breadcrumb {
    font-size: 14px;
    color: #795d48;
}
.detail-head {
    padding: 28px 0;
}
.detail-head h1 {
    font-size: clamp(30px, 4vw, 50px);
}
.detail-image img {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
}
.detail-image figcaption {
    font-size: 12px;
    padding: 10px 0;
}
.prose {
    max-width: 760px;
    margin: 32px auto;
}
.prose section {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.related {
    background: #e9ddc9;
    padding: 26px;
}
.related a {
    display: block;
    padding: 8px 0;
}
footer {
    padding: 38px max(5vw, 20px);
    background: #29231e;
    color: #efdfc8;
    font-size: 14px;
}
footer p {
    max-width: 900px;
}
@media (max-width: 720px) {
    main {
        padding: 20px 16px 38px;
    }
    .hero, .intro {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hero-image img {
        aspect-ratio: 16 / 10;
        height: auto;
    }
    .facts {
        grid-template-columns: repeat(2, 1fr);
    }
    .chapter {
        grid-template-columns: 38px 1fr;
        gap: 14px;
    }
    .chapter-copy {
        grid-column: 2;
    }
    .number {
        font-size: 28px;
    }
    .intro {
        padding: 30px 0;
    }
}

nav a[aria-current="page"] {
    color: var(--accent);
    font-weight: bold;
    text-decoration: underline;
}

.hero-copy, .chapter-copy {
    min-width: 0;
}
