:root {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body {
  min-height: 100svh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
header, footer { display: flex; justify-content: space-between; gap: 24px; }
header { align-items: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
#theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
#theme-toggle[hidden] { display: none; }
#theme-toggle:hover { color: var(--fg); background: var(--hover); }
main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding: 44px 0;
}
.hero-copy { min-width: 0; }
h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 5.8vw, 76px);
  font-weight: 550;
  line-height: 1.03;
  letter-spacing: -.065em;
}
.intro {
  max-width: 410px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  color: var(--ink-fg);
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.download:hover { opacity: .86; }
.download-note, .mac-note {
  max-width: 470px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
}
.download-note { margin: 14px 0 0; }
#release-version { font-family: var(--font-mono); }
.mac-note { margin: 8px 0 0; }
dl { display: flex; gap: 28px; margin: 36px 0 0; }
dl div { flex: 1; }
dt { margin-bottom: 7px; font-size: 13px; font-weight: 550; }
dd { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.app-preview { margin: 0; }
.app-preview iframe {
  display: block;
  width: 100%;
  height: 540px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.app-preview figcaption {
  margin-top: 16px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}
footer {
  align-items: flex-start;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
}
summary { cursor: pointer; text-align: right; }
details { max-width: 480px; }
.install-info { padding-top: 12px; }
.install-info p { margin: 0 0 14px; }
code { font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  body { padding-inline: 28px; }
  main { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 580px; }
  h1 { font-size: clamp(48px, 8vw, 72px); }
  .app-preview { width: min(100%, 420px); justify-self: center; }
}
@media (max-width: 480px) {
  body { padding: 20px; }
  main { padding-top: 40px; }
  h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .intro { font-size: 16px; }
  .download-actions { flex-direction: column; }
  .download { align-self: flex-start; min-width: 190px; }
  dl { gap: 20px; }
  footer { flex-direction: column; gap: 12px; }
  summary { text-align: left; }
}
@media (max-width: 340px) {
  dl { flex-direction: column; }
}
