/* Palette borrowed from Canadian polymer banknotes; calm, institutional
   register. Semantic colors are used only in the consensus strip and the
   divergence flag. */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --ink: #1a1d21;
  --muted: #6b7280;
  --rule: #e4e4de;
  --cut: #2f6fb2; /* banknote blue: rate goes down */
  --hold: #14684b; /* $20-note green: steady */
  --hike: #a63a2e; /* $50-note red: rate goes up */
  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a;
    --ink: #ecece6;
    --muted: #9aa1ab;
    --rule: #2a2d33;
    /* ~15% desaturated, lightened for contrast on dark paper */
    --cut: #5d8cba;
    --hold: #3d8168;
    --hike: #b06255;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 32px 20px 64px;
  max-width: 720px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cut);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
}

.num,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---- Header ---- */

.site-header h1 {
  font-size: 26px;
  margin: 0 0 4px;
}

.tagline {
  color: var(--muted);
  margin: 0 0 12px;
}

.header-meta {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

/* ---- Skeleton / error ---- */

.skeleton {
  padding: 32px 0;
}

.skeleton-heading,
.skeleton-bar {
  background: var(--rule);
  border-radius: 3px;
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-heading {
  width: 40%;
  height: 20px;
  margin-bottom: 20px;
}

.skeleton-bar {
  height: 12px;
  margin: 12px 0;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

#error {
  padding: 24px 0;
}

/* ---- Meeting sections ---- */

.meeting {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.meeting h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.meeting.secondary h2 {
  font-size: 18px;
}

.meeting.secondary {
  color: color-mix(in srgb, var(--ink) 78%, var(--paper));
}

.meeting-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.divergence-flag {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: var(--hike);
  border: 1px solid currentcolor;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 3px;
}

/* ---- Consensus strip (the signature element) ---- */

.strip {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr minmax(56px, auto);
  gap: 6px 10px;
  align-items: center;
  margin: 16px 0 8px;
}

.strip-source {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.strip-source:hover {
  text-decoration: underline;
}

.bar {
  display: flex;
  height: 12px;
  gap: 2px; /* separated by 2px of --paper */
}

.seg {
  height: 100%;
  transition: width 300ms ease-out;
}

.seg.cut {
  background: var(--cut);
}
.seg.hold {
  background: var(--hold);
}
.seg.hike {
  background: var(--hike);
}

.strip-hold {
  font-size: 13px;
  text-align: right;
}

.strip-legend {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.strip-legend .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .seg {
    transition: none;
  }
  .skeleton-heading,
  .skeleton-bar {
    animation: none;
  }
}

/* ---- Per-source details ---- */

.details {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.source-detail h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
}

.source-detail h3 a {
  text-decoration: none;
}

.source-detail h3 a:hover {
  text-decoration: underline;
}

.status-tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.outcome-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.outcome-context {
  color: var(--muted);
}

.source-note,
.attribution {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ---- Schedule, links, about ---- */

.schedule,
.links,
.about {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.about {
  border-bottom: none;
}

.schedule h2,
.links h2,
.about h2 {
  font-size: 15px;
  margin: 0 0 10px;
}

.schedule ul,
.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule li,
.links li {
  padding: 3px 0;
}

.about p {
  color: var(--muted);
  font-size: 13px;
}
