:root {
    --ink: #182238;
    --paper: #f8f5f0;
    --red: #a32649;
    --muted: #595b65;
    --line: #ded6d0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--red);
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid #b8496c;
    outline-offset: 4px;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 13px;
    padding: 8px 0;
    color: var(--muted);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.35;
}

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 8px;
    top: -100px;
    background: white;
    padding: 10px;
    z-index: 2;
}

.skip:focus {
    top: 8px;
}

.header {
    border-top: 6px solid var(--red);
    border-bottom: 1px solid var(--line);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 24px;
}

.brand {
    font-size: 33px;
    font-weight: 850;
    letter-spacing: 3px;
    line-height: 1.1;
}

.brand span {
    color: var(--red);
}

.brand small {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 2px;
}

.edition {
    color: var(--muted);
    font-size: 13px;
}

.nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-block: 13px;
    border-top: 1px solid var(--line);
    font-weight: 650;
}

.hero {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    margin-top: 30px;
    background: var(--ink);
    color: white;
}

.herotext {
    padding: clamp(24px, 4vw, 60px);
    align-self: center;
}

.kicker {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.4px;
    color: var(--red);
    margin-bottom: 12px;
}

.hero .kicker {
    color: #ffb7ca;
}

.hero h1 {
    font-size: clamp(27px, 3.2vw, 46px);
    margin-bottom: 22px;
}

.hero p:not(.kicker) {
    color: #e5e1e8;
}

.heroimage {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.heroimage img {
    flex: 1;
    object-fit: cover;
    min-height: 280px;
}

.heroimage figcaption {
    padding: 9px 14px;
    color: #e5dce3;
    background: #222c42;
}

.cta {
    display: inline-block;
    padding: 10px 18px;
    background: #b32e54;
    color: white;
    font-weight: 650;
}

.cta:hover {
    color: white;
}

.indexstrip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-block: 1px solid var(--line);
    margin: 30px 0 50px;
}

.indexstrip a {
    display: grid;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
}

.indexstrip a:last-child {
    border-right: 0;
}

.indexstrip span {
    color: var(--red);
    font-size: 12px;
}

.indexstrip strong {
    font-size: 19px;
}

.indexstrip small {
    color: var(--muted);
}

.feature {
    margin-block: 42px;
}

.sectionhead {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 20px;
}

.sectionhead h2 {
    font-size: 27px;
    margin-bottom: 12px;
}

.sectionhead > a {
    color: var(--red);
    margin-bottom: 12px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

.tile {
    background: white;
    border-bottom: 2px solid var(--line);
    min-width: 0;
}

.tile img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.tiletext {
    padding: 18px;
}

.tag {
    color: var(--red);
    font-size: 12px;
    font-weight: 750;
}

.tile h3 {
    font-size: 20px;
    margin: 8px 0;
}

.tile p {
    color: var(--muted);
    font-size: 15px;
}

.read {
    color: var(--red);
    font-weight: 650;
    font-size: 14px;
}

.featured {
    grid-template-columns: 1.4fr 1fr;
}

.featured .tile:first-child {
    grid-row: span 2;
}

.featured .tile:not(:first-child) {
    display: grid;
    grid-template-columns: 42% 58%;
}

.featured .tile:not(:first-child) img {
    height: 100%;
    object-fit: cover;
}

.crumb {
    font-size: 14px;
    color: var(--muted);
    margin-block: 25px;
    overflow-wrap: anywhere;
}

.topicintro {
    padding: 36px;
    background: #eee3e3;
    border-left: 6px solid var(--red);
}

.topicintro h1, .articlehead h1 {
    font-size: clamp(28px,4vw,45px);
}

.reading {
    max-width: 820px;
    margin: 32px auto;
}

.articlehead {
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.lead {
    color: var(--muted);
    font-size: 19px;
}

.reading section {
    margin-block: 32px;
}

.reading section h2 {
    border-left: 4px solid var(--red);
    padding-left: 12px;
    font-size: 23px;
}

.footer {
    background: var(--ink);
    color: #e6e3e9;
    padding: 36px 0;
    margin-top: 60px;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footbrand {
    font-weight: 800;
    font-size: 23px;
}

.footer a:hover {
    color: #ffb7ca;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .tiles, .featured {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .featured .tile:first-child {
        grid-row: auto;
    }

    .featured .tile:not(:first-child) {
        display: block;
    }

    .featured .tile:not(:first-child) img {
        height: auto;
    }

    .indexstrip {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 520px) {
    .wrap {
        width: calc(100% - 28px);
    }

    .edition {
        display: none;
    }

    .nav {
        gap: 10px 18px;
        font-size: 14px;
    }

    .heroimage img {
        min-height: 0;
    }

    .indexstrip {
        grid-template-columns: repeat(2,1fr);
    }

    .tiles, .featured {
        grid-template-columns: 1fr;
    }

    .sectionhead h2 {
        font-size: 23px;
    }

    .topicintro {
        padding: 22px;
    }
}

.nav a[aria-current="page"] {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 5px;
}
