/* Email Triage — the public site.
   One hand-written stylesheet, no framework, no external font, no tracker. The
   site makes the same promise as the app: nothing here talks to anyone else. */

:root {
  --bg: #fbfaf8;
  --panel: #fff;
  --text: #1b1a18;
  --muted: #5f5b55;
  --faint: #8b867e;
  --line: #e4e0d8;
  --accent: #2f6f4f;
  --accent-ink: #fff;
  --high: #a4462f;
  --radius: 14px;
  --wide: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f;
    --panel: #1c1c16;
    --text: #f2efe8;
    --muted: #b3ada2;
    --faint: #837d72;
    --line: #2e2e26;
    --accent: #7ec29b;
    --accent-ink: #10140f;
    --high: #e08a72;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

main, .wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 40px;
}

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

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand .mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent);
  display: inline-block;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 14.5px;
}

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

h1 {
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 46px 0 12px;
}

h3 { font-size: 17px; margin: 26px 0 6px; }

p { margin: 0 0 14px; }

.lede { font-size: 18.5px; }
.lede strong { font-weight: 650; }

.fine { color: var(--muted); font-size: 14px; }

ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }

code, pre { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.price { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }
.price span { font-size: 14px; font-weight: 400; color: var(--muted); }

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

.cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 11px 19px;
  border-radius: 10px;
  font-weight: 600;
}

.cta:hover { filter: brightness(1.06); }

.no { color: var(--high); font-weight: 600; }

footer.site {
  margin-top: 64px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13.5px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer.site a { color: var(--faint); }

.toc { columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; }
.toc li { break-inside: avoid; }

@media (max-width: 620px) {
  .toc { columns: 1; }
  h1 { font-size: 27px; }
}
