:root {
  color-scheme: dark;
  --ground: #0c0a0d;
  --surface: #17131a;
  --line: #332b35;
  --text: #f3edf1;
  --muted: #b7aeb9;
  --faint: #8e828f;
  --line-strong: #5a4d5c;
  --accent: #ff9b82;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 60% 28rem at 80% 0, #3a1b2c 0, transparent 100%), var(--ground);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #ffc6b4; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(800px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .shell { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 17px; }
.brand { color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.site-header nav { display: flex; gap: clamp(12px, 3vw, 26px); align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-header nav a:last-child { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.intro { padding-top: clamp(56px, 9vw, 92px); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 750; }
h1 { margin: 0; font-size: clamp(3rem, 9vw, 5rem); line-height: 1.05; letter-spacing: -.065em; }
/* Tabs sit on the intro's divider, directly above the history they switch. */
.history-selector { display: flex; gap: clamp(22px, 5vw, 34px); margin-top: clamp(34px, 6vw, 48px); }
.history-selector a { position: relative; display: flex; align-items: center; min-height: 48px; padding-inline: 2px; color: var(--faint); text-decoration: none; font-size: .95rem; font-weight: 650; letter-spacing: -.01em; transition: color .15s; }
.history-selector a::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: transparent; transition: background-color .15s; }
.history-selector a:hover, .history-selector a:focus-visible { color: #dcd3dd; }
.history-selector a:hover::after, .history-selector a:focus-visible::after { background: var(--line-strong); }
.history-selector a[aria-current="page"] { color: var(--text); }
.history-selector a[aria-current="page"]::after { background: var(--accent); }
.history-selector a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.empty-history { padding: 32px 0; color: var(--muted); }
.release { padding: 38px 0 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.release-meta { margin: 0 0 5px; color: var(--muted); font-size: .88rem; }
.release h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 5vw, 2.1rem); letter-spacing: -.04em; line-height: 1.3; }
.release h2 a { color: var(--text); }
.surface-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 22px !important; }
.surface-list li { margin: 0; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; }
.surface-channel { color: var(--muted); }
.human-notes { margin: 0 0 26px; padding: 20px 23px 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.release .human-notes h3 { margin: 0 0 11px; color: var(--text); font-size: .9rem; letter-spacing: 0; text-transform: none; }
.human-notes ul { padding-left: 1.2rem; }
.human-notes li { margin: 7px 0; }
.generated-changelog { margin-top: 15px; }
.generated-changelog summary { width: fit-content; color: var(--accent); cursor: pointer; font-weight: 650; }
.generated-changelog summary:hover { color: #ffc6b4; }
.generated-changelog summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.generated-changelog[open] summary { margin-bottom: 18px; }
.summary-sources { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-sources ol { margin: 0; padding-left: 1.25rem; color: var(--muted); font-size: .88rem; }
.release h3 { margin: 24px 0 10px; color: var(--accent); font-size: .81rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.release p { margin: 8px 0; }
.release ul { margin: 0; padding-left: 1.25rem; }
.release li { margin: 8px 0; padding-left: .2rem; overflow-wrap: anywhere; }
.release .surface-list li { margin: 0; padding: 5px 11px; }
.release li::marker { color: var(--faint); }
.release li ul { margin-top: 8px; }
.release strong { color: var(--text); }
.release code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); padding: .1em .25em; border-radius: 4px; }
.update-instructions, .cli-update { margin-top: 24px !important; }
.update-instruction { color: var(--muted); }
.update-instruction strong { color: var(--text); }
.site-footer { display: flex; gap: 24px; flex-wrap: wrap; padding-block: 34px 55px; font-size: .87rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 560px) {
  .site-header .shell { align-items: flex-start; flex-direction: column; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .release { padding-block: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .history-selector a, .history-selector a::after { transition: none; }
}
