:root { color-scheme: light; --bg: var(--bg-l); --text: var(--text-l); --muted: var(--muted-l); --link: var(--link-l); --link-hover: var(--link-hover-l); --rule: var(--rule-l); --tick: var(--tick-l); --dot-paper: var(--link); --dot-position: var(--dot-position-l); --dot-award: var(--dot-award-l); }
:root[data-theme="dark"] { color-scheme: dark; --bg: var(--bg-d); --text: var(--text-d); --muted: var(--muted-d); --link: var(--link-d); --link-hover: var(--link-hover-d); --rule: var(--rule-d); --tick: var(--tick-d); --dot-paper: var(--link); --dot-position: var(--dot-position-d); --dot-award: var(--dot-award-d); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: var(--bg-d); --text: var(--text-d); --muted: var(--muted-d); --link: var(--link-d); --link-hover: var(--link-hover-d); --rule: var(--rule-d); --tick: var(--tick-d); --dot-paper: var(--link); --dot-position: var(--dot-position-d); --dot-award: var(--dot-award-d); }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font: 18px/1.6 Georgia, serif;
  transition: background-color .2s ease, color .2s ease;
}
main { position: relative; max-width: 720px; margin: 0 auto; padding: 64px 20px; }
.theme-toggle {
  position: absolute; top: 66px; right: 20px; width: 52px; height: 28px; padding: 0;
  border: 0; border-radius: 14px; background: var(--tick); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); color: var(--link);
  transition: transform .25s ease;
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle[aria-checked="true"] .knob { transform: translateX(24px); }
.theme-toggle[aria-checked="true"] .icon-sun { display: none; }
.theme-toggle[aria-checked="true"] .icon-moon { display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
h1, h2, .links, .meta, footer { font-family: -apple-system, system-ui, "Segoe UI", sans-serif; }
h1 { margin: 0 0 8px; padding-right: 64px; font-size: 2.1rem; font-weight: 650; line-height: 1.25; }
.links { margin: 0 0 32px; font-size: .9rem; line-height: 1.8; }
p { margin: 0 0 18px; }
section { margin-top: 42px; }
h2 { margin: 0 0 20px; font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.entry { margin-bottom: 22px; }
.entry > a { display: inline-block; line-height: 1.45; }
.meta { margin: 3px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.news { margin: 0; padding: 0; list-style: none; }
.news li { display: flex; gap: 18px; margin-bottom: 10px; line-height: 1.5; }
.news .date { flex: 0 0 78px; padding-top: 3px; color: var(--muted); font: .8rem -apple-system, system-ui, "Segoe UI", sans-serif; }
.news[hidden] { display: none; }
.timeline { width: 100%; }
.timeline-track { position: relative; height: 46px; }
.timeline-track::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--rule); }
.timeline-dot {
  position: absolute; top: 4px; z-index: 1; width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 50%; background: var(--dot-color); cursor: pointer;
  transform: translateX(-50%);
}
.timeline-paper { --dot-color: var(--dot-paper); }
.timeline-position { --dot-color: var(--dot-position); }
.timeline-award { --dot-color: var(--dot-award); }
.timeline-dot:hover, .timeline-dot.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--dot-color); }
.timeline-dot:focus-visible { outline: 2px solid var(--link); outline-offset: 6px; }
.timeline-year {
  position: absolute; top: 23px; color: var(--muted);
  font: 11px/1.3 -apple-system, system-ui, "Segoe UI", sans-serif;
  transform: translateX(-50%);
}
.timeline-year::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); width: 1px; height: 6px; background: var(--tick); }
.timeline-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.timeline-detail { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; opacity: 1; transition: opacity .2s ease; }
.timeline-detail.is-fading { opacity: 0; }
.timeline-date { color: var(--link); font: 600 13px/1.5 -apple-system, system-ui, "Segoe UI", sans-serif; white-space: nowrap; }
.timeline-controls { display: flex; flex: none; gap: 5px; }
.timeline-controls button {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0 0 2px;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent;
  color: var(--muted); font: 17px/1 Georgia, serif; cursor: pointer;
}
.timeline-controls button:hover:not(:disabled) { color: var(--link); border-color: var(--link); }
.timeline-controls button:disabled { opacity: .35; cursor: default; }
.timeline-controls button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font: 12px/1.5 -apple-system, system-ui, "Segoe UI", sans-serif; }
.timeline-legend-item::before { content: "●"; margin-right: 5px; color: var(--dot-color); }
footer { margin-top: 48px; color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { body, .timeline-detail, .theme-toggle .knob { transition: none; } }
@media (max-width: 480px) {
  main { padding-top: 40px; }
  .theme-toggle { top: 42px; }
  h1 { font-size: 1.85rem; }
  .news li { flex-direction: column; gap: 0; margin-bottom: 14px; }
  .news .date { flex-basis: auto; padding-top: 0; }
}
