* {
    box-sizing: border-box;
}
:root {
    --ink: #30213e;
    --purple: #50315d;
    --gold: #f4bd46;
    --paper: #fff9ef;
}
html {
    scroll-behavior: smooth;
}
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 {
    text-decoration: underline;
}
a:focus-visible {
    outline: 3px solid #b86a00;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: white;
    padding: 8px;
    z-index: 5;
}
.skip:focus {
    top: 12px;
}
.header {
    background: #fffdf7;
    border-bottom: 1px solid #e7dacb;
}
.brand, nav, main {
    max-width: 1240px;
    margin: auto;
    padding-inline: 24px;
}
.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    gap: 12px;
}
.brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 27px;
}
.brand span {
    font-size: 12px;
    letter-spacing: 2px;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 25px;
    padding-block: 12px;
    border-top: 1px solid #eee4d6;
}
.hero {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--ink);
    color: white;
    border-radius: 26px 26px 90px 26px;
    overflow: hidden;
}
.intro {
    padding: clamp(25px, 5vw, 68px);
}
h1 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.2;
    margin: 18px 0;
}
h2 {
    font-size: 27px;
    line-height: 1.4;
}
h3 {
    font-size: 21px;
    line-height: 1.4;
    margin: 8px 0;
}
.tag {
    color: #8b5600;
    font-size: 13px;
    font-weight: 700;
}
.hero .tag {
    color: var(--gold);
}
.cta {
    display: inline-block;
    background: var(--gold);
    color: var(--ink);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
}
figure {
    margin: 0;
}
.hero figure {
    position: relative;
    min-height: 280px;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
figcaption {
    padding: 8px 12px;
    font-size: 13px;
}
.hero figcaption {
    position: absolute;
    bottom: 20px;
    left: 12px;
    background: #30213e;
}
.manifesto {
    margin: 36px 0;
    padding: 20px 30px;
    border-left: 6px solid var(--gold);
    background: #f9ecd4;
}
.sectionhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.sectionhead span {
    font-size: 13px;
}
.stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.story {
    display: grid;
    grid-template-columns: 38% 1fr;
    background: white;
    border: 1px solid #eaded1;
    border-radius: 18px;
    overflow: hidden;
}
.story > a {
    display: block;
}
.story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story > div {
    padding: 20px;
}
.story p {
    font-size: 15px;
}
.more {
    font-weight: 700;
    color: #724176;
}
.guide {
    background: #eae0ee;
    padding: 24px;
    margin: 38px 0;
    border-radius: 18px;
}
.guide > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.detail {
    max-width: 850px;
    padding-bottom: 36px;
}
.detail figure {
    max-width: 480px;
    background: #f1e5d3;
}
.detail figure img {
    width: 100%;
}
.detail h2 {
    margin-top: 32px;
    border-bottom: 1px solid #e3d7c8;
    padding-bottom: 8px;
}
footer {
    background: var(--ink);
    color: #f4e9f5;
    text-align: center;
    padding: 32px 24px;
    font-size: 14px;
}
@media (max-width: 800px) {
    .hero, .stories {
    grid-template-columns: 1fr;
}
    .guide > div {
    grid-template-columns: 1fr;
    gap: 8px;
}
    .brand span {
    display: none;
}
    .hero {
    border-radius: 20px;
}
}
@media (max-width: 460px) {
    .brand, nav, main {
    padding-inline: 14px;
}
    .story {
    grid-template-columns: 1fr;
}
    .story img {
    height: 200px;
}
    .sectionhead {
    flex-wrap: wrap;
}
}

/* Responsive layout and keyboard navigation */
nav a[aria-current="page"] {
    color: #724176;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.story > div, .hero > *, .guide article {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .hero figure { min-height: 0; }
    .hero img { height: auto; aspect-ratio: 405 / 255; }
    .story { grid-template-columns: 1fr; }
    .story img { height: auto; aspect-ratio: 16 / 10; }
    .manifesto { padding: 16px; }
    .sectionhead { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
