* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink: #23233b;
    --pink: #ff397b;
    --paper: #fffaf4;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui,"Microsoft YaHei",sans-serif;
    line-height: 1.7;
}

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

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

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

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

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

.skip:focus {
    top: 12px;
}

.header {
    background: white;
    border-bottom: 1px solid #f1d9e2;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    flex-shrink: 0;
}

.brand b {
    color: var(--pink);
}

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

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 14px;
    font-weight: 650;
}

nav a:hover,.more {
    color: #bd1758;
}

.hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 30px;
    padding: 44px 0 28px;
}

.intro {
    padding: 22px 0;
}

.eyebrow {
    color: #a51b58;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

h1 {
    font-size: clamp(32px,4.2vw,60px);
    line-height: 1.18;
    margin: 16px 0;
    letter-spacing: -1px;
}

h1 span {
    display: block;
    color: #db2468;
}

.intro p {
    max-width: 38em;
    font-size: 17px;
}

.cta {
    display: inline-block;
    background: #a91854;
    color: white;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 30px;
}

figure {
    margin: 0;
    background: #fff;
    border: 10px solid white;
    border-radius: 25px;
    box-shadow: 0 12px 35px #593b5020;
    transform: rotate(1.5deg);
}

figure img {
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
    border-radius: 15px;
}

figcaption {
    padding: 8px 4px 0;
    font-size: 12px;
    color: #656070;
}

.ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0 30px;
}

.ribbon a {
    flex: 1 1 130px;
    text-align: center;
    padding: 15px 8px;
    font-weight: 750;
    border-radius: 14px;
    background: #ffd4e5;
}

.ribbon a:nth-child(3n/**/+2) {
    background: #ffe29a;
}

.ribbon a:nth-child(3n) {
    background: #c9eafa;
}

.sectionhead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin: 24px 0;
}

h2 {
    font-size: clamp(23px,3vw,34px);
    margin: 4px 0 16px;
    line-height: 1.3;
}

.sectionhead p {
    color: #62566b;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 20px;
}

.tile {
    grid-column: span 4;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #f2e0e5;
}

.tile:first-child {
    grid-column: span 7;
    background: #ffe4ee;
}

.tile:nth-child(2) {
    grid-column: span 5;
    background: #fff0cb;
}

.tile:last-child {
    grid-column: span 12;
    background: #dceff9;
}

.tile:last-child a {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
}

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

.tile .copy {
    padding: 22px;
}

.tag {
    font-weight: 750;
    color: #ad1854;
    font-size: 13px;
}

h3 {
    font-size: 22px;
    line-height: 1.4;
    margin: 8px 0;
}

.tile p {
    font-size: 15px;
    margin: 8px 0 16px;
}

.more {
    font-weight: 750;
}

.note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #ffe1a2;
    padding: 30px;
    border-radius: 22px;
    margin: 35px 0;
}

.note .cta {
    flex-shrink: 0;
}

footer {
    background: #29243d;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.foot p {
    color: #e6ddea;
}

.story {
    padding: 30px 0;
}

.storyhead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 25px 0;
}

.storyhead img {
    width: 100%;
    border-radius: 22px;
}

.articlebody {
    max-width: 800px;
    margin: 40px auto;
    font-size: 18px;
}

.articlebody h2 {
    margin-top: 35px;
}

.related {
    display: grid;
    gap: 12px;
}

.related a {
    background: white;
    padding: 16px;
    border-radius: 12px;
}

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

    .top,.sectionhead,.note {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,.storyhead {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 12px;
    }

    figure {
        transform: none;
    }

    .mosaic {
        grid-template-columns: 1fr;
    }

    .tile,.tile:first-child,.tile:nth-child(2),.tile:last-child {
        grid-column: auto;
    }

    .tile:last-child a {
        display: block;
    }

    nav {
        gap: 10px 14px;
    }

}

/* Layout stability and keyboard accessibility */
img {
    height: auto;
}

.hero > *, .storyhead > *, .tile {
    min-width: 0;
}

.hero figure img, .tile img {
    height: auto;
    aspect-ratio: 1.65;
    object-fit: cover;
}

.tile img {
    aspect-ratio: 1.85;
}

nav a[aria-current="page"] {
    color: #a91854;
    text-decoration: underline;
    text-underline-offset: 5px;
}

@media (max-width: 760px) {
    .hero figure {
        width: 100%;
    }

    .note .cta {
        max-width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

}
