/* ============================================================
   familyaicouncil.org
   ------------------------------------------------------------
   Charter section 8 requires the Council read as independent,
   and section 11 says it is "not a marketing asset". So this
   site deliberately does NOT wear Qbit's product identity: no
   creature, no gradient pill, no Qbit blue as the accent. It
   is set as an institution, in ink and paper with a single
   brass accent, and Qbit appears only where the relationship
   has to be disclosed.

   Brand law still applies to the words: no em dashes, en
   dashes or double hyphens in copy; Qbit is "she"; assistant,
   never companion; we say protected and private, never the
   banned adjective; and nothing anywhere may read as a
   certification, accreditation or seal, because the Council
   issues none.

   Theming is three-state, same contract as the app: bare
   :root is light, the media query carries dark for anyone who
   never chose, and the data-theme stamps let a choice win in
   either direction.
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #faf8f4;
  --paper-raised: #ffffff;
  --paper-sunk: #f2efe8;
  --ink: #14181f;
  --ink-soft: #4a5260;
  --ink-faint: #616a78;
  --rule: #e0dbd1;
  --accent: #8a6636;
  --accent-soft: #b08a51;
  --accent-strong: #6d5029;

  /* Qbit's own blue, used ONLY in the disclosure. */
  --qbit-brand: #006ba8;

  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 44px);
  --band: clamp(56px, 8vw, 104px);

  --serif: "Newsreader", Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --s--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --s-0:  clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --s-1:  clamp(1.14rem, 1.08rem + 0.3vw, 1.32rem);
  --s-2:  clamp(1.44rem, 1.28rem + 0.8vw, 1.95rem);
  --s-3:  clamp(1.9rem, 1.5rem + 1.9vw, 3.05rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #101319;
    --paper-raised: #171b23;
    --paper-sunk: #0b0e13;
    --ink: #e9e5dd;
    --ink-soft: #a8b0bd;
    --ink-faint: #838c9a;
    --rule: #272c36;
    --accent: #c9a06a;
    --accent-soft: #a5814f;
  --accent-strong: #e0bd8a;
  --qbit-brand: #4aa8e8;
    --accent-strong: #e0bd8a;
    --qbit-brand: #4aa8e8;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101319;
  --paper-raised: #171b23;
  --paper-sunk: #0b0e13;
  --ink: #e9e5dd;
  --ink-soft: #a8b0bd;
  --ink-faint: #838c9a;
  --rule: #272c36;
  --accent: #c9a06a;
  --accent-soft: #a5814f;
  --accent-strong: #e0bd8a;
  --qbit-brand: #4aa8e8;
}

*, *::before, *::after { box-sizing: border-box; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--s-3); letter-spacing: -0.015em; }
h2 { font-size: var(--s-2); letter-spacing: -0.01em; }
h3 { font-size: var(--s-1); }
p { margin: 0; max-width: var(--measure); }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--s--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
html { scroll-padding-top: 84px; }

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  padding-block: 20px;
}
.wordmark {
  font-family: var(--serif);
  font-size: var(--s-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.masthead nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: var(--s--1);
}
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); }

/* ---------- Status notice ---------- */
.notice {
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--rule);
  font-size: var(--s--1);
  color: var(--ink-soft);
}
.notice p { padding-block: 12px; max-width: none; }
.notice strong { color: var(--ink); }

/* ---------- Bands ---------- */
section { padding-block: var(--band); }
.band--sunk { background: var(--paper-sunk); border-block: 1px solid var(--rule); }
.band__head { margin-bottom: 38px; }
.band__head p { color: var(--ink-soft); font-size: var(--s-1); margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 10vw, 128px); }
.hero h1 { max-width: 20ch; }
.hero__lede {
  margin-top: 22px;
  font-size: var(--s-1);
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 34px;
}

/* ---------- Buttons ----------
   Squared, not the app's 999px pill. The pill is Qbit's
   product signature and this body is not the product. */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: var(--s-0);
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 140ms ease, color 140ms ease;
}
.btn--solid { background: var(--accent); color: var(--paper); }
.btn--solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--paper); }

/* ---------- Numbered list ----------
   Numbers are used ONLY here, where the charter itself
   enumerates four obligations. They carry meaning, not decor. */
.obligations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
  counter-reset: ob;
}
@media (min-width: 760px) { .obligations { grid-template-columns: repeat(2, 1fr); gap: 38px 46px; } }
.obligations li { counter-increment: ob; padding-left: 52px; position: relative; }
.obligations li::before {
  content: counter(ob, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--serif);
  font-size: var(--s-1);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.obligations h3 { margin-bottom: 6px; }
.obligations p { color: var(--ink-soft); }

/* ---------- Tier cards ---------- */
.tiers { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

/* One tile rule for every tile on this site. A new tile joins
   this selector list rather than copying these numbers. */
.tiers li,
.plainly li {
  padding: 26px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.tiers h3 { margin-bottom: 10px; }
.tiers p { color: var(--ink-soft); font-size: var(--s--1); }
.tiers .count {
  display: block;
  font-size: var(--s--1);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Plain statements ---------- */
.plainly { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .plainly { grid-template-columns: repeat(2, 1fr); } }
.plainly li { color: var(--ink-soft); font-size: var(--s--1); }
.plainly strong { display: block; color: var(--ink); margin-bottom: 5px; font-size: var(--s-0); }

/* ---------- Pull statement ---------- */
.pull {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: var(--s-1);
  color: var(--ink);
}

/* ---------- Join ---------- */
.join__grid { display: grid; gap: 34px; align-items: start; }
@media (min-width: 900px) { .join__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.join__list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.join__list li { margin-bottom: 9px; }

/* ---------- Footer ---------- */
.colophon {
  border-top: 1px solid var(--rule);
  padding-block: 44px;
  font-size: var(--s--1);
  color: var(--ink-faint);
}
.colophon__grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.colophon h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: var(--s--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 7px; }
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--accent); }
.colophon__legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
.colophon__legal p { max-width: none; margin-bottom: 5px; }
.disclosure a { color: var(--qbit-brand); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Chapters, forms and the pages added 2026-09-10
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.masthead nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { display: block; }

/* ---------- Chapter finder ---------- */
.chapter-finder { max-width: 640px; }
.chapter-finder input {
  width: 100%; min-height: 52px; padding: 12px 18px; font-size: 16px;
  color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: 4px;
}
.chapter-results { margin-top: 20px; }
.chapter-empty {
  padding: 28px; background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: 6px;
}
.chapter-empty h3 { margin: 0 0 8px; }
.chapter-empty p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- Forms ----------
   Squared inputs to match the squared buttons: this body is not the
   product and does not wear the product's pill. */
.council-form { max-width: 780px; }
.field-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field--wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--s--1); font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent); }
.field .hint { font-size: var(--s--1); color: var(--ink-faint); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: 4px;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field .err { font-size: var(--s--1); color: #b3261e; }

.commitments {
  margin: 34px 0 0; padding: 24px; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--paper-raised);
}
.commitments legend {
  padding: 0 8px; font-family: var(--serif); font-size: var(--s-1); font-weight: 600;
}
.commitments__lede { color: var(--ink-soft); font-size: var(--s--1); margin-bottom: 14px; }
.commitments ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-soft); }
.commitments li { margin-bottom: 8px; }
.agree { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.agree span { font-weight: 600; color: var(--ink); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-status { margin: 0; font-size: var(--s--1); color: var(--ink-soft); }
.form-status[data-state="err"] { color: #b3261e; }
.form-status[data-state="ok"] { color: var(--accent); font-weight: 600; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.form-done {
  padding: 28px; border-left: 3px solid var(--accent);
  background: var(--paper-raised); border-radius: 0 6px 6px 0;
}
.form-done h3 { margin: 0 0 8px; }
.form-done p { color: var(--ink-soft); }

/* Honeypot: off-screen rather than display:none, because some form
   fillers skip anything with display:none but still fill this. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
