* {
    box-sizing: border-box;
}
:root {
    color-scheme: dark;
    --bg: #090f25;
    --panel: #131e38;
    --ink: #f1efff;
    --muted: #b9c4df;
    --accent: #77c7e8;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    line-height: 1.8;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.wrap {
    width: min(1160px, 92%);
    margin: auto;
}
header {
    border-bottom: 1px solid #34415e;
}
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 750;
    letter-spacing: .1em;
}
.brand small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
}
nav a[aria-current="page"] {
    color: white;
    text-decoration: underline;
}
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 64px 0;
}
.hero img {
    width: 100%;
    border-radius: 48% 48% 8px 8px;
    border: 1px solid #536589;
}
.kicker {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .2em;
    font-weight: 700;
}
h1 {
    font-size: clamp(32px, 5vw, 66px);
    line-height: 1.22;
    margin: 16px 0;
}
h2 {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.4;
}
h3 {
    font-size: 21px;
    line-height: 1.4;
}
p {
    color: var(--muted);
}
.button {
    display: inline-block;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 10px 20px;
    margin-top: 12px;
}
.index {
    border-top: 1px solid #34415e;
    padding: 30px 0;
}
.chapter {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid #34415e;
}
.chapter:nth-of-type(even) {
    background: #101a32;
}
.chapter img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 5px;
}
.num {
    font-size: 44px;
    font-weight: 300;
    color: #a99cf9;
    text-align: center;
}
.note {
    padding: 28px;
    background: var(--panel);
    border-left: 3px solid var(--accent);
    margin: 32px 0;
}
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.article h1 {
    font-size: clamp(30px, 5vw, 48px);
}
.article img {
    width: min(100%, 508px);
    margin: 24px auto;
    border-radius: 6px;
}
.article section {
    margin: 36px 0;
}
footer {
    border-top: 1px solid #34415e;
    margin-top: 40px;
    padding: 32px 0;
}
.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 12px;
    top: 12px;
    background: var(--bg);
    padding: 10px;
    z-index: 2;
}
@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }
    .hero img {
        max-width: 430px;
    }
    .chapter {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 8px;
    }
    .chapter img {
        grid-column: 2;
    }
    .num {
        font-size: 28px;
    }
    .top {
        gap: 12px;
    }
}

/* Responsive layout and readable article figures */
.hero > div,
.chapter > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.article figure {
    margin: 24px 0;
}
.article figcaption {
    text-align: center;
    color: var(--muted);
}
@media (max-width: 420px) {
    .chapter {
        grid-template-columns: minmax(0, 1fr);
    }
    .chapter img {
        grid-column: 1;
    }
    .num {
        text-align: left;
    }
}
