:root {
  color-scheme: light;
  --paper: #f8f2e7;
  --paper-bright: #fffaf0;
  --ink: #15213a;
  --ink-soft: #46516a;
  --blue: #173bce;
  --blue-dark: #102b9b;
  --coral: #f35f50;
  --mustard: #f2bd30;
  --green: #0b7656;
  --rule: #c9c0b3;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: Inter, Aptos, "Segoe UI", sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 18rem; }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: .09em; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { color: white; background: var(--blue); }
.skip { position: fixed; z-index: 20; left: 1rem; top: -5rem; padding: .7rem 1rem; color: white; background: var(--ink); }
.skip:focus { top: 1rem; }

.site-header {
  width: min(90rem, 100%);
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 820; text-decoration: none; letter-spacing: -.02em; }
.wordmark img { width: 2.35rem; height: 2.35rem; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 2.4vw, 2rem); font-size: .94rem; font-weight: 700; }
nav a { text-decoration: none; }
.nav-action { padding: .66rem .9rem; color: white; background: var(--blue); border-radius: .35rem; }
.nav-action:hover { background: var(--blue-dark); }

main { overflow: hidden; }
.hero {
  width: min(90rem, 100%);
  min-height: 42rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 6vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  background: var(--paper-bright);
}
.status { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.7rem; font-size: .82rem; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.status span { width: .72rem; height: .72rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .3rem #d3ede4; }
h1, h2 { font-family: var(--display); letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 10ch; margin: 0; font-size: clamp(3.3rem, 7.6vw, 7.4rem); line-height: .88; }
h2 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 4.5rem); line-height: .98; }
.lede { max-width: 42rem; margin: 2rem 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
.primary { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .78rem 1.15rem; border-radius: .4rem; color: white; background: var(--blue); font-weight: 820; text-decoration: none; box-shadow: 0 .45rem 1.2rem rgb(23 59 206 / 20%); }
.primary:hover { background: var(--blue-dark); }
.primary.coral { background: var(--coral); color: #28120f; box-shadow: 0 .45rem 1.2rem rgb(71 24 18 / 22%); }
.text-link { font-weight: 760; color: var(--blue); }
.plain-note { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: .92rem; }

.ballot-stack { position: relative; min-height: 28rem; isolation: isolate; }
.ballot-stack::before { content: ""; position: absolute; inset: 1rem 4rem 1rem 0; z-index: -2; border-radius: 50%; background: var(--mustard); filter: saturate(.9); }
.ballot-stack::after { content: ""; position: absolute; width: 10rem; height: 10rem; right: .2rem; top: -2rem; z-index: -1; border: 1.7rem solid var(--blue); border-radius: 50%; }
.ballot-card { position: absolute; left: 6%; width: min(31rem, 88%); min-height: 7.7rem; padding: 1.2rem 1.25rem; display: grid; grid-template-columns: 2.2rem 1fr 2.5rem; align-items: center; gap: 1rem; border: 1px solid var(--ink); border-radius: .75rem; background: white; box-shadow: .3rem .65rem 1.6rem rgb(21 33 58 / 16%); }
.ballot-card strong { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; }
.ballot-card div span { display: block; margin-top: .35rem; color: var(--ink-soft); line-height: 1.35; }
.topic-number { align-self: start; color: var(--blue); font-weight: 850; font-variant-numeric: tabular-nums; }
.tick { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: .16rem solid var(--ink); color: var(--green); font-size: 1.65rem; font-weight: 900; transform: rotate(-4deg); }
.card-road { top: 0; transform: rotate(-3deg); }
.card-clean { top: 8.9rem; left: 12%; transform: rotate(2.5deg); }
.card-work { top: 17.8rem; left: 4%; transform: rotate(-1deg); }
.stack-caption { position: absolute; top: 27rem; left: 12%; margin: 0; font-size: .82rem; font-weight: 760; }

.early-access { padding: 2.5rem clamp(1.2rem, 7vw, 7rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: white; background: var(--blue); }
.early-access > div { max-width: 56rem; }
.early-access h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.early-access p { max-width: 66ch; margin: .8rem 0 0; line-height: 1.6; color: #e8ebff; }
.early-access a { flex: 0 0 auto; font-weight: 800; }
.how, .principles { width: min(80rem, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 0; }
.how ol { margin: 3.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.how li { display: grid; grid-template-columns: minmax(12rem, .75fr) 1.25fr; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.how li span { font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.how li p { max-width: 65ch; margin: 0; color: var(--ink-soft); line-height: 1.65; }
.principles { border-top: 1px solid var(--rule); }
.principles h2 { max-width: 13ch; }
.principle-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.principle-grid article { padding-top: 1.2rem; border-top: .45rem solid var(--coral); }
.principle-grid article:nth-child(2) { border-color: var(--blue); }
.principle-grid article:nth-child(3) { border-color: var(--green); }
.principle-grid h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; }
.principle-grid p { color: var(--ink-soft); line-height: 1.65; }
.closing { padding: clamp(5rem, 10vw, 9rem) 1.2rem; text-align: center; background: var(--ink); color: white; }
.closing h2 { max-width: 15ch; margin: 0 auto 2.2rem; }
footer { padding: 1.6rem clamp(1.2rem, 5vw, 5rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }
footer div { display: flex; gap: 1.2rem; }

.article-shell { width: min(48rem, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 0; overflow: visible; }
.article-shell h1 { max-width: 11ch; font-size: clamp(3rem, 7vw, 6.1rem); }
.article-shell h2 { margin-top: 3.4rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.article-shell p:not(.lede) { max-width: 70ch; color: var(--ink-soft); line-height: 1.75; }
.article-shell .primary { margin-top: 1.2rem; color: white; }

@media (max-width: 52rem) {
  .site-header { align-items: flex-start; }
  nav a:not(.nav-action) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .ballot-stack { width: min(34rem, 100%); margin: 1rem auto 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .early-access { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 36rem) {
  .wordmark span { max-width: 7rem; line-height: 1.05; }
  .hero { padding-top: 3.2rem; }
  .ballot-card { left: 0; width: 96%; grid-template-columns: 1.7rem 1fr 2.2rem; gap: .6rem; }
  .ballot-card strong { font-size: 1.18rem; }
  .card-clean { left: 4%; }
  .card-work { left: 0; }
  .how li { grid-template-columns: 1fr; gap: .6rem; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .ballot-card { animation: settle .7s cubic-bezier(.16, 1, .3, 1) both; }
  .card-clean { animation-delay: .08s; }
  .card-work { animation-delay: .16s; }
  @keyframes settle { from { opacity: 0; translate: 0 1.5rem; filter: blur(.35rem); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
