/*
 * Static site styles.
 *
 * No build step and no dependencies on purpose: these pages exist to be a
 * stable target for the extension's legal links and Stripe's return URLs, and
 * the worst outcome would be a privacy policy that fails to load because a
 * bundler config drifted.
 */

:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --border: #e4e4de;
  --text: #1a1a19;
  --text-muted: #5f5f58;
  --accent: #4f46e5;
  --highlight: #ffd54f;
  --radius: 10px;
  --measure: 68ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --surface: #1b1b1a;
    --border: #302f2d;
    --text: #ededea;
    --text-muted: #a3a39b;
    --accent: #a5b4fc;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.bar,
main,
footer .inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--highlight);
  flex-shrink: 0;
}

.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

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

main {
  padding-top: 48px;
  padding-bottom: 72px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

p,
li {
  color: var(--text-muted);
}

main > p:first-of-type {
  font-size: 18px;
  color: var(--text);
}

strong {
  color: var(--text);
  font-weight: 600;
}

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

.lede {
  font-size: 18px;
}

.updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  color: var(--text-muted);
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 24px 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.todo {
  border-color: var(--highlight);
  background: color-mix(in srgb, var(--highlight) 12%, var(--surface));
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
}

footer .inner {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

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