:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --muted: #616161;
  --line: #d4d4d4;
  --soft: #f6f6f4;
  --green: #299447;
  --content: 980px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
a[aria-current="page"] { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 11px 16px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus { transform: none; }
.shell { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--ink);
  background: #fff;
}

.brand,
.nav,
.site-footer { display: flex; align-items: center; }
.brand { gap: 12px; font-size: 20px; font-weight: 850; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav { gap: 26px; }
.nav a,
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }
.nav a { font-size: 14px; font-weight: 700; }

main { padding-block: clamp(48px, 8vw, 88px); }
.notes-intro { max-width: 760px; padding-bottom: clamp(32px, 5vw, 50px); }
.eyebrow,
.note-meta { margin: 0; color: var(--muted); font-size: 13px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 14px 0 0; font-size: clamp(44px, 7vw, 68px); line-height: 1.02; }
.lede { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.product-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.product-notes-group { min-width: 0; border: 1px solid var(--line); }
.product-notes-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 94px; padding: 18px; border-bottom: 1px solid var(--line); }
.product-notes-header > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 800; text-underline-offset: 4px; }
.product-notes-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-notes-identity img { width: 42px; height: 42px; object-fit: contain; }
.product-notes-identity h2 { margin: 3px 0 0; font-size: 24px; line-height: 1.1; }
.product-notes-identity .eyebrow { font-size: 10px; }
.notes-list { margin: 0; padding: 0 18px; list-style: none; }
.note-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.note-item:last-child { border-bottom: 0; }
.note-item h3 { margin: 7px 0 9px; font-size: 21px; line-height: 1.2; }
.note-item p { max-width: 630px; margin: 0; color: var(--muted); line-height: 1.6; }
.note-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; white-space: nowrap; text-underline-offset: 4px; }

.note-series-item { border-bottom: 1px solid var(--line); }
.note-series-item:last-child { border-bottom: 0; }
.note-series-item .note-item { border-bottom: 0; }
.patch-notes { margin: 0 0 0 18px; padding: 0 0 0 12px; border-left: 1px solid var(--line); list-style: none; }
.patch-notes a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 44px; color: inherit; font-size: 15px; line-height: 1.25; text-decoration: none; }
.patch-version { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.patch-title { color: var(--muted); }
.patch-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.patch-notes a:hover .patch-title,
.patch-notes a:focus-visible .patch-title { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { gap: 22px; min-height: 120px; border-top: 1px solid var(--ink); }
.site-footer strong { margin-right: auto; }
.heart { color: #e00000; font-weight: 800; }

@media (max-width: 760px) {
  html { scroll-padding-top: 0; }
  .shell { width: min(var(--content), calc(100% - 32px)); }
  .site-header { position: relative; align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .nav { flex-wrap: wrap; gap: 12px 18px; }
  .product-notes-grid { grid-template-columns: 1fr; }
  .product-notes-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .note-item { grid-template-columns: 1fr; gap: 14px; }
  .patch-notes a { grid-template-columns: auto minmax(0, 1fr); }
  .patch-date { grid-column: 2; }
  .site-footer { flex-wrap: wrap; gap: 8px 18px; padding-block: 20px; }
  .site-footer strong { flex-basis: 100%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
