:root {
  color-scheme: light dark;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --text: #15192a;
  --muted: #4c556b;
  --accent: #3d5bd9;
  --accent-text: #ffffff;
  --border: rgba(20, 25, 42, 0.12);
  --band: #eceff6;
  --radius: 16px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1320;
    --surface: #171c2c;
    --text: #eef1f8;
    --muted: #b3bbcf;
    --accent: #8ba2ff;
    --accent-text: #0b1020;
    --border: rgba(238, 241, 248, 0.14);
    --band: #141a2a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

img { max-width: 100%; height: auto; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }

main section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

section.band {
  max-width: none;
  background: var(--band);
}
section.band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 28px; letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: 1.08rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow { color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 26px; }
.fine-print, .muted { color: var(--muted); font-size: 0.92rem; }
.note { color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--border); padding-left: 12px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }

figure { margin: 0; }
figure img {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(10, 16, 40, 0.18);
}

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards > * {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.cards p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.checks, .levels { padding-left: 1.2em; }
.checks li, .levels li { margin-bottom: 10px; }

.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

.download-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.download-card p { margin: 0 0 10px; }
.version { font-size: 1.3rem; font-weight: 700; }
.checksum code { user-select: all; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 40px;
  text-align: center;
}

.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 10px; }

@media (max-width: 900px) {
  .hero, .split { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; }
}

@media (max-width: 560px) {
  .cards.four { grid-template-columns: 1fr; }
  .nav ul { display: none; }
}

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

/* First-launch instructions for a build that is signed ad-hoc rather than notarized. */
.first-launch {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #d2d2d7);
  border-radius: 10px;
  font-size: 0.95rem;
}

.first-launch ol {
  margin: 0.5rem 0 0.5rem 1.1rem;
  padding: 0;
}

/* Shown while no signed, notarized build has been published for download. */
.unpublished {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(200, 120, 0, 0.12);
  font-size: 0.95rem;
}

.button.disabled,
a.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
