:root {
  --umber: #1e1712;
  --bark: #2a2019;
  --rind: #4a3a2d;
  --seed: #e8b04a;
  --seed-deep: #9a6326;
  --pith: #f3ebdd;
  --husk: #a89a86;
  --sage: #9db394;
  --danger: #e8836a;

  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--umber);
  color: var(--pith);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--seed);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.01em;
}

.topbar-cta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--seed);
  padding: 8px 2px;
}

.topbar-cta:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(48px, 7vw, 104px);
  min-height: min(86vh, 860px);
}

.sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--husk);
  margin-bottom: 28px;
}

.sequence span:nth-last-child(-n + 3) {
  color: var(--seed);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 9.5em;
}

.lede {
  margin-top: 28px;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--husk);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 36px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--husk);
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--seed);
  color: var(--umber);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 16px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.button:hover {
  background: #f2c262;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.seedhead {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1;
}

.seedhead canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Growth */
.growth {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  border-top: 1px solid var(--rind);
}

.growth h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  max-width: 14em;
}

.steps {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.step h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 20px;
}

.step p {
  margin-top: 10px;
  color: var(--husk);
  max-width: 24rem;
}

/* Seeds grow from one step to the next: the size encodes accumulation. */
.step {
  display: grid;
  grid-template-rows: 26px auto auto;
  align-content: start;
}

.seed {
  display: block;
  align-self: end;
  border-radius: 50%;
  background: var(--seed);
}

.seed-1 {
  width: 10px;
  height: 10px;
  background: var(--seed-deep);
}

.seed-2 {
  width: 16px;
  height: 16px;
  background: #c48a37;
}

.seed-3 {
  width: 26px;
  height: 26px;
}

/* Name */
.name {
  padding: clamp(48px, 7vw, 104px) var(--gutter);
  background: var(--bark);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seed);
}

.name-body {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  line-height: 1.25;
  max-width: 26em;
}

/* Apply */
.apply {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 8vw, 120px) var(--gutter);
}

.apply-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.apply-intro p {
  margin-top: 20px;
  color: var(--husk);
  max-width: 28rem;
}

.apply-form {
  display: grid;
  gap: 22px;
  max-width: 36rem;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0;
}

.field legend {
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--pith);
  background: var(--bark);
  border: 1px solid var(--rind);
  border-radius: 10px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--husk) 50%),
    linear-gradient(135deg, var(--husk) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--seed);
  outline-offset: 1px;
  border-color: transparent;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  background: var(--bark);
  border: 1px solid var(--rind);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.choice input {
  accent-color: var(--seed);
  margin: 0;
}

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

.apply-form .button {
  justify-self: start;
  margin-top: 4px;
}

.form-status {
  min-height: 1.6em;
  font-size: 0.9375rem;
}

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

.form-status.is-done {
  color: var(--sage);
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rind);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--husk);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--pith);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Privacy page */
.doc {
  max-width: 44rem;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 120px);
}

.doc h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.doc h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 40px;
}

.doc p,
.doc li {
  color: var(--husk);
  margin-top: 12px;
}

.doc ul {
  padding-left: 1.2em;
}

.doc .updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .seedhead {
    justify-self: center;
    max-width: 420px;
    order: -1;
    margin-bottom: 8px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .button {
    transition: none;
  }
}
