/* ==========================================================================
   Solomon for President - demonstration site
   One stylesheet. No JavaScript anywhere on this site.

   Design note: the visual language here is the financial disclosure form,
   not the rally poster. Cool filing-paper grey, navy ink, one oxblood
   accent, ruled line items. No flags, no eagles, no red-white-and-blue
   gradients. The campaign is about money and paperwork, so the page looks
   like money and paperwork.

   Palette lives in :root. Change it there and the whole site re-skins.
   ========================================================================== */

:root {
  /* Base */
  --paper:      #E8EBEE;  /* cool filing grey - page ground */
  --card:       #FFFFFF;  /* raised surfaces */
  --ink:        #131A26;  /* body text, near-navy black */
  --navy:       #1E3A5F;  /* structural blue - bands, headings */
  --navy-deep:  #152B45;  /* darker band */
  --red:        #9E2B2B;  /* the ONLY accent. Use sparingly. */
  --rule:       #C4CAD2;  /* hairlines */
  --rule-dark:  #3A5170;  /* hairlines on navy */
  --muted:      #59636F;  /* secondary text */
  --muted-inv:  #A8B6C6;  /* secondary text on navy */

  /* Type */
  --f-ui:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-read: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Measure */
  --measure: 34rem;       /* ~66ch of serif body */
  --wrap: 68rem;
  --gutter: 1.5rem;
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-read);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.6rem 1rem;
  font-family: var(--f-ui);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- layout --- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- demonstration notice -- */

.notice {
  background: var(--ink);
  color: #C9D2DC;
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
  padding: 0.55rem var(--gutter);
  text-align: center;
}
.notice b { color: #FFF; font-weight: 600; }

/* --------------------------------------------------------------- header -- */

.site-head {
  background: var(--navy);
  color: #FFF;
  border-bottom: 1px solid var(--rule-dark);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.mark {
  font-family: var(--f-ui);
  color: #FFF;
  text-decoration: none;
  line-height: 1;
  display: block;
}
.mark span {
  display: block;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.mark small {
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted-inv);
}
.mark:hover { color: #FFF; }
.mark:hover small { color: #FFF; }

.site-nav {
  font-family: var(--f-ui);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-nav a {
  color: #DCE4EC;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #FFF; border-bottom-color: var(--red); }
.site-nav a[aria-current="page"] { color: #FFF; border-bottom-color: #FFF; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  background: var(--navy-deep);
  color: #FFF;
  padding-block: clamp(3rem, 9vw, 6rem);
}

.hero h1 {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: clamp(2.35rem, 7.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  max-width: 16ch;
}

.hero .rule {
  width: 7rem;
  height: 5px;
  background: var(--red);
  margin: 2rem 0 1.75rem;
}

.hero p {
  font-size: clamp(1.075rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: #E3EAF1;
  max-width: 38rem;
  margin: 0 0 1em;
}

.hero p a { color: #FFF; text-decoration-color: var(--red); }
.hero p a:hover { color: #FFF; text-decoration-thickness: 2px; }

.hero .sig {
  font-family: var(--f-ui);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted-inv);
  margin-top: 2.25rem;
}

/* -------------------------------------------------------------- buttons -- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.btn {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  display: inline-block;
}

.btn-solid {
  background: var(--red);
  color: #FFF;
  border-color: var(--red);
}
.btn-solid:hover { background: #7E1F1F; border-color: #7E1F1F; color: #FFF; }

.btn-ghost {
  color: #FFF;
  border-color: #6B8199;
}
.btn-ghost:hover { border-color: #FFF; color: #FFF; }

.btn-dark {
  background: var(--navy);
  color: #FFF;
  border-color: var(--navy);
}
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: #FFF; }

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

.band { padding-block: clamp(3rem, 7vw, 5rem); }
.band-paper { background: var(--paper); }
.band-card  { background: var(--card); }
.band-navy  { background: var(--navy); color: #FFF; }
.band-navy a { color: #FFF; }

.band + .band-paper { border-top: 1px solid var(--rule); }

h2 {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}
.band-navy h2 { color: #FFF; }

h3 {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.25rem 0 0.6rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}
.band-navy .lede { color: var(--muted-inv); }

/* --------------------------------------------------- the ledger (index) -- */
/* Positions rendered as ruled line items: name on the left, what it
   actually does on the right. The one place this site raises its voice. */

.ledger { margin-top: 2.5rem; border-top: 2px solid var(--ink); }

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.5rem 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.ledger-row dt {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0;
}
.ledger-row dt .tag {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-top: 0.45rem;
}

.ledger-row dd {
  margin: 0;
  color: var(--ink);
}
.ledger-row dd a {
  font-family: var(--f-ui);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

/* -------------------------------------------------------- bill sections -- */

.section-mark {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  display: block;
  margin-bottom: 0.3rem;
}

.clause {
  border-left: 3px solid var(--rule);
  padding-left: 1.75rem;
  margin: 3rem 0;
  max-width: 40rem;
}
.clause h3 { margin-top: 0; font-size: 1.35rem; }
.clause ul { padding-left: 1.15rem; margin: 0.9rem 0; }
.clause li { margin-bottom: 0.55rem; }

.pull {
  font-family: var(--f-read);
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--navy);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin: 3rem 0;
  max-width: 34rem;
}

/* ------------------------------------------------------------- Q and A -- */

.qa { max-width: 40rem; margin-top: 2rem; }
.qa > div {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.qa h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.qa p { margin: 0 0 0.9em; }
.qa p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ jump list -- */

.jump {
  font-family: var(--f-ui);
  font-size: 1rem;
  columns: 2;
  column-gap: 2.5rem;
  max-width: 44rem;
  padding-left: 1.2rem;
  margin: 0 0 1.75rem;
}
.jump li { margin-bottom: 0.55rem; break-inside: avoid; }
.jump a { text-decoration-color: var(--rule); }

@media (max-width: 34rem) { .jump { columns: 1; } }

/* --------------------------------------------------------------- tables -- */
/* Used where a position has a cost and the cost should be visible. */

.figures {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-ui);
  font-size: 0.95rem;
  margin: 2rem 0;
  max-width: 42rem;
}
.figures caption {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  color: var(--navy);
  padding-bottom: 0.75rem;
}
.figures th,
.figures td {
  text-align: left;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.figures thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
  color: var(--ink);
}
.figures tbody th { font-weight: 400; color: var(--ink); }
.figures td.num { font-variant-numeric: tabular-nums; }
.figures td.change { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.figures tfoot td {
  border-bottom: none;
  padding-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--f-read);
}

.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- misc -- */

.callout {
  background: var(--card);
  border-left: 4px solid var(--red);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  max-width: 40rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-family: var(--f-ui); font-weight: 600; }

.stack > * + * { margin-top: 1.15em; }

/* --------------------------------------------------------------- footer -- */

.site-foot {
  background: var(--ink);
  color: #96A3B2;
  font-family: var(--f-ui);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-block: 3rem;
}
.site-foot .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2A3646;
}
.site-foot a { color: #C9D2DC; text-decoration: none; }
.site-foot a:hover { color: #FFF; text-decoration: underline; }
.site-foot nav { display: grid; gap: 0.5rem; }
.site-foot .foot-mark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #FFF;
}
.site-foot .disclaimer {
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: #76838F;
  max-width: 46rem;
}
.site-foot .disclaimer p { margin: 0 0 0.6em; }
.site-foot .disclaimer p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- mobile -- */

@media (max-width: 40rem) {
  .ledger-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.35rem 0; }
  .clause { padding-left: 1.15rem; margin: 2.25rem 0; }
  .site-head .wrap { padding-block: 0.9rem; }
  .site-nav { gap: 1.1rem; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------- print -- */

@media print {
  .site-head, .site-nav, .actions { display: none; }
  body { background: #FFF; color: #000; font-size: 11pt; }
  .hero, .band-navy { background: #FFF; color: #000; }
  .hero h1, .band-navy h2 { color: #000; }
}
