/* Methodology page. Same palette and system type as the app (site/app/app.css)
   so the two read as one site. System font stacks only -- zero font
   requests, part of why this page should come in Lighthouse-fast. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #15181c;
  --text-soft: #4a5058;
  --text-faint: #666b71; /* 4.9:1 on --bg (WCAG AA); was #7c8187 = 3.6:1 */
  --rule: #cbc9c0;
  --accent: #0f6b55;
  --accent-tint: #e3f1ec;
  --steel: #0f6b55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --surface: #1a1d1b;
    --text: #ecebe5;
    --text-soft: #b2b7bc;
    --text-faint: #7f858b;
    --rule: #343a40;
    --accent: #4fc7a2;
    --accent-tint: #1d2f29;
    --steel: #4fc7a2;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  letter-spacing: -.015em;
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.25;
}
h1 { font-size: 30px; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid var(--rule); }
h2:first-of-type, hr + h2 { border-top: none; padding-top: 0; margin-top: 0; }
h3 { font-size: 16.5px; margin: 26px 0 10px; color: var(--text); }

p, li { font-size: 16px; }
p { margin: 0 0 14px; max-width: 68ch; }
ul, ol { max-width: 68ch; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--steel); text-decoration-color: color-mix(in srgb, var(--steel) 45%, transparent); }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 700; }

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-tint);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

blockquote {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--text-soft);
}

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-family: ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
}
th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}
td:has(code), td code { font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .page { padding: 32px 16px 72px; }
  h1 { font-size: 25px; }
  h2 { font-size: 19px; }
}

.cta { margin: 36px 0 8px; }
.cta-btn { display: inline-block; background: var(--steel); color: var(--surface); font-weight: 650; text-decoration: none; padding: 14px 22px; border-radius: 14px; }
@media (prefers-color-scheme: dark) { .cta-btn { color: #0b1411; } }

/* Footer links on content pages, and the /opt-out/ form. */
.site-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-faint); }
.site-foot a { color: var(--accent); display: inline-block; padding: 8px 0; }
.oo { margin: 24px 0 8px; display: grid; gap: 6px; }
.oo label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.oo input { font: inherit; font-size: 17px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--text); width: 100%; }
.oo input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.oo button { border: 0; font: inherit; font-weight: 650; cursor: pointer; margin-top: 10px; min-height: 48px; justify-self: start; }
.oo button:disabled { opacity: .6; cursor: default; }
.oo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oo-msg { min-height: 1.4em; margin: 4px 0 0; color: var(--text-soft); }
.oo-done { background: var(--accent-tint); padding: 14px 16px; border-radius: 12px; margin: 0; }
.oo-fine { font-size: 14px; color: var(--text-soft); }
.oo + h2 { margin-top: 40px; }
.nw { white-space: nowrap; }
