:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #6d6d6d;
  --accent: #ef4444;
  --line: #e7e7e7;
  --soft: #f7f7f7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(100% - 48px, 960px);
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 128px; height: auto; }
.header-label {
  border-left: 1px solid #d7d7d7;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}
main {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  flex: 1;
}
.finder { padding: 72px 0 56px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 1.6px;
}
h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 {
  max-width: 620px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 650;
}
.intro {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.device-selector {
  max-width: 620px;
  margin-top: 38px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 13px 46px 13px 15px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
select:disabled { color: var(--muted); cursor: wait; }
select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(239, 68, 68, .25);
  outline-offset: 3px;
}
select:focus { border-color: #999; }
.field-hint, .status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.status:empty { display: none; }
.status { color: #b42318; }
.releases { padding: 0 0 64px; }
.releases-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}
.releases-heading .eyebrow { margin-bottom: 9px; }
h2 { font-size: 23px; line-height: 1.3; font-weight: 650; }
.release {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.release:last-child { border-bottom: 1px solid var(--line); }
.version { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.badge {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #feecec;
  color: #d62f2f;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .8px;
}
.date, .size, .hash {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.hash { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.notes {
  margin: 2px 0 0;
  padding-left: 18px;
  color: #515151;
  font-size: 14px;
  line-height: 1.7;
}
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.download:hover { border-color: var(--accent); background: var(--accent); }
.notice {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
footer {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .header-inner, main, footer { width: min(100% - 36px, 960px); }
  .header-inner { height: 74px; gap: 18px; }
  .brand img { width: 108px; }
  .header-label { padding-left: 18px; font-size: 13px; }
  .finder { padding: 48px 0 40px; }
  .device-selector { margin-top: 28px; padding: 18px; }
  .release { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .download { width: 100%; }
  .releases { padding-bottom: 44px; }
}
