/* Colours and type follow the app (src/index.css there). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter.woff2") format("woff2-variations");
}

:root {
  --canvas: #0c0d0f;
  --panel: #15171a;
  --raised: #1d2024;
  --hover: #262a30;
  --line: #2b2f36;
  --line-strong: #3b414a;
  --ink: #e7e9ec;
  --ink-muted: #a0a7b1;
  --ink-faint: #6c737e;
  --accent: #ff7a1a;
  --accent-hover: #ff9140;
  --accent-ink: #1a0d02;
  --accent-soft: #ff7a1a26;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  font-weight: 650;
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 620;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0;
}

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Top bar */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
}

.nav nav a:not(.button) {
  color: var(--ink-muted);
  text-decoration: none;
}

.nav nav a:not(.button):hover {
  color: var(--ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--accent-hover);
}

.button.ghost {
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button.ghost:hover {
  background: var(--hover);
}

.button.small {
  height: 34px;
  padding: 0 14px;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(48px, 9vw, 104px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.lead {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.hero-shot {
  width: 100%;
  max-width: 1000px;
  margin-top: clamp(36px, 6vw, 64px);
}

/* Sections */

.section {
  padding-top: clamp(72px, 11vw, 136px);
}

.section-lead {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.fine,
.card p.fine {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.callout {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink-muted);
}

.callout h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.callout p {
  max-width: 70ch;
}

/* Steps */

.steps {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.step.text-only {
  grid-template-columns: minmax(0, 62ch);
}

.step-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.step-text p {
  color: var(--ink-muted);
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
}

.step img {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px -24px #000;
}

.caption {
  margin-top: 28px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* Download */

.download .button {
  align-self: flex-start;
  margin-top: 8px;
}

.download.suggested {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.downloads.plain .download {
  border-color: var(--line);
  box-shadow: none;
}

.download:not(.suggested) .button {
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.download:not(.suggested) .button:hover {
  background: var(--hover);
}

.first-run {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.first-run > p {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--ink-muted);
}

.first-run ol {
  margin: 10px 0 0;
  padding-left: 1.3em;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.first-run li + li {
  margin-top: 6px;
}

.first-run b {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(72px, 11vw, 136px);
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer-product {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#footer-version:empty {
  display: none;
}

.creator-credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  text-decoration: none;
}

.creator-credit:hover {
  color: var(--ink);
}

.creator-credit img {
  width: 120px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .nav nav a:not(.button) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
