/* 01 · Global */
*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #203b32;
    --green: #124b3c;
    --paper: #f8f6ef;
    --line: #e0e1d7;
    --red: #a43e35;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif;
    overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #c34c40; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); background: white; padding: 8px 16px; z-index: 10; }
.skip-link:focus { transform: none; }

/* 02 · Header and navigation */
header { background: #fffdf8; border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.brand img { flex: 0 0 48px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
nav a { padding: 6px 0; }
nav a[aria-current="page"] { color: var(--red); font-weight: 700; border-bottom: 2px solid currentColor; }

/* 03 · Homepage hero */
.hero { margin: 32px 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--green); color: white; border-radius: 24px; overflow: hidden; align-items: center; }
.hero-copy { min-width: 0; padding: clamp(24px, 5vw, 56px); }
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; margin: 16px 0; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.4; margin: 0 0 20px; }
h3 { font-size: 19px; line-height: 1.5; margin: 8px 0; }
p { margin: 0 0 16px; }
.kicker { color: #b9e4a6; font-weight: 700; letter-spacing: .1em; }
.button { display: inline-block; background: #ffe0b2; color: #173e32; padding: 10px 20px; border-radius: 8px; font-weight: 700; }
section { margin: 40px 0; }

/* 04 · Editorial cards */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tile { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; }
.tile:first-child { grid-row: span 2; display: flex; flex-direction: column; align-items: stretch; }
.tile:last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); }
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.copy { padding: 20px; min-width: 0; }
.copy p { margin-bottom: 0; }
.tag { color: var(--red); font-size: 14px; font-weight: 700; }
.panel { background: white; border-left: 5px solid #d15c50; padding: clamp(20px, 4vw, 32px); border-radius: 0 12px 12px 0; }
.panel a, .article section a { color: #12634d; text-decoration: underline; }

/* 05 · Article and footer */
.article { max-width: 780px; margin: 36px auto; }
.article img { width: 100%; height: auto; border-radius: 16px; }
footer { background: #153d32; color: #e6efe7; padding: 30px 0; margin-top: 40px; }
footer p { margin: 8px 0; }
footer a { text-decoration: underline; }

/* 06 · Responsive layouts */
@media (max-width: 760px) {
    .hero, .shelf { grid-template-columns: minmax(0, 1fr); }
    .tile:first-child { grid-row: auto; }
    .tile:last-child { grid-column: auto; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
    nav { gap: 8px 14px; }
    section { margin: 28px 0; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 24px); }
    .tile, .tile:last-child { grid-template-columns: minmax(0, 1fr); }
    .hero { margin: 20px 0; }
    .copy { padding: 16px; }
    .brand { font-size: 20px; }
}
