/* SIGNAL @ WACV 2027 — design system mirrored from philab.fund */

:root {
  --blue: #0798fe;
  --blue-dark: #0077d8;
  --blue-light: #2aa6fe;
  --ink: #0e0f0c;
  --body: #2b3340;
  --muted: #5c6a7e;
  --rule: #e2e6ec;
  --wash: #f7f9fb;
  --bg: #ffffff;

  --serif: "Spectral", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --nav-h: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

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

.prose a,
.stat-note a {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- shared primitives ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-dark);
  font-weight: 400;
  margin-bottom: 0.85rem;
  display: block;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  max-width: 46ch;
}

section {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}

section.plain {
  border-top: none;
}

.section-head {
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.brand .divider {
  color: var(--rule);
  font-weight: 300;
}

.brand .venue {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-top: 2px;
}

/* ---------- edition switcher ---------- */

.edition {
  position: relative;
  padding-top: 1px;
}

.edition-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 5px 10px;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.edition-btn:hover,
.edition.open .edition-btn {
  border-color: #b9c3cf;
  color: var(--ink);
}

.edition-btn svg {
  width: 9px;
  height: 6px;
  flex: none;
  transition: transform 0.15s ease;
}

.edition.open .edition-btn svg {
  transform: rotate(180deg);
}

.edition-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 258px;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px rgba(20, 32, 51, 0.09);
  display: none;
  z-index: 60;
}

.edition.open .edition-menu {
  display: block;
}

.edition-menu-head {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 16px 9px;
  border-bottom: 1px solid var(--rule);
}

.edition-item {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
}

.edition-item:last-child {
  border-bottom: none;
}

.edition-item:hover {
  background: var(--wash);
  text-decoration: none;
}

.edition-item .name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.edition-item .flag {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  border: 1px solid #bfe0fb;
  background: #f2f9ff;
  padding: 1px 6px;
  font-weight: 400;
}

.edition-item .meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
  min-width: 0;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 5px 11px;
  cursor: pointer;
  line-height: 1.4;
}

.nav-toggle:hover,
.nav-open .nav-toggle {
  border-color: #b9c3cf;
  color: var(--ink);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 13px;
}

.nav-toggle-bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: 104px 0 92px;
  overflow: hidden;
  border-top: none;
}

/* interior pages lead with a plain h1, so they need less room */
.hero.compact {
  padding: 84px 0 72px;
}

.hero.compact h1 {
  margin-bottom: 1.4rem;
}

/* venue logo set alongside the workshop name */
.titlebar {
  --title-size: clamp(2.1rem, 7vw, 5rem);
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-bottom: 1.4rem;
}

.hero .titlebar h1 {
  font-size: var(--title-size);
  margin: 0;
  max-width: none;
}

/* baseline alignment lands the mark's lower edge on the title baseline */
.titlebar-logo {
  display: block;
  flex: none;
  font-size: var(--title-size);
  transition: opacity 0.15s ease;
}

.titlebar-logo:hover {
  opacity: 0.75;
}

/* 0.675em is Spectral's cap height, so the mark spans cap to baseline */
.titlebar-logo img {
  display: block;
  height: 0.675em;
  width: auto;
}

.titlebar-rule {
  width: 1px;
  height: 0.675em;
  font-size: var(--title-size);
  background: var(--rule);
  flex: none;
}

/* flattened into the hero's bottom padding, clear of all text */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 88px;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-stats {
  margin-top: 64px;
}

.hero-full-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: none;
  white-space: nowrap;
  margin: -0.9rem 0 1.1rem;
}

/* the letters that spell out SIGNAL */
.hero-full-name b {
  font-weight: 700;
}

.hero .lede {
  margin-bottom: 2.4rem;
  max-width: none;
  white-space: nowrap;
}

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

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

/* the secondary action reads as a link, so only one box remains */
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  text-decoration-color: #b9c2cd;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.btn.ghost:hover {
  background: transparent;
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--blue-dark);
}

/* ---------- grids & cards ---------- */

/* the 1px rule shows through the gaps between cells */
.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- stat strip ---------- */

/* an open strip: one rule on top, hairlines between cells, no outer box */
.stats {
  display: grid;
  border-top: 1px solid var(--rule);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stats.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 26px 32px 4px 0;
}

/* a short hairline, not a full-height column rule */
.stats.cols-4 .stat + .stat,
.stats.cols-3 .stat + .stat {
  padding-left: 32px;
  background-image: linear-gradient(var(--rule), var(--rule));
  background-repeat: no-repeat;
  background-size: 1px 62px;
  background-position: left 26px;
}

.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-value .unit {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.stat.is-key .stat-value {
  color: var(--blue-dark);
}

.stat-note {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- horizontal timeline ---------- */

.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.track.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.track-step {
  position: relative;
  padding: 30px 26px 0 0;
  border-top: 1px solid var(--rule);
}

/* the node sits on the axis itself; hollow until reached */
.track-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--muted);
}

/* the current stage: filled node, active segment, ringed for emphasis */
.track-step.is-now {
  border-top-color: var(--blue);
}

.track-step.is-now::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 152, 254, 0.18);
}

.track-date {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.track-step.is-now .track-date {
  color: var(--blue-dark);
}

.track-title {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}

.track-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- closing call to action ---------- */

/* the only tinted band on the page, so the sequence has an end */
.cta {
  background: var(--wash);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

.cta-lead h2 {
  margin-bottom: 1rem;
}

.cta-lead p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 46ch;
}

/* the buttons sit on the last line of the lead paragraph, not above it */
.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-fine {
  margin: 24px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.cell {
  background: var(--bg);
  padding: 34px 30px;
}

.cell h3 {
  margin-bottom: 0.7rem;
}

.cell h4 {
  margin-bottom: 0.35rem;
}

.cell-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.cell-num.muted {
  color: var(--muted);
}

.cell-figure {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.15rem 0 0.7rem;
}

.cell-figure .unit {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

/* labels a subgroup of cards within one section */
.group-head {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.grid + .group-head {
  margin-top: 48px;
}

/* speaker cards carry a talk line, so they get more room */
.cell.speaker {
  padding: 34px 32px 30px;
}

.cell.speaker h4 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.cell.speaker .talk {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--body);
  margin: 1rem 0 1.2rem;
}

.cell.speaker.is-open {
  grid-column: 1 / -1;
  background: var(--wash);
}

.cell.speaker.is-open h4 {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 500;
}

.cell.speaker.is-open .talk {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 68ch;
}

/* a stat strip above a grid needs air between the two */
.stats + .grid,
.stats + .prose,
.track + .callout {
  margin-top: 40px;
}

.prose.spaced {
  margin-top: 40px;
}

.cell p:last-child {
  margin-bottom: 0;
}

.cell p {
  color: var(--muted);
  font-size: 0.97rem;
}

.affil {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  text-transform: none;
  margin-bottom: 0.75rem;
  display: block;
}

.role {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 0.9rem;
}

/* people cards: the role line sits on the floor of the cell, so the labels
   line up across a row no matter how long each bio runs */
.cell.person {
  display: flex;
  flex-direction: column;
}

.cell.person p {
  margin-bottom: 0;
}

.cell.person .role {
  margin-top: auto;
  padding-top: 1.1rem;
}

/* ---------- topic list ---------- */

.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 46px;
}

.topics.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.topic h4 {
  margin-bottom: 0.4rem;
}

.topic p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- dates table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.table-scroll table {
  min-width: 480px;
}

th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid #cfd6de;
}

td.date {
  font-family: var(--mono);
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--ink);
  width: 1%;
}

tr.key td {
  background: var(--wash);
}

tr.key td.date {
  color: var(--blue-dark);
}

.tbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  max-width: 100%;
}

td .tbd {
  white-space: nowrap;
}

/* ---------- schedule ---------- */

.sched {
  border-top: 1px solid var(--rule);
}

.sched-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.sched-row .dur {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.sched-row .what {
  color: var(--body);
}

.sched-row .what em {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  margin-top: 3px;
}

/* ---------- callout ---------- */

.callout {
  border-left: 2px solid var(--blue);
  padding: 4px 0 4px 24px;
  margin: 30px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.note {
  background: var(--wash);
  border: 1px solid var(--rule);
  padding: 26px 28px;
  margin: 30px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.note h4 {
  margin-bottom: 0.6rem;
}

/* ---------- award tiers ---------- */

.tiers {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.tier {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--rule);
}

/* the blue fades as the tiers descend */
.tier-icon {
  flex: none;
  width: 30px;
  color: var(--blue);
  transform: translateY(4px);
}

.tier-second .tier-icon {
  color: var(--blue-light);
}

.tier-third .tier-icon {
  color: var(--muted);
}

.tier-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.tier-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 28px;
  flex: 1;
  min-width: 0;
}

.tier-rank {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* how many papers take this tier, kept quieter than the rank itself */
.tier-count {
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-left: 2px;
}

.tier-amount {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.tier-first .tier-amount {
  font-size: 2.1rem;
  color: var(--blue-dark);
}

.tier-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.tiers-foot {
  margin: 18px 0 42px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- sponsorship ---------- */

/* the one action the page exists for, so it is larger than a normal button */
.btn-give {
  font-size: 0.86rem;
  padding: 17px 34px;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-give:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.hero-give {
  align-items: center;
}

.hero-meta {
  margin: -0.6rem 0 1.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.give-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* stays reachable once the hero scrolls past; the selector has to outrank
   `.nav-links a`, which would otherwise paint the label muted grey */
.nav-links a.nav-give {
  background: var(--blue-dark);
  color: #fff;
  padding: 9px 18px;
}

.nav-links a.nav-give:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

/* Pricing cards. Every tier lists the same nine rows, with the ones it does not
   include struck through, so the columns line up and the upgrade is obvious. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 44px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 28px;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.plan.is-featured {
  border-color: var(--blue-dark);
  border-width: 2px;
  box-shadow: 0 14px 40px rgba(20, 32, 51, 0.08);
}

.plan-flag {
  position: absolute;
  top: -11px;
  left: 26px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue-dark);
  padding: 4px 12px;
}

.plan-head {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.plan-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.plan-gold .plan-name {
  color: var(--blue-dark);
}

.plan-price {
  display: block;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-gold .plan-price {
  color: var(--blue-dark);
}

.plan-line {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.plan-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.62rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--body);
}

/* a checkmark drawn from two borders, so no icon font is needed */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 5px;
  height: 9px;
  border: solid var(--blue);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.plan-list li.is-off {
  color: #aeb8c4;
}

.plan-list li.is-off::before {
  top: 0.62em;
  width: 9px;
  height: 0;
  border-width: 0 0 1.4px 0;
  border-color: #cfd6de;
  transform: none;
}

.plan-cta {
  align-self: stretch;
  text-align: center;
  margin-top: auto;
}

/* the two lower tiers read as the quieter option */
.ghost-cta {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}

.ghost-cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .plan.is-featured {
    order: -1;
  }
}

.pay-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  background: var(--wash);
  border-left: 3px solid var(--blue);
  padding: 30px 32px;
}

.pay-lead {
  max-width: 46ch;
}

.pay-lead h4 {
  margin-bottom: 0.4rem;
}

.pay-lead p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

/* the sponsorship page has no section menu, so the links never collapse */
.nav-links.is-static {
  display: flex;
}

@media (max-width: 1000px) {
  .nav-links.is-static {
    position: static;
    display: flex;
    flex-direction: row;
    margin-left: auto;
    background: none;
    border: none;
    box-shadow: none;
    gap: 18px;
  }

  .nav-links.is-static a {
    padding: 0;
    border-bottom: none;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  /* the email drops out at phone width; the Sponsor button never does */
  .nav-links.is-static a[href^="mailto"] {
    display: none;
  }

  .nav-links.is-static {
    gap: 10px;
    flex-shrink: 0;
  }

  .nav-links a.nav-give {
    padding: 8px 13px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 460px) {
  /* the button alone survives; the workshop link is reachable from the footer */
  .nav-links.is-static a:not(.nav-give) {
    display: none;
  }

  /* only on this page, where the button has to win the space */
  .nav-inner:has(.nav-give) .edition {
    display: none;
  }
}

@media (max-width: 760px) {
  .pay-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- prose ---------- */

.prose {
  max-width: 68ch;
}

.prose h3 {
  margin: 2.4rem 0 0.8rem;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--blue);
}

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

footer {
  border-top: 1px solid var(--rule);
  padding: 60px 0 44px;
  background: var(--wash);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1rem;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col li {
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
}

.foot-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 46ch;
}

.copyright {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  /* below this the single-line title no longer fits the column */
  .hero-full-name {
    font-size: 1.55rem;
  }

  .hero .lede {
    font-size: 1.2rem;
  }
}

@media (max-width: 1020px) {
  .hero-full-name,
  .hero .lede {
    white-space: normal;
    font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .stats.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* two per row: the third cell starts a row, so it drops its rule */
  .stats.cols-4 .stat:nth-child(odd) {
    padding-left: 0;
    background-image: none;
  }

  .stats.cols-4 .stat:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
    margin-top: 4px;
  }

  .track,
  .track.cols-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 0;
  }

  .hero-stats {
    margin-top: 48px;
  }
}

@media (max-width: 1000px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  /* three columns get too narrow here, but one column runs too long */
  .topics.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* nav collapses here so the link row cannot widen the page */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 6px);
    left: 20px;
    right: 20px;
    margin-left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    box-shadow: 0 12px 32px rgba(20, 32, 51, 0.09);
    z-index: 55;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 16px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.74rem;
    white-space: normal;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a[aria-current="page"] {
    background: var(--wash);
  }
}

@media (max-width: 720px) {
  .wrap,
  .nav-inner {
    padding: 0 20px;
  }

  .nav-inner {
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 66px 0 60px;
  }

  .hero-wave {
    height: 52px;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .topics.cols-3 {
    grid-template-columns: 1fr;
  }

  .stats.cols-4,
  .stats.cols-3 {
    grid-template-columns: 1fr;
  }

  /* stacked, so the dividers lie flat between rows */
  .stats.cols-4 .stat + .stat,
  .stats.cols-3 .stat + .stat {
    padding-left: 0;
    background-image: none;
    border-top: 1px solid var(--rule);
  }

  .stats.cols-4 .stat,
  .stats.cols-3 .stat {
    padding: 22px 0 4px;
  }

  /* the axis turns vertical, running down the left edge */
  .track,
  .track.cols-5 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .track-step {
    padding: 4px 0 26px 24px;
    border-top: none;
    border-left: 1px solid var(--rule);
  }

  .track-step:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }

  .track-step.is-now {
    border-left-color: var(--blue);
  }

  .track-step:last-child.is-now {
    border-left-color: transparent;
  }

  .track-step::before {
    top: 6px;
    left: -5px;
  }

  .stat {
    padding: 20px 22px 22px;
  }

  .titlebar {
    gap: 16px;
    margin-bottom: 1rem;
  }

  .brand .divider {
    display: none;
  }

  .edition-btn {
    padding: 4px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  /* anchor to the viewport edge so the panel cannot widen the page */
  .edition {
    position: static;
  }

  .edition-menu {
    left: 20px;
    right: 20px;
    min-width: 0;
    top: calc(var(--nav-h) + 6px);
  }

  .sched-row {
    grid-template-columns: 74px 1fr;
    gap: 16px;
  }

  th,
  td {
    padding: 12px 10px;
  }

  /* stack table rows into cards; no horizontal scrollbar */
  .table-scroll {
    overflow-x: visible;
  }

  .table-scroll table,
  table {
    min-width: 0;
    display: block;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: auto;
  }

  tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }

  tr:last-child {
    border-bottom: none;
  }

  tr.key {
    background: var(--wash);
    padding-left: 14px;
    padding-right: 14px;
  }

  td {
    border-bottom: none;
    padding: 3px 0;
  }

  td.date {
    width: auto;
    white-space: normal;
    color: var(--blue-dark);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }

  td[data-label] {
    padding: 8px 0 0;
  }

  td[data-label]:first-child {
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .tier {
    gap: 16px;
    padding: 22px 2px;
  }

  .tier-icon {
    width: 24px;
  }

  .tier-body {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tier-amount,
  .tier-first .tier-amount {
    text-align: left;
    font-size: 1.5rem;
  }
}
