/* Canada Movement — public site styles
   Editorial, lightweight, mobile-first. No framework. */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #F7F4EE;
  --paper-2: #EFEBE3;
  --ink: #141414;
  --ink-2: #3F3C36;
  --ink-3: #66625A;
  --rule: #D9D3C7;
  --rule-strong: #141414;
  --field: #8C867B;        /* form-control borders: >= 3:1 on paper (WCAG 1.4.11) */
  --accent: #B4121B;
  --accent-text: var(--accent); /* accent used as text on --accent-soft */
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(180, 18, 27, 0.08);
  --focus: #B4121B;
  --skeleton: #E7E2D8;
  --shadow: 0 1px 0 rgba(20, 20, 20, 0.04);

  --serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 44rem;
  --gutter: 16px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 420ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --paper-2: #1B1A18;
    --ink: #EDE9E1;
    --ink-2: #CCC6BA;
    --ink-3: #A29C90;
    --rule: #2E2C28;
    --rule-strong: #EDE9E1;
    --field: #6A655C;
    --accent: #E5484F;
    --accent-text: #F06A70;
    --accent-ink: #121110;
    --accent-soft: rgba(229, 72, 79, 0.12);
    --focus: #F06A70;
    --skeleton: #22201D;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1B1A18;
  --ink: #EDE9E1;
  --ink-2: #CCC6BA;
  --ink-3: #A29C90;
  --rule: #2E2C28;
  --rule-strong: #EDE9E1;
  --field: #6A655C;
  --accent: #E5484F;
  --accent-text: #F06A70;
  --accent-ink: #121110;
  --accent-soft: rgba(229, 72, 79, 0.12);
  --focus: #F06A70;
  --skeleton: #22201D;
  --shadow: none;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
a:hover { text-decoration-color: currentColor; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ------------------------------------------------------------------ masthead */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.topbar__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.topbar__nav a {
  text-decoration: none;
  padding: 8px 8px;
  border-radius: var(--radius);
}
.topbar__nav a:hover { color: var(--ink); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--rule); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.masthead {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  padding-bottom: 22px;
  text-align: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 38px; height: 38px; color: var(--accent); flex-shrink: 0; }
.brand__name {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.masthead__tagline {
  margin: 14px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-wrap: balance;
}
.masthead__rule {
  height: 5px;
  border: 0;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin: 0;
}

@media (min-width: 720px) {
  .brand__mark { width: 52px; height: 52px; }
  .masthead { padding-top: 40px; padding-bottom: 28px; }
}

/* ------------------------------------------------------------------ controls */
.controls {
  padding-top: 18px;
  padding-bottom: 6px;
  display: grid;
  gap: 14px;
}
.controls__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.search svg {
  position: absolute;
  left: 12px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: transparent;
  font-size: 1rem; /* >=16px avoids iOS focus zoom */
  transition: border-color 160ms ease, background-color 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--ink-3); }

.search input:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.segmented {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 0 14px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: background-color 200ms ease, color 200ms ease;
}

.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.chips {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
}
.chips__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 6px var(--gutter) 8px; /* room for focus rings inside the scroller */
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips__list::-webkit-scrollbar { display: none; }
.chips__list li { scroll-snap-align: start; flex-shrink: 0; }
.chip {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

@media (min-width: 720px) {
  .chips { margin: 0; }
  .chips__list { flex-wrap: wrap; padding: 2px 0 8px; overflow: visible; }
}

/* ------------------------------------------------------------------ feed */
main { display: block; padding-bottom: 48px; }

.status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-3);
  min-height: 1.4em;
  padding-top: 6px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.focus-block { padding-top: 6px; }
.focus-block .card { border-bottom: 2px solid var(--rule-strong); }

.feed { margin: 0; padding: 0; }

.card {
  position: relative;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--rule);
  animation: card-in 520ms var(--ease) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.card__cat {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.7rem;
}
.card__meta .dot::before { content: "·"; color: var(--rule); margin-right: 10px; }
.card__meta .dot { display: inline-flex; }
.card__source { font-weight: 500; color: var(--ink-2); }
.card__corrected {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--accent);
  line-height: 1.3;
}

.card__title {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.35rem, 4.8vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; }

.card--lead .card__title { font-size: clamp(1.7rem, 6.6vw, 2.4rem); line-height: 1.08; }
.card__figure {
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  aspect-ratio: 16 / 9;
}
.card__figure img { width: 100%; height: 100%; object-fit: cover; }

.card__blurb {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.card__actions .spacer { flex: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.pill--vote[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}
.pill--vote:active:not(:disabled) { transform: scale(0.96); }
.pill--vote .tri { font-size: 0.7rem; line-height: 1; }
.pill--vote.is-bump .tri { animation: bump 380ms var(--ease); }
@keyframes bump {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 4px 0 12px;
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.readmore svg {
  width: 14px; height: 14px;
  transition: transform var(--dur) var(--ease);
}
.readmore[aria-expanded="true"] svg { transform: rotate(180deg); }
.readmore:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

/* expandable region (grid-rows technique; no measured heights) */
.card__more {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.card.is-open .card__more {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--dur) var(--ease), visibility 0s linear 0s;
}
.card__more-inner { min-height: 0; overflow: hidden; padding: 0 6px; margin: 0 -6px; } /* keeps focus rings unclipped */
.card__more-body {
  padding-top: 22px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 300ms ease, transform var(--dur) var(--ease);
}
.card.is-open .card__more-body { opacity: 1; transform: none; transition-delay: 80ms; }

.digest {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
}
.digest p { margin: 0 0 1em; text-wrap: pretty; }
.digest p:first-child::first-letter {
  float: left;
  font-size: 3.3em;
  line-height: 0.82;
  font-weight: 600;
  padding: 0.06em 0.08em 0 0;
  color: var(--accent);
}
.digest__note { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-3); }
.digest__note::first-letter { float: none !important; font-size: inherit !important; color: inherit !important; padding: 0 !important; font-weight: inherit !important; }

.trace {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  text-decoration: none;
  background: transparent;
  transition: background-color 200ms ease, color 200ms ease;
}
.trace__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.trace__text { display: grid; min-width: 0; }
.trace__label { font-weight: 600; font-size: 0.92rem; }
.trace__sub {
  font-size: 0.8rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace__arrow { margin-left: auto; width: 16px; height: 16px; flex-shrink: 0; }

.subhead {
  margin: 30px 0 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* threads (forks) */
.threads__tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
}
.threads__tabs::-webkit-scrollbar { display: none; }
.threads__tab {
  flex-shrink: 0;
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 12px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}
.threads__tab::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 260ms var(--ease);
}
.threads__tab:focus-visible { outline-offset: -3px; } /* .threads__tabs scrolls, which would clip an outer ring */
.threads__tab[aria-selected="true"] { color: var(--ink); }
.threads__tab[aria-selected="true"]::after { transform: scaleX(1); }
.threads__tab .num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-right: 6px;
}
.threads__panel { padding: 16px 0 4px; }
.threads__panel:focus-visible { outline-offset: 6px; }
.threads__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}
.threads__summary {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  line-height: 1.6;
  color: var(--ink-2);
}
.src-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.src-link:hover { text-decoration: underline; }
.src-link svg { width: 13px; height: 13px; }
.src-link .domain { color: var(--ink-3); font-weight: 400; }

/* share */
.share { display: flex; flex-wrap: wrap; gap: 8px; }

/* comments */
.comments__list { list-style: none; margin: 0; padding: 0; }
.comment {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.comment:first-child { border-top: 0; padding-top: 4px; }
.comment.is-pending { opacity: 0.6; }
.comment__head {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.comment__name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.comment__body {
  margin: 4px 0 8px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.55;
}
.comment .pill { height: 28px; padding: 0 10px; font-size: 0.75rem; }
.comments__empty { margin: 0 0 6px; font-size: 0.9rem; color: var(--ink-3); }

.form { margin-top: 18px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: transparent;
  padding: 10px 12px;
  font-size: 1rem; /* >=16px avoids iOS zoom */
  line-height: 1.5;
  transition: border-color 160ms ease;
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline-offset: 1px; }
.field textarea { min-height: 104px; resize: vertical; }
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.form__hint { font-size: 0.75rem; color: var(--ink-3); }
.form__hint a { color: inherit; }
.counter { font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--accent); }
.form__error { margin: 0; font-size: 0.85rem; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.5; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }

.collapse-row { display: flex; justify-content: flex-end; margin-top: 18px; }

/* corrections: published notice */
.correction {
  margin: 4px 0 22px;
  padding: 14px 16px 4px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.correction__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.correction__date { color: var(--ink-3); letter-spacing: 0.04em; text-transform: none; font-weight: 500; font-size: 0.78rem; }
.correction__date::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.correction__text {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

/* corrections: report form */
.report { margin-top: 22px; }
.report__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 4px;
  margin-left: -4px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
}
.report__toggle svg { width: 13px; height: 13px; flex-shrink: 0; }
.report__toggle span { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.22em; }
.report__toggle[aria-expanded="true"] { color: var(--ink); }
.report__toggle[aria-expanded="true"] svg { color: var(--accent); }
.report__region {
  margin-top: 8px;
  padding: 4px 16px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.report--standalone .report__region { margin-top: 0; }
.report__form { margin-top: 12px; }
.report__intro { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-2); }
.field__hint { margin: -2px 0 2px; font-size: 0.75rem; line-height: 1.45; color: var(--ink-3); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); }
.report__buttons { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.report__success { padding: 14px 0 2px; outline-offset: 4px; }
.report__success-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.12rem;
}
.report__success-text { margin: 0 0 14px; font-size: 0.88rem; color: var(--ink-3); }

.report-mount { margin: 18px 0 8px; }
.report-mount .report { margin-top: 0; }

/* the about page uses the same component inside .prose: keep its form copy in the UI face */
.prose .report p { font-family: var(--sans); }
.prose .report .report__success-title { font-family: var(--serif); }
.prose .report .field__hint { font-size: 0.75rem; line-height: 1.45; margin: -2px 0 2px; }
.prose .report .report__intro, .prose .report .report__success-text { font-size: 0.88rem; line-height: 1.55; }
.prose .report .report__success-title { font-size: 1.12rem; line-height: 1.3; margin: 0 0 4px; }
.prose .report .report__success-text { margin: 0 0 14px; }
.prose .report .form__error { font-size: 0.85rem; line-height: 1.45; margin: 0; }
.prose .report a { text-decoration-color: currentColor; }

/* load more / states */
.feed-foot { display: grid; place-items: center; padding: 30px 0 10px; }

.state {
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.state__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.35rem;
}
.state__text { margin: 0 auto 18px; max-width: 30rem; color: var(--ink-3); }

.skeleton { padding: 26px 0 24px; border-bottom: 1px solid var(--rule); }
.skeleton span {
  display: block;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: var(--skeleton);
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton .s-meta { width: 34%; height: 10px; }
.skeleton .s-title { width: 88%; height: 22px; }
.skeleton .s-title2 { width: 62%; height: 22px; margin-bottom: 16px; }
.skeleton .s-line { width: 100%; }
.skeleton .s-line2 { width: 76%; margin-bottom: 0; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ------------------------------------------------------------------ prose pages */
.prose { padding-top: 34px; padding-bottom: 56px; }
.prose h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.prose .lede {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.prose h2 {
  margin: 40px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
}
.prose p, .prose li {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.06rem;
  line-height: 1.7;
}
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration-color: var(--accent); }
.prose .kicker {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.notfound { text-align: center; padding-top: 72px; padding-bottom: 96px; }
.notfound .code {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 5rem;
  line-height: 1;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 2px solid var(--rule-strong);
  padding-top: 26px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  font-size: 0.85rem;
  color: var(--ink-3);
}
.site-footer__motto {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.site-footer__links a { color: var(--ink-2); }
.site-footer small { display: block; font-size: 0.75rem; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: calc(100vw - 32px);
  transition: opacity 220ms ease, transform 260ms var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar, .controls, .card__actions, .share, .comments, .report, .feed-foot, .site-footer__links, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------------ hover (pointer devices only)
   On touch screens :hover sticks after a tap, which looked like a stuck selected state. */
@media (hover: hover) {
  /* :not() keeps pressed / focused states winning, as they did when these rules came first. */
  .search input:not(:focus-visible):hover { border-color: var(--ink-3); }
  .segmented button:not([aria-pressed="true"]):hover { color: var(--ink); }
  .chip:not([aria-pressed="true"]):hover { border-color: var(--ink-3); color: var(--ink); }
  .pill:not([aria-pressed="true"]):hover { border-color: var(--ink-3); color: var(--ink); }
  .trace:hover { background: var(--ink); color: var(--paper); }
  .trace:hover .trace__sub { color: inherit; opacity: 0.75; }
  .trace:hover .trace__icon { color: inherit; }
  .threads__tab:hover { color: var(--ink); }
  .report__toggle:hover { color: var(--ink); }
  .report__toggle:hover span { text-decoration-color: currentColor; }
  .field input:not(:focus-visible):hover, .field textarea:not(:focus-visible):hover { border-color: var(--ink-3); }
}
