/*
 * One stylesheet for the whole site. No build step, no framework — the same
 * reasoning as the photo app's web client: a static marketing site that needs
 * a toolchain to edit is a site that stops getting edited.
 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e3e6ea;
  --fg: #16181d;
  --muted: #5c636e;
  --accent: #1f5f8b;
  --accent-fg: #ffffff;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --surface: #15181d;
    --border: #262b33;
    --fg: #eceef1;
    --muted: #9aa2ad;
    --accent: #6fb3dd;
    --accent-fg: #0d0f12;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--fg);
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 680;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 640;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 640;
}

p { margin: 0 0 16px; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 62ch;
}

.muted { color: var(--muted); }

a { color: var(--accent); }

section { padding: 56px 0; }

section + section { border-top: 1px solid var(--border); }

.hero { padding: 72px 0 56px; }

/* ---------- layout helpers ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.card p:last-child { margin-bottom: 0; }

.prose { max-width: 68ch; }

.prose ul { padding-left: 20px; }

.prose li { margin-bottom: 8px; }

/* ---------- buttons ---------- */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}

.button.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

/* ---------- spec list ---------- */

.spec {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.spec dt {
  font-weight: 620;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.spec dd {
  margin: 0 0 16px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav {
  margin-bottom: 14px;
  gap: 18px;
}

footer p { margin: 0 0 6px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .hero { padding: 52px 0 44px; }
}
