:root {
  color-scheme: dark;
  --ground: #111412;
  --paper: #e9e5da;
  --muted: #96988f;
  --line: rgba(233, 229, 218, .23);
  --edge: clamp(24px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: var(--edge);
  isolation: isolate;
  overflow: hidden;
  touch-action: pinch-zoom;
}

.brand,
.quiet-link,
.action {
  color: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
}

.brand { position: relative; z-index: 2; justify-self: start; }
.quiet-link { border: 0; padding: 0 0 5px; background: transparent; border-bottom: 1px solid var(--line); cursor: pointer; }

.access {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(520px, 100%);
  margin-left: clamp(0px, 8vw, 130px);
}

.kicker {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
}

h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}

.intro {
  max-width: 38ch;
  margin: 30px 0 56px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  max-width: 500px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

input::placeholder { color: #6f716a; }

.action {
  min-height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.action:disabled { cursor: default; opacity: .4; }
.action:focus-visible, input:focus-visible, .quiet-link:focus-visible, .brand:focus-visible,
.terms-link:focus-visible, .terms button:focus-visible { outline: 1px solid var(--paper); outline-offset: 7px; }

.agreement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.agreement { display: inline-flex; align-items: center; gap: 10px; color: #b4b6ae; font-size: 12px; line-height: 1.4; cursor: pointer; }
.agreement input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  appearance: none;
  border: 1px solid #777b74;
  background: transparent;
  cursor: pointer;
}
.agreement input:checked { background: var(--paper); box-shadow: inset 0 0 0 3px var(--ground); }
.terms-link, .terms button {
  border: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
}

.terms {
  width: min(720px, calc(100vw - 32px));
  max-height: min(780px, calc(100svh - 32px));
  margin: auto;
  border: 1px solid #555b55;
  padding: 0;
  background: #171b18;
  color: var(--paper);
}
.terms::backdrop { background: rgba(5, 7, 6, .78); backdrop-filter: blur(5px); }
.terms-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #171b18;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
}
.terms-body { padding: clamp(28px, 5vw, 56px); }
.terms-kicker { margin: 0 0 24px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.terms h2 { margin: 0 0 28px; font-size: clamp(40px, 7vw, 68px); font-weight: 400; letter-spacing: -.05em; }
.terms-body > p, .terms li { color: #b4b6ae; font-size: 13px; line-height: 1.65; }
.terms ol { margin: 28px 0; padding-left: 20px; }
.terms li { margin: 0 0 18px; padding-left: 8px; }
.terms strong { color: var(--paper); font-weight: 500; }
.terms-effective { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

.status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.strata {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #b5ad94;
  stroke-width: .72;
  opacity: .46;
  pointer-events: none;
}
.strata path { vector-effect: non-scaling-stroke; }

.account {
  display: none;
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(680px, 100%);
  margin-left: clamp(0px, 8vw, 130px);
}

.account.is-visible { display: block; }
.account h1 { max-width: none; }
.account-meta { margin-top: 36px; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .shell { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .access, .account { margin-left: 0; }
  h1 { font-size: clamp(44px, 15vw, 66px); }
  .intro { margin: 24px 0 44px; }
  .email-row { grid-template-columns: 1fr; gap: 24px; }
  .action { justify-self: start; }
  .agreement-row { align-items: flex-start; }
  .agreement { max-width: 240px; }
  .terms { width: 100vw; max-width: none; max-height: 100svh; height: 100svh; border: 0; }
  .strata {
    inset: auto;
    width: 185%;
    height: 94%;
    left: -72%;
    top: 3%;
    opacity: .33;
    transform: scaleY(.74);
    transform-origin: 50% 50%;
    stroke-width: .68;
  }
  .footer { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
