/* Styles for the written pages (about, guide, privacy). Tokens: theme.css */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 24px 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.wordmark svg { width: 20px; height: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
}
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

#theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--icon);
  cursor: pointer;
}
#theme-toggle:hover { background: var(--surface-hover); color: var(--icon-strong); }
#theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] #theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) #theme-toggle .icon-moon { display: none; }
}

/* ---------- prose ---------- */

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.022em;
}
.lede {
  margin: 0 0 44px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
}
h2 {
  margin: 52px 0 14px;
  font-size: 22px;
  letter-spacing: -.015em;
}
h3 {
  margin: 32px 0 8px;
  font-size: 17px;
  letter-spacing: -.005em;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--text); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
strong { font-weight: 650; }

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}

table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  padding: 9px 12px 9px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 650; color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.callout p:last-child { margin-bottom: 0; }

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cta:hover { opacity: .88; color: var(--bg); }

/* ---------- faq ---------- */

.faq h3 { margin-top: 30px; }
.faq p { color: var(--text-dim); }

/* ---------- footer ---------- */

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--text-dim);
}
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .spacer { margin-left: auto; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .site-nav { gap: 14px; font-size: 13px; }
}
