/* Grays and accent are tuned to hold WCAG AA contrast (>= 4.5:1) on both
   --bg and --card in each scheme. */
:root {
  --bg: #ffffff;
  --text: #16181d;
  --muted: #565b66;
  --faint: #6b7280;
  --accent: #3364c5;
  --border: #e7e8ec;
  --card: #f5f6f9;
  --maxw: 720px;
}

/* Follow the OS light/dark preference. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #e6e8eb;
    --muted: #9aa0ab;
    --faint: #8b909c;
    --accent: #6aa3ff;
    --border: #222831;
    --card: #161b22;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text need more than color to stand out (WCAG 1.4.1). */
main p a, main li a { text-decoration: underline; text-underline-offset: 2px; }
.hero .cta a, .cta-actions a { text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Wordmark */
.wordmark { font-weight: 300; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.wordmark .tail { color: var(--faint); }

/* Header */
header.site { border-bottom: 1px solid var(--border); }
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
header.site .wordmark { font-size: 21px; }
header.site nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }

/* Document body */
main { padding: 48px 0 72px; }
h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 19px; font-weight: 600; margin: 34px 0 6px; }
.meta { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
p { margin: 12px 0; }
ul { padding-left: 22px; margin: 12px 0; }
li { margin: 7px 0; }
.lead { color: var(--muted); font-size: 17px; }
.note { color: var(--faint); font-size: 14px; }

/* Code blocks (guides) */
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
code { background: var(--border); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--border); padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 12px 0; }
pre code { background: none; padding: 0; }
.store-badge-inline { height: 64px; width: auto; }

/* Closing CTA card (guides) */
.cta-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px 26px; margin-top: 44px; }
.cta-card h2 { margin-top: 0; }
.cta-card .cta-actions { margin: 18px 0 0; }
.cta-card .cta-actions a:hover .store-badge-inline { opacity: 0.85; }

/* Landing hero */
.hero { text-align: center; padding: 96px 0 56px; }
.hero .big { font-size: 44px; font-weight: 300; letter-spacing: 4px; }
.hero .big .tm { font-size: 0.42em; vertical-align: super; color: var(--faint); letter-spacing: normal; }
.hero .tagline { color: var(--muted); font-size: 19px; max-width: 460px; margin: 20px auto 0; }
.hero .cta { margin-top: 30px; }
.hero .store-badge { height: 76px; width: auto; }
.hero .cta a:hover .store-badge { opacity: 0.85; }
.hero .soon { color: var(--faint); font-size: 15px; margin-top: 20px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 28px 0 48px; }
footer.site a { color: var(--muted); margin-right: 18px; font-size: 14px; }
footer.site .copy { color: var(--faint); font-size: 13px; margin-top: 14px; }
