@font-face {
  font-family: Inter;
  src: url("./inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./inter-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #111318;
  --panel: #15181e;
  --control: #1f232b;
  --hover: #282d37;
  --border: #313742;
  --edge: #49515f;
  --text: #eceff4;
  --muted: #a9b3c3;
  --focus: #dce3ef;
  --error: #efa39d;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  scrollbar-color: var(--edge) var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--focus); color: var(--canvas); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }

.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.masthead { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.brand img { display: block; }
.text-link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; font-size: .875rem; }
.text-link:hover { color: var(--text); text-decoration-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.65rem, 6vw, 5.5rem);
}

h1 { font-size: clamp(3rem, 5.4vw, 5rem); letter-spacing: -.04em; line-height: 1.03; font-weight: 600; }
h1 span { display: block; }
.intro { margin-top: 1.2rem; font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.release { margin-top: 1.75rem; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.release strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.release-dot { width: .38rem; height: .38rem; border-radius: 50%; background: var(--muted); }
.failure { color: var(--error); margin-bottom: .8rem; }

.actions { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; border: 1px solid transparent; border-radius: 5px; padding: .55rem .9rem; min-height: 2.75rem; line-height: 1.25; font-size: .875rem; font-weight: 600; }
.button.primary { background: var(--text); color: var(--canvas); min-height: 3rem; padding-inline: 1.05rem; }
.button.primary:hover { background: #fff; }
.actions[data-pick="mac"] .button { border-color: var(--edge); background: var(--control); color: var(--text); }
.actions[data-pick="mac"] .button:hover { background: var(--hover); }
.button.secondary { background: var(--control); border-color: var(--edge); }
.button.secondary:hover { background: var(--hover); border-color: var(--muted); }
.recommendation-note { margin-top: .7rem; color: var(--muted); font-size: .875rem; min-height: 1.36rem; text-wrap: pretty; }

.download-icon { width: 1rem; height: .91rem; display: inline-block; position: relative; flex: none; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; clip-path: polygon(0 50%, 19% 50%, 19% 0, 81% 0, 81% 50%, 100% 50%, 100% 100%, 0 100%); }
.download-icon::before { position: absolute; content: ""; left: calc(50% - .75px); top: 0; height: .54rem; border-left: 1.5px solid; }
.download-icon::after { position: absolute; content: ""; top: .23rem; left: calc(50% - .21rem); width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.preview { border: 1px solid var(--edge); border-radius: 7px; background: var(--panel); overflow: hidden; }
.preview img { display: block; width: 100%; height: auto; }
.installers { padding-block: 1.7rem 1.9rem; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem 1.25rem; flex-wrap: wrap; margin-bottom: .7rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.8rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.installers ul { list-style: none; padding: 0; margin: 0; }
.installer { display: flex; align-items: center; justify-content: space-between; padding-block: .68rem; gap: .75rem; border-bottom: 1px solid var(--border); }
.installer-name { display: flex; align-items: baseline; column-gap: 1.5rem; row-gap: .12rem; flex-wrap: wrap; }
.installer-name strong { min-width: 6rem; font-weight: 600; }
.installer-name span { color: var(--muted); font-size: .875rem; }
.install-note { margin-top: .9rem; color: var(--muted); font-size: .875rem; text-wrap: pretty; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.25rem; border-top: 1px solid var(--border); padding-block: 1.15rem 1.7rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 47rem) {
  .hero { grid-template-columns: 1fr; }
  .preview { display: none; }
  h1 span { display: inline; }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 3.7rem; }
  h1 { font-size: clamp(2.6rem, 8vw, 3.3rem); }
  .hero { padding-block: 2.15rem; }
  .installer-name { flex-direction: column; }
}
