/* The palette and the two voices come from the app's Theme.swift, so the site
   and the app read as one product: rounded sans for the prose, monospace for
   anything that is SQL. */
:root {
  --background: #edf0fa;
  --surface: #ffffff;
  --surface-sunken: #e2e7f6;
  --text-primary: #141a38;
  --text-secondary: #5d6790;
  --accent: #3a6ff7;
  --accent-deep: #2a4fbf;
  --success: #16b37b;
  --trail: #c3cbe4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c1026;
    --surface: #171e3e;
    --surface-sunken: #121838;
    --text-primary: #e9edff;
    --text-secondary: #9aa3cc;
    --accent: #5b8cff;
    --accent-deep: #3459c4;
    --success: #2acf95;
    --trail: #2c3560;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: ui-rounded, -apple-system, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code,
pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

code {
  background: var(--surface-sunken);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  padding: 28px 0;
}

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

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-primary);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
}

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

.hero {
  padding: 40px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 40ch;
}

.query {
  display: inline-block;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--trail);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--accent);
  text-align: left;
}

.shots {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0 56px;
}

.shots img {
  width: 220px;
  max-width: 70vw;
  border-radius: 22px;
  border: 1px solid var(--trail);
  display: block;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.feature {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

article h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

article h2 {
  font-size: 21px;
  margin: 36px 0 8px;
}

article .updated {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 0;
}

article ul {
  padding-left: 22px;
}

article li {
  margin-bottom: 8px;
}

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

footer.site {
  border-top: 1px solid var(--trail);
  margin-top: 56px;
  padding: 24px 0 48px;
  color: var(--text-secondary);
  font-size: 15px;
}

footer.site a {
  color: var(--text-secondary);
  margin-right: 18px;
}
