@font-face {
  font-family: "Jost";
  src: url("/fonts/jost.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --paper: #fcfbf9;
  --forest: #2b4234;
  --forest-soft: #4d6255;
  --sage: #5e9075;
  --stroke: #55856b; /* field and chip outlines: 3:1 on Paper and Mint */
  --peach: #e9a982;
  --rust: #cb4528;
  --rust-deep: #a9381f;
  --mint: #ddeddf;
  --mint-deep: #c9e1cd;
  --blush: #fce3d6;
  --white: #ffffff;

  --display: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 76rem;
  --radius: 0.75rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--rust);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--mint-deep);
  color: var(--forest);
}

a {
  color: var(--forest);
  text-decoration-color: var(--sage);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--rust);
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--forest);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  height: clamp(2rem, 3.4vw, 2.6rem);
  width: auto;
}

/* Hero */

.hero {
  position: relative;
  /* Header is ~6.6rem tall at desktop widths; keep the ground line above the fold. */
  min-height: min(calc(100svh - 7rem), 56rem);
  display: flex;
  align-items: stretch;
}

.hero::after {
  /* The ground line the seedling is planted on. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--sage);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.hero-copy {
  align-self: center;
  padding-block: clamp(2rem, 6vh, 4.5rem) clamp(3rem, 9vh, 6rem);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.75rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
}

.hero h1 .curious {
  color: var(--sage);
}

.lead {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  max-width: 34em;
  color: var(--forest-soft);
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.facts {
  list-style: none;
  margin: clamp(1.5rem, 3.5vh, 2.25rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.125rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.facts li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--peach);
  flex: none;
}

.facts .price {
  font-variant-numeric: tabular-nums;
}

.action {
  margin-top: clamp(1.75rem, 4.5vh, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.places {
  margin: 0;
  font-size: 0.975rem;
  color: var(--forest-soft);
}

/* Buttons */

.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--rust);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.005em;
  box-shadow: 0 6px 18px -8px rgba(169, 56, 31, 0.6);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.button:hover {
  background: var(--rust-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(169, 56, 31, 0.7);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline-color: var(--forest);
  border-radius: 999px;
}

.button[disabled] {
  cursor: progress;
  background: var(--forest-soft);
  box-shadow: none;
  transform: none;
}

.button .chev {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease-out);
}

.button[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Seedling */

.hero-art {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  line-height: 0;
}

.seedling {
  /* Sized by height so it stands ~60% of the screen; it may lean into the
     right gutter rather than shrink to the column width. */
  height: min(60svh, 36rem);
  width: auto;
  max-width: calc(100% + var(--gutter));
  margin-right: calc(var(--gutter) * -0.5);
  overflow: visible;
  /* Sit the ground leaves on the ground line. */
  margin-bottom: -1px;
}

.seedling path {
  transform-box: fill-box;
}

.seedling .ground { transform-origin: 50% 100%; }
.seedling .stem { transform-origin: 50% 100%; }
.seedling .leaf-left { transform-origin: 100% 100%; }
.seedling .leaf-right { transform-origin: 0% 100%; }
.seedling .sun { transform-origin: 50% 50%; }

@media (prefers-reduced-motion: no-preference) {
  .seedling .ground {
    animation: spread 0.9s var(--ease-out) 0.1s backwards;
  }
  .seedling .stem {
    animation: rise 0.9s var(--ease-out) 0.45s backwards;
  }
  .seedling .leaf-left {
    animation: unfold-left 1s var(--ease-out) 0.95s backwards;
  }
  .seedling .leaf-right {
    animation: unfold-right 1s var(--ease-out) 1.05s backwards;
  }
  .seedling .sun {
    animation: dawn 0.9s var(--ease-out) 1.55s backwards;
  }
}

@keyframes spread {
  from { transform: scaleX(0.2) scaleY(0.4); opacity: 0; }
}

@keyframes rise {
  from { transform: scaleY(0); }
}

@keyframes unfold-left {
  from { transform: rotate(38deg) scale(0.15); opacity: 0; }
}

@keyframes unfold-right {
  from { transform: rotate(-38deg) scale(0.15); opacity: 0; }
}

@keyframes dawn {
  from { transform: translateY(40%) scale(0.4); opacity: 0; }
}

/* Founders Club form */

.join {
  background: var(--mint);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.join[data-open] {
  grid-template-rows: 1fr;
}

.join-inner {
  overflow: hidden;
  min-height: 0;
}

.join .wrap {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.join-intro h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.025em;
}

.join-intro p {
  margin: 1.25rem 0 0;
  color: var(--forest-soft);
  max-width: 28em;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field.full,
fieldset.full {
  grid-column: 1 / -1;
}

label,
legend {
  font-weight: 700;
  font-size: 0.975rem;
}

.optional {
  font-weight: 400;
  color: var(--forest-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--forest);
  background: var(--paper);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  min-height: 3.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%232B4234' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--forest);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(94, 144, 117, 0.45);
}

[aria-invalid="true"] {
  border-color: var(--rust) !important;
  background: #fffaf7;
}

::placeholder {
  color: #5f7266;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin-bottom: 0.6rem;
}

.ages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ages:empty {
  display: none;
}

.ages label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.ages select {
  width: 7.5rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--stroke);
  background: var(--paper);
  font-weight: 600;
  font-size: 0.975rem;
  transition: background-color 0.15s, border-color 0.15s;
}

.choice span::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 0.3rem;
  border: 1.5px solid var(--sage);
  background: var(--paper) center / 0.75rem no-repeat;
  flex: none;
}

.choice input:checked + span {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

.choice input:checked + span::before {
  border-color: var(--paper);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%232B4234' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.choice input:hover + span {
  border-color: var(--forest);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-weight: 400;
  font-size: 0.975rem;
  line-height: 1.5;
}

.consent input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  accent-color: var(--forest);
}

.field-error {
  margin: 0;
  color: var(--rust-deep);
  font-weight: 600;
  font-size: 0.925rem;
}

.field-error:empty {
  display: none;
}

.honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status.problem {
  color: var(--rust-deep);
}

.thanks {
  /* Takes the form's place in the right-hand column, set straight on the Mint field. */
  align-self: start;
}

.thanks h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  max-width: 18em;
}

.thanks:focus {
  outline: none;
}

/* Footer */

.site-footer {
  padding-block: 2.25rem 2.75rem;
  font-size: 0.925rem;
  color: var(--forest-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

/* Privacy notice */

.notice {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
  border-bottom: 2px solid var(--sage);
}

.notice .wrap > * {
  max-width: 68ch;
}

.notice h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
}

.notice .updated {
  margin: 1rem 0 0;
  color: var(--forest-soft);
}

.notice h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  margin-top: 2.75rem;
}

.notice p,
.notice li {
  margin: 0.75rem 0 0;
}

.notice ul {
  padding-left: 1.25rem;
  margin: 0;
}

.notice li::marker {
  color: var(--sage);
}

/* Small screens */

@media (max-width: 52rem) {
  .hero {
    min-height: 0;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding-block: 1.5rem 2rem;
  }

  .hero-art {
    justify-content: flex-end;
  }

  .seedling {
    height: min(30svh, 14rem);
    margin-right: 0;
  }

  .join .wrap {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  .action .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .join,
  .button,
  .button .chev {
    transition: none;
  }
}

/* The hidden attribute must beat the display set on .field and friends. */
[hidden] {
  display: none !important;
}
