:root {
  --ink: #11100e;
  --ink-raised: #191815;
  --parchment: #eee7da;
  --paper: #f7f2e8;
  --signal: #ef6a2e;
  --signal-bright: #ff7b3e;
  --text-on-dark: #f3eee4;
  --muted-on-dark: #aaa69f;
  --text-on-light: #171512;
  --muted-on-light: #655f57;
  --line-on-dark: #4b4842;
  --line-on-light: #c6beb1;
  --focus: #ff9a6d;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 88rem;
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
  --section-space: clamp(5rem, 10vw, 9rem);
}

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

html {
  color-scheme: dark light;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

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

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--reading {
  max-width: 61rem;
}

.shell--form {
  max-width: 58rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

[data-theme="dark"] {
  background-color: var(--ink);
  color: var(--text-on-dark);
}

[data-theme="light"] {
  background-color: var(--parchment);
  color: var(--text-on-light);
}

[data-theme="light"] .eyebrow {
  color: #7c2c0b;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line-on-dark);
}

.site-header__inner {
  min-height: 6.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  color: var(--text-on-dark);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 650;
  letter-spacing: 0.36em;
  line-height: 1;
  text-decoration: none;
}

.wordmark__x {
  position: relative;
  letter-spacing: 0;
}

.wordmark__x::after {
  content: "";
  position: absolute;
  width: 0.66em;
  height: 0.16em;
  right: -0.38em;
  bottom: 0.04em;
  border-radius: 50% 0 50% 50%;
  background: var(--signal);
  transform: rotate(29deg) skewX(-18deg);
  transform-origin: left center;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-nav a,
.site-footer nav a {
  color: var(--text-on-dark);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a {
  padding-block: 0.8rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--signal);
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.45rem;
  border: 1px solid var(--signal);
  border-radius: 2px;
  background: var(--signal);
  color: #130c08;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--signal-bright);
  background: var(--signal-bright);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  border-color: #625e57;
  background: #322f2a;
  color: var(--muted-on-dark);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.button--small {
  min-height: 3.15rem;
  padding-inline: clamp(1rem, 2vw, 1.75rem);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-on-dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--signal);
  opacity: 0.45;
}

.tape-index {
  overflow: hidden;
  border-bottom: 1px solid #2f2d29;
  color: #77736c;
}

.tape-index__track {
  width: max-content;
  min-width: 100%;
  height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 2.5vw, 2.5rem);
  padding-inline: 1rem;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  white-space: nowrap;
  animation: tape-travel 28s linear infinite alternate;
}

.tape-index__track i {
  width: 1px;
  height: 0.85rem;
  background: var(--signal);
}

@keyframes tape-travel {
  from { transform: translateX(-1.5rem); }
  to { transform: translateX(1.5rem); }
}

.hero__grid {
  min-height: min(47rem, calc(100vh - 9.8rem));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 8.5rem);
}

.hero__copy {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.23em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1,
.lenses h2,
.beta-section h2,
.legal-hero h1,
.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.94;
}

.hero__description {
  max-width: 40rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: #cbc6bc;
  font-size: clamp(1.1rem, 1.6vw, 1.38rem);
  line-height: 1.62;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.75rem 0 1.35rem;
  color: var(--signal-bright);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__status span {
  width: 2.35rem;
  height: 2px;
  background: var(--signal);
}

.button--hero {
  min-width: min(100%, 22rem);
  min-height: 3.75rem;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.microcopy {
  margin: 0.7rem 0 0;
  color: var(--muted-on-dark);
  font-size: 0.84rem;
}

.structure-figure {
  position: relative;
  width: min(100%, 40rem);
  margin: 0;
  justify-self: end;
}

.structure-figure > img {
  width: 100%;
  height: auto;
}

.structure-figure__labels {
  position: absolute;
  inset: 9% 0 8% 49%;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.structure-figure__labels li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: clamp(0.76rem, 1.2vw, 1rem);
  font-weight: 740;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.structure-figure__labels span {
  color: var(--signal);
  font-size: 0.68rem;
}

.lenses {
  padding-block: var(--section-space);
}

.section-rule {
  display: grid;
  grid-template-columns: min(8rem, 18vw) 1fr;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-rule::after,
.section-rule span {
  content: "";
  height: 1px;
}

.section-rule span {
  background: var(--signal);
}

.section-rule::after {
  background: var(--line-on-light);
}

.lenses h2 {
  max-width: 16ch;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.98;
}

.lens-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lens-list::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  bottom: 2.2rem;
  left: 0.42rem;
  width: 1px;
  background: var(--signal);
}

.lens-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2.8rem minmax(11rem, 0.65fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: 7.5rem;
  border-top: 1px solid var(--line-on-light);
}

.lens-list li:last-child {
  border-bottom: 1px solid var(--line-on-light);
}

.lens-list__node {
  position: relative;
  z-index: 1;
  width: 0.88rem;
  height: 0.88rem;
  border: 2px solid var(--signal);
  background: var(--parchment);
}

.lens-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.lens-list p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted-on-light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.lenses__closing {
  max-width: 65rem;
  margin: clamp(2.2rem, 5vw, 4rem) 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.5;
}

.beta-section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line-on-dark);
}

.beta-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.68fr);
  gap: clamp(4rem, 9vw, 10rem);
  align-items: start;
}

.beta-section__content {
  max-width: 48rem;
}

.beta-section h2,
.privacy-request h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.beta-section__content > p:not(.eyebrow),
.privacy-request > .shell > p:not(.eyebrow) {
  max-width: 45rem;
  margin: 1.5rem 0 0;
  color: #c8c3ba;
  font-size: 1.06rem;
}

.capture-form {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field label,
.check-field {
  font-size: 0.88rem;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.45rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid #79756d;
  background: #f9f6ef;
  color: var(--ink);
  box-shadow: none;
}

.field input::placeholder {
  color: #777069;
}

.field input:hover,
.field select:hover {
  border-color: #aaa49b;
}

.field input:focus,
.field select:focus {
  border-color: var(--signal);
}

.check-field {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  align-items: start;
  gap: 0.72rem;
  width: fit-content;
  color: #d9d4cb;
  cursor: pointer;
}

.check-field input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.16rem 0 0;
  accent-color: var(--signal);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile-slot {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.button--submit {
  width: 100%;
  min-height: 3.55rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: #d9d4cb;
  font-size: 0.88rem;
}

.form-status--error {
  color: #ff9f76;
}

.form-status--success {
  color: #b8d6b3;
}

.capture-form[aria-busy="true"] {
  opacity: 0.82;
}

.form-success {
  max-width: 38rem;
  margin-top: 2.75rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line-on-dark);
}

.form-success__mark {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 2px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-size: 1.4rem;
}

.form-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.form-success p {
  margin: 1rem 0 0;
  color: #cbc6bc;
}

.beta-clarity {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid var(--line-on-dark);
}

.beta-clarity h3 {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
}

.beta-clarity dl,
.beta-clarity dd {
  margin: 0;
}

.beta-clarity dl > div {
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-on-dark);
}

.beta-clarity dl > div:last-child {
  border-bottom: 1px solid var(--line-on-dark);
}

.beta-clarity dt {
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.beta-clarity dd {
  margin-top: 0.55rem;
  color: #c5c0b7;
}

.site-footer {
  border-top: 1px solid var(--line-on-dark);
}

.site-footer__inner {
  min-height: 9rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.wordmark--footer {
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  gap: 2rem;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.8rem;
}

.legal-hero {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line-on-light);
}

.legal-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.95;
}

.legal-hero > .shell > p:last-child {
  max-width: 48rem;
  margin: 2rem 0 0;
  color: var(--muted-on-light);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

.legal-layout {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.legal-copy section + section {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-on-light);
}

.legal-copy h2 {
  max-width: 20ch;
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.legal-copy p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #514c45;
  font-size: 1.04rem;
}

.privacy-request {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line-on-dark);
}

.page--not-found {
  min-height: 100vh;
}

.not-found {
  width: min(100%, 64rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-inline: auto;
  padding: 4rem var(--gutter);
}

.not-found .wordmark {
  margin-bottom: clamp(4rem, 9vw, 8rem);
}

.not-found h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  line-height: 0.95;
}

.not-found > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted-on-dark);
  font-size: 1.1rem;
}

@media (max-width: 64rem) {
  .site-nav {
    gap: 1.4rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: 3rem;
  }

  .structure-figure__labels {
    left: 48%;
  }

  .beta-section__grid {
    gap: 4rem;
  }
}

@media (max-width: 52rem) {
  .site-header__inner {
    min-height: 5.4rem;
  }

  .site-nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .hero__grid,
  .beta-section__grid {
    grid-template-columns: 1fr;
  }

  .structure-figure {
    justify-self: start;
    width: min(100%, 34rem);
  }

  .lens-list li {
    grid-template-columns: 2.3rem minmax(9rem, 0.6fr) 1fr;
  }

  .beta-clarity {
    padding: 3rem 0 0;
    border-top: 1px solid var(--line-on-dark);
    border-left: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    justify-self: start;
    padding-bottom: 1.8rem;
  }
}

@media (max-width: 45rem) {
  :root {
    --gutter: 1.5rem;
    --section-space: 4.5rem;
  }

  .site-header .button--small {
    min-height: 2.9rem;
    padding-inline: 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .wordmark {
    font-size: 0.92rem;
    letter-spacing: 0.29em;
  }

  .tape-index,
  .structure-figure {
    display: none;
  }

  .hero {
    border-bottom-color: var(--line-on-light);
    background: var(--parchment);
    color: var(--text-on-light);
  }

  .hero__grid {
    min-height: auto;
    display: block;
    padding-block: 3.5rem 4.25rem;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.65rem, 16vw, 5.3rem);
    line-height: 0.91;
  }

  .hero__description {
    margin-top: 2rem;
    color: #292621;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .hero .eyebrow {
    color: #7c2c0b;
  }

  .hero__status {
    color: #6e2a0c;
    font-size: 0.83rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero .microcopy {
    color: var(--muted-on-light);
  }

  .button--hero {
    width: 100%;
    min-height: 3.75rem;
  }

  .lenses h2 {
    margin-bottom: 2.5rem;
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .lens-list::before {
    top: 2rem;
    bottom: 2rem;
    left: 0.41rem;
  }

  .lens-list li {
    grid-template-columns: 2.2rem 1fr;
    gap: 0 0.9rem;
    align-items: start;
    min-height: 0;
    padding-block: 1.7rem;
  }

  .lens-list__node {
    grid-row: 1 / 3;
    margin-top: 0.24rem;
  }

  .lens-list h3 {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .lens-list p {
    grid-column: 2;
    margin-top: 0.45rem;
    font-size: 1rem;
  }

  .lenses__closing {
    font-size: 1.18rem;
  }

  .beta-section h2,
  .privacy-request h2 {
    font-size: clamp(3rem, 12vw, 4.2rem);
  }

  .turnstile-slot {
    max-width: 100%;
  }

  .site-footer__inner {
    min-height: 13rem;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    padding-block: 2.4rem;
    text-align: center;
  }

  .site-footer p {
    grid-column: auto;
    justify-self: center;
    padding: 0;
  }

  .legal-hero {
    padding-block: 4.5rem;
  }

  .legal-hero h1 {
    font-size: clamp(3.6rem, 15vw, 5rem);
  }
}

@media (max-width: 24rem) {
  :root {
    --gutter: 1.15rem;
  }

  .site-header .button--small {
    max-width: 9rem;
  }

  .turnstile-slot {
    margin-left: -0.2rem;
    transform: scale(0.96);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
