:root {
  --desk: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --action: #111111;
  --action-ink: #ffffff;
  --action-hover: #333333;
  --field-line: #8c8c8c;
  --field: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #141414;
    --ink: #f2f2f2;
    --muted: #a3a3a3;
    --line: #2a2a2a;
    --action: #f2f2f2;
    --action-ink: #141414;
    --action-hover: #d9d9d9;
    --field-line: #6e6e6e;
    --field: #1c1c1c;
  }
}

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

@font-face {
  font-family: "Newsreader Fallback";
  src: local("Iowan Old Style"), local("Georgia");
  size-adjust: 90%;
  ascent-override: 82%;
  descent-override: 29%;
  line-gap-override: 0%;
}

html {
  color-scheme: light dark;
  font-family: "Newsreader", "Newsreader Fallback", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 118.75%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 20px;
  background: var(--desk);
  color: var(--ink);
  overflow-wrap: break-word;
}

header,
main,
footer {
  max-width: 560px;
  margin: 0 auto;
}

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

header {
  padding-top: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  margin: -12px 0;
  font-weight: 600;
}

.mark {
  width: 20px;
  height: auto;
  fill: currentColor;
}

main {
  padding-top: clamp(48px, 10vh, 96px);
}

section + section {
  margin-top: 96px;
}

h1 {
  margin: 0 0 32px;
  font-size: 2.526rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 24px;
  font-size: 1.579rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p,
ul {
  margin: 0;
}

p + p,
ul + p {
  margin-top: 18px;
}

strong {
  font-weight: 600;
}

p,
li {
  text-wrap: pretty;
}

.action {
  margin-top: 36px;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--action);
  color: var(--action-ink);
  font-weight: 500;
  line-height: 1.2;
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
}

.button:hover {
  background: var(--action-hover);
}

.moments {
  padding: 0;
  list-style: none;
}

.moments li {
  padding: 14px 0;
}

.moments li:first-child {
  padding-top: 0;
}

.moments li:last-child {
  padding-bottom: 0;
}

.moments li + li {
  border-top: 1px solid var(--line);
}

footer a {
  padding: 9px 0;
  margin: -9px 0;
}

.note section + section {
  margin-top: 56px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 96px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 599px) {
  header {
    padding-top: 28px;
  }

  main {
    padding-top: 56px;
  }

  section + section {
    margin-top: 64px;
  }

  h1 {
    font-size: 1.789rem;
  }

  h2 {
    font-size: 1.316rem;
  }

  footer {
    margin-top: 64px;
  }
}

#waitlist {
  scroll-margin-top: 48px;
}

.waitlist {
  margin-top: 36px;
}

.field + .field {
  margin-top: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.895rem;
  font-weight: 500;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.field textarea {
  resize: vertical;
  min-height: 7.5em;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
  border-color: var(--action);
}

.waitlist .action {
  margin-top: 24px;
}

button.button {
  border: 0;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

button.button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

.action a:not(.button) {
  display: inline-block;
  padding: 9px 0;
  margin: -9px 0;
  text-decoration: underline;
}

button.button:disabled {
  opacity: 0.6;
  cursor: default;
}

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

.form-note:empty {
  display: none;
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
}

.form-note a {
  text-decoration: underline;
}
