:root {
  --felt: #12100e;
  --felt-2: #1b1814;
  --ink: #1b1612;
  --cream: #f3ead6;
  --cream-2: #e8dcc3;
  --gold: #c6a15b;
  --gold-2: #e4c98a;
  --rule: rgba(198, 161, 91, 0.35);
  --paper-ink: #2a241c;
  --muted: #8a8173;
  --dem: #2a3f5f;
  --gop: #7a3428;
  --ind: #4a5640;
  --card-w: 280px;
  --card-h: 392px;
  --hero-w: 320px;
  --hero-h: 448px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--felt);
  color: var(--cream);
  font-family: var(--sans);
  min-height: 100%;
  hyphens: none;
  -webkit-hyphens: none;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(198, 161, 91, 0.12), transparent 55%),
    radial-gradient(800px 500px at 100% 80%, rgba(122, 52, 40, 0.12), transparent 50%),
    radial-gradient(700px 400px at 0% 70%, rgba(42, 63, 95, 0.14), transparent 50%),
    var(--felt);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 160px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.top-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.top-meta a {
  color: var(--gold-2);
  text-decoration: none;
}

.top-meta a:hover {
  text-decoration: underline;
}

.chamber-nav {
  display: flex;
  gap: 12px;
}

.chamber-nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.16em;
}

.chamber-nav a.is-on {
  color: var(--gold-2);
}

.chamber-nav a:hover {
  color: var(--gold-2);
  text-decoration: none;
}

.banner a {
  color: var(--gold-2);
}

.banner {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: rgba(198, 161, 91, 0.08);
  color: #e7d7b0;
  font-size: 13px;
  line-height: 1.45;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 42px 0 36px;
}

#hero-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}

.hero-copy p {
  margin: 0 auto 18px;
  max-width: 44ch;
  color: #d9d0c0;
  font-size: 16px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.btn:hover,
.btn.is-on {
  background: var(--gold);
  color: var(--ink);
}

.legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 34px;
}

.legend-item {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

.legend-item b {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.legend-item b a {
  color: inherit;
  text-decoration: none;
}

.legend-item b a:hover {
  text-decoration: underline;
}

.legend-item span {
  display: block;
  margin-top: 4px;
  color: #cfc6b6;
  font-size: 13px;
  line-height: 1.35;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid rgba(243, 234, 214, 0.16);
  background: transparent;
  color: #d7cebe;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.chip.is-on {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.search {
  width: min(280px, 100%);
  background: #1c1916;
  border: 1px solid rgba(243, 234, 214, 0.12);
  color: var(--cream);
  padding: 9px 12px;
  border-radius: 999px;
}

.search::placeholder {
  color: #8d8578;
}

.set-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 8px 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  justify-items: center;
}

.card-wrap {
  width: var(--card-w);
}

.card-wrap.hero-wrap {
  width: var(--hero-w);
}

.card-wrap.is-hidden {
  display: none;
}

.scene {
  width: var(--card-w);
  height: var(--card-h);
}

.scene.hero-scene {
  width: var(--hero-w);
  height: var(--hero-h);
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--cream);
  color: var(--paper-ink);
  box-shadow: var(--shadow);
  border: 1px solid #2a241c;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.front {
  opacity: 1;
  z-index: 2;
}

.back {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  z-index: 1;
  pointer-events: none;
}

.card.is-flipped .front {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
  z-index: 1;
}

.card.is-flipped .back {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 7px var(--cream), inset 0 0 0 8px rgba(198, 161, 91, 0.75);
}

.front-inner,
.back-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 11px 11px 10px;
  overflow: hidden;
  border-radius: 13px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a6e59;
  padding: 1px 4px 6px;
}

.photo {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #cfc3aa;
}

.photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
  filter: contrast(1.04) saturate(0.92);
}

.photo img.is-missing {
  opacity: 0;
}

.photo::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 48px;
  color: #6b6154;
  background: #d9cdb3;
  z-index: 0;
}

.photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(27, 22, 18, 0.55), transparent);
}

.team {
  margin-top: 8px;
  padding: 5px 8px 4px;
  color: #f6efe0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team.R { background: var(--gop); }
.team.D { background: var(--dem); }
.team.I { background: var(--ind); }

.lastname {
  margin: 6px 4px 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 0.85;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.lastname.long {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.lastname a.src,
.back-head a.src {
  border-bottom: 0;
}

.card a.src,
.ledger a.src,
.compare-grid a.src {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(42, 36, 28, 0.35);
}

.card a.src:hover,
.ledger a.src:hover,
.compare-grid a.src:hover {
  color: #7a3428;
}

a.photo-link {
  display: block;
  height: 100%;
  border: 0;
}

.back-note a.src {
  border-bottom-color: rgba(122, 110, 89, 0.45);
}

.hero-scene .lastname {
  font-size: 34px;
}

.firstname {
  margin: 4px 4px 0;
  font-size: 13px;
  color: #5d5346;
}

.meta-line {
  margin: 7px 4px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6b6154;
}

.card-tools {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.tiny {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b6154;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.tiny:hover,
.tiny.is-on {
  color: #7a3428;
}

.back-inner {
  padding: 14px 14px 12px;
}

.back .stats {
  gap: 6px 14px;
}

.back .stat .v {
  font-size: 15px;
}

.back-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(42, 36, 28, 0.16);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.back-head strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.back-head span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #7a6e59;
}

.stat-block + .stat-block {
  margin-top: 10px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7d67;
  margin-bottom: 4px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dotted rgba(42, 36, 28, 0.18);
  padding: 3px 0;
}

.stat .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6f6557;
}

.stat .v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.industries {
  margin-top: 10px;
}

.mini-ind {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5c5347;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(42, 36, 28, 0.16);
}

.back-note {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7d67;
}

.hint {
  margin-top: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8173;
}

.compare-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(20px);
  width: min(980px, calc(100% - 24px));
  background: #1d1a16;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 20;
}

.compare-dock.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.compare-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.compare-grid {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  gap: 8px 12px;
  font-size: 13px;
}

.compare-grid .lab {
  color: #8d8578;
  font-family: var(--mono);
  font-size: 11px;
}

.compare-grid .nm {
  font-family: var(--serif);
  font-size: 16px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.72);
  display: none;
  z-index: 30;
  padding: 24px 16px;
  overflow: auto;
}

.overlay.is-open {
  display: block;
}

.ledger {
  position: relative;
  width: min(920px, 100%);
  margin: 24px auto;
  background: var(--cream);
  color: var(--paper-ink);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  box-shadow: var(--shadow);
}

.ledger img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 10px;
}

.ledger h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 0.9;
}

.ledger .sub {
  color: #6b6154;
  margin-bottom: 16px;
}

.ledger-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.bar {
  height: 7px;
  background: #ddd2bb;
  border-radius: 99px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  background: #2a241c;
}

.votes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.votes-table td {
  border-top: 1px solid rgba(42, 36, 28, 0.12);
  padding: 7px 0;
}

.votes-table td:last-child {
  text-align: right;
  font-family: var(--mono);
}

.ledger a {
  color: #7a3428;
}

.yea { color: var(--dem); font-weight: 600; }
.nay { color: var(--gop); font-weight: 600; }

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footnote {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #6b6154;
  border-top: 1px solid rgba(42, 36, 28, 0.12);
  padding-top: 10px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site {
    width: min(100% - 24px, 1180px);
  }
  .legend {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger {
    grid-template-columns: 1fr;
  }
  .compare-dock {
    overflow-x: auto;
  }
  .compare-grid {
    grid-template-columns: 80px repeat(3, 1fr);
    font-size: 12px;
    min-width: 520px;
  }
}

@media (max-width: 560px) {
  :root {
    --card-w: 240px;
    --card-h: 336px;
    --hero-w: 260px;
    --hero-h: 364px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .lastname {
    font-size: 28px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-meta {
    text-align: left;
    align-items: flex-start;
  }
  .overlay {
    padding: 12px 10px 28px;
  }
  .ledger {
    margin: 8px auto 24px;
    padding: 48px 16px 16px;
  }
  .ledger h2 {
    font-size: 32px;
  }
  .ledger img {
    height: 240px;
  }
  .ledger-stats {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 96px 1fr 36px;
  }
}

.site-foot {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-foot a {
  color: var(--gold-2);
}

.method-site {
  padding-bottom: 64px;
}

.method-sheet {
  margin-top: 22px;
  background: var(--cream);
  color: var(--paper-ink);
  border-radius: 18px;
  padding: 28px 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid #2a241c;
}

.method-kicker {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6a32;
}

.method-sheet h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.method-lead {
  margin: 0 0 18px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.45;
}

.method-sheet section + section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 36, 28, 0.14);
}

.method-sheet h2 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a32;
}

.method-sheet p,
.method-sheet li {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #2a241c;
}

.method-sheet ul,
.method-sheet ol {
  margin: 0;
  padding-left: 18px;
}

.method-sheet a {
  color: #7a3428;
}

.method-sheet .gov {
  font-family: var(--mono);
  font-size: 12px;
}

.method-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}

.method-table th,
.method-table td {
  text-align: left;
  vertical-align: top;
  padding: 7px 10px 7px 0;
  border-top: 1px solid rgba(42, 36, 28, 0.12);
}

.method-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6e59;
  font-weight: 500;
}

.method-table td:first-child {
  width: 18%;
  font-family: var(--mono);
  font-size: 12px;
}

.method-table td:last-child {
  width: 28%;
}

.method-foot {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(42, 36, 28, 0.14);
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.04em;
  color: #6b6154 !important;
  line-height: 1.45;
}

@media print {
  @page {
    size: letter;
    margin: 0.45in;
  }

  body,
  .method-body {
    background: #fff !important;
  }

  body::before {
    display: none;
  }

  .method-site {
    width: 100%;
    padding: 0;
  }

  .topbar {
    padding-bottom: 10px;
  }

  .method-sheet {
    margin: 10px 0 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }

  .method-sheet h1 {
    font-size: 26px;
  }

  .method-lead,
  .method-sheet p,
  .method-sheet li {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .method-table {
    font-size: 11px;
  }

  .method-sheet section + section {
    margin-top: 9px;
    padding-top: 8px;
  }

  .top-meta a {
    display: none;
  }
}
