/* OpenStrap legal-docs site — minimal, no build step, no framework.
   Shared by index.html / privacy.html / terms.html / notice.html. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #5a5a5a;
  --border: #e2e2e2;
  --surface: #f6f6f4;
  --accent: #b5482f;
  --banner-bg: #fdf1ea;
  --banner-border: #e8b895;
  --banner-fg: #7a3a12;
  --link: #b5482f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a;
    --fg: #ececec;
    --fg-muted: #a3a3a8;
    --border: #333238;
    --surface: #201f24;
    --accent: #e2825f;
    --banner-bg: #2b2018;
    --banner-border: #5a3c26;
    --banner-fg: #f0b48e;
    --link: #e2825f;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

nav.pages {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav.pages a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.pages a:hover {
  color: var(--fg);
}

nav.pages a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--fg);
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

.updated {
  color: var(--fg-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.banner {
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  color: var(--banner-fg);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
}

.banner .sub {
  font-weight: 400;
  display: block;
  margin-top: 4px;
  color: var(--banner-fg);
  opacity: 0.9;
}

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

.placeholder {
  color: var(--fg-muted);
  font-style: italic;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
}

.index-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.index-links a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  transition: border-color 0.15s ease;
}

.index-links a:hover {
  border-color: var(--accent);
}

.index-links span {
  display: block;
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 4px;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
}

footer.site a {
  color: var(--fg-muted);
}

strong {
  font-weight: 600;
}

/* ── Landing page (index.html) ────────────────────────────────────────────
   Everything below is used only by the landing page. The legal pages keep
   the plain document styling above. */

.fineprint {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero {
  padding: 8px 0 4px;
}

.hero h1 {
  font-size: clamp(28px, 5.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.lede {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.cta {
  display: block;
  flex: 1 1 220px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 650;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cta:hover {
  border-color: var(--accent);
}

.cta span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.cta.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cta.primary span {
  color: rgba(255, 255, 255, 0.82);
}

.cta.primary:hover {
  filter: brightness(1.08);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 44px 0 10px;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.shots figcaption {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 8px;
}

.shots-note {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.card h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
}

.honest ul {
  padding-left: 20px;
}

.honest li {
  margin-bottom: 10px;
  color: var(--fg-muted);
}

.honest li strong {
  color: var(--fg);
}

.pipeline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow-x: auto;
  white-space: nowrap;
}

.addr {
  margin: 0 0 16px;
}

.addr dt {
  font-weight: 650;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 12px;
}

.addr dd {
  margin: 4px 0 0;
}

.addr code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
}

/* Qualifying fineprint inside a card — separated from the claim it qualifies,
   so it reads as a footnote rather than a continuation of the paragraph. */
.card p + .fineprint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── Star-history + donation block (landing page) ─────────────────────────── */

.growth {
  margin-top: 48px;
}

.growth img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}

/* The donation block is deliberately the loudest thing on the page after the
   install buttons — the addresses used to sit as plain text at the bottom and
   nobody noticed them. */
.donate {
  margin-top: 48px;
  padding: 26px 24px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
}

.donate h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.donate-lede {
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.donate .addr dt:first-of-type {
  margin-top: 0;
}

.donate .fineprint {
  margin-bottom: 0;
}

.donate .fineprint + .fineprint {
  margin-top: 10px;
}

/* Long hex/bech32 strings must never widen the page on a phone. */
.addr code {
  word-break: break-all;
  white-space: normal;
}

/* ── Press strip ──────────────────────────────────────────────────────────
   Sits directly under the hero: third-party corroboration is worth more than
   another paragraph of our own claims, so it goes above the screenshots. */
.press {
  margin: 44px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.press .eyebrow {
  display: block;
  margin-bottom: 14px;
}

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

.press figure {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.press blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
}

/* Quote mark as a hanging accent rather than a decorative glyph blob. */
.press blockquote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 28px;
  line-height: 0;
  vertical-align: -0.15em;
  margin-right: 2px;
}

.press figcaption {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.press figcaption a {
  font-weight: 650;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.press figcaption a:hover { color: var(--accent); }

.press figcaption span {
  color: var(--fg-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.press > .fineprint { margin: 14px 0 0; }
