:root {
  color-scheme: dark;
  --background: #181818;
  --surface: #1f1f1f;
  --hover: #272727;
  --text: #f5f0e6;
  --muted: #b8b8b2;
  --accent: #b99a58;
  --rule: #45443c;
  font-family: system-ui, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
button, .edition { transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1); }
button:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; }
.brand { display: grid; color: var(--text); font-size: 24px; line-height: 32px; font-weight: 700; text-decoration: none; }
.brand span { color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 400; margin-top: 4px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a, nav button { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
.page-heading { display: grid; gap: 24px; padding-block: 64px 48px; max-width: 850px; }
.eyebrow { color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 500; }
h1 { font-size: 48px; line-height: 1.25; letter-spacing: -0.035em; }
h1 span { display: block; color: var(--muted); margin-top: 8px; }
.lead { max-width: 680px; font-size: 18px; line-height: 1.75; color: var(--muted); }
.disclaimer { max-width: 78ch; color: var(--muted); font-size: 14px; line-height: 1.8; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 20px; line-height: 28px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-heading p { color: var(--muted); font-size: 14px; line-height: 20px; }
.edition-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.edition { display: grid; grid-template-columns: minmax(144px, 1fr) minmax(0, 3fr); gap: 32px; padding: 32px; border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.edition:hover { background: var(--hover); }
.edition-meta { display: grid; align-content: start; gap: 8px; font-variant-numeric: tabular-nums; }
.edition time { font-size: 18px; line-height: 28px; font-weight: 600; }
.edition-label { color: var(--accent); font-size: 12px; line-height: 16px; }
.edition h3 { margin-bottom: 12px; }
.edition p { color: var(--muted); max-width: 60ch; }
.edition-action { display: inline-flex; gap: 16px; color: var(--accent); margin-top: 24px; font-size: 14px; font-weight: 600; }
.reading-guide { max-width: 780px; display: grid; gap: 16px; padding-block: 48px 64px; }
.reading-guide p { color: var(--muted); }
.reading-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); align-items: start; gap: 48px; padding-bottom: 48px; }
.contents { position: sticky; top: 24px; display: grid; gap: 8px; padding: 24px; background: var(--surface); border-radius: 16px; }
.contents .eyebrow { margin-bottom: 8px; }
.contents a { color: var(--muted); min-height: 44px; text-decoration: none; overflow-wrap: anywhere; }
.contents a:hover { color: var(--text); }
.digest { min-width: 0; max-width: 780px; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.digest h2 { margin-block: 48px 24px; scroll-margin-top: 24px; }
.digest h2:first-child { margin-top: 0; }
.digest h3 { margin-block: 32px 16px; scroll-margin-top: 24px; }
.digest .reading-note { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
.digest-items { margin: 0 0 24px; padding-left: 24px; }
.digest-items li { padding-left: 8px; }
.digest-items li::marker { color: var(--accent); font-size: 14px; }
.summary + .summary { margin-top: 24px; }
.summary a { color: var(--text); font-weight: 600; text-decoration-color: var(--accent); }
.summary a:hover { color: var(--accent); }
.item-label { display: block; width: fit-content; max-width: 100%; padding: 4px 8px; margin-bottom: 8px; border: 1px solid var(--rule); border-radius: 4px; color: var(--accent); font-size: 12px; line-height: 20px; font-weight: 500; }
.item-label.analysis { color: var(--text); }
.item-label.outlook { background: var(--surface); }
.edition-nav { display: flex; justify-content: space-between; gap: 16px 32px; padding-block: 24px 48px; }
.site-footer { display: grid; gap: 24px; padding-block: 32px 48px; border-top: 1px solid var(--rule); }
.site-footer nav { align-items: center; }
.site-footer nav a { color: var(--muted); }
.site-footer nav button { border: 1px solid var(--rule); border-radius: 8px; background: transparent; padding: 8px 12px; }
.site-footer nav button:hover { background: var(--hover); }
.consent-panel { display: grid; gap: 16px; max-width: 780px; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.consent-panel h2 { font-size: 20px; line-height: 28px; }
.consent-panel p { color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--hover); }
.consent-actions button:hover { background: var(--background); }
.consent-actions [data-consent-grant] { border-color: var(--accent); }
.skip-link { position: fixed; top: 16px; left: 16px; z-index: 2; padding: 12px 16px; border-radius: 8px; background: var(--text); color: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 64px); }
  .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contents { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 24px; }
  .contents .eyebrow { width: 100%; margin: 0; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .site-header { align-items: start; gap: 16px; }
  .site-header nav { display: grid; gap: 0; justify-items: end; }
  .page-heading { padding-block: 40px 32px; }
  h1 { font-size: 30px; line-height: 40px; }
  .edition { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .edition-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
  .digest { font-size: 16px; line-height: 1.9; }
  .digest-items { padding-left: 16px; }
  .contents { padding: 16px; }
  .consent-panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  button:active { transform: none; }
}
@media (forced-colors: active) { .edition, .contents { border: 1px solid CanvasText; } }
