/*
 * The Spyglass site, in one stylesheet.
 *
 * The same small system as the app (apps/mobile/src/theme.ts): dark, one
 * accent, system font, hairlines instead of outlines. No fonts fetched, no
 * scripts, no analytics, no cookies — a site for an app whose whole claim is
 * that it collects nothing cannot itself collect anything.
 */
:root {
  --bg: #0b0f14;
  --surface: #131a22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #8b98a5;
  --accent: #60a5fa;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 16px gutters on a phone, one readable column, never wider than a page. */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

@media (min-width: 700px) {
  main { padding-top: 88px; }
}

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover, a:focus-visible { text-decoration: underline; }

h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  margin: 40px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

p { margin: 16px 0 0; }

ul { margin: 16px 0 0; padding-left: 22px; }
li { margin-top: 10px; }
li::marker { color: var(--muted); }

.tagline { margin-top: 4px; color: var(--muted); font-size: 19px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* The "← Spyglass" link above a document, and the rule under a page head. */
.back { display: inline-block; margin-bottom: 28px; font-size: 15px; }

.links { margin-top: 36px; padding: 0; list-style: none; }
.links li { margin-top: 0; }
.links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-height: 44px; /* the app's tap target, kept here too */
}
.links li:first-child a { border-top: 1px solid var(--line); }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* The links list already ends on a hairline; a second one under a gap reads
   as an empty row. */
.links + footer {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}

footer p { margin-top: 8px; }
footer p:first-child { margin-top: 0; }
