:root {
  --paper: #f8f5ee;
  --surface: #fffdf9;
  --ink: #191b20;
  --muted: #6c6a68;
  --plum: #332238;
  --plum-deep: #24182a;
  --blue: #2c64d6;
  --blue-soft: #dce9ff;
  --coral: #e8563f;
  --line: #d8d2c7;
  --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration-offset: 0.2em; }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--plum); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--paper); }
.masthead-brand {
  width: min(calc(100% - 36px), var(--max));
  min-height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.masthead-brand > span:nth-child(2) { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 700; letter-spacing: -.06em; }
.masthead-brand b { color: var(--blue); }
.masthead-brand small { align-self: flex-end; margin-bottom: 1.5rem; padding-left: .7rem; border-left: 1px solid var(--line); color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.brand-orbit { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #b7d6ff 0 12%, #4d89ee 45%, #2452b4 100%); flex: 0 0 auto; position: relative; }
.brand-orbit::after { content: ""; position: absolute; width: 17px; height: 6px; right: -4px; bottom: 4px; background: var(--coral); }
.menu-toggle { display: none; }

.main-nav {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 0 22px;
  min-height: 58px;
  display: flex;
  gap: clamp(1rem, 3.2vw, 3.5rem);
  align-items: center;
  justify-content: center;
  background: var(--plum);
  color: white;
}
.main-nav a { color: white; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.5rem; height: 3px; background: var(--coral); transition: right 160ms ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }

.page-width { width: min(calc(100% - 44px), var(--max)); margin: 0 auto; }
.dateline { display: flex; justify-content: space-between; margin: 18px 0 0; color: var(--muted); font-family: "Courier New", monospace; font-size: .63rem; letter-spacing: .06em; }
.top-news { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(280px, .75fr); gap: clamp(2rem, 4.5vw, 5rem); padding: 34px 0 70px; }
.section-ribbon { display: flex; justify-content: space-between; align-items: end; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.section-ribbon h1, .category-head h1, .about-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5.3rem); font-weight: 500; line-height: 1; letter-spacing: -.065em; }
.section-ribbon h1 { color: var(--coral); }
.section-ribbon span { color: var(--muted); font-family: "Courier New", monospace; font-size: .68rem; }
.lead-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.lead-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.lead-photo img, .story-image img, .article-photo img, .rail-story img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); transition: transform 500ms ease; }
.lead-story:hover .lead-photo img, .story-card:hover .story-image img, .rail-story:hover img { transform: scale(1.025); }
.lead-copy { display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 .55rem; color: var(--blue); font-family: "Courier New", monospace; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead-copy h2 { margin: 0 0 .9rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.lead-copy h2 a, .story-card h3 a, .text-story h3 a, .rail-story h3 a { text-decoration: none; }
.lead-copy > p:not(.eyebrow) { margin: 0 0 1.2rem; color: #4f504f; font-size: .86rem; }
.story-meta { display: flex; gap: 1rem; color: var(--muted); font-family: "Courier New", monospace; font-size: .65rem; }
.latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-story { padding: 18px 0 18px 18px; border-bottom: 1px solid var(--line); }
.text-story:nth-child(odd) { padding-left: 0; padding-right: 18px; border-right: 1px solid var(--line); }
.text-story > span { color: var(--coral); font-family: "Courier New", monospace; font-size: .62rem; }
.text-story h3 { margin: .45rem 0 .6rem; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.55rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.text-story > p:not(.story-meta) { margin: 0 0 .75rem; color: var(--muted); font-size: .76rem; line-height: 1.6; }

.featured-rail { border-left: 1px solid var(--line); padding-left: clamp(1.3rem, 2.5vw, 2.5rem); }
.rail-heading { padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.rail-heading span { color: var(--coral); font-family: var(--serif); font-size: 2rem; }
.rail-heading b { display: block; margin-top: -.35rem; font-size: .78rem; }
.rail-story { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rail-story > a { display: block; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.rail-story > p { margin: .75rem 0 .4rem; color: var(--blue); font-family: "Courier New", monospace; font-size: .6rem; }
.rail-story h3 { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.rail-policy { margin-top: 24px; padding: 18px; background: var(--blue-soft); }
.rail-policy span { color: #344d74; font-family: "Courier New", monospace; font-size: .62rem; font-weight: 700; }
.rail-policy p { margin: .55rem 0 1rem; font-family: var(--serif); font-size: 1rem; line-height: 1.55; }
.rail-policy a, .more-link { color: var(--blue); font-size: .72rem; font-weight: 700; text-decoration: none; }

.category-block { padding: 48px 0; border-top: 1px solid var(--ink); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 22px; }
.section-header > div > p { margin: 0 0 .4rem; color: var(--coral); font-family: var(--serif); font-size: 1.85rem; }
.section-header h2 { max-width: 790px; margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.6; }
.section-header > a { color: var(--blue); font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.story-card { min-width: 0; }
.story-image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.story-kicker { display: flex; justify-content: space-between; margin: .7rem 0 .35rem; color: var(--muted); font-family: "Courier New", monospace; font-size: .6rem; }
.story-kicker a { color: var(--coral); text-decoration: none; }
.story-card h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.38rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.story-card > p:not(.story-kicker):not(.story-meta) { margin: 0 0 .75rem; color: var(--muted); font-size: .75rem; line-height: 1.65; }

.category-head { padding: 70px 0 48px; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.category-head .eyebrow { grid-column: 1 / -1; margin: 0 0 -1rem; }
.category-head h1 { color: var(--coral); }
.category-head > p:last-child { margin: 0; color: #4d504e; font-size: .92rem; }
.category-content { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 3rem; padding: 30px 0 90px; }
.category-aside { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.category-aside > a { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; text-decoration: none; }
.category-aside > a b { color: var(--muted); font-family: "Courier New", monospace; font-weight: 400; }

.article-wrap { width: min(calc(100% - 44px), 1160px); margin: 0 auto; padding: 58px 0 82px; }
.article-head { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 4rem; align-items: end; padding-bottom: 30px; }
.crumbs { display: flex; gap: .5rem; margin-bottom: 1rem; color: var(--muted); font-size: .68rem; }
.crumbs a { text-decoration: none; }
.article-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; line-height: 1.08; letter-spacing: -.06em; }
.article-head-side > p { margin: 0 0 1.5rem; color: #4e504f; font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
.byline { display: flex; align-items: center; gap: .7rem; font-size: .76rem; font-weight: 700; }
.byline small { display: block; color: var(--muted); font-size: .65rem; font-weight: 400; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-family: "Courier New", monospace; font-size: .65rem; }
.article-photo { margin: 0; }
.article-photo img { aspect-ratio: 16/8.5; object-fit: cover; filter: saturate(.8); }
.article-photo figcaption { margin-top: .45rem; color: var(--muted); font-size: .68rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 5vw, 5rem); padding-top: 36px; }
.prose { min-width: 0; }
.margin-note { margin-bottom: 2.5rem; padding: 1rem 1.2rem; border-left: 5px solid var(--coral); background: var(--surface); }
.margin-note span { color: var(--coral); font-family: "Courier New", monospace; font-size: .62rem; font-weight: 700; }
.margin-note p { margin: .35rem 0 0; font-family: var(--serif); font-size: 1rem; }
.prose section { scroll-margin-top: 100px; }
.prose section + section { margin-top: 3rem; }
.prose h2, .sources h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.75rem, 2.7vw, 2.4rem); font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.prose p { margin: 0 0 1.15rem; color: #303436; font-size: 1rem; line-height: 1.95; }
.decision-ledger { margin: 2rem 0; padding: 1.2rem 1.4rem; background: var(--blue-soft); }
.decision-ledger > span { color: #294d81; font-family: "Courier New", monospace; font-size: .63rem; font-weight: 700; }
.decision-ledger ol { margin: .75rem 0 0; padding-left: 1.2rem; }
.decision-ledger li { margin: .55rem 0; font-size: .82rem; line-height: 1.65; }
.sources { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.sources ul { padding-left: 1.1rem; }
.sources a { color: var(--blue); font-size: .78rem; }
.sources p { color: var(--muted); font-size: .7rem; }
.aside-sticky { position: sticky; top: 96px; }
.aside-sticky ol { margin: 0 0 2rem; padding: 0 0 0 1rem; border-left: 1px solid var(--line); }
.aside-sticky li { margin: .55rem 0; }
.aside-sticky li a { color: var(--muted); font-size: .7rem; line-height: 1.5; text-decoration: none; }
.aside-rule { padding: 1rem; background: var(--surface); border-top: 4px solid var(--coral); }
.aside-rule span { color: var(--coral); font-family: "Courier New", monospace; font-size: .62rem; }
.aside-rule p { margin: .5rem 0 0; font-family: var(--serif); font-size: .9rem; line-height: 1.6; }
.related-wrap { width: min(calc(100% - 44px), var(--max)); margin: 0 auto; padding: 50px 0 100px; border-top: 1px solid var(--ink); }
.related-wrap .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.about-page { width: min(calc(100% - 44px), 1120px); margin: 0 auto; padding: 84px 0 110px; }
.about-hero { text-align: center; padding-bottom: 52px; }
.about-hero h1 { font-size: clamp(3.1rem, 6.7vw, 6.2rem); }
.about-hero h1 em { color: var(--coral); font-style: italic; }
.mobile-break { display: none; }
.about-deck { max-width: 780px; margin: 2rem auto 0; }
.about-deck p { margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.8; }
.about-deck span { color: var(--muted); font-size: .68rem; }
.about-body { display: grid; gap: 18px; }
.about-body > article { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; padding: 30px; background: var(--surface); border: 1px solid var(--line); }
.about-body > article > span { color: var(--coral); font-family: var(--serif); font-size: 1.4rem; }
.about-body h2 { margin: .4rem 0 1rem; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.35; }
.about-body p:not(.eyebrow) { color: #4e504f; }
.about-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.5rem; }
.about-principles > div { padding: 1rem; background: var(--blue-soft); }
.about-principles b { color: var(--blue); font-family: "Courier New", monospace; font-size: .65rem; }
.about-principles h3 { margin: .4rem 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.about-principles p { margin: 0; font-size: .75rem; }

.site-footer { padding: 52px max(24px, calc((100% - var(--max)) / 2 + 18px)) 20px; display: grid; grid-template-columns: 1.2fr .55fr .65fr .65fr; gap: 2.5rem; background: var(--plum-deep); color: rgba(255,255,255,.77); }
.footer-lead h2 { margin: .9rem 0 .4rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.footer-lead p { max-width: 310px; margin: 0; color: rgba(255,255,255,.55); font-size: .74rem; }
.footer-column { display: flex; flex-direction: column; gap: .5rem; }
.footer-column > p { margin: 0 0 .5rem; color: #9fbdf2; font-family: "Courier New", monospace; font-size: .64rem; }
.footer-column a, .footer-column span { color: rgba(255,255,255,.72); font-size: .73rem; text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.42); font-family: "Courier New", monospace; font-size: .6rem; }

@media (max-width: 1050px) {
  .top-news { grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 2rem; }
}

@media (max-width: 780px) {
  .masthead-brand { min-height: 92px; width: calc(100% - 28px); }
  .masthead-brand small { margin-bottom: .9rem; }
  .brand-orbit { width: 38px; height: 38px; }
  .menu-toggle { display: flex; position: absolute; right: 18px; top: 30px; align-items: center; gap: .55rem; border: 0; background: none; font-size: .75rem; font-weight: 700; }
  .menu-toggle i, .menu-toggle i::before { display: block; width: 18px; height: 2px; background: currentColor; content: ""; }
  .menu-toggle i::before { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg) translateY(4px); }
  .menu-toggle[aria-expanded="true"] i::before { transform: rotate(90deg); }
  .main-nav { width: calc(100% - 20px); min-height: 52px; padding: 0 14px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: .72rem; }
  .menu-toggle[aria-expanded="false"] + .main-nav { display: none; }
  .main-nav[data-open="true"] { display: flex; flex-wrap: wrap; justify-content: center; padding-block: .7rem; }
  .page-width { width: calc(100% - 28px); }
  .top-news { grid-template-columns: 1fr; padding-top: 24px; }
  .lead-story { grid-template-columns: 1fr; }
  .latest-list { grid-template-columns: 1fr; }
  .text-story, .text-story:nth-child(odd) { padding: 16px 0; border-right: 0; }
  .featured-rail { border-left: 0; border-top: 1px solid var(--ink); padding: 26px 0 0; }
  .rail-story { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; }
  .rail-story > a { grid-row: 1 / 4; aspect-ratio: 1; }
  .rail-story > p { margin-top: 0; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-head { grid-template-columns: 1fr; padding-top: 48px; gap: 1.2rem; }
  .category-head .eyebrow { margin-bottom: 0; }
  .category-content { grid-template-columns: 1fr; }
  .category-aside { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0; }
  .article-wrap { width: calc(100% - 28px); padding-top: 36px; }
  .article-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-head h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { grid-row: 1; }
  .aside-sticky { position: static; padding: 1rem; background: var(--surface); }
  .article-photo img { aspect-ratio: 4/3; }
  .related-wrap { width: calc(100% - 28px); }
  .related-wrap .story-grid { grid-template-columns: 1fr; }
  .about-page { width: calc(100% - 28px); padding-top: 60px; }
  .mobile-break { display: inline; }
  .about-body > article { grid-template-columns: 1fr; }
  .about-principles { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 40px 20px 20px; }
  .footer-lead { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .story-grid { grid-template-columns: 1fr; }
  .section-header { align-items: start; flex-direction: column; gap: .7rem; }
  .story-card { display: grid; grid-template-columns: 130px 1fr; gap: .8rem; }
  .story-image { grid-row: 1 / 5; aspect-ratio: 1; }
  .story-kicker { margin-top: 0; }
  .story-card > p:not(.story-kicker):not(.story-meta) { display: none; }
  .category-block { padding: 34px 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-lead { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
