/* zagel.asamy.net. Dusk-sky palette; the gold gradient is the file in flight. */
:root {
  --sky: #F4F7FB;
  --sky-2: #E8EEF6;
  --panel: #FFFFFF;
  --ink: #0F1B2D;
  --muted: #5B6B80;
  --line: #DCE4EE;
  --gold: #A65C10;
  --grad: linear-gradient(135deg, #E9B44C 0%, #E0712C 100%);
  --on-grad: #2A1A07;
  --ok: #2E7D4F;
  --device: #FFFFFF;
  --device-edge: #C9D4E2;
  --shadow: 0 24px 60px -24px rgba(15, 27, 45, .28);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0B1422;
    --sky-2: #111D2F;
    --panel: #142236;
    --ink: #E8EEF6;
    --muted: #93A3B8;
    --line: #1F2D42;
    --gold: #F0B455;
    --ok: #5DBB82;
    --device: #17263B;
    --device-edge: #2A3B53;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 17px/1.6 var(--text); }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #E0712C; outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; z-index: 10; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; white-space: nowrap; }
@media (max-width: 480px) { .top nav a:first-child { display: none; } }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(42px, 7.4vw, 84px); line-height: .98; font-weight: 800; font-stretch: 92%; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; font-weight: 750; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin: 22px 0 0; }
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section > .wrap > h2 { max-width: 18ch; }
.intro { color: var(--muted); max-width: 56ch; margin: 16px 0 0; }

/* ---------- buttons and badges ---------- */
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--grad); color: var(--on-grad); font-weight: 650; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.badge img { display: block; height: 48px; width: auto; }
.badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
/* Direct downloads (Mac, Windows), sized and styled like the App Store and Google Play badges beside them. */
.dl { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px 0 12px; box-sizing: border-box;
  background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 8px; text-decoration: none; }
.dl svg { width: 28px; height: 28px; flex: none; }
.dl span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.dl small { font-size: 11px; font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }
a.dl:hover { background: #1a1a1a; }
.dl.pending { cursor: default; user-select: none; }
.note { font-size: 14px; color: var(--muted); }
.state { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sky-2); color: var(--muted); }

/* The home page sections live in home.css. */

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }

/* ---------- legal and support pages ---------- */
.doc { max-width: 720px; padding: 32px 0 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc li { margin: 6px 0; }
