/* Grit website. Plain CSS, no build step. Colours are tokens on :root,
   redefined for dark mode below. Inter is self-hosted (SIL OFL, see fonts/LICENSE.txt). */
@font-face { font-family: "Inter"; src: local("Inter Regular"), local("Inter-Regular"), url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: local("Inter ExtraBold"), local("Inter-ExtraBold"), url("/fonts/Inter-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --surface-2: #EEEDE8;
  --ink: #1B1B1A;
  --text: #1B1B1A;
  --muted: #5E5D58;
  --line: #E2E0DA;
  --tile: #1B1B1A;
  --tile-fg: #FFFFFF;
  --tile-line: transparent;
  --btn-bg: #1B1B1A;
  --btn-fg: #FFFFFF;
  --accent: #F5B700;
  --focus: #1B1B1A;
  --shadow: 0 1px 2px rgba(27, 27, 26, 0.06), 0 8px 24px rgba(27, 27, 26, 0.06);
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141413;
    --surface: #1F1F1D;
    --surface-2: #262624;
    --text: #F6F5F2;
    --muted: #B3B1AA;
    --line: #33322F;
    --tile: #1B1B1A;
    --tile-fg: #FFFFFF;
    --tile-line: #45443F;
    --btn-bg: #F6F5F2;
    --btn-fg: #1B1B1A;
    --focus: #F5B700;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1F1F1D;
  --surface-2: #262624;
  --text: #F6F5F2;
  --muted: #B3B1AA;
  --line: #33322F;
  --tile: #1B1B1A;
  --tile-fg: #FFFFFF;
  --tile-line: #45443F;
  --btn-bg: #F6F5F2;
  --btn-fg: #1B1B1A;
  --focus: #F5B700;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
strong { font-weight: 800; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* The Grit mark: a white G in a charcoal rounded tile */
.mark { width: 32px; height: 32px; flex: none; }
.mark rect { fill: var(--tile); stroke: var(--tile-line); stroke-width: 2; }
.mark path { fill: var(--tile-fg); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: none; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
@media (min-width: 720px) { .nav a:not(.btn) { display: inline-flex; } .nav .btn { margin-left: 8px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  font-weight: 800; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); filter: none; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 96px; } .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { font-size: clamp(38px, 9vw, 68px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 20px; }
.lede { font-size: clamp(18px, 2.4vw, 20px); color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.lede strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Example draft card (illustration built in HTML) */
.draft { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; max-width: 460px; width: 100%; justify-self: center; }
.draft .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.draft .who b { color: var(--text); font-weight: 800; }
.draft .who .mark { width: 28px; height: 28px; }
.draft .msg { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.draft .meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.draft .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.draft .acts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 800; border: 1px solid var(--line); }
.draft .acts .ok { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.draft figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 14px; }
.section .sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin-bottom: 36px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature h3 .num { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }
.feature.assist { background: var(--ink); color: #F6F5F2; border-color: var(--ink); }
.feature.assist p { color: #C9C7C0; }
.feature.assist .num { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature.assist { background: var(--surface-2); border-color: var(--tile-line); } }
:root[data-theme="dark"] .feature.assist { background: var(--surface-2); border-color: var(--tile-line); }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.rules li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.rules li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--accent); flex: none; }

.pilot { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px; display: grid; gap: 20px; }
@media (min-width: 720px) { .pilot { padding: 48px; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; } }
.pilot h2 { margin-bottom: 12px; }
.pilot p { color: var(--muted); margin: 0; }
.pilot .how { display: grid; gap: 12px; }
.pilot .how .addr { font-size: 15px; color: var(--muted); }
.pilot .how .btn { width: 100%; }

/* Documents (privacy, terms, SMS terms, support) */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 7vw, 48px); margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 84px; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc li ul { margin-top: 8px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; font-size: 16px; }
.note p:last-child { margin-bottom: 0; }
.cards { display: grid; gap: 16px; margin: 0 0 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h2 { margin: 0 0 8px; font-size: 19px; }
.card p { color: var(--muted); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.big404 { font-size: clamp(64px, 18vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 12px; }
@media (min-width: 720px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot .made { display: flex; align-items: center; gap: 10px; }
.foot .made .mark { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
