:root {
  --teal: #30b0c7;
  --ink: #1c1c1e;
  --muted: #5c5c63;
  --paper: #ffffff;
  --tile-bg: #ffffff;
  --tile-border: rgba(28, 28, 30, 0.8);
  --link: #0a7f93;
  --font-rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #40c8e0;
    --ink: #f2f2f7;
    --muted: #aeaeb2;
    --paper: #1c1c1e;
    --tile-bg: #000000;
    --tile-border: rgba(242, 242, 247, 0.8);
    --link: #64d2ff;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

/* Home: mirrors the app's WelcomeView. */

body.home {
  background: var(--teal);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 16px;
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: inherit;
}

.tiles {
  display: flex;
  gap: 4px;
}

.tiles span {
  --size: clamp(30px, 9vw, 48px);
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: calc(var(--size) * 0.55);
  background: var(--tile-bg);
  border: 1.5px solid var(--tile-border);
  border-radius: 6px;
}

.tagline {
  font-size: 1.25rem;
  margin: 0;
}

.byline {
  font-family: var(--font-rounded);
  margin: -12px 0 0;
}

.download {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.download:hover { opacity: 0.85; }

/* Footer, on every page. */

.site-footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.home .site-footer a { color: inherit; }

.site-footer p { margin: 0; opacity: 0.75; }

/* Legal pages. */

.legal-header {
  background: var(--teal);
  padding: 16px;
}

.legal-header a {
  font-family: var(--font-rounded);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 16px;
}

.legal h1 { line-height: 1.2; margin-bottom: 4px; }

.legal h2 { font-size: 1.2rem; margin-top: 32px; }

.legal .updated { color: var(--muted); margin-top: 0; }
