/* Content-first editorial design for Rural China Walks. */
:root {
    color-scheme: light;
    --ink: #202a24;
    --muted: #68736b;
    --paper: #f7f6f1;
    --surface: #fff;
    --line: #e5e5dc;
    --accent: #a84f35;
    --accent-dark: #823a27;
    --shadow-card: 0 1px 2px rgba(25, 37, 29, .04), 0 10px 30px rgba(25, 37, 29, .07);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #c46a4d; outline-offset: 4px; border-radius: 3px; }
.site-header { width: min(1240px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; padding: 17px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); font-size: 14px; }
.site-brand { color: var(--ink); font-size: 17px; font-weight: 720; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.site-header nav { min-width: 0; }
.site-navigation, .site-submenu { list-style: none; margin: 0; padding: 0; }
.site-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 25px; }
.site-nav-item, .site-language { position: relative; }
.site-navigation a { color: #465149; text-decoration: none; }
.site-navigation a:hover, .site-navigation a:focus-visible { color: var(--accent-dark); }
.site-submenu { display: none; position: absolute; z-index: 10; top: calc(100% + 8px); left: -14px; min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); }
.site-submenu .site-nav-item { padding: 8px 12px; }
.has-children:hover > .site-submenu, .has-children:focus-within > .site-submenu { display: block; }
.site-language { padding-left: 18px; border-left: 1px solid var(--line); font-weight: 650; }
main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.home-main { padding: 40px 0 88px; }
.home-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); align-items: center; gap: 36px; padding: clamp(32px, 6vw, 76px); border: 1px solid #e4e6dc; border-radius: 28px; background: linear-gradient(120deg, #eef1e8 0%, #f2eee4 68%, #eee1d7 100%); }
.home-hero::after { content: ""; position: absolute; width: 290px; height: 290px; right: -90px; top: -130px; border: 1px solid rgba(100,119,97,.18); border-radius: 50%; box-shadow: 0 0 0 28px rgba(100,119,97,.035), 0 0 0 60px rgba(100,119,97,.025); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-dark); font-size: 12px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.home-hero h1, .page-heading { margin: 0; font-family: Georgia, "Noto Serif", serif; font-size: clamp(2.3rem, 5.8vw, 5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
.hero-description { max-width: 620px; margin: 22px 0 26px; color: #536056; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: 999px; color: white; background: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.button-link:hover { color: white; background: var(--accent-dark); transform: translateY(-1px); }
.hero-note { position: relative; z-index: 1; max-width: 225px; justify-self: end; padding: 21px; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; color: #48554b; background: rgba(255,255,255,.7); font-size: 14px; }
.hero-note strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 16px; }
.featured-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin: 62px 0 80px; }
.featured-story__media { overflow: hidden; min-height: 300px; aspect-ratio: 1.55; border-radius: 24px; background: #e4e8df; box-shadow: var(--shadow-card); }
.featured-story__image { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.featured-story__copy { padding: 8px 0; }
.featured-story h2 { margin: 8px 0 12px; font: 500 clamp(1.8rem, 3.4vw, 3.1rem)/1.16 Georgia, "Noto Serif", serif; letter-spacing: -.035em; }
.featured-story h2 a, .story-card h3 a { text-decoration: none; }
.featured-story h2 a:hover, .story-card h3 a:hover { color: var(--accent-dark); }
.story-date { color: var(--muted); font-size: 13px; }
.featured-story__excerpt { margin: 17px 0 22px; color: #525e55; }
.text-link { color: var(--accent-dark); font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 23px; }
.section-heading h2 { margin: 0; font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.2 Georgia, "Noto Serif", serif; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.story-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 2px 10px rgba(25,37,29,.025); transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.story-card__media { display: block; overflow: hidden; aspect-ratio: 1.57; background: #e8ebe5; }
.story-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-card__image { transform: scale(1.025); }
.story-card__body { padding: 19px 20px 22px; }
.story-card h3 { margin: 7px 0 9px; font: 600 1.25rem/1.35 system-ui, sans-serif; letter-spacing: -.02em; }
.story-card p { margin: 0; color: #59645c; font-size: 14px; line-height: 1.7; }
.story-card time { color: var(--muted); font-size: 12px; }
.image-placeholder { display: grid; width: 100%; height: 100%; min-height: 180px; place-items: center; color: #78847a; background: linear-gradient(135deg, #e9eee6, #e6ded2); font: 500 14px Georgia, serif; }
.youtube-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 74px; padding: 28px 32px; border-radius: 20px; color: white; background: #26352d; }
.youtube-callout h2 { margin: 0 0 4px; font: 500 1.45rem/1.3 Georgia, "Noto Serif", serif; }
.youtube-callout p { margin: 0; color: #d4ded5; font-size: 14px; }
.youtube-callout .button-link { flex: 0 0 auto; border-color: #f0c0a9; color: #26352d; background: #f0c0a9; }
.youtube-callout .button-link:hover { background: #f6d2c1; }
.site-footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.archive-main { padding: 50px 0 86px; }
.archive-intro { margin-bottom: 32px; }
.archive-intro .page-heading { font-size: clamp(2.2rem, 5vw, 4rem); }
.archive-intro p { max-width: 660px; color: var(--muted); }
.article-main { width: min(1000px, calc(100% - 48px)); padding: 48px 0 80px; }
.article-heading { max-width: 850px; margin: 0 auto 30px; }
.article-heading h1 { margin: 8px 0 12px; font: 500 clamp(2.1rem, 5vw, 4.2rem)/1.13 Georgia, "Noto Serif", serif; letter-spacing: -.04em; }
.article-content { max-width: 760px; margin: 0 auto; color: #303a33; font: 18px/1.9 Georgia, "Noto Serif", serif; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 2.2em 0 .6em; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 650; line-height: 1.35; }
.article-content h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.article-content h3 { font-size: 1.35rem; }
.article-content p { margin: 0 0 1.4em; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 26px auto; border-radius: 14px; }
.article-content figure { margin: 30px 0; }
.article-content figcaption { color: var(--muted); font: 13px/1.6 system-ui, sans-serif; text-align: center; }
.article-content iframe, .article-content video { max-width: 100%; }
.article-content blockquote { margin: 1.7em 0; padding: 2px 0 2px 20px; border-left: 3px solid #c8a28e; color: #59645c; }
.article-content a { color: #804431; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font: 15px/1.6 system-ui, sans-serif; }
.article-content th, .article-content td { padding: 9px 12px; border: 1px solid var(--line); }
.article-youtube { max-width: 760px; margin: 52px auto 0; }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-hero { grid-template-columns: 1fr; } .hero-note { justify-self: start; max-width: 520px; } }
@media (max-width: 680px) {
    .site-header, main, .site-footer, .article-main { width: min(100% - 32px, 1240px); }
    .site-header { align-items: flex-start; flex-direction: column; gap: 13px; padding: 15px 0; }
    .site-navigation { gap: 8px 17px; }
    .site-submenu { position: static; margin-top: 6px; box-shadow: none; }
    .home-main { padding-top: 24px; }
    .home-hero { gap: 22px; padding: 27px 23px; border-radius: 20px; }
    .home-hero h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
    .hero-description { margin: 16px 0 20px; }
    .featured-story { grid-template-columns: 1fr; gap: 18px; margin: 44px 0 58px; }
    .featured-story__media, .featured-story__image { min-height: 0; }
    .featured-story__media { aspect-ratio: 1.35; }
    .story-grid { grid-template-columns: 1fr; gap: 18px; }
    .story-card { display: grid; grid-template-columns: 38% 1fr; align-items: stretch; }
    .story-card__media { min-height: 100%; aspect-ratio: auto; }
    .story-card__body { padding: 14px 15px; }
    .story-card h3 { font-size: 1.05rem; }
    .story-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .youtube-callout { align-items: flex-start; flex-direction: column; margin-top: 52px; padding: 24px; }
    .archive-main { padding: 34px 0 62px; }
    .article-main { padding-top: 32px; }
    .article-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
