@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/inter-latin-200.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
}

:root {
  --ink: #09090B; /* page */
  --chamber: #12141A; /* raised surface, screen frame, form panel */
  --bone: #E4DFD4; /* primary type. never #fff */
  --trace: #8B9A9C; /* secondary, captions, footer */
  --ember: #B8956A; /* confirm only. one gold. not a wash */
  --font: "Inter", system-ui, sans-serif;
  --masthead-size: clamp(0.72rem, 1.1vw, 0.88rem);
  --masthead-tracking: 0.04em;
  --display-size: clamp(2.1rem, 5.4vw, 3.6rem);
  --display-tracking: -0.02em;
  --display-leading: 1.12;
  --body-size: clamp(1.02rem, 1.35vw, 1.18rem);
  --body-leading: 1.55;
  --beat-size: clamp(0.92rem, 1.2vw, 1.05rem);
  --caption-size: 0.78rem;
  --caption-tracking: 0.06em;
  --label-size: 0.72rem;
  --label-tracking: 0.08em;
  --measure: 40rem;
  --gutter: clamp(1.5rem, 6.5vw, 6.5rem);
  --rule: rgba(228, 223, 212, 0.18);
  --bone-line: rgba(228, 223, 212, 0.35);
}

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

html {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  hanging-punctuation: first last;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  cursor: default;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 2;
  padding: 0.45em 0.7em;
  background: var(--bone);
  color: var(--ink);
  font-size: var(--caption-size);
  font-weight: 500;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  padding-inline: var(--gutter);
  padding-bottom: 2.25rem;
}

.masthead {
  padding-block: clamp(1.75rem, 3.5vh, 2.25rem) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
  line-height: 1;
}

.brand__mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: visible;
}

.brand__name {
  font-weight: 200;
  font-size: var(--masthead-size);
  letter-spacing: var(--masthead-tracking);
  line-height: 1;
}

.brand:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 6px;
}

.hero {
  min-height: calc(100svh - 5.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 7vh 14vh;
}

.hero h1 {
  margin: 0;
  max-width: 11.5em;
  color: var(--bone);
  font-weight: 200;
  font-size: var(--display-size);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}

.lede {
  margin: 1.65rem 0 0;
  max-width: 38rem;
  color: var(--trace);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  text-wrap: pretty;
}

.action {
  margin: 2.35rem 0 0;
}

.door {
  display: inline-block;
  padding: 0.85em 1.35em;
  border: 1px solid var(--bone);
  border-radius: 2px;
  background: transparent;
  color: var(--bone);
  font-weight: 500;
  font-size: var(--beat-size);
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

.door:active,
.door:focus-visible {
  background: var(--bone);
  color: var(--ink);
}

.door:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 3px;
}

@media (hover: hover) {
  .door:hover {
    background: var(--bone);
    color: var(--ink);
  }
}

.field-gate {
  display: none;
}

.chamber {
  display: none;
  position: relative;
  margin-top: 1.65rem;
  max-width: 22.5rem;
  padding: 1.4rem 1.35rem 1.45rem;
  background: var(--chamber);
  border: 1px solid var(--rule);
}

.hero.is-open .lede,
.hero.is-open .action,
.hero:has(#chamber:target) .lede,
.hero:has(#chamber:target) .action,
.hero:has(#sent:target) .lede,
.hero:has(#sent:target) .action,
.hero.is-sent .confirm-form,
.hero:has(#sent:target) .confirm-form {
  display: none;
}

.hero.is-open .chamber,
#chamber:target,
.hero:has(#sent:target) .chamber {
  display: block;
  animation: arrive 240ms ease both;
}

.chamber__shut {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  margin: 0;
  padding: 0.15rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--trace);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.chamber__shut:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 3px;
}

@media (hover: hover) {
  .chamber__shut:hover {
    color: var(--bone);
  }
}

.confirm-form {
  margin: 0;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.field {
  margin: 0 0 1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--trace);
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  line-height: 1.2;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55em 0.7em;
  border: 1px solid var(--bone-line);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font-family: inherit;
  font-size: var(--beat-size);
  font-weight: 400;
  line-height: 1.4;
  outline: none;
}

.field textarea {
  resize: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--bone);
}

.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--bone);
  caret-color: var(--bone);
  box-shadow: 0 0 0 1000px var(--chamber) inset;
}

.field--latch {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.latch {
  display: inline-block;
  padding: 0.85em 1.35em;
  border: 0;
  border-radius: 2px;
  background: var(--ember);
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  font-size: var(--beat-size);
  line-height: 1;
  cursor: pointer;
}

.latch:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 3px;
}

.sent {
  display: none;
  margin: 0;
  color: var(--trace);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.hero.is-sent .sent,
#sent:target {
  display: block;
}

.block {
  max-width: var(--measure);
  padding-block: clamp(3.5rem, 10vh, 6.75rem) 0;
}

.block p {
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  text-wrap: pretty;
}

.block p + p {
  margin-top: 1.15em;
}

.statement {
  color: var(--bone);
}

.beats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.beats li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--trace);
  font-size: var(--beat-size);
  line-height: 1.5;
}

.beats li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

.beats strong {
  color: var(--bone);
  font-weight: 500;
}

.proof {
  color: var(--trace);
}

.close {
  max-width: 22rem;
}

.close p {
  color: var(--bone);
  font-weight: 200;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

.colophon {
  max-width: var(--measure);
  margin-top: clamp(4.5rem, 14vh, 8.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.colophon p {
  margin: 0;
  color: var(--trace);
  font-size: var(--caption-size);
  letter-spacing: var(--caption-tracking);
  line-height: 1.4;
}

.colophon a {
  color: inherit;
}

.colophon a:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 3px;
}

@media (hover: hover) {
  .colophon a:hover {
    color: var(--bone);
  }
}

.arrive {
  animation: arrive 400ms ease both;
}

.hero h1.arrive {
  animation-delay: 80ms;
}

.lede.arrive {
  animation-delay: 160ms;
}

.action.arrive {
  animation-delay: 320ms;
}

@keyframes arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ember-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ember-breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.35);
  }
}

@media (min-width: 64rem) {
  .page {
    padding-inline: 0;
  }

  .masthead,
  main > .block,
  .colophon {
    padding-inline: var(--gutter);
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding-block: 0;
    min-height: calc(100svh - 5.25rem);
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 7vh 14vh;
    padding-left: var(--gutter);
    padding-right: clamp(1.5rem, 4vw, 3rem);
  }

  .field-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8vh;
    pointer-events: none;
    user-select: none;
  }

  .field-gate__mark {
    display: block;
    width: clamp(38vmin, 42vmin, 46vmin);
    height: clamp(38vmin, 42vmin, 46vmin);
  }

  .field-gate__ember {
    opacity: 0;
  }

  .field-gate.is-confirm .field-gate__ember {
    animation: ember-in 1200ms linear forwards;
  }

  .field-gate.is-live .field-gate__ember {
    opacity: 1;
    transform-box: fill-box;
    transform-origin: center;
    animation: ember-breathe 7s linear infinite;
  }

  .field-gate.is-frozen .field-gate__ember {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrive,
  .hero.is-open .chamber,
  #chamber:target,
  .hero:has(#sent:target) .chamber {
    animation: none;
    opacity: 1;
  }

  .door {
    transition: none;
  }

  .field-gate__ember {
    opacity: 1;
    animation: none;
  }
}
