* {
    box-sizing: border-box;
}
:root {
    --ink: #29243e;
    --accent: #403778;
    --pink: #f8dce9;
    --paper: #faf8fc;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
a {
    color: inherit;
    text-decoration: none;
}
a:focus-visible {
    outline: 3px solid #8a68c0;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.wrap {
    width: min(1160px, 92%);
    margin: 0 auto;
}
.site-header {
    background: white;
    border-bottom: 1px solid #e9e1ef;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
}
.brand small {
    display: block;
    font-size: 12px;
    font-weight: normal;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}
nav a:hover,
nav a[aria-current="page"],
.more {
    color: #69449b;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: 32px;
    margin: 36px 0;
    padding: clamp(20px,4vw,48px);
    border-radius: 30px 6px 30px 6px;
    background: linear-gradient(125deg,#f8dce9,#e5eaff 70%,#d9f3f1);
}
.eyebrow, .tag {
    color: #654183;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
}
h1 {
    font-size: clamp(28px,4vw,48px);
    line-height: 1.35;
    margin: 12px 0 20px;
}
h2, h3 {
    line-height: 1.45;
}
.cta {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
}
.note, figcaption {
    color: #594f69;
    font-size: 13px;
}
figure {
    margin: 0;
}
.hero-art img {
    width: 100%;
    border-radius: 6px 80px 6px 6px;
}
.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.tiles {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
.tile {
    background: white;
    border: 1px solid #e8e1ee;
    border-radius: 12px;
    overflow: hidden;
}
.tile a {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    height: 100%;
}
.tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    align-self: start;
}
.tile-copy {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tile h3 {
    margin: 8px 0;
}
.tile p {
    font-size: 14px;
}
.guide, .detail {
    background: white;
    padding: clamp(20px,4vw,42px);
    margin: 36px auto;
    border-left: 4px solid #8a68c0;
}
.detail {
    max-width: 820px;
}
.detail figure img {
    width: min(100%,512px);
    border-radius: 12px;
}
.detail a {
    text-decoration: underline;
}
.site-footer {
    background: #29243e;
    color: #f8edf9;
    padding: 28px 0;
    font-size: 14px;
}
@media (max-width: 850px) {
    .hero,
    .tiles {
        grid-template-columns: 1fr;
    }
    .hero-art {
        max-width: 440px;
    }
}
@media (max-width: 480px) {
    .tile a {
        grid-template-columns: 1fr;
    }
    .tile img {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    nav {
        gap: 10px;
    }
}

/* Accessibility and consistent card alignment */
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    padding: 10px 16px;
    color: white;
    background: var(--accent);
    z-index: 10;
}
.skip-link:focus {
    top: 12px;
}
.tile-copy .more {
    margin-top: auto;
    padding-top: 8px;
}
.tile p {
    margin: 0 0 12px;
}
.tile a {
    align-items: start;
}
.tile-copy {
    align-self: stretch;
}
nav a[aria-current="page"] {
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}
@media (max-width: 480px) {
    .hero {
        gap: 18px;
        margin: 20px 0;
    }
    .tile img {
        aspect-ratio: 4 / 3;
    }
}
