:root {
  color-scheme: light;
  --background: #FBFBF9; --text: #111111; --muted: #6B6B6B; --border: #E7E5E0;
  --accent: #FF5A1F; --accent-text: #C2410C;
  font-family: -apple-system, "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  --accent-text: #FF5A1F;
    --background: #0A0A0A; --text: #EDEDED; --muted: #9A9A9A; --border: #232323;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent-text: #FF5A1F;
  --background: #0A0A0A; --text: #EDEDED; --muted: #9A9A9A; --border: #232323;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
html:lang(zh-CN) body { line-height: 1.75; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
a:hover { color: var(--accent-text); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 88px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: -10000px; z-index: 3; }
.skip-link:focus { left: 16px; top: 8px; padding: 8px; background: var(--background); }
.site-header { height: 64px; border-bottom: 1px solid var(--border); background: var(--background); position: sticky; top: 0; z-index: 2; }
.header-inner { max-width: 1008px; height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { font-size: 17px; font-weight: 600; white-space: nowrap; margin-right: auto; }
.main-nav, .languages { display: flex; align-items: center; font-size: 13px; }
.main-nav { gap: 20px; }
.main-nav a { display: flex; align-items: center; min-height: 44px; }
.languages { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.languages a { padding: 6px 10px; }
.languages a + a { border-left: 1px solid var(--border); }
.languages [aria-current] { font-weight: 600; text-decoration: underline; }
.theme-toggle { width: 32px; height: 36px; background: none; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; }
.theme-toggle:hover { color: var(--accent-text); }
main { padding: 64px 24px 0; }
.issue-layout, .simple-page { max-width: 680px; margin: auto; }
.issue-content { min-width: 0; }
h1 { font-size: 44px; line-height: 48px; letter-spacing: -.04em; font-weight: 600; margin: 0 0 48px; }
h2 { font-size: 13px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0 0 24px; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 600; margin: 0; }
p { margin: 0 0 16px; }
.issue-rail { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.issue-label { color: var(--text); font-weight: 600; }
.issue-rail .period::before, .history-row .period::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.issue-rail p { margin-bottom: 8px; }
.section-index { display: none; }
.digest { border-block: 1px solid var(--border); padding: 24px 0; }
.digest ol { list-style: none; counter-reset: highlights; padding: 0; margin: 0; }
.digest li { counter-increment: highlights; display: grid; grid-template-columns: 32px 1fr 28px; gap: 12px; align-items: baseline; margin-top: 20px; }
.digest li::before { content: counter(highlights); color: var(--accent); font-size: 28px; line-height: 1; font-weight: 600; }
.digest a { text-align: center; }
.news-section { margin-top: 96px; }
.section-marker { color: var(--accent); margin-right: 8px; }
.story { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.emoji-tile { display: flex; justify-content: center; align-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
.item-meta { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.takeaway { margin-bottom: 12px; }
.detail-line { font-size: 15px; color: var(--muted); margin: 4px 0; }
.detail-line strong { color: var(--text); font-weight: 500; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; padding: 1px 4px; border: 1px solid var(--border); border-radius: 8px; }
.fallback { font-size: 13px; color: var(--muted); }
.issue-navigation { display: flex; justify-content: space-between; gap: 24px; margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.news-section + .issue-navigation { margin: 48px 0 0; }
.back-top { display: inline-block; margin-top: 48px; font-size: 13px; }
.site-footer { max-width: 680px; margin: 96px auto 0; border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
.site-footer p { margin-bottom: 8px; }
.past-issues { margin-top: 48px; }
.past-issues h2, .archive-month h2 { color: var(--text); }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-row { padding: 20px 0; border-bottom: 1px solid var(--border); }
.history-row > a { display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.history-row .period, .history-row small { font-size: 13px; color: var(--muted); }
.week { display: block; color: var(--text); font-weight: 600; }
.history-highlight { display: block; margin-top: 4px; }
.all-issues { display: inline-block; margin-top: 24px; }
.archive-month { margin-top: 64px; }
@media (min-width: 1100px) {
  .issue-layout { max-width: 944px; display: grid; grid-template-columns: 200px 680px; gap: 64px; }
  .rail-inner { position: sticky; top: 104px; }
  .section-index { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  body:has(.issue-layout) .site-footer { position: relative; left: 132px; }
}
@media (max-width: 1099px) { .news-section { margin-top: 64px; } }
@media (max-width: 727px) { .site-footer { margin: 64px 24px 0; } }
@media (max-width: 600px) {
  .header-inner { gap: 6px; padding: 0 8px; }
  .brand { font-size: 17px; }
  .desktop-nav { display: none !important; }
  .main-nav { gap: 0; }
  .languages a { padding: 6px; }
  main { padding-top: 40px; }
  h1 { font-size: 32px; line-height: 1.15; margin-bottom: 32px; }
  .story { gap: 12px; }
  .history-row > a { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.issue-kicker { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; margin-bottom: 4px; }

.story-image, .issue-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; margin: 12px 0; }
@media (min-width: 900px) {
  .story-body:has(.story-image) { display: grid; grid-template-columns: minmax(0, 1fr) 160px; column-gap: 20px; }
  .story-body:has(.story-image) > :not(.story-image) { grid-column: 1; }
  .story-image { grid-column: 2; grid-row: 1 / span 5; width: 160px; height: 90px; margin: 0; }
}
