@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e6e0d2;
  --surface: #dcd5c5;
  --ink: #1a1a1a;
  --muted: #5f5b52;
  --accent: #18bc42;
  --coral: #ed4b44;
  --coral-ink: #0f0f0f;
  --yellow: #f2c21a;
  --bone: #e6e0d2;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.on-ink :focus-visible,
.footer :focus-visible,
.band:focus-visible {
  outline-color: var(--yellow);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.display {
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 42% 1fr auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 20px;
  padding: 44px 48px 72px;
  background: var(--bg);
}

.brand {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.nav ul,
.desk-nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.desk-nav a,
.footer a {
  text-decoration: none;
}

.nav a:hover,
.desk-nav a:hover,
.footer a:hover,
.prose a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mob-nav { display: none; }

.hero .btn { grid-column: 3; grid-row: 1; align-self: center; }

.support {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
}

.hero h1 {
  grid-column: 2 / -1;
  grid-row: 3;
  align-self: end;
  margin: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 6.6vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--ink);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}

.btn:hover { text-decoration: none; }

.btn:active { transform: scale(0.97); }

.intro {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 22vw;
  gap: 16px 4vw;
  align-content: center;
  padding: 8vh 4vw 6vh;
  background: var(--ink);
  color: var(--bone);
}

.stairs {
  margin: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.stairs span { display: block; }

.stairs span:nth-child(1) { color: var(--bone); padding-left: 0; }
.stairs span:nth-child(2) { color: var(--yellow); padding-left: 6vw; }
.stairs span:nth-child(3) { color: var(--accent); padding-left: 12vw; }

.pitch {
  max-width: 42ch;
  margin: 28px 0 0;
}

.pitch p { margin: 0 0 1rem; }

.note {
  margin: 12px 0 0;
  max-width: 36ch;
}

.photos {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
}

.photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.coral {
  background: var(--coral);
  color: var(--coral-ink);
  padding: 8vh 4vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.count-num {
  margin: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.045em;
  line-height: 0.85;
}

.coral p { margin: 0; max-width: 32ch; }

.sheet {
  background: var(--surface);
  padding: 10vh 0 12vh;
}

.col {
  width: min(520px, calc(100% - 40px));
  margin-left: 22%;
}

.sheet h2,
.buyers h2,
.facts h2,
.offers h2 {
  margin: 0 0 28px;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.group {
  margin: 36px 0 8px;
  color: var(--muted);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  min-height: 44px;
  padding: 8px 0;
}

.row p { margin: 0; }

.row .name { max-width: 38ch; }

.dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
}

.val {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex { color: var(--muted); }

.bleed {
  height: 72svh;
  overflow: hidden;
  background: var(--ink);
}

.bleed img,
.bleed video {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform-origin: center center;
}

.rates {
  background: var(--yellow);
  color: var(--ink);
  padding: 8vh 4vw 10vh;
}

.stepped {
  margin: 0 0 36px;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  padding-left: 4vw;
  text-indent: -4vw;
}

.rates .lede {
  max-width: 46ch;
  margin: 0 0 32px;
}

table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 0 36px;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  caption-side: top;
  margin: 0 0 12px;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

th,
td {
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  overflow-wrap: break-word;
}

tbody tr:nth-child(even) { background: #e6b40f; }

.bar {
  display: block;
  height: 10px;
  margin-top: 8px;
  background: var(--ink);
}

.grade {
  background: var(--ink);
  color: var(--bone);
  padding: 10vh 4vw 12vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.step { margin: 0 0 48px; }

.step h2,
.step .line {
  margin: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.step p {
  margin: 12px 0 0;
  max-width: 34ch;
}

.step:nth-child(2) { margin-left: 4vw; }
.step:nth-child(3) { margin-left: 8vw; }
.step:nth-child(4) { margin-left: 12vw; }

.step:nth-child(4) h2 { color: var(--accent); }

.checker {
  background: var(--bone);
  color: var(--ink);
  padding: 24px;
  min-width: 300px;
  min-height: 240px;
}

.checker p { margin: 0 0 16px; }

.checker label {
  display: block;
  margin-bottom: 8px;
}

.checker input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  margin-bottom: 16px;
}

.checker .btn { width: 100%; }

.exchange { height: 64svh; }

.buyers,
.offers,
.facts {
  padding: 8vh 4vw;
}

.buyers {
  background: var(--ink);
  color: var(--bone);
}

.offers,
.facts { background: var(--surface); }

.fact-row,
.offer {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 16px;
  padding: 12px 0;
  max-width: 68ch;
}

.fact-row dt { margin: 0; }

.fact-row dd { margin: 0; }

.offer p { margin: 0; }

.band {
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: 20px 48px 16px;
  transition: background-color 180ms ease, color 180ms ease;
}

.band:hover,
.band:focus-visible {
  background: var(--ink);
  color: var(--accent);
  text-decoration: none;
}

.band-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.band-top p {
  margin: 0;
  max-width: 28ch;
}

.band svg { flex: none; }

.verb {
  margin: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 18vw;
  line-height: 0.78;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.footer {
  min-height: 100svh;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 48px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 220px;
  gap: 32px;
}

.invite {
  margin: 0 0 24px;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal {
  margin-top: auto;
  padding: 32px 0 8px;
  max-width: 78ch;
}

.legal p { margin: 0 0 10px; }

.wordmark {
  margin: 0;
  font-family: "Libre Franklin", Arial, sans-serif;
  font-weight: 700;
  font-size: 18vw;
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
  transform: translateY(32%);
}

@media (prefers-reduced-motion: no-preference) {
  .js .rise {
    animation: rise 800ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  .js .shutter {
    animation: shutter 900ms var(--ease-in-out) both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  .js .slip {
    animation: slip 700ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }

  .js .drift {
    animation: drift 18s var(--ease-soft) infinite alternate;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes shutter {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes slip {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto auto auto;
    padding: 24px 20px 32px;
  }

  .brand { grid-column: 1; grid-row: 1; }
  .desk-nav { display: none; }
  .mob-nav { display: block; grid-column: 2; grid-row: 1; }
  .hero .btn { grid-column: 1; grid-row: 5; justify-self: start; }
  .hero h1 {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 64px;
  }

  .support { grid-column: 1 / -1; grid-row: 4; }

  .mob-nav summary {
    font-family: "Libre Franklin", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
  }

  .mob-nav summary::-webkit-details-marker { display: none; }

  .mob-nav ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 16px;
    position: absolute;
    right: 20px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 4;
  }

  .intro,
  .coral,
  .grade {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .stairs span:nth-child(2) { padding-left: 8vw; }
  .stairs span:nth-child(3) { padding-left: 16vw; }

  .photos {
    grid-row: auto;
    grid-column: 1;
    width: min(100%, 520px);
  }

  .col { margin-left: 20px; }

  .step:nth-child(2),
  .step:nth-child(3),
  .step:nth-child(4) { margin-left: 0; }

  .stepped { padding-left: 20px; text-indent: -20px; }

  .band {
    min-height: 46svh;
    padding: 16px 20px 12px;
  }

  .verb,
  .wordmark { font-size: 20vw; }

  .stairs { font-size: 28px; }

  .sheet h2,
  .buyers h2,
  .facts h2,
  .offers h2,
  .step h2 { font-size: 28px; }

  .invite,
  .stepped,
  .count-num { font-size: 40px; }

  .footer { padding: 32px 20px 0; }

  .footer-top { grid-template-columns: 1fr; }

  .fact-row,
  .offer { grid-template-columns: 1fr; }

  .rates,
  .buyers,
  .offers,
  .facts { padding-left: 20px; padding-right: 20px; }

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

@media (max-width: 599px) {
  .stairs { font-size: 22px; }
  .hero h1 { font-size: 40px; }

  table.wide,
  table.wide thead,
  table.wide tbody,
  table.wide tr,
  table.wide th,
  table.wide td { display: block; width: auto; }

  table.wide { table-layout: auto; }

  table.wide thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }

  table.wide tr { padding: 8px 0 16px; }

  table.wide td::before {
    content: attr(data-label);
    display: block;
    font-family: "Libre Franklin", Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 4px;
  }
}
