* {
    box-sizing: border-box;
}

:root {
    --ink: #21183f;
    --pink: #d81169;
    --purple: #6945c9;
    --paper: #fff8fc;
}

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(--pink);
}

a:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 4px;
}

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

.wrap {
    width: min(1200px,92%);
    margin: auto;
}

header {
    background: #fff;
    border-bottom: 1px solid #eaddeb;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 900;
    white-space: nowrap;
}

.brand img {
    width: 48px;
}

nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}

nav a[aria-current] {
    color: var(--pink);
    font-weight: 800;
}

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

.skip:focus {
    top: 8px;
}

.hero {
    margin: 34px 0;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: #21183f;
    color: white;
    min-height: 400px;
    overflow: hidden;
    border-radius: 28px 6px 28px 6px;
}

.hero-copy {
    padding: clamp(24px,5vw,64px);
    align-self: center;
}

.eyebrow {
    color: #ffb5dc;
    font-size: 13px;
    letter-spacing: .15em;
    font-weight: 800;
}

h1 {
    font-size: clamp(28px,3.3vw,48px);
    line-height: 1.24;
    margin: 16px 0;
}

.hero p {
    color: #f3e7ff;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 550px;
}

.cta {
    display: inline-block;
    background: #ffcf4e;
    color: #21183f;
    padding: 10px 20px;
    font-weight: 800;
    border-radius: 4px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid #21183f;
    margin: 40px 0 20px;
}

h2 {
    font-size: 27px;
    line-height: 1.4;
}

.atlas {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
}

.tile {
    position: relative;
    background: white;
    border: 1px solid #eaddeb;
    overflow: hidden;
    border-radius: 6px 22px 6px 22px;
}

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

.tile img {
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
}

.tile:first-child img {
    aspect-ratio: .83;
}

.tile-copy {
    padding: 16px 20px;
}

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

.tile p {
    margin: 6px 0;
    font-size: 14px;
}

.num {
    font-weight: 900;
    color: var(--pink);
    font-size: 13px;
}

.tile:last-child {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tile:last-child img {
    height: 100%;
    object-fit: cover;
}

.guide {
    background: #e9e2ff;
    padding: 26px;
    margin: 36px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    border-left: 6px solid #6945c9;
}

.guide h2 {
    margin-top: 0;
}

.guide p {
    margin: 8px 0;
}

.article {
    max-width: 850px;
    margin: 32px auto;
}

.article figure {
    margin: 20px 0;
}

.article figure img {
    width: min(100%,510px);
    margin: auto;
    border-radius: 20px;
}

figcaption {
    font-size: 13px;
    color: #665b77;
    text-align: center;
}

.article h2 {
    margin-top: 32px;
}

.related {
    border-top: 1px solid #dbcde5;
    padding: 20px 0;
}

.related a {
    display: inline-block;
    margin: 8px;
    color: #6945c9;
}

footer {
    background: #21183f;
    color: #e9dff6;
    padding: 30px 0;
    margin-top: 40px;
}

footer a {
    margin-right: 16px;
}

footer small {
    display: block;
    margin-top: 12px;
}

@media (max-width:900px) {
    .bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .atlas {
        grid-template-columns: 1fr 1fr;
    }
    .tile:first-child {
        grid-row: auto;
    }
    .tile:first-child img {
        aspect-ratio: 1.65;
    }
    .tile:last-child {
        grid-column: auto;
        display: block;
    }
    .hero {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:600px) {
    .hero,.atlas,.guide {
        grid-template-columns: 1fr;
    }
    .hero img {
        max-height: 320px;
    }
    .section-head {
        display: block;
    }
    nav {
        gap: 8px 15px;
    }
    .tile:last-child img {
        height: auto;
    }
}

/* Layout refinements: desktop and mobile */
.bar > *, .hero > *, .atlas > *, .guide > * {
    min-width: 0;
}
.brand {
    font-size: clamp(18px, 2vw, 25px);
    white-space: normal;
}
nav a, footer a {
    display: inline-block;
    padding: 5px 0;
}
.hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero h1 {
    font-size: clamp(28px, 3vw, 44px);
}
.hero img {
    max-height: none;
    min-height: 0;
    aspect-ratio: 1;
}
.atlas {
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
}
.tile:last-child {
    grid-column: auto;
    display: block;
}
.tile:last-child img {
    height: auto;
}
.tile:first-child img {
    aspect-ratio: 1;
}
.tile-copy {
    overflow-wrap: anywhere;
}
@media (max-width: 900px) {
    .atlas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tile:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .hero, .atlas, .guide, .tile:last-child {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero img {
        max-height: 340px;
    }
    .tile:last-child {
        display: block;
    }
    .bar {
        gap: 8px;
    }
    .section-head h2 {
        font-size: 23px;
    }
}
