:root {
  color-scheme: dark;
  --background: #0b1414;
  --panel: #101d1d;
  --panel-hover: #142323;
  --line: #263636;
  --text: #f0f3ee;
  --muted: #a9b8b3;
  --amber: #ffbe65;
  --amber-hover: #ffd096;
  --shell: 77rem;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 100%;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
[hidden] { display: none !important; }

.shell {
  width: min(var(--shell), calc(100% - 5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  inset: .5rem auto auto .5rem;
  background: var(--amber);
  color: #17201c;
  padding: .75rem 1rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  min-height: 4.85rem;
  align-items: center;
}
.wordmark { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-size: 1.24rem; letter-spacing: .08em; line-height: 1.25; }
.wordmark small { margin-top: .23rem; font-size: .75rem; color: var(--muted); }
.brand-mark {
  display: block;
  isolation: isolate;
  position: relative;
  width: 2.47rem;
  height: 2.47rem;
  border-radius: 50%;
  background: #283327;
  border: 1px solid #485446;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  height: .34rem;
  border-radius: 50%;
  border-top: 2px solid var(--amber);
  transform: rotate(-23deg);
}
.brand-mark::before { top: .78rem; }
.brand-mark::after { top: 1.16rem; left: .68rem; right: .47rem; }
.primary-nav { display: flex; gap: clamp(1.2rem, 4vw, 2.9rem); align-self: stretch; }
.primary-nav a {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--text); }
.primary-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--amber);
}
.header-link {
  justify-self: end;
  padding: .55rem .86rem;
  border-radius: .45rem;
  border: 1px solid var(--line);
  font-size: .875rem;
  white-space: nowrap;
}
.header-link:hover { border-color: #73847b; background: var(--panel-hover); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(25rem, 40vw, 31rem);
  overflow: hidden;
  border-radius: .85rem;
  border: 1px solid #30413c;
  margin-top: 1.8rem;
  background: #111f1d;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 52%;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #070e0ef2 2%, #070f0edc 26%, #0a15146b 57%, transparent 89%),
              linear-gradient(0deg, #06100f91 1%, transparent 60%);
}
.hero-copy { padding: clamp(1.5rem, 5.15vw, 4.6rem); }
.hero-meta, .story-meta {
  display: flex;
  align-items: center;
  gap: .78rem;
  color: var(--muted);
  font-size: .875rem;
}
.category {
  display: inline-flex;
  align-items: center;
  border: 1px solid #5b5036;
  border-radius: .28rem;
  padding: .16rem .45rem;
  background: #2e291b;
  color: #ffcc8a;
  line-height: 1.5;
  font-weight: 600;
  font-size: .875rem;
}
.hero h1 {
  margin: .85rem 0 .85rem;
  font-size: clamp(2.15rem, 4.1vw, 3.65rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--amber); }
.hero p {
  max-width: 29rem;
  color: #d0dcd4;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .55rem 1.03rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-weight: 650;
}
.button-primary { color: #17160d; background: var(--amber); }
.button-primary:hover { background: var(--amber-hover); }
.button-secondary { border-color: #72827a; background: #0c1716a8; }
.button-secondary:hover { border-color: #aab9b0; background: #182b26; }

.news, .sources, .story { scroll-margin-top: 1rem; }
.news { margin: 2.55rem 0 3.3rem; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem 1.6rem;
  margin-bottom: 1.15rem;
}
h2 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: -.02em; }
.section-heading p { margin: .42rem 0 0; color: var(--muted); line-height: 1.65; }
.filters { display: flex; flex-wrap: wrap; gap: .44rem; }
.filters button {
  padding: .48rem .85rem;
  min-height: 2.6rem;
  font-size: .875rem;
  border: 1px solid var(--line);
  border-radius: .42rem;
  color: var(--muted);
  background: transparent;
}
.filters button:hover { color: var(--text); border-color: #71827a; }
.filters button[aria-pressed="true"] { color: #ffcf92; background: #30271b; border-color: #655237; }

.news-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}
.story { border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); overflow: hidden; }
.story:hover { border-color: #506459; }
.story summary { list-style: none; }
.story summary::-webkit-details-marker { display: none; }
.story summary:focus-visible { outline-offset: -4px; }
.story summary img { width: 100%; height: auto; aspect-ratio: 1.92; object-fit: cover; }
.story-intro { display: block; padding: 1.15rem 1.2rem 1.05rem; }
.story-title { display: block; margin-top: .65rem; font-size: 1.25rem; line-height: 1.42; font-weight: 700; }
.story-deck { display: block; min-height: 3.65rem; margin-top: .45rem; color: var(--muted); line-height: 1.7; }
.story-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .72rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: #f6ce98;
}
.story-action::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.story[open] .story-action::after { content: "−"; }
.story-body {
  border-top: 1px solid var(--line);
  padding: 1rem 1.2rem 1.3rem;
  color: #d1ded6;
  line-height: 1.74;
}
.story-body p { margin: 0 0 .85rem; }
.story-body ol { margin: .25rem 0 1rem; padding-left: 1.3rem; }
.story-body li + li { margin-top: .4rem; }
.source-link { color: var(--amber); text-decoration: underline; text-underline-offset: .22rem; }

.sources { border-top: 1px solid var(--line); padding: 1.8rem 0 2.85rem; }
.sources ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.sources a {
  min-height: 4.45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
  padding: .7rem .95rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #101b1b;
}
.sources a:hover { border-color: #73847b; background: var(--panel-hover); }
.sources a span { font-size: .875rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #0a1111; }
.footer-inner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  padding: 1.35rem 0 1.65rem;
}
.footer-inner p { flex: 1 1 20rem; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.footer-inner a { font-size: .875rem; color: var(--amber); }
.footer-registration {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.25rem;
  border-top: 1px solid var(--line);
  padding-block: .95rem 1.25rem;
  color: var(--muted);
  font-size: .875rem;
}
.footer-registration a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.footer-registration a:hover { color: var(--amber); }

@media (max-width: 60rem) {
  .shell { width: calc(100% - 3rem); }
  .story-intro { padding-inline: .95rem; }
  .story-deck { min-height: 5.15rem; }
}

@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 .65rem;
    padding-top: .7rem;
  }
  .header-link { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; justify-content: space-between; gap: 1rem; margin-top: .45rem; }
  .primary-nav a { padding-inline: .27rem; }
  .hero { margin-top: 1rem; min-height: 28rem; }
  .hero-copy { padding: 1.35rem; }
  .hero-image { object-position: 67% 44%; }
  .hero::after { background: linear-gradient(0deg, #070f0fee 2%, #081211de 42%, #0b191757 76%, transparent 100%); }
  .hero h1 { font-size: clamp(1.95rem, 7.1vw, 2.65rem); }
  .hero p { font-size: 1rem; }
  .news { margin-top: 2.05rem; margin-bottom: 2.2rem; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .sources { padding-bottom: 1.9rem; }
}

@media (max-width: 34rem) {
  .news-grid, .sources ul { grid-template-columns: minmax(0, 1fr); }
  .story-deck { min-height: auto; }
  .hero h1 { text-wrap: initial; }
  .hero-actions { gap: .52rem; }
  .button { padding-inline: .62rem; font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
