/* Shared chrome for the hellochango.com disclosure pages.
   Palette is lifted from client/lib/theme/tokens.dart so a reviewer moving
   between the app and these pages sees one product. */

:root {
  --bg: #0d1a26;          /* AppColors.dark   — app background */
  --raised: #1a2633;      /* AppColors.darkBlue — raised surfaces */
  --primary: #2196f3;     /* AppColors.primary */
  --muted: #94abc7;       /* AppColors.mutedOnDark — 7.4:1 on --bg */
  --on-dark: #ffffff;
  --rule: rgba(148, 171, 199, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  /* The policy is prose and nothing else; a measure this wide is the whole
     readability story on a phone held one-handed. */
  max-width: 44rem;
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
}

a { color: var(--primary); }
a:hover { color: var(--on-dark); }

header { margin-bottom: 2.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

h1 {
  color: var(--on-dark);
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h2 {
  color: var(--on-dark);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

/* The lead paragraph carries the one-sentence summary; it should read as a
   statement rather than as the first of many. */
.lead {
  color: var(--on-dark);
  font-size: 1.125rem;
  line-height: 1.6;
}

p { margin: 0 0 1rem; }

.updated {
  font-size: 0.9375rem;
  color: var(--muted);
  opacity: 0.75;
  margin: 0;
}

.card {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.375rem;
  margin: 1.5rem 0;
}

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

.contact {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--on-dark);
  word-break: break-word;
}

ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  opacity: 0.8;
}

footer a { margin-right: 1.25rem; display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease; }
}

/* Utilities. These exist so no page needs a style attribute, which lets the
   site ship a Content-Security-Policy without 'unsafe-inline'. */
.tight { margin-top: 0.5rem; }
.card-links { margin-top: 0.75rem; margin-bottom: 0; }

/* A heading that opens a card has the card's own edge above it already. */
.card-title {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
