:root {
  --cream: #e7eef4;
  --paper: #ffffff;
  --ink: #1a1d21;
  --link: #0c3f86;
  --muted: #3a424c;
  --error: #6e1212;
  --serif: "Trebuchet MS", "Segoe UI", sans-serif;
  --sans: Verdana, Geneva, Tahoma, sans-serif;
  --measure: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.65rem 1rem;
  z-index: 10;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

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

.page {
  width: 100%;
  margin: 0;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.75rem) 0;
}

.letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.letterhead-side {
  padding-top: 0.45rem;
  text-align: right;
}

.letterhead-side .domain {
  margin: 0;
  font-size: 0.95rem;
}

.legal-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.55rem 0.22rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink);
}

.quip {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
}

.hero {
  margin-bottom: 1.75rem;
}

.photo {
  margin: 0 0 1.75rem;
}

.photo img {
  display: block;
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.callout,
.feature,
.waitlist,
.prose,
.success {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.callout,
.waitlist,
.prose {
  max-width: 100%;
  padding: 1.25rem 1.3rem 0.4rem;
  margin-bottom: 2rem;
}

.callout .quip,
.closer {
  margin-bottom: 1.1rem;
}

.features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature {
  margin: 0;
  padding: 1.1rem 1.1rem 0.35rem;
}

.feature-index {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.section-intro {
  margin-bottom: 1rem;
}

.closer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.waitlist-layout {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.waitlist {
  margin-bottom: 0;
}

.waitlist .lede,
.field,
.fine-print {
  max-width: none;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[aria-invalid="true"] {
  border-width: 2px;
}

.field-error {
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.98rem;
}

.form-status {
  margin: 0.35rem 0 1rem;
}

button,
.button {
  display: inline-block;
  min-height: 48px;
  margin: 0.25rem 0 1rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover,
button:focus-visible,
.button:focus-visible {
  background: var(--cream);
  color: var(--ink);
}

button:disabled {
  cursor: wait;
}

.fine-print,
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.success {
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 1.4rem 0 2.4rem;
}

.site-footer p {
  margin-bottom: 0.7rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.site-footer a {
  display: inline-block;
  padding: 0.35rem 0;
}

.prose h2 {
  margin-top: 1.6rem;
  font-size: 1.7rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose li::marker {
  color: var(--ink);
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .waitlist-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .page {
    padding-inline: 1rem;
  }

  .letterhead {
    flex-direction: column;
  }

  .letterhead-side {
    padding-top: 0;
    text-align: left;
  }

  button,
  .button {
    width: 100%;
  }

  .brand {
    font-size: 1.3rem;
  }
}

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

@media (forced-colors: active) {
  .badge,
  .callout,
  .feature,
  .waitlist,
  .prose,
  .success,
  .photo img,
  button,
  .button,
  input {
    border: 1px solid ButtonText;
  }

  button,
  .button {
    background: ButtonText;
    color: ButtonFace;
  }
}

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