:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #52525b;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #f5f3ff;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --surface: #16161c;
    --border: #2a2a33;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-soft: #1c1729;
  }
}

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

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 64px 0 8px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 28px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.button:hover {
  background: var(--accent-hover);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #14101f;
  }
}

/* Content */

main {
  padding-bottom: 56px;
}

section {
  padding-top: 44px;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

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

ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

li {
  margin-bottom: 10px;
}

strong {
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0 0;
}

/* Feature cards */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.card .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

/* Callout used for the Google data section */

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.callout h2 {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Legal pages */

.legal h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.legal section {
  padding-top: 32px;
}

.legal h2 {
  font-size: 1.2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Accessibility */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--bg);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 10;
}
