:root {
  color-scheme: dark;
  --paper: #f8edd8;
  --muted: #c9c8bb;
  --gold: #f1ce8c;
  --border: #40504f;
  --ink: #0d1a20;
  background: var(--ink);
  color: var(--paper);
  font: 1rem/1.65 system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 80% 15%, #19383c 0, transparent 56%), var(--ink); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid #ffe2a3; outline-offset: 4px; }
.site-bar, main, .site-footer {
  width: min(72rem, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin-inline: auto;
}
.site-bar { display: flex; justify-content: space-between; align-items: center; min-height: 4.25rem; border-bottom: 1px solid var(--border); gap: 1rem; }
.site-bar a { min-height: 44px; display: inline-flex; align-items: center; }
.brand { text-decoration: none; font-weight: 730; letter-spacing: .04em; }
.lang-link { color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 6rem); }
.kicker { margin: 0 0 .65rem; color: var(--gold); font-weight: 650; letter-spacing: .1em; }
h1, h2, p, blockquote, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-family: "Noto Serif TC", "Songti TC", Georgia, serif; font-size: clamp(2.3rem, 4.85vw, 4.5rem); line-height: 1.12; letter-spacing: -.035em; }
[lang="en"] h1 { font-family: Georgia, serif; }
.intro { margin: 1.15rem 0 1.45rem; color: var(--muted); max-width: 37ch; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
  border: 1px solid #849493; border-radius: .4rem; padding: .55rem .95rem;
  background: #192f34; color: var(--paper); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: #26424a; }
.button.primary { background: var(--gold); border-color: var(--gold); color: #172023; }
.button.primary:hover { background: #ffe0a5; }
.enhanced { display: none; }
.js .enhanced { display: inline-flex; }
.js .no-js { display: none; }
.art img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 788; object-fit: cover; border-radius: 1rem; border: 1px solid #8d7961; }
.art figcaption { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.story { margin-bottom: clamp(2rem, 5vw, 4rem); scroll-margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1.15rem; }
.story summary { color: var(--gold); width: fit-content; min-height: 44px; padding: .35rem 0; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.story h2, .next h2 { font: 700 clamp(1.6rem, 3vw, 2.6rem)/1.2 system-ui, sans-serif; }
#outcome { margin: .5rem 0 .9rem; }
#reaction { color: var(--muted); max-width: 52ch; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; list-style: none; padding: 0; margin: 1.25rem 0; }
.timeline li { border: 1px solid var(--border); background: #15282e; border-radius: .65rem; padding: 1rem; }
.timeline .day { color: var(--gold); font-weight: 700; font-size: .9rem; }
.timeline h3 { margin: .2rem 0 .35rem; font-size: 1.15rem; line-height: 1.35; }
.timeline p, .note { color: var(--muted); }
.note { font-size: .93rem; }
.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; border: 1px solid var(--border); border-radius: .8rem; padding: clamp(1rem, 3vw, 2rem); background: #172a2e; }
.next p { margin-top: .45rem; color: var(--muted); }
.next .actions { justify-content: end; }
.site-footer { padding-block: 1.4rem; font-size: .875rem; color: var(--muted); }
.site-footer a { margin-inline-end: 1rem; }
#share-status:empty { display: none; }
#share-status { color: var(--gold); margin-top: .6rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .hero, .timeline, .next { grid-template-columns: 1fr; }
  .hero { padding-block: 1.85rem 2.4rem; }
  .next .actions { justify-content: start; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
