* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: system-ui, "Microsoft YaHei", sans-serif;
    color: #27213e;
    background: #f7f5fb;
    line-height: 1.85;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: #8751bc;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.shell {
    width: min(1180px, 92%);
    margin: auto;
}
.masthead, footer {
    background: #25203f;
    color: #f9f3ff;
    padding: 22px 0;
}
.top, nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.top {
    justify-content: space-between;
}
.brand {
    font-size: 26px;
    font-weight: 800;
}
.brand small {
    display: block;
    font-size: 12px;
    letter-spacing: 4px;
}
.hero {
    margin: 36px 0;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    background: #e8dff6;
    border-radius: 24px 4px 24px 4px;
    overflow: hidden;
}
.hero-copy {
    padding: clamp(24px, 5vw, 60px);
}
.hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
h1 {
    font-size: clamp(27px, 4vw, 44px);
    line-height: 1.3;
}
h2 {
    line-height: 1.4;
}
.tag {
    color: #71519a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}
.cta {
    display: inline-block;
    padding: 10px 20px;
    background: #352751;
    color: white;
    border-radius: 6px;
}
.section {
    margin: 42px 0;
}
.atlas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tile {
    background: white;
    border: 1px solid #ddd4eb;
    border-radius: 18px 4px 18px 4px;
    overflow: hidden;
}
.tile:first-child {
    grid-column: auto;
}
.tile img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.tile-copy, .guide, .reading, .related {
    padding: 24px;
}
.tile-copy h3 {
    margin: 5px 0;
}
.guide, .reading, .related {
    background: white;
    border-top: 3px solid #a58bc7;
}
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 24px;
    margin: 36px auto;
    align-items: start;
}
.reading {
    padding: clamp(20px, 5vw, 48px);
}
figure {
    margin: 24px 0;
}
figure img {
    width: 100%;
}
figcaption, .crumb {
    color: #655b76;
    font-size: 14px;
}
@media (max-width: 760px) {
    .hero, .article-layout, .atlas {
        grid-template-columns: 1fr;
    }
    .tile:first-child {
        grid-column: auto;
    }
    nav {
        gap: 10px 16px;
    }
}

/* Keyboard access and readable navigation */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    background: white;
    color: #25203f;
    transform: translateY(-200%);
    z-index: 10;
}
.skip-link:focus {
    transform: translateY(0);
}
a:focus-visible {
    outline: 3px solid #a58bc7;
    outline-offset: 4px;
}
.masthead a:hover,
footer a:hover {
    color: #e8dff6;
    text-decoration: underline;
}
nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.tile a {
    display: block;
    height: 100%;
}
.tile img {
    aspect-ratio: 2 / 1;
    object-fit: contain;
    background: #25203f;
}
.footer-nav {
    gap: 16px;
}
@media (min-width: 761px) and (max-width: 1000px) {
    .atlas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
