/* /updates: a light rail that runs the length of the release history. Each release's bead
   rides the rail while you read it and lights as it passes the middle of the screen.
   Self-contained: the page loads this file instead of the 180 KB site stylesheet.
   CEILING: the shell rules (bar, footer, pill) are copied from styles.css and must follow it
   by hand — a shared shell.css used by every page would remove the copy. */

/* ---------- fonts (wordmark and footer mark are subsets of the site's faces) ---------- */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Unbounded Wordmark"; src: url("fonts/unbounded-wordmark.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Geist Mono Foot"; src: url("fonts/geist-mono-foot.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- site shell (from styles.css) ---------- */

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.18);
  --iri-violet: #8b7bff;
  --iri-blue: #4fb3ff;
  --iri-pink: #ff7ac6;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 48px);
  --wrap: min(1120px, 100% - 2 * var(--gutter));
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
*, ::before, ::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scrollbar-color: #3a3a3c var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: clip;
}
::selection { background: var(--iri-violet); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c2e; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #48484a; }
a { color: inherit; text-decoration: none; }
svg { flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: #000; font-weight: 600; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }

.bar { position: sticky; top: 0; z-index: 50; background: rgb(0 0 0 / 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar-inner { width: var(--wrap); margin-inline: auto; height: 52px; display: flex; align-items: center; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: "Unbounded Wordmark", var(--sans); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mark { width: 24px; height: 24px; overflow: visible; }
.bar-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 13px; color: var(--fg-2); }
.bar-links a { transition: color .2s; white-space: nowrap; }
.bar-links a:hover { color: var(--fg); }
.bar-links a[aria-current="page"] { color: var(--fg); }
.gh { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--fg); white-space: nowrap; transition: border-color .25s, background .25s; }
.gh:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.05); }
.gh > svg { width: 15px; height: 15px; }
.gh-stars { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: #1c1c1e; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.gh-stars svg { width: 12px; height: 12px; color: #f5c451; }
.gh-stars b { font-weight: 600; }
.gh-stars:has(b:empty) { display: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px 0 20px; border-radius: 999px; background: var(--fg); color: #000; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; white-space: nowrap; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.9); transition: background .25s var(--ease-out), transform .25s var(--ease-out); }
.pill:hover { background: #fff; }
.pill:active { transform: scale(0.97); }
.pill:focus-visible { outline: 2px solid var(--iri-blue); outline-offset: 3px; }
.pill-sm { height: 30px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.pill-lg { height: 56px; padding: 0 30px; font-size: 19px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 640px) auto; grid-template-rows: repeat(5, auto) 1fr; justify-content: space-between; gap: 4px 64px; }
.foot-inner > p:first-child { grid-row: 1 / -1; }
.foot p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--fg-3); max-width: 64em; }
.foot a:hover { color: var(--fg); }
.foot-mark { font-family: "Geist Mono Foot", ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; }

@media (max-width: 1100px) {
  .bar-inner { gap: 22px; }
  .bar-links { gap: 20px; }
  .gh-name { display: none; }
  .gh { padding-left: 9px; }
}
@media (max-width: 860px) {
  .bar-inner, .bar-links { gap: 18px; }
}
@media (max-width: 720px) {
  .bar-links { display: none; }
  .gh { margin-left: auto; }
}
@media (max-width: 860px) {
  .foot-inner { display: flex; flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) { .bar-inner { gap: 10px; } }
@media (max-width: 420px) { .foot-mark { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 360px) {
  .gh { display: none; }
  .bar-inner .pill-sm { margin-left: auto; }
}

/* ---------- page ---------- */

.upd {
  --rx: 7px;              /* rail centre, from the rail column's left edge */
  --gap-rail: 48px;       /* rail to content */
  --c-games: #ff7ac6;
  --c-graphics: #a99cff;
  --c-controllers: #4fb3ff;
  --c-steam: #7ee0c3;
  --c-setup: #ffc46b;
  --c-reports: #ff9a85;
  --c-app: #b8b8bf;
  --iri: linear-gradient(180deg, var(--iri-violet), var(--iri-blue) 38%, var(--iri-pink) 70%, var(--iri-violet));
}

[data-a="games"] { --c: var(--c-games); }
[data-a="graphics"] { --c: var(--c-graphics); }
[data-a="controllers"] { --c: var(--c-controllers); }
[data-a="steam"] { --c: var(--c-steam); }
[data-a="setup"] { --c: var(--c-setup); }
[data-a="reports"] { --c: var(--c-reports); }
[data-a="app"] { --c: var(--c-app); }

/* hero */

.upd-hero {
  position: relative;
  padding-top: clamp(96px, 14vh, 152px);
  padding-bottom: clamp(56px, 8vh, 88px);
}
.upd-hero::before {
  /* the rail's light, gathering where the rail starts */
  content: "";
  position: absolute;
  left: calc(var(--rx) - 200px);
  bottom: -160px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(139 123 255 / 0.2), rgb(79 179 255 / 0.07) 55%, transparent);
  pointer-events: none;
}
.upd-hero > * { position: relative; }
.upd-hero h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.upd-lede {
  max-width: 54ch;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--fg-2);
  text-wrap: pretty;
}
.upd-lede a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.upd-lede a:hover { text-decoration-color: var(--fg); }
.upd-lede strong { color: var(--fg); font-weight: 600; }

.upd-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.upd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .2s var(--ease-out);
}
.upd-chip span { color: var(--fg-3); font-variant-numeric: tabular-nums; transition: color .25s var(--ease-out); }
.upd-chip:hover { border-color: rgb(255 255 255 / 0.4); color: var(--fg); }
.upd-chip:active { transform: scale(0.97); }
.upd-chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #000; }
.upd-chip[aria-pressed="true"] span { color: rgb(0 0 0 / 0.6); }
.upd-chip:focus-visible { outline: 2px solid var(--iri-blue); outline-offset: 3px; }
.upd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* rail */

.upd-rail { position: relative; }
.upd-rail::before,
.upd-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 22px;
  left: calc(var(--rx) - 0.5px);
  width: 1px;
  background: var(--line-strong);
}
/* The lit part of the rail, scaled by updates.js to the middle of the screen. */
.upd-rail::after {
  left: calc(var(--rx) - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--iri);
  background-size: 100% 900px;
  transform-origin: top;
  transform: scaleY(var(--fill, 1));
  box-shadow: 0 0 12px rgb(139 123 255 / 0.5);
}

.upd-month[hidden] { display: none; }
/* Month: a tick off the rail and a quiet label, not a header bar. */
.upd-month-name {
  position: relative;
  margin: 0 0 32px;
  padding-left: calc(var(--rx) + var(--gap-rail));
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-3);
}
.upd-month-name::before {
  content: "";
  position: absolute;
  left: calc(var(--rx) + 6px);
  top: 50%;
  width: calc(var(--gap-rail) - 18px);
  height: 1px;
  background: var(--line-strong);
}

.upd-rel {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 40px;
  padding-left: calc(var(--rx) + var(--gap-rail));
  margin-bottom: 80px;
  scroll-margin-top: 96px;
}
.upd-rel[hidden] { display: none; }

.upd-head {
  position: sticky;
  top: 96px;
  align-self: start;
}
.upd-node {
  --top: 14px;            /* centres the 13px bead on the version's figures */
  position: absolute;
  left: calc(-1 * var(--gap-rail) - 6.5px);
  top: var(--top);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--iri-blue) 45%, var(--iri-violet));
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 4px rgb(139 123 255 / 0.18), 0 4px 10px rgb(0 0 0 / 0.6);
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.upd-live .upd-rel:not(.is-on) .upd-node {
  background: var(--bg);
  border-color: rgb(255 255 255 / 0.32);
  box-shadow: none;
  transform: scale(0.85);
}

.upd-head h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.upd-head h3 a { color: var(--fg); transition: color .5s var(--ease-out); }
.upd-live .upd-rel:not(.is-on) .upd-head h3 a { color: var(--fg-3); }
.upd-head h3 a:hover { color: var(--fg); }
.upd-head h3 a:focus-visible { outline: 2px solid var(--iri-blue); outline-offset: 4px; border-radius: 4px; }

.upd-when {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.upd-latest {
  display: inline-block;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: #000;
  background: linear-gradient(100deg, #c9c0ff, #9fd6ff 50%, #ffc0e2);
}

.is-latest .upd-head h3 { font-size: 56px; }
.is-latest .upd-node { --top: 22px; }
.is-latest .upd-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgb(139 123 255 / 0.6);
  animation: upd-ping 2.8s var(--ease-out) infinite;
}
@keyframes upd-ping {
  0% { transform: scale(0.6); opacity: 1; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.upd-items {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  gap: 20px;
}
.upd-items li {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
}
.upd-items li[hidden] { display: none; }
.upd-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: color-mix(in srgb, var(--c) 82%, #fff);
  white-space: nowrap;
}
.upd-tag::before {
  content: "";
  flex: none;
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
.upd-items p {
  margin: 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  text-wrap: pretty;
}
.upd-items code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.08);
}
.upd-items a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.upd-items a:hover { text-decoration-color: var(--fg); }
.upd-items a:focus-visible { outline: 2px solid var(--iri-blue); outline-offset: 2px; border-radius: 3px; }

.upd-origin {
  position: relative;
  margin: 0;
  padding: 0 0 0 calc(var(--rx) + var(--gap-rail));
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-3);
}
.upd-origin .upd-node {
  left: calc(var(--rx) - 6.5px);
  top: 3.5px;
  background: var(--bg);
  border-color: rgb(255 255 255 / 0.32);
  box-shadow: none;
}
.upd-origin a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* end */

.upd-end {
  margin-top: clamp(96px, 14vh, 160px);
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.upd-end h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.upd-end p {
  max-width: 44ch;
  margin: 16px auto 32px;
  color: var(--fg-2);
  font-size: 18px;
  text-wrap: pretty;
}

/* filtering */

::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(*) { animation-duration: .2s; }
::view-transition-new(*) { animation-duration: .35s; animation-delay: .08s; }

/* narrow screens */

@media (max-width: 860px) {
  .upd-rel { grid-template-columns: minmax(0, 1fr); margin-bottom: 56px; }
  .upd-head { position: relative; top: auto; margin-bottom: 8px; }
  .upd-head h3 { font-size: 34px; }
  .upd-node { --top: 11px; }
  .is-latest .upd-head h3 { font-size: 44px; }
  .is-latest .upd-node { --top: 16px; }
  .upd-when, .upd-latest { display: inline-block; vertical-align: middle; }
  .upd-latest { margin: 12px 0 0 10px; }
}
@media (max-width: 560px) {
  .upd { --rx: 6px; --gap-rail: 28px; }
  .upd-filter { gap: 6px; margin-top: 32px; }
  .upd-chip { height: 34px; padding: 0 12px; font-size: 13px; }
  .upd-items { gap: 18px; }
  .upd-items li { grid-template-columns: minmax(0, 1fr); }
  .upd-items p { font-size: 16px; }
  .upd-month-name { margin-bottom: 24px; }
  .upd-month-name::before { width: calc(var(--gap-rail) - 14px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-latest .upd-node::after { animation: none; opacity: 0; }
  .upd-node, .upd-head h3 a, .upd-chip, .pill { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
