:root {
    --ink: #282321;
    --paper: #f7f2e9;
    --wine: #752a34;
    --gold: #d5b780;
    --line: #d9cdbd;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible {
    outline: 3px solid #b87d24;
    outline-offset: 3px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
h1, h2, h3, p, figure {
    margin: 0;
}
h1, h2 {
    font-family: "Noto Serif CJK SC", "Songti SC", SimSun, serif;
    line-height: 1.4;
}
.shell {
    width: min(1240px, calc(100% - 64px));
    margin: auto;
}
.skip {
    position: absolute;
    left: 16px;
    top: -100px;
    padding: 8px;
    background: white;
    z-index: 10;
}
.skip:focus {
    top: 8px;
}
.masthead {
    background: #241d20;
    color: #fff5e7;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #594248;
}
.brand {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}
.brand span {
    color: var(--gold);
}
.brand small {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    margin-top: 10px;
}
.edition, .eyebrow, .meta {
    font-size: 12px;
    letter-spacing: 1.3px;
}
.edition {
    color: var(--gold);
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 34px;
    padding: 12px 0;
}
.nav a {
    font-size: 15px;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr .95fr .52fr;
    margin-top: 32px;
    background: #302428;
    color: #fff5e7;
}
.hero-copy {
    padding: 34px;
    align-self: center;
}
.eyebrow {
    color: #a05b31;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}
.hero .eyebrow {
    color: var(--gold);
}
h1 {
    font-size: clamp(27px, 3vw, 43px);
    margin-bottom: 18px;
}
.hero-copy p {
    font-size: 15px;
    color: #e7d8ca;
}
.cta {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 22px;
    background: var(--gold);
    color: #302428;
    font-weight: 700;
}
.hero-image {
    display: flex;
    flex-direction: column;
}
.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    flex: 1;
}
figcaption {
    font-size: 12px;
    padding: 8px 12px;
}
.hero-image figcaption {
    background: #4e3439;
}
.index-panel {
    background: #71313b;
    padding: 24px 18px;
}
.index-panel h2 {
    font-size: 21px;
    margin-bottom: 16px;
}
.index-panel a {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #a36a72;
}
.index-panel a span {
    color: var(--gold);
    font-size: 12px;
}
.index-panel b {
    margin-left: auto;
}
.intro-band {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.intro-band h2 {
    font-size: 25px;
}
.genre {
    margin: 36px 0 48px;
}
.section-head {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 2px solid var(--wine);
    padding-bottom: 14px;
    margin-bottom: 22px;
}
.section-no {
    font: 42px Georgia, serif;
    color: var(--wine);
}
.section-head h2 {
    font-size: 27px;
}
.section-head p {
    color: #6d6259;
    font-size: 14px;
}
.section-head > a {
    margin-left: auto;
    color: var(--wine);
    font-size: 14px;
    white-space: nowrap;
}
.entries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.entry {
    background: #fffaf2;
    border: 1px solid var(--line);
    min-width: 0;
}
.entry-image {
    display: block;
    overflow: hidden;
}
.entry img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.entry-copy {
    padding: 20px;
}
.meta {
    color: var(--wine);
}
h3 {
    font-size: 20px;
    line-height: 1.5;
    margin: 8px 0 12px;
}
.entry p {
    font-size: 14px;
    color: #5c514a;
}
.read {
    display: inline-block;
    color: var(--wine);
    font-weight: 700;
    margin-top: 16px;
}
.crumb {
    padding: 18px 0;
    font-size: 14px;
    color: #6d6259;
}
.topic-head {
    background: #eee1d0;
    padding: 36px;
    margin: 12px 0 30px;
    border-left: 5px solid var(--wine);
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 30px;
    margin-bottom: 40px;
}
.essay {
    background: #fffaf2;
    padding: clamp(20px, 4vw, 48px);
    border: 1px solid var(--line);
    margin-bottom: 24px;
}
.essay h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}
.essay p {
    line-height: 1.95;
}
.lede {
    color: #635348;
}
.essay-image {
    margin: 24px 0;
    background: #eadcca;
}
.essay-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}
.reading {
    background: #eee1d0;
    padding: 24px;
    border-top: 4px solid var(--wine);
}
.reading h2 {
    font-size: 22px;
}
.reading ul {
    padding-left: 20px;
}
.reading li {
    margin-bottom: 12px;
}
.footer {
    background: #241d20;
    color: #e7d8ca;
    padding: 30px 0;
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
    .index-panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .index-panel h2 {
        grid-column: 1 / -1;
        margin: 0;
    }
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .shell {
        width: calc(100% - 28px);
    }
    .edition {
        display: none;
    }
    .nav {
        gap: 10px 18px;
    }
    .hero {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 16px;
    }
    .hero-copy {
        padding: 24px;
    }
    .hero-image img {
        min-height: 0;
        height: auto;
        aspect-ratio: 16/10;
    }
    .index-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .intro-band, .entries {
        grid-template-columns: minmax(0, 1fr);
    }
    .section-head {
        flex-wrap: wrap;
        gap: 8px 14px;
    }
    .section-head > div {
        flex: 1;
        min-width: 0;
    }
    .section-head > a {
        margin-left: 0;
    }
    .topic-head {
        padding: 22px;
    }
    .footer-inner {
        flex-direction: column;
    }
}

/* Current navigation and keyboard focus */
.nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
