:root {
  color-scheme: light dark;
  --paper: #f4efe6;
  --ink: #1f1a14;
  --muted: #5e564c;
  --rule: #d9d0c3;
  --link: #6e2436;
  --mark: #f6ead2;
  --placeholder-paper: #f3e7cf;
  --placeholder-ink: #6d4e12;
  --launch-paper: #eee7dc;
  --launch-ink: #241914;
  --launch-muted: #756a62;
  --launch-accent: #8c3047;
  --launch-rule: rgba(36, 25, 20, 0.14);
  --launch-page: rgba(255, 252, 246, 0.82);
  --measure: 40rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --ink: #ece4d6;
    --muted: #b5aa9c;
    --rule: #3c342c;
    --link: #e7a8b4;
    --mark: #3a2d20;
    --placeholder-paper: #2c2618;
    --placeholder-ink: #e6c98a;
    --launch-paper: #171310;
    --launch-ink: #eee5d8;
    --launch-muted: #a99d92;
    --launch-accent: #db8295;
    --launch-rule: rgba(238, 229, 216, 0.13);
    --launch-page: rgba(42, 34, 29, 0.9);
  }
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
}

a { color: var(--link); }

a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.5rem; }

.mast, .colophon, main {
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  color: inherit;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

nav a { color: inherit; }

.page { padding: 2rem 0 3rem; }

.page h1, .page h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page h1 { font-size: 2rem; margin: 0 0 0.6rem; }

.page h2 { font-size: 1.35rem; margin: 2.2rem 0 0.4rem; }

.lede {
  font-size: 1.25rem;
  line-height: 1.45;
}

p, li { max-width: var(--measure); }

.button, button, input[type="submit"] {
  display: inline-block;
  margin: 0.4rem 0.6rem 0.4rem 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
}

a.button:hover, button:hover, input[type="submit"]:hover { opacity: 0.88; }

.button.quiet, form.button button {
  background: transparent;
  color: var(--ink);
}

.coming {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder {
  max-width: var(--measure);
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: var(--placeholder-paper);
  color: var(--placeholder-ink);
  border-left: 3px solid var(--placeholder-ink);
}

.shot {
  min-height: 9rem;
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px dashed var(--placeholder-ink);
  background:
    linear-gradient(180deg, transparent 0 2.2rem, var(--rule) 2.2rem 2.25rem, transparent 2.25rem),
    var(--mark);
  display: flex;
  align-items: end;
}

.shot figcaption { margin: 0; }

.sheet {
  display: grid;
  gap: 0.45rem;
  max-width: 28rem;
  margin-top: 1.2rem;
}

.sheet label, .sheet legend {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.sheet input[type="email"], .sheet input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font: inherit;
}

fieldset {
  border: 1px solid var(--rule);
  margin: 0.4rem 0;
  padding: 0.7rem 0.9rem 0.9rem;
}

fieldset label { margin-right: 0.8rem; }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice, .alert {
  width: min(100% - 2.5rem, 48rem);
  margin: 1rem auto 0;
  padding: 0.7rem 0.9rem;
}

.notice { background: var(--mark); }

.alert { background: var(--placeholder-paper); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.checksum, .version { color: var(--muted); }

.checksum code {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.colophon {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.launch {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 45%, color-mix(in srgb, var(--launch-accent) 11%, transparent) 0, transparent 31rem),
    radial-gradient(circle at 12% 105%, color-mix(in srgb, var(--launch-accent) 7%, transparent) 0, transparent 27rem),
    var(--launch-paper);
  color: var(--launch-ink);
}

.launch::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  pointer-events: none;
  background-image: radial-gradient(currentColor 0.45px, transparent 0.45px);
  background-size: 5px 5px;
}

.launch-header, .launch-main, .launch-footer {
  width: min(100% - 4rem, 78rem);
  margin-inline: auto;
}

.launch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 2rem;
  border-bottom: 1px solid var(--launch-rule);
}

.launch-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.launch-mark {
  width: 2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--launch-rule);
  border-radius: 50%;
  color: var(--launch-accent);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1;
}

.launch-header-note, .launch-footer, .teaser-kicker, .teaser-status, .manuscript-meta {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.launch-header-note {
  color: var(--launch-muted);
  font-size: 0.65rem;
}

.launch-main {
  display: grid;
  align-items: center;
}

.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4rem, 10vh, 8rem);
}

.teaser-copy {
  position: relative;
  z-index: 1;
}

.teaser-kicker {
  margin: 0 0 1.6rem;
  color: var(--launch-accent);
  font-size: 0.67rem;
  font-weight: 600;
}

.teaser h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(4.5rem, 8.2vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.84;
}

.teaser h1 em {
  color: var(--launch-accent);
  font-weight: 400;
}

.teaser-lede {
  max-width: 34rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  color: var(--launch-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.teaser-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.4rem 0 0;
  color: var(--launch-ink);
  font-size: 0.63rem;
}

.teaser-status-dot {
  width: 0.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--launch-accent);
  box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--launch-accent) 13%, transparent);
}

.manuscript {
  width: min(100%, 27rem);
  margin-inline: auto;
  padding: 1.1rem;
  transform: rotate(2.5deg);
  border: 1px solid var(--launch-rule);
  background: color-mix(in srgb, var(--launch-page) 52%, transparent);
  box-shadow:
    1.1rem 1.1rem 0 -0.45rem color-mix(in srgb, var(--launch-page) 48%, transparent),
    1.1rem 1.1rem 0 -0.38rem var(--launch-rule),
    2.4rem 2.7rem 5rem color-mix(in srgb, var(--launch-ink) 14%, transparent);
}

.manuscript-page {
  position: relative;
  min-height: 34rem;
  padding: 2.4rem 2.1rem;
  overflow: hidden;
  background: var(--launch-page);
  box-shadow: inset 0 0 3rem color-mix(in srgb, var(--launch-ink) 3%, transparent);
}

.manuscript-page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3.3rem;
  width: 1px;
  background: color-mix(in srgb, var(--launch-accent) 22%, transparent);
}

.manuscript-meta {
  display: flex;
  justify-content: space-between;
  margin: 0 0 3.6rem;
  color: var(--launch-muted);
  font-size: 0.48rem;
}

.manuscript-heading {
  width: 48%;
  height: 0.6rem;
  margin: 0 auto 2.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--launch-ink) 72%, transparent);
}

.manuscript-lines {
  display: grid;
  gap: 1.05rem;
  padding-left: 1.9rem;
}

.manuscript-lines span {
  width: 100%;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--launch-ink) 28%, transparent);
}

.manuscript-lines .short { width: 68%; }

.manuscript-lines .marked {
  position: relative;
  width: 88%;
  background: color-mix(in srgb, var(--launch-accent) 45%, transparent);
}

.manuscript-lines .marked::after {
  content: "";
  position: absolute;
  left: -0.25rem;
  right: -0.25rem;
  bottom: -0.45rem;
  height: 0.35rem;
  border-bottom: 2px solid var(--launch-accent);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.manuscript-note {
  position: absolute;
  right: 0.45rem;
  top: 59%;
  margin: 0;
  color: var(--launch-accent);
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: 0.85rem;
  font-style: italic;
  transform: rotate(-7deg);
}

.launch-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 1.8rem;
  border-top: 1px solid var(--launch-rule);
  color: var(--launch-muted);
  font-size: 0.57rem;
}

@media (max-width: 40rem) {
  html { font-size: 106%; }

  .mast, .colophon, main, .notice, .alert { width: min(100% - 2rem, 48rem); }

  .page h1 { font-size: 1.7rem; }
}

@media (max-width: 52rem) {
  .launch-header, .launch-main, .launch-footer {
    width: min(100% - 2.5rem, 40rem);
  }

  .teaser {
    grid-template-columns: 1fr;
    gap: 4.5rem;
    padding-block: 4.5rem 6rem;
  }

  .teaser h1 { font-size: clamp(4rem, 17vw, 6.7rem); }

  .manuscript { width: min(82%, 24rem); }

  .manuscript-page { min-height: 29rem; }
}

@media (max-width: 32rem) {
  .launch-header-note { display: none; }

  .launch-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .teaser { padding-top: 3.5rem; }

  .manuscript { width: 90%; }

  .manuscript-page {
    min-height: 24rem;
    padding: 1.8rem 1.5rem;
  }

  .manuscript-page::after { left: 2.4rem; }

  .manuscript-lines { padding-left: 1.25rem; }
}
