@font-face {
  font-family: "Neue Machina";
  src: url("/assets/fonts/NeueMachina-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Machina";
  src: url("/assets/fonts/NeueMachina-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #24272a;
  --panel: #2a2f33;
  --ink: #f2f3f1;
  --muted: #b1b3b2;
  --line: rgba(255, 255, 255, .14);
  --line-strong: #53575a;
  --accent: #ff7878;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Neue Machina", Arial, sans-serif;
}
body[data-accent="automatic"] { --accent: #99ffff; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.shell {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 52px);
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: clamp(16px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; }
.language { padding: 8px; font-size: 14px; }
.hero { padding-block: clamp(35px, 7vw, 84px) clamp(25px, 4vw, 42px); }
h1, h2 { font-weight: 500; }
h1 {
  margin: 0;
  font-size: clamp(32px, 5.1vw, 57px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.hero p {
  max-width: 690px;
  margin: 15px 0 0;
  color: var(--muted);
}
.hero .action {
  display: inline-flex;
  gap: 24px;
  margin-top: 22px;
}
.devices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
}
.devices:has(> .device:only-of-type) { max-width: 27rem; }
.devices:has(> .device:nth-of-type(2):last-child) { max-width: 54rem; }
.device {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(19px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 16px;
  background: var(--panel);
}
.device h2 { margin: 0 0 9px; font-size: 25px; line-height: 1.13; }
.device p { margin: 0; color: var(--muted); }
.device .release {
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.actions { display: grid; gap: 8px; margin-top: 20px; align-content: start; }
.release + .actions { margin-top: 0; }
.action {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.action:hover { background: color-mix(in srgb, var(--accent) 78%, var(--ink)); }
.action::after { content: "→"; }
.action.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.action.secondary:hover { border-color: var(--accent); color: var(--accent); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .devices { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); row-gap: 0; }
    .device { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
    .device-head { grid-row: 1; }
    .device .release { grid-row: 2; }
    .device .actions { grid-row: 3; margin-top: 0; }
  }
}
