/* Shared styling for the public pages.
 *
 * No web fonts and no scripts: the CSP forbids both, and a page whose whole
 * claim is "we load nothing about you" should not begin by fetching a font
 * from someone else's CDN. System stacks only. */

:root {
  color-scheme: light dark;

  --paper: #fbfaf7;
  --raised: #ffffff;
  --ink: #16171b;
  --ink-soft: #565a63;
  --ink-faint: #83878f;
  --rule: #e4e2dc;
  --accent: #1f4fa3;
  --accent-soft: #eef2fa;
  --yes: #1f6b45;
  --no: #9a3630;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101216;
    --raised: #161920;
    --ink: #e9eaee;
    --ink-soft: #a0a6b2;
    --ink-faint: #767c88;
    --rule: #262a33;
    --accent: #8fb3f5;
    --accent-soft: #171d2a;
    --yes: #6cc39a;
    --no: #e08b85;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* --- masthead --- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.masthead nav {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.masthead nav a { margin-left: 1.1rem; }

/* --- type --- */

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  text-wrap: pretty;
}

h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 3rem 0 0.85rem;
}

h3 {
  font-size: 0.97rem;
  font-weight: 650;
  margin: 1.6rem 0 0.4rem;
}

p { margin: 0 0 1rem; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 650; }

code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--accent-soft);
  padding: 0.12em 0.36em;
  border-radius: 4px;
}

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

/* --- feature list --- */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.features h3 { margin: 0 0 0.15rem; }
.features p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* --- the visibility ledger: the substantive part of the page --- */

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0 0.75rem;
}

@media (max-width: 34rem) {
  .ledger { grid-template-columns: 1fr; }
}

.ledger section {
  background: var(--raised);
  padding: 1.15rem 1.25rem 1.35rem;
}

.ledger h3 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 650;
}

.ledger .can h3 { color: var(--no); }
.ledger .cannot h3 { color: var(--yes); }

.ledger ul { list-style: none; padding: 0; margin: 0; }

.ledger li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.42rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ledger li::before {
  position: absolute;
  left: 0;
  top: -0.02em;
  font-weight: 700;
}

.ledger .can li::before { content: "•"; color: var(--no); }
.ledger .cannot li::before { content: "\2013"; color: var(--yes); }

.caption {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0;
}

/* --- status --- */

.status-note {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.4rem 0 0;
}

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

/* --- definition rows, used on the privacy page --- */

.rows { margin: 1.2rem 0 0; }

.row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.row:last-child { border-bottom: 1px solid var(--rule); }

@media (max-width: 34rem) {
  .row { grid-template-columns: 1fr; gap: 0.2rem; }
}

.row dt { font-weight: 650; font-size: 0.94rem; }
.row dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* --- footer --- */

footer {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.89rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a { color: var(--ink-soft); }

/* Long hex digests: wrap anywhere rather than forcing the page to scroll. */
.status-note code {
  font-size: 0.8rem;
  word-break: break-all;
}

.mono-small {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
