
:root {
  --ground: #f4efe4;
  --ground-2: #eae2d2;
  --sheet: #fdfaf2;
  --ink: #1a211e;
  --ink-soft: #55605a;
  --felt: #0d3b2d;
  --felt-deep: #072119;
  --felt-pale: #e2eee7;
  --chip: #b3352a;
  --chip-pale: #f8e3e0;
  --blue: #2f6db5;
  --blue-pale: #e4edf7;
  --brass: #c79a2e;
  --brass-pale: #f7eed6;
  --line: #d5cbb6;
  --line-soft: #e6ddca;
  --grey: #7d857f;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 1px 0 rgba(26, 33, 30, 0.05), 0 18px 40px -26px rgba(7, 33, 25, 0.5);
  --sans: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, sans-serif;
  --body: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --display: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(900px 340px at 12% -8%, #e7efe9, transparent 62%),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%);
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.62;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--felt);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--sans);
  font-weight: 700;
  z-index: 20;
}
.skip:focus { left: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--chip); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.005em; }
h2, h3 { text-transform: uppercase; letter-spacing: 0.045em; font-weight: 700; }

/* ---- masthead -------------------------------------------------------------- */
.top {
  background: linear-gradient(180deg, var(--felt) 0%, var(--felt-deep) 100%);
  border-bottom: 3px solid var(--brass);
}
.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--felt-deep);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px var(--felt-deep), inset 0 0 0 4px var(--brass);
}
.menu { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 6px; }
.menu a {
  font-family: var(--sans);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cfe0d6;
  text-decoration: none;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}
.menu a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.menu a[aria-current="page"] { background: var(--brass); color: var(--felt-deep); font-weight: 700; }

.bar .btn { margin-left: auto; }

.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--chip);
  color: #fff;
  border: 2px solid var(--chip);
  border-radius: var(--radius);
  padding: 9px 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { background: #ffffff; color: var(--chip); transform: translateY(-1px); }
.ghost {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--felt);
  border: 2px solid var(--felt);
  border-radius: var(--radius);
  padding: 9px 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.ghost:hover { background: var(--felt); color: #fff; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 64px; }

.page-hero { padding: 42px 0 24px; }
.crumb-line {
  font-family: var(--sans);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 14px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chip);
  font-weight: 700;
  margin-bottom: 10px;
}
h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; color: var(--felt-deep); }
.lede { font-size: 18.5px; color: #333b37; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---- the table (signature component) --------------------------------------- */
.seatpanel {
  background:
    radial-gradient(120% 90% at 50% 8%, #14523e 0%, var(--felt) 45%, var(--felt-deep) 100%);
  color: #eaf3ee;
  border: 3px solid var(--brass);
  border-radius: 50% / 22%;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
}
.sp-cap {
  font-family: var(--sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9dc3b1;
  margin-bottom: 10px;
}
.sp-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.sp-head h3 { margin: 0; font-size: 14.5px; color: #fff; letter-spacing: 0.05em; }
.sp-mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: var(--brass);
  color: var(--felt-deep);
  padding: 3px 7px;
  border-radius: 20px;
  font-weight: 700;
}
.seats { list-style: none; margin: 0; padding: 0; }
.seats li {
  display: grid;
  grid-template-columns: 30px 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(234, 243, 238, 0.22);
}
.seats li:last-child { border-bottom: 0; }
.seats .seat {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sheet);
  color: var(--felt-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px var(--felt), inset 0 0 0 3.5px var(--chip);
}
.seats .pos { font-family: var(--mono); font-weight: 700; font-size: 12.5px; color: var(--brass); letter-spacing: 0.04em; }
.seats p { margin: 0; font-family: var(--sans); font-size: 13.5px; color: #d8e8df; line-height: 1.5; }
.sp-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(234, 243, 238, 0.24);
  font-family: var(--sans);
  font-size: 12.5px;
  color: #bcd6c8;
}
.sp-flag {
  background: var(--chip);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 8px;
  font-weight: 700;
}

/* ---- sections -------------------------------------------------------------- */
section {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
}
section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--chip) 0 8px, var(--brass) 8px 16px, var(--blue) 16px 24px);
  border-radius: 0 3px 3px 0;
}
section h2 { font-size: 20px; margin: 0 0 14px; color: var(--felt-deep); }
section h2 .n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--felt);
  color: var(--brass);
  padding: 3px 9px;
  border-radius: 20px;
  margin-right: 11px;
  vertical-align: 3px;
  text-transform: none;
}
.ref-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip);
  border: 1px solid var(--chip-pale);
  background: var(--chip-pale);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
section h3 { font-size: 14.5px; margin: 20px 0 8px; color: var(--felt); }
section p { margin: 0 0 13px; }
section ul, section ol { margin: 0 0 13px; padding-left: 22px; }
section li { margin-bottom: 6px; }

.jumplist {
  font-family: var(--sans);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px 13px;
  margin: 0 0 16px;
}
.jumplist a { text-decoration: none; color: var(--felt); }
.jumplist a:hover { text-decoration: underline; color: var(--chip); }

/* Chip discs: the repeating motif. Each is a circular chip with a dashed inner edge. */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 14px 0; }
.chips li {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--sheet);
  color: var(--felt);
  border: 3px solid var(--felt);
  box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 4px var(--line);
  border-radius: 22px;
  padding: 8px 16px;
}
.chips li.seat { background: var(--felt); color: #fff; border-color: var(--felt); }
.chips li.owe { background: var(--chip-pale); color: var(--chip); border-color: var(--chip); }
.chips li.relief { background: var(--felt-pale); color: var(--felt); border-color: var(--blue); }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 12px 0; font-family: var(--sans); font-size: 13.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 15px; height: 15px; border-radius: 50%; display: inline-block; }
.legend .sw.structure { background: var(--felt); }
.legend .sw.owe { background: var(--chip); }
.legend .sw.relief { background: var(--blue); }
.legend .sw.neutral { background: var(--grey); }

.callout {
  background: var(--brass-pale);
  border: 1px solid #e6d3a4;
  border-left: 5px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  margin: 16px 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: #4a3d1c;
}
.callout p:last-child { margin-bottom: 0; }

.band {
  background: linear-gradient(135deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: #eef6f1;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 3px solid var(--brass);
}
.band h3 { color: #ffffff; margin: 6px 0 8px; }
.band p { margin: 0; font-family: var(--sans); font-size: 14.5px; max-width: 56ch; color: #d7e7dd; }
.band .eyebrow { color: var(--brass); }
.band .ghost { color: #ffffff; border-color: #ffffff; }
.band .ghost:hover { background: #ffffff; color: var(--felt-deep); }

.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 4px var(--chip);
}
.checklist strong { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 12.5px; color: var(--felt-deep); }

.rundown { overflow-x: auto; margin: 16px 0; }
.rundown table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 14px; background: var(--sheet); }
.rundown caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  padding-bottom: 8px;
}
.rundown th {
  text-align: left;
  background: var(--felt-pale);
  color: var(--felt-deep);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 9px 11px;
  border-bottom: 2px solid var(--felt);
}
.rundown td { padding: 9px 11px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.rundown tr:nth-child(even) td { background: #f7f3e9; }
.rundown td.good { color: var(--felt); font-weight: 700; }
.rundown td.owe { color: var(--chip); font-weight: 700; }
.rundown td.num { font-family: var(--mono); }

.ledger { margin: 16px 0; }
.ledger dl { margin: 0; display: grid; gap: 10px; }
.ledger dl > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--felt);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.ledger dl > div.owe { border-left-color: var(--chip); }
.ledger dl > div.neutral { border-left-color: var(--grey); }
.ledger dt { font-family: var(--sans); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--felt-deep); }
.ledger dd { margin: 0; font-family: var(--sans); font-size: 14px; color: #3b443f; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.stat {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
}
.stat .k { display: block; font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); }
.stat .v { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--felt-deep); margin: 5px 0 3px; }
.stat .d { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); }

/* Seat rows: a seat code, how the decision sits, and what the seat actually decides. */
.fields { margin: 16px 0; display: grid; gap: 9px; }
.fields .row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 4px solid var(--felt);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.fields .row.owe { border-left-color: var(--chip); }
.fields .row.relief { border-left-color: var(--blue); }
.fields .row.neutral { border-left-color: var(--grey); }
.fields .row .code {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--felt-deep);
  background: var(--felt-pale);
  border-radius: 3px;
  padding: 3px 7px;
  text-align: center;
}
.fields .row .text { font-family: var(--sans); font-size: 14px; color: #3b443f; }

.flagger { display: grid; gap: 11px; margin: 16px 0; }
.flagger > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--sheet);
}
.flagger .chip {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-radius: 20px;
  padding: 6px 8px;
  background: var(--felt);
  color: #fff;
}
.flagger > div.owe .chip { background: var(--chip); }
.flagger > div.relief .chip { background: var(--blue); }
.flagger p { margin: 0; font-family: var(--sans); font-size: 14px; color: #3b443f; }

.recap { background: var(--felt-pale); border: 1px solid #cadece; border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; }
.recap h3 { margin-top: 0; color: var(--felt-deep); }
.recap p:last-child, .recap ul:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin: 16px 0; }
.split .side { background: #f7f3e9; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; }
.split .side h3 { margin-top: 0; }
.split .side p:last-child, .split .side ul:last-child { margin-bottom: 0; }

.faq { display: grid; gap: 12px; margin: 16px 0; }
.qa { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; border-bottom: 2px solid var(--felt-pale); }
.qa h3 { margin: 0 0 7px; font-size: 13.5px; color: var(--felt-deep); }
.qa p { margin: 0; font-family: var(--sans); font-size: 14px; color: #3b443f; }

.fn { counter-reset: none; padding-left: 0; list-style: none; font-family: var(--sans); font-size: 13.5px; }
.fn li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.fn li b { font-family: var(--mono); font-size: 11.5px; color: var(--felt-deep); background: var(--felt-pale); border-radius: 3px; height: 20px; display: grid; place-items: center; }

.figure { margin: 18px 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.figure figcaption { font-family: var(--sans); font-size: 12.5px; color: var(--grey); margin-top: 10px; }
.trace { width: 100%; height: auto; display: block; }

/* ---- footer ---------------------------------------------------------------- */
.footer {
  margin-top: 30px;
  background: linear-gradient(180deg, var(--felt) 0%, var(--felt-deep) 100%);
  color: #d7e7dd;
  border-top: 3px solid var(--brass);
  font-family: var(--sans);
}
.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 22px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer p { font-size: 13px; color: #bcd6c8; max-width: 60ch; }
.footer strong { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brass); margin-bottom: 10px; }
.footer a { display: block; color: #d7e7dd; text-decoration: none; font-size: 13.5px; padding: 3px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .fine {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 34px;
  border-top: 1px solid rgba(215, 231, 221, 0.18);
  padding-top: 16px;
  font-size: 11.5px;
  line-height: 1.62;
  color: #9dc3b1;
}

@media (max-width: 860px) {
  .hero-grid, .band, .split, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 31px; }
  .seatpanel { border-radius: 26px; }
  .ledger dl > div, .fields .row, .flagger > div { grid-template-columns: minmax(0, 1fr); }
  .bar .btn { margin-left: 0; }
}

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