:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text: #37352f;
  --text-2: #787774;
  --text-3: #9b9a97;
  --line: #e9e9e7;
  --line-strong: #d3d1cb;
  --accent: #2383e2;
  --accent-soft: #e7f0fb;
  --up: #2f8f5b;
  --down: #d44c47;
  --tag: #f1f1ef;
  --radius: 6px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-3); font-size: 13px; }
.empty { color: var(--text-3); padding: 12px 0 24px; }

/* top bar */
.topbar { position: sticky; top: 0; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand-mark { background: var(--text); color: #fff; border-radius: 4px; padding: 0 5px; font-size: 13px; line-height: 20px; }
.brand-tag { font-weight: 400; color: var(--text-3); font-size: 13px; margin-left: 8px; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.btn { display: inline-block; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 6px 12px; font-size: 14px; background: #fff; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 13px; }

/* masthead */
.masthead { padding: 40px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.masthead h1 { font-size: 30px; line-height: 1.25; }
.masthead .kicker { color: var(--text-2); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.masthead .kicker .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 6px; }
.masthead .sub { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.daynav { display: flex; gap: 8px; margin-top: 16px; font-size: 14px; }
.daynav a, .daynav span { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 10px; color: var(--text-2); }
.daynav span.disabled { opacity: 0.4; }
.daynav a:hover { border-color: var(--line-strong); color: var(--text); }

/* editorial */
.editorial { background: var(--bg-soft); border-radius: 8px; padding: 20px 22px; margin: 24px 0 8px; }
.editorial h2 { font-size: 15px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.editorial p { font-size: 17px; line-height: 1.7; }

/* toc */
.toc { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0 8px; font-size: 14px; }
.toc a { padding: 4px 10px; border-radius: var(--radius); color: var(--text-2); }
.toc a:hover { background: var(--bg-soft); color: var(--text); }
.section-icon { margin-right: 6px; }
@media (min-width: 1120px) {
  .toc { position: fixed; left: calc(50% - 380px - 190px); top: 96px; width: 170px; flex-direction: column; margin: 0; }
}

/* sections */
.section-head { padding-top: 36px; margin-bottom: 12px; scroll-margin-top: 64px; }
.section-head h2 { font-size: 22px; }
.section-desc { color: var(--text-3); font-size: 14px; margin-top: 4px; }

/* cards */
.card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: none; }
.card h3 { font-size: 17px; line-height: 1.45; margin: 6px 0; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tag { background: var(--tag); border-radius: 4px; padding: 1px 7px; font-size: 12px; color: var(--text-2); }
.summary { color: var(--text); font-size: 15px; }
.why { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.why strong { color: var(--text-2); font-weight: 600; margin-right: 4px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.sources a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); }
.sources a:hover { color: var(--accent); border-color: var(--accent); }
.sources .sep { margin: 0 6px; }
.permalink { color: var(--text-3); font-family: var(--mono); }
.chip { background: var(--tag); border-radius: 4px; padding: 1px 6px; font-size: 12px; color: var(--text-2); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* launches */
.launches { list-style: none; padding: 0; margin: 0; }
.launch { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.launch:last-child { border-bottom: none; }
.launch-main { min-width: 0; }
.launch-title { font-weight: 600; }
.launch-title:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.launch-desc { color: var(--text-2); font-size: 14px; display: block; }
.launch-side { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--text-3); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.platform { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }

/* voices */
.voice-head { display: flex; justify-content: space-between; align-items: baseline; }
.voice-text { margin-top: 6px; white-space: pre-line; }
.voice-original { color: var(--text-3); font-size: 13px; margin-top: 8px; white-space: pre-line; border-left: 2px solid var(--line); padding-left: 10px; }

/* rankings */
.table-wrap { overflow-x: auto; }
table.rankings { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rankings th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.rankings td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rankings tr:last-child td { border-bottom: none; }
table.rankings .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rankings .rank { color: var(--text-3); }
table.rankings .provider { margin-left: 8px; }
.delta.up { color: var(--up); } .delta.down { color: var(--down); } .delta.flat { color: var(--text-3); }
.delta.new { color: var(--accent); font-size: 12px; }
.models { list-style: none; padding: 0; margin: 0; }
.models li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.models li:last-child { border-bottom: none; }
.models li a { font-weight: 500; }
.model-meta { float: right; color: var(--text-3); font-size: 12px; display: flex; gap: 12px; font-variant-numeric: tabular-nums; }

/* subscribe */
.subscribe-box { margin: 48px 0 24px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); }
.subscribe-box h3 { font-size: 18px; }
.subscribe-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.subscribe-form input[type=email] { flex: 1; min-width: 220px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; font-family: inherit; background: #fff; }
.subscribe-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.subscribe-form .cf-turnstile { width: 100%; }
.lang-pick { border: none; padding: 0; margin: 0; width: 100%; display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--text-2); }
.lang-pick legend { float: left; padding: 0; margin-right: 4px; color: var(--text-3); font-size: 13px; }
.lang-pick label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.lang-pick input { accent-color: var(--text); }
.subscribe-box.compact { margin: 24px 0; }
.notice { padding: 48px 0; max-width: 520px; }
.notice h1 { font-size: 26px; margin-bottom: 8px; }
.notice p { color: var(--text-2); }
.notice a.btn { margin-top: 16px; }

/* archive */
.archive { list-style: none; padding: 0; margin: 16px 0; }
.archive li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive .date { font-variant-numeric: tabular-nums; color: var(--text-2); width: 120px; flex-shrink: 0; }
.archive h4 { font-size: 16px; font-weight: 500; }
.archive .muted { display: block; }
.month { margin-top: 28px; color: var(--text-3); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* story page */
.story-page { padding-top: 32px; }
.story-page h1 { font-size: 26px; line-height: 1.35; margin: 8px 0 12px; }
.story-page .summary { font-size: 17px; }
.items { list-style: none; padding: 0; margin: 12px 0; }
.items li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.items li .muted { margin-left: 8px; }

.footer { padding: 40px 0 48px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); margin-top: 24px; }
.footer a { color: var(--text-2); }

@media (max-width: 640px) {
  .brand-tag { display: none; }
  .nav { gap: 10px; font-size: 13px; }
  .masthead { padding: 28px 0 18px; }
  .masthead h1 { font-size: 24px; }
  .launch { flex-direction: column; gap: 6px; }
  .launch-side { flex-direction: row; align-items: center; }
  .model-meta { float: none; display: flex; margin-top: 2px; }
}
