:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #57534e;
  --accent: #2563eb;
  --rule: #e7e5e4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #f5f5f4;
    --muted: #a8a29e;
    --accent: #93b4ff;
    --rule: #292524;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 4rem; }

h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2.5rem 0 .5rem; }
.tagline { color: var(--muted); font-size: 1.2rem; margin: 0; }

a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.links { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }

footer { border-top: 1px solid var(--rule); padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem; }
footer p { margin: 0; }

/* Keep the footer clear of mobile Safari's floating toolbar. */
@media (max-width: 640px) and (pointer: coarse) {
  footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

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