/* Heather-grey sweatshirt fabric, navy thread, and one goldfinch-yellow patch that carries the price. */
:root {
  --fabric: #e3e6ea;
  --ink: #1b2a4a;
  --ink-soft: #4a5670;
  --finch: #f5c400;
  --paper: #ffffff;
  --alert: #a4161a;
  --sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--fabric);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.brand {
  margin: 0 0 clamp(2.5rem, 8vw, 5rem);
  font-size: 1rem;
}

.brand strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.layout {
  display: grid;
  gap: 2.75rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Keeps the headline from breaking inside "stitch-ready" and "line-art". */
.nowrap {
  white-space: nowrap;
}

.lede {
  max-width: 34em;
  margin: 0 0 1.5rem;
}

/* Each point is marked with a single stitch. */
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.points li {
  position: relative;
  padding-left: 1.75rem;
}

.points li + li {
  margin-top: 0.35rem;
}

.points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 1rem;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

/* The price and the form stay one narrow column at every width. */
.join {
  max-width: 30rem;
}

/* The price, as a patch sewn on with a running stitch. */
.patch {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: 14px;
  background: var(--finch);
  transform: rotate(-1.5deg);
}

.patch::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  pointer-events: none;
}

.price {
  margin: 0;
  font-size: clamp(1.6rem, 1.1rem + 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.launch {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.form {
  margin-top: 1.75rem;
}

.label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.row {
  display: grid;
  gap: 0.6rem;
}

.input,
.button {
  height: 3.25rem;
  border-radius: 10px;
  font: inherit;
}

.input {
  width: 100%;
  padding: 0 0.9rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.input::placeholder {
  color: #7c869b;
}

.input:focus-visible {
  outline-offset: 2px;
}

.button {
  padding: 0 1.25rem;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: #2a3d68;
}

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

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

.status {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.status:empty {
  display: none;
}

.status.is-error {
  color: var(--alert);
}

.done {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.note {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* thanks.html and 404.html */
.plain h1 {
  font-size: clamp(1.9rem, 1.3rem + 3vw, 2.75rem);
}

.plain p {
  max-width: 34em;
  margin: 0 0 1rem;
}

@media (min-width: 30rem) {
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 56rem) {
  .layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
    align-items: start;
  }
}
