* {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #242541;
    --berry: #4b487e;
    --paper: #f8f7f3;
    --muted: #55576b;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.8;
}
a {
    color: var(--berry);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
a:focus-visible {
    outline: 3px solid #7660bd;
    outline-offset: 4px;
}
.wrap {
    width: min(1200px, 92%);
    margin: auto;
}
.header {
    border-bottom: 1px solid #dcdce5;
    background: #fff;
}
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
}
.brand {
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
}
.brand small {
    font-size: 13px;
    font-weight: 400;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
nav a {
    text-decoration: none;
}
nav a[aria-current] {
    border-bottom: 2px solid currentColor;
    font-weight: 700;
}
.skip {
    position: absolute;
    top: -100px;
}
.skip:focus {
    top: 0;
    background: white;
    z-index: 2;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
    padding: 54px 0;
}
.eyebrow {
    color: var(--berry);
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
}
h1 {
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1.3;
    margin: 16px 0;
}
h2 {
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.4;
}
h3 {
    line-height: 1.5;
    margin: 8px 0;
}
p {
    color: var(--muted);
}
.cta {
    display: inline-block;
    background: var(--berry);
    color: white;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
}
figure {
    margin: 0;
}
img {
    display: block;
    width: 100%;
    height: auto;
}
.hero img {
    max-width: 430px;
    margin: auto;
    border-radius: 32px 12px 12px 12px;
}
figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}
.topics {
    border-top: 1px solid #dcdce5;
    padding: 24px 0 48px;
}
.spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.tile {
    background: white;
    border: 1px solid #e1e1ea;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}
.tile:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.tile img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 8px;
}
.tile-text {
    padding: 22px;
}
.notes {
    background: #eae9f3;
    padding: 28px;
    margin-bottom: 48px;
}
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.article-page {
    max-width: 820px;
    padding: 20px 0 50px;
}
.article-photo {
    max-width: 600px;
    margin: 28px auto;
}
.chapter {
    border-top: 1px solid #dcdce5;
    margin-top: 30px;
}
.related {
    padding: 20px;
    background: #eae9f3;
    margin-top: 32px;
}
footer {
    background: #252744;
    color: white;
    padding: 32px 0;
}
footer p, footer a {
    color: #e6e5f2;
}
@media (max-width: 800px) {
    .hero, .spread, .notes-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        gap: 24px;
        padding: 28px 0;
    }
    .tile:first-child {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
@media (max-width: 480px) {
    .tile, .tile:first-child {
        grid-template-columns: 1fr;
    }
    nav {
        gap: 12px;
        font-size: 14px;
    }
    .notes {
        padding: 18px;
    }
}

/* Editorial layout and image sizing */
.tile-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.article-photo img {
    width: auto;
    max-width: 100%;
    margin: auto;
    border-radius: 8px;
}
.field-guide {
    border-top: 1px solid #dcdce5;
    padding: 24px 0 36px;
}
.field-guide li {
    margin-bottom: 8px;
}
@media (max-width: 480px) {
    .tile-text {
        padding: 16px;
    }
    .hero img {
        max-width: 100%;
    }
}
