/* Global layout */
:root {
    --paper: #f8f2e7;
    --ink: #203f39;
    --red: #a12546;
    --line: #c9bfb0;
}
*{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    line-height: 1.85;
}
a{
    color: inherit;
    text-underline-offset: 4px;
}
a:focus-visible{
    outline: 3px solid #c45c19;
    outline-offset: 4px;
}
.wrap{
    width: min(1180px, 92%);
    margin-inline: auto;
}
.skip{
    position: absolute;
    top: -100px;
}
.skip:focus{
    top: 0;
    background: white;
    z-index: 10;
}
.masthead{
    border-top: 7px solid var(--red);
    border-bottom: 1px solid var(--line);
}
.mast{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-block: 22px;
}
.brand{
    font-size: 32px;
    font-weight: 800;
    color: var(--red);
    text-decoration: none;
}
.brand small{
    display: block;
    font-size: 11px;
    letter-spacing: .2em;
}
.nav{
    display: flex;
    gap: 12px 30px;
    flex-wrap: wrap;
    padding-block: 10px;
    border-top: 1px solid var(--line);
}
.nav a{
    text-decoration: none;
}
.nav a[aria-current]{
    color: var(--red);
    font-weight: 700;
    text-decoration: underline;
}
/* Front cover */
.hero{
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 36px;
    align-items: center;
    padding-block: 44px;
}
.eyebrow{
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}
h1, h2, h3{
    line-height: 1.4;
}
h1{
    font-size: clamp(32px, 4.5vw, 58px);
    margin: 15px 0;
}
h2{
    font-size: clamp(23px, 3vw, 34px);
}
h3{
    font-size: 21px;
}
.cta{
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 10px 22px;
    text-decoration: none;
}
figure{
    margin: 0;
}
img{
    display: block;
    width: 100%;
    height: auto;
}
.hero figure{
    padding: 12px;
    border: 1px solid var(--line);
}
figcaption{
    font-size: 13px;
    padding-top: 8px;
}
/* Editorial collection */
.collection{
    border-top: 3px solid var(--ink);
    padding-block: 25px;
}
.entries{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.entry{
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.entry:first-child{
    grid-column: 1 / -1;
    grid-template-columns: 55% 1fr;
    background: #e6e6d9;
    padding: 22px;
    align-items: center;
}
.entry h3{
    margin: 6px 0;
}
.entry p{
    margin: 0;
}
.entry-image img{
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.guide{
    background: #e7dfd0;
    padding: 26px;
    margin-block: 30px 48px;
}
.guide-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.reading{
    max-width: 790px;
    margin: 35px auto 65px;
}
.reading h1{
    font-size: clamp(30px, 4vw, 44px);
}
.reading h2{
    margin-top: 36px;
    font-size: 25px;
}
.reading figure{
    margin-block: 25px;
}
.intro{
    font-size: 20px;
}
footer{
    background: var(--ink);
    color: var(--paper);
    padding-block: 30px;
}
.foot{
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}
/* Mobile layout */
@media (max-width: 760px) {
    .mast, .foot{
        flex-direction: column;
        align-items: flex-start;
    }
    .hero, .entries, .entry, .entry:first-child, .guide-grid{
        grid-template-columns: 1fr;
    }
    .hero{
        gap: 20px;
        padding-block: 24px;
    }
    .nav{
        gap: 8px 18px;
    }
    .entry:first-child{
        padding: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html{
        scroll-behavior: auto;
    }
}

/* Narrow viewport safeguards */
.entry, .entry-text, .hero-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 420px) {
    .guide {
        padding: 16px;
    }
    .brand {
        font-size: 26px;
    }
}
