:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #1d4ed8;
  --accent-soft: #e8efff;
  --ok: #047857;
  --ok-soft: #e6f6ef;
  --no: #b91c1c;
  --no-soft: #fdecec;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a21; --fg: #e9ecf1; --muted: #a3abb8; --line: #2a2f3a;
    --accent: #8ab4f8; --accent-soft: #1b2740; --ok: #6ee7b7; --ok-soft: #0f2a21; --no: #fca5a5; --no-soft: #341a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a21; --fg: #e9ecf1; --muted: #a3abb8; --line: #2a2f3a;
  --accent: #8ab4f8; --accent-soft: #1b2740; --ok: #6ee7b7; --ok-soft: #0f2a21; --no: #fca5a5; --no-soft: #341a1a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--fg); letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.site-header nav a { margin-left: 20px; color: var(--muted); font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); text-decoration: none; }

/* main */
main { flex: 1; }
.hero { padding: 48px 0 24px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 20px; max-width: 64ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

.attribution { display: flex; align-items: center; gap: 16px; margin: 28px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
/* Google's PNG is 700x250 with built-in clear space; the logo itself is ~25% of the height */
.attribution img { height: 100px; width: auto; display: block; margin: -14px 0; }
.attribution p { margin: 0; color: var(--muted); }

h2 { font-size: 1.25rem; margin: 34px 0 14px; letter-spacing: -.005em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 6px 0; color: var(--fg); }
.pill { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--no-soft); color: var(--no); }

.contact { margin: 10px 0 40px; color: var(--muted); }

/* long-form pages */
.doc { padding: 40px 0 48px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--fg); }
.doc ul { padding-left: 20px; }
.doc .card { margin-top: 10px; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding: 18px 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .site-header nav a { margin-left: 14px; }
  .attribution { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 32px; }
}
