:root {
  --linen: #F6ECE3;
  --ink: #272727;
  --muted: #4A4A4A;      /* 7.6:1 on linen; was #5D5D5D */
  --line: #B0B0B0;       /* decorative rules only */
  --field: #767676;      /* form control borders, 3.9:1 on linen */
  --rust: #932F2F;
  --rust-dark: #7B2626;
  --gutter: #E2E0DC;
  --paper: #F6ECE3;
  --white: #FFFDFB;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --measure: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--gutter);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.55;
  font-weight: 400;
}

::selection { background: var(--ink); color: var(--linen); }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }

/* Anchor targets clear the sticky header. */
[id] { scroll-margin-top: 88px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--ink);
  color: var(--linen);
  padding: 12px 16px;
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
}

.frame {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--linen);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }

/* ---------- Header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 40px;
  background: var(--linen);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.mark {
  width: 12px;
  height: 12px;
  background: var(--rust);
  display: inline-block;
  flex: none;
}

.nav nav {
  display: flex;
  gap: 4px 6px;
  flex-wrap: wrap;
}

.nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}

.nav nav a:hover { color: var(--rust); border-bottom-color: var(--line); }
.nav nav a[aria-current="page"] { border-bottom-color: var(--rust); }

main {
  padding: 56px 64px 88px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  text-align: left;
  max-width: 16em;
}

.home h1 {
  text-align: center;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 14em;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.home .kicker { text-align: center; }

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

.deck {
  font-size: 1.3rem;
  line-height: 1.45;
  max-width: var(--measure);
  margin: 24px 0 0;
}

.home .deck {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.lede {
  color: var(--muted);
  max-width: var(--measure);
}

.meta {
  color: var(--muted);
  margin-top: 10px;
}

.back {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
}
.back a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Buttons / CTAs ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}
.home .cta-row { justify-content: center; }

.btn,
button[type="submit"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--rust);
  color: var(--linen);
  border: 2px solid var(--rust);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover,
button[type="submit"]:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--linen); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--linen); }

.cta-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.home .cta-note { text-align: center; }

.jumps {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 36px 0 0;
}

.jumps a,
.link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- Home facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.facts article {
  border: 1px solid var(--line);
  border-top: 4px solid var(--rust);
  padding: 20px 20px 24px;
}

.facts .lbl {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.facts p {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* ---------- Jump nav ---------- */
.jumpnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 32px 0 0;
}
.jumpnav-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.jumpnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--field);
  background: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.jumpnav a:hover { border-color: var(--rust); color: var(--rust); }
.jumpnav .n {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.to-top {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
}
.to-top a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Candidates list ---------- */
.office { margin: 56px 0 0; }

.office h2 {
  font-size: 2rem;
  margin: 0 0 6px;
}

.office .count {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(9rem, auto);
  gap: 6px 24px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.person .name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  padding: 3px 8px;
  border: 1px solid var(--field);
}
.status.is-in {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--linen);
}
.status-line { margin: 18px 0 0; }

.web {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--field);
  justify-self: end;
  overflow-wrap: anywhere;
  padding: 10px 0;
}
.web:hover { color: var(--rust); text-decoration-color: currentColor; }
.meta .web { padding: 0; }

/* ---------- Questions page / answers / form cards ---------- */
.qset { margin-top: 8px; }

h2.section-head {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 64px 0 8px;
  padding-top: 20px;
  border-top: 4px solid var(--rust);
}
.section-note { color: var(--muted); margin: 0 0 8px; max-width: var(--measure); }

.qdoc, .qcard, .answer {
  border-top: 1px solid var(--line);
  padding: 28px 0 12px;
}

.qcard {
  border: 1px solid var(--line);
  padding: 24px 24px 22px;
  margin: 0 0 20px;
  background: rgba(255, 255, 255, 0.25);
}

.num {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.qdoc h3, .qcard h2, .answer h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 34em;
  letter-spacing: -0.01em;
}
.qcard h2 label { cursor: text; }

.ask, .follow, .choice-line, .words, .title-note {
  max-width: var(--measure);
}

.ask, .title-note, .follow {
  color: var(--ink);
  margin: 12px 0 0;
}

.follow { color: var(--muted); }
.then { font-family: var(--sans); font-weight: 700; color: var(--ink); }

ol.letters {
  list-style: upper-alpha;
  margin: 14px 0 0;
  padding-left: 1.6rem;
  max-width: var(--measure);
}

ol.letters li { padding: 4px 0; }

/* ---------- Form ---------- */
.howto {
  max-width: var(--measure);
  margin: 20px 0 28px;
  padding-left: 1.3rem;
}
.howto li { margin: 4px 0; }

.draft-note {
  border-left: 4px solid var(--ink);
  background: var(--white);
  padding: 12px 16px;
  margin: 0 0 22px;
  max-width: var(--measure);
}
.draft-note button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  color: var(--ink);
  min-height: 32px;
}

.choices { margin-top: 18px; }

.choice {
  display: grid;
  grid-template-columns: 28px 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 52px;
  padding: 14px 14px;
  border: 1px solid var(--field);
  background: var(--white);
  margin-top: -1px;
  cursor: pointer;
}
.choice:hover { border-color: var(--ink); position: relative; z-index: 1; }

.choice input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--rust);
  cursor: pointer;
}

.choice .letter {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
  padding-top: 2px;
}

.choice:has(input:checked) {
  border-color: var(--rust);
  box-shadow: inset 4px 0 0 var(--rust);
  background: #fff;
  position: relative;
  z-index: 2;
}
.choice:has(input:checked) .ctext { font-weight: 600; }
.choice:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  position: relative;
  z-index: 3;
}

.write { display: block; margin-top: 18px; }

.write .ask {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 500;
}
.qcard .ask + textarea, .qcard h2 + textarea, .qcard .field-err + textarea { margin-top: 12px; }

textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--field);
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  padding: 12px 14px;
  resize: vertical;
  border-radius: 0;
  min-height: 6rem;
}
textarea:hover { border-color: var(--ink); }
textarea[aria-invalid="true"] { border: 2px solid var(--rust); }

textarea:focus, input:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
textarea:focus { border-color: var(--ink); }

.limit, .count {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.count.is-over { color: var(--rust); font-weight: 500; }

.err {
  border: 2px solid var(--rust);
  border-left-width: 6px;
  background: var(--white);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 44rem;
  outline: none;
}
.err p { margin: 0; }
.err ul { margin: 10px 0 0; padding-left: 1.2rem; }
.err li { margin: 4px 0; }
.err a { color: var(--rust); font-weight: 700; }
.err:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
p.err { margin: 0 0 24px; }

.qcard.has-error { border: 2px solid var(--rust); }
.field-err {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--rust);
}

.submit-bar {
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.submit-bar button[type="submit"] { min-width: 16rem; }
.progress {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 600;
}
.progress:empty { display: none; }

.form-foot {
  margin-top: 12px;
  color: var(--muted);
  max-width: var(--measure);
}

/* ---------- Published answers ---------- */
.words {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  margin: 8px 0 0;
}

.choice-line {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 14px 0 0;
}
.picked {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--linen);
  background: var(--ink);
  padding: 2px 7px;
  margin-right: 6px;
  vertical-align: 2px;
}

/* ---------- Background (compiled from public sources, not the candidate) ---------- */
.background {
  margin: 48px 0 0;
  padding: 24px 24px 22px;
  max-width: 44rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--rust);
}
.bg-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--rust-dark);
  margin: 0 0 8px;
}
.background h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
}
.bg-note {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: var(--measure);
}
.bg-summary {
  font-size: 1.1875rem;   /* 19px, same as body */
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: var(--measure);
}
.bg-sources-head {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0 6px;
}
.bg-sources {
  margin: 0;
  padding-left: 1.6rem;
  font-size: 1rem;
  line-height: 1.45;
  max-width: var(--measure);
}
.bg-sources li { margin: 0 0 8px; padding-left: 2px; }
.bg-sources li::marker { color: var(--rust-dark); font-family: var(--mono); }
.bg-sources a { color: var(--rust-dark); overflow-wrap: anywhere; }
.bg-sources a:hover { color: var(--ink); }
.bg-sources a:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.bg-date { color: var(--muted); white-space: nowrap; }

/* ---------- At the forums (spoken words from recorded forums, transcribed by Forward Kelowna) ---------- */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.forums {
  margin: 48px 0 0;
  padding: 22px 0 0;
  max-width: 44rem;
  border-top: 4px solid var(--rust);
}
.fq-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--rust-dark);
  margin: 0 0 8px;
}
.forums h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; }
.fq-note {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: var(--measure);
}
.fq-count {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 8px 0 0;
}
.fq-forum { margin: 30px 0 0; }
.fq-forum h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.fq-meta {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 6px 0 0;
}
.fq-meta a { color: var(--rust-dark); display: inline-flex; align-items: center; min-height: 44px; }
.fq-meta a:hover { color: var(--ink); }
.fq-list { list-style: none; margin: 4px 0 0; padding: 0; }
.fq { margin: 0; padding: 18px 0 0; }
.fq figure { margin: 0; }
.fq-ask {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: var(--measure);
}
.fq blockquote {
  margin: 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--rust);
  max-width: var(--measure);
}
.fq blockquote p {
  font-family: var(--serif);
  font-size: 1.1875rem;   /* 19px, same as body */
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}
.fq figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 8px 0 0 21px;
  font-family: var(--sans);
  font-size: 1rem;
}
.fq-who { font-style: normal; color: var(--muted); }
.fq-who::before { content: "\2014\00a0"; }
.fq-time {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field);
  background: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.fq-time::before { content: "\25B6"; font-size: 11px; color: var(--rust); margin-right: 8px; }
.fq-time:hover { border-color: var(--rust); color: var(--rust); }
.fq-time:focus-visible, .fq-meta a:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 64px 48px;
}

.site-footer p { margin: 0 0 8px; color: var(--muted); max-width: var(--measure); font-size: 1rem; }

.foot-name {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer .foot-name { color: var(--ink); }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0 0 12px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
}

.prose p { max-width: var(--measure); font-size: 1.25rem; line-height: 1.5; }

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  main { padding: 36px 20px 64px; }
  .nav, .site-footer { padding-left: 20px; padding-right: 20px; }
  .facts { grid-template-columns: 1fr; margin-top: 40px; }
  .person { grid-template-columns: minmax(0, 1fr) auto; }
  .person .web, .person .web-none { grid-column: 1 / -1; justify-self: start; padding: 0 0 6px; }
  .person .web-none { display: none; }
  .qcard { padding: 18px 16px; }
  .background { padding: 18px 16px; border-left-width: 5px; }
  .fq blockquote { padding-left: 14px; }
  .fq figcaption { margin-left: 17px; }
  .choice { padding: 12px 10px; grid-template-columns: 24px 18px minmax(0, 1fr); gap: 10px; }
  .deck { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  /* A stacked sticky header would eat a fifth of a phone screen. Let it scroll;
     every long page has jump links, "Back to top", and a footer nav instead. */
  .nav { position: static; flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 4px; gap: 0; }
  .nav nav { margin-left: -10px; }
  [id] { scroll-margin-top: 12px; }
  .cta-row .btn, .submit-bar button[type="submit"] { width: 100%; }
  .home h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .jumpnav-label { width: 100%; }
  /* Long centred text is hard to track on a phone. */
  .home .kicker, .home h1, .home .deck, .home .cta-note { text-align: left; }
  .home .jumps { justify-content: flex-start; }
}
