/* biome-ignore-all lint/style/noDescendingSpecificity: this hand-authored sheet layers state classes (.js, .is-in, .is-ready) over base rules; source order is the cascade contract */
/* Lushly marketing site — shared styles.
   Green-led palette that harmonizes with the app's Violet light theme; the
   app's clay action color is reserved for the primary call to action.
   Bitter + Outfit are the app's typefaces.
   Its custom properties come from Lushly's tree (packages/theme, seed.json), linked before
   this sheet as /site/theme/site.css; edit them there, not here. */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-block-start: 6rem;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--moss);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-inline-size: 17ch;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.014em;
  max-inline-size: 22ch;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
  max-inline-size: var(--measure);
}

p + p {
  margin-block-start: 1em;
}

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.btn-primary:focus-visible {
  outline-color: var(--moss);
}

.is-over-scene .btn-primary:focus-visible,
.is-dark .btn-primary:focus-visible,
.closing .btn-primary:focus-visible {
  outline-color: var(--marigold);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--linen);
  color: var(--moss);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus-visible {
  inset-block-start: 1rem;
}

.wrap {
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

table.vh {
  display: block;
}

/* Wordmark ----------------------------------------------------------- */

/* The wordmark is an external SVG sprite; its paths take their fill from here. */
.wordmark {
  fill: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.brand .wordmark {
  block-size: 3.25rem;
  inline-size: auto;
  aspect-ratio: 108 / 64;
  display: block;
}

/* Header ------------------------------------------------------------- */

.site-header {
  padding-block: 1rem;
  color: var(--moss);
  transition:
    background-color 320ms var(--ease),
    color 320ms var(--ease),
    box-shadow 320ms var(--ease);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header.is-floating {
  position: fixed;
  inset-inline: 0;
  inset-block-start: 0;
  z-index: 20;
}

.site-header.is-over-scene {
  color: var(--linen);
}

.site-header.is-solid {
  background: var(--linen);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 var(--rule);
}

/* Without the script, a floating bar over the page's own linen is solid from the start. */
html:not(.js) .site-header.is-floating:not(.is-over-scene) {
  background: rgba(251, 250, 243, 0.86);
  box-shadow: 0 1px 0 var(--rule);
}

.site-header.is-solid.is-dark {
  background: var(--fn-night-bar);
  color: var(--linen);
  box-shadow: 0 1px 0 rgba(251, 250, 243, 0.12);
}

/* Mobile menu: a native disclosure, no script needed. */
.site-menu {
  display: none;
  position: relative;
}

.site-menu summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding-inline: 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary i {
  display: block;
  block-size: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 200ms var(--ease),
    opacity 200ms var(--ease);
}

.site-menu[open] summary i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu[open] summary i:nth-child(2) {
  opacity: 0;
}

.site-menu[open] summary i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu-panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
  min-inline-size: 12rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--linen);
  color: var(--moss);
  border-radius: var(--radius);
  box-shadow:
    0 20px 50px -20px rgba(22, 37, 26, 0.5),
    0 0 0 1px var(--rule);
  animation: fade-up 220ms var(--ease-out) both;
}

.site-menu-panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 1.0625rem;
  opacity: 1;
}

.site-menu-panel a:hover,
.site-menu-panel a[aria-current="page"] {
  background: var(--paper);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline-start: auto;
  font-size: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: inherit;
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav .btn {
  margin-inline-start: 0.5rem;
  opacity: 1;
}

/* The nav's inherited link color must never win over the button's own. */
.site-nav .btn-primary,
.site-nav .btn-primary:hover {
  color: #fff;
}

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms var(--ease),
    color 140ms var(--ease),
    transform 200ms var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--clay);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clay-hover);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.0625rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.is-ready .site-header .wordmark {
  animation: wipe 1100ms var(--ease-out) 150ms both;
}

@keyframes wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Garden hero (home) ------------------------------------------------- */
/* The example garden is drawn by Lushly's Site renderer (garden-hero.js and
   scripts/build-marketing-hero.mjs). The words sit on the page's linen by day and take the
   night hero's ink when the visitor walks the garden past dusk. Windows 1100px and wider put
   the words beside the garden; narrower ones stack the garden above them. garden-hero.js
   uses the same query. */

.garden-hero {
  position: relative;
  display: grid;
  min-block-size: var(--hero-h);
  background: linear-gradient(var(--linen) calc(100% - 7rem), var(--year-winter));
  color: var(--ink);
  overflow: clip;
  isolation: isolate;
}

/* The scene fills the hero and fades into the page at its foot. */
.garden-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 11%);
  mask-image: linear-gradient(to top, transparent 0, #000 11%);
}

/* Without the script, or when its data fails, the words stand on an afternoon sky. */
html:not(.js) .garden-scene,
.garden-hero.is-unavailable .garden-scene {
  background: linear-gradient(#b7cbd2, #d0dad3 48%, #e8e2cc 74%, #9fb08f);
}

html:not(.js) .garden-stage,
.garden-hero.is-unavailable .garden-stage,
.garden-hero:not(.is-live) .garden-time {
  display: none;
}

/* Until the script has placed the plan and the garden, nothing on the stage shows. */
.garden-hero:not(.is-live) .garden-stage {
  visibility: hidden;
}

/* With no garden drawn, there is nothing for the caption to describe. */
html:not(.js) .garden-scene figcaption,
.garden-hero.is-unavailable .garden-scene figcaption {
  display: none;
}

.garden-sky {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.garden-scene.is-shown .garden-sky {
  opacity: 1;
}

/* Paper wash: the page's linen reaches into the sky behind the words, down past the sign-up
   note; at night, the dark. */
.garden-wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    ellipse 56rem 96% at calc(max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter)) + 12rem)
      52%,
    rgba(251, 250, 243, 0.96) 0%,
    rgba(251, 250, 243, 0.9) 40%,
    rgba(251, 250, 243, 0) 74%
  );
}

.garden-wash.is-night {
  background: radial-gradient(
    ellipse 56rem 96% at calc(max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter)) + 12rem)
      52%,
    rgba(22, 37, 26, 0.88) 0%,
    rgba(22, 37, 26, 0.76) 40%,
    rgba(22, 37, 26, 0) 74%
  );
}

/* Fine paper grain dithers the large sky and wash gradients, so big screens show no banding. */
.garden-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px;
  opacity: 0.07;
  pointer-events: none;
}

/* The garden stands the hero's full height unless the window lacks the room for a garden that
   size, as a 4:3 or portrait window does; then it shrinks to the width right of the words. At
   the default text size its west corner may reach 48px into the words' column, beside the
   headline's short last lines (the wide sign-up form sits below it); larger reader text fills
   the column, so the reach fades to nothing by 150%. garden-hero.js sets --garden-reach, how far
   the garden spans left from its frame's right edge in frame heights. The closing band shares
   this sizing. Container units resolve where these are used, against the section's width. */
.garden-hero,
.closing--garden {
  container-type: inline-size;
}

/* The stage keeps the frame's proportions (the cutouts are placed by percentage, so it must
   never stretch): anchored right while the viewport is narrower than the frame, centered once
   it is wider, so the garden stays beside the words. A shrunk stage centers on the hero. */
.garden-stage {
  position: absolute;
  inset-block-start: calc((var(--hero-h) - var(--garden-h)) / 2);
  inset-inline-end: max(0px, calc((100% - var(--stage-w)) / 2));
  inline-size: var(--stage-w);
  block-size: var(--garden-h);
  isolation: isolate;
}

/* A new hour fades in above the last, which stays opaque beneath, so nothing ever shows
   through mid-fade. */
.garden-frame {
  position: absolute;
  opacity: 0;
  transition: opacity var(--fade, 520ms) var(--ease);
}

.garden-plan {
  position: absolute;
  z-index: 900;
  transform-origin: 0 0;
  border-radius: 2px;
  box-shadow: 0 30px 60px -40px rgba(31, 46, 29, 0.45);
  will-change: transform, opacity;
}

/* The copy keeps clear of the scene's fade at the hero's foot. */
.garden-hero > .wrap {
  position: relative;
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding-block: clamp(5rem, 11vh, 6.5rem) max(clamp(3rem, 7vh, 5rem), var(--hero-h) * 0.115);
}

.garden-copy {
  max-inline-size: min(34rem, 44vw);
}

.garden-hero h1 {
  color: var(--moss);
  font-size: clamp(2.5rem, min(4.2vw, 6.2vh), 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-inline-size: 12.5ch;
}

/* The turn of the sentence in italic, as Field Notes set their headlines. */
.garden-hero h1 em {
  display: block;
  font-style: italic;
  color: var(--leaf-ink);
}

.garden-hero .lede {
  margin-block-start: 1.25rem;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-inline-size: 38ch;
}

.garden-hero .actions {
  margin-block-start: 1.5rem;
}

.garden-hero h1,
.garden-hero h1 em,
.garden-hero .lede,
.garden-hero .signup-note,
.garden-hero .signup input {
  transition:
    color 500ms var(--ease),
    border-color 500ms var(--ease),
    background-color 500ms var(--ease);
}

.garden-hero:not(.is-dark) .signup input {
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.garden-hero:not(.is-dark) .signup input::placeholder {
  color: var(--ink-2);
}

.garden-hero:not(.is-dark) .signup input:focus-visible {
  outline-color: var(--moss);
  border-color: var(--moss);
  background: #fff;
}

/* The note sits over the hills, where the wash thins; full ink keeps it and its link legible. */
.garden-hero:not(.is-dark) .signup .signup-note,
.garden-hero:not(.is-dark) .signup .signup-status {
  color: var(--ink);
}

.garden-hero:not(.is-dark) .signup.is-done .signup-status {
  color: var(--moss);
}

.garden-hero:not(.is-dark) .signup.is-error .signup-status {
  color: #7a2c1f;
}

.garden-hero:not(.is-dark) .signup.is-error input {
  border-color: #7a2c1f;
}

.garden-hero:not(.is-dark) .btn-primary:focus-visible {
  outline-color: var(--moss);
}

.garden-hero .signup-note {
  font-size: 0.875rem;
  max-inline-size: 36rem;
}

/* After dark the words take the night hero's ink. */
.garden-hero.is-dark h1,
.garden-hero.is-dark .preview-pill {
  color: var(--linen);
}

.garden-hero.is-dark h1 em {
  color: var(--sprout);
}

.garden-hero.is-dark .lede {
  color: rgba(251, 250, 243, 0.84);
}

.garden-hero.is-dark .signup .signup-note {
  color: rgba(251, 250, 243, 0.92);
}

.garden-hero.is-dark .preview-pill {
  border-color: rgba(251, 250, 243, 0.4);
  background: transparent;
}

/* Over the light garden sky the navigation needs its full ink. */
body:has(.garden-hero) .site-header:not(.is-over-scene):not(.is-solid) .site-nav a {
  opacity: 1;
}

/* Garden notes: one at a time over its bed. garden-notes.js places and turns them, from the
   layout garden-hero.js announces. A note slides along by --nudge to stay over the garden; its
   stem and dot stay on the bed. */
.garden-note {
  position: absolute;
  z-index: 1000;
  translate: calc(-50% + var(--nudge)) calc(-100% - 0.9rem);
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(251, 250, 243, 0.95);
  box-shadow:
    0 0 0 1px rgba(48, 68, 56, 0.16),
    0 14px 30px -18px rgba(22, 37, 26, 0.55);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 900ms var(--ease),
    translate 900ms var(--ease-out);
}

.garden-note[hidden] {
  display: none;
}

.garden-note p {
  margin: 0;
  max-inline-size: none;
}

.garden-note::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(50% - var(--nudge));
  inset-block-start: 100%;
  inline-size: 1px;
  block-size: 0.9rem;
  background: rgba(48, 68, 56, 0.45);
}

.garden-note::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(50% - var(--nudge) - 3px);
  inset-block-start: calc(100% + 0.9rem - 3px);
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--linen);
  box-shadow: 0 0 0 1.5px var(--moss);
}

.garden-hero.is-grown .garden-note.is-current {
  opacity: 1;
  translate: calc(-50% + var(--nudge)) calc(-100% - 1.1rem);
  transition-delay: 500ms;
}

/* With no room above its bed (under the header, or at the band's top), a note hangs below. */
.garden-note.is-below {
  translate: calc(-50% + var(--nudge)) 0.9rem;
}

.garden-note.is-below::after {
  inset-block: auto 100%;
}

.garden-note.is-below::before {
  inset-block: auto calc(100% + 0.9rem - 3px);
}

.garden-hero.is-grown .garden-note.is-below.is-current {
  translate: calc(-50% + var(--nudge)) 1.1rem;
}

.garden-note-kind {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.garden-note-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--moss);
}

.garden-note--attention .garden-note-kind {
  color: #8a4a12;
}

/* The Site view's plant card, drawn in the app's own light theme as it appears there. */
.garden-note--card {
  inline-size: 16.5rem;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem 0.8rem;
  background: rgba(250, 249, 245, 0.97);
  color: var(--card-text);
  white-space: normal;
}

.note-card-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
}

.note-card-swatch {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  margin-block-start: 0.15rem;
  border-radius: 50% 50% 50% 8%;
  background: #7fa66a;
  transform: rotate(-45deg);
}

.note-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}

.note-card-latin {
  font-size: 0.6875rem;
  font-style: italic;
  color: var(--card-text-2);
}

.note-card-meta {
  font-size: 0.6875rem;
  color: var(--card-text-2);
}

.note-card-phase {
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #f0efe6;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--card-text-2);
}

.note-card-growth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6875rem;
  color: var(--card-text-2);
}

.note-card-growth i {
  position: relative;
  block-size: 0.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 107, 61, 0.14);
}

.note-card-growth i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: calc(var(--growth) * 100%);
  border-radius: inherit;
  background: var(--card-good);
}

@media (forced-colors: active) {
  .note-card-growth i {
    border: 1px solid CanvasText;
  }

  .note-card-growth i::after {
    background: CanvasText;
  }
}

.note-card-section {
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--card-line);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--card-text-2);
}

.note-card-conditions {
  display: grid;
  gap: 0.3rem;
  margin: -0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.note-card-conditions li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem;
  font-size: 0.75rem;
}

.note-card-conditions b {
  font-weight: 600;
  color: var(--card-good);
}

.note-card-conditions small {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  color: var(--card-text-2);
}

/* The app sets a coming harvest in the card's neutral tone. */
.note-card-next {
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--card-line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--card-text);
}

/* Pause and play for the notes: a quiet circle a little apart from the time of day, since it
   turns the notes, not the hours. */
.garden-notes-toggle {
  margin-inline-start: 0.35rem;
  display: grid;
  place-items: center;
  inline-size: 1.9rem;
  block-size: 1.9rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--moss);
  cursor: pointer;
}

.garden-notes-toggle svg {
  inline-size: 0.75rem;
  block-size: 0.75rem;
  fill: currentColor;
}

.garden-notes-toggle[data-state="paused"] .icon-pause,
.garden-notes-toggle[data-state="playing"] .icon-play {
  display: none;
}

.garden-notes-toggle:hover {
  border-color: var(--moss);
}

/* Until its script takes charge, the button has nothing to control. */
.garden-notes-toggle:not([data-state]) {
  display: none;
}

.garden-notes-toggle:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

/* Time of day: a native range, dressed as the sun's path. Hidden (not just transparent)
   until the garden has landed, so it cannot be focused or changed mid-intro. It aligns with a
   centered stage (--hero-h stands in for the stage's height because a stage that shrinks to
   fit beside the words is still wider than the hero, where both clamp to the gutter) and
   rises with a shrunk garden, so it stays at the garden's foot. It keeps to the garden's side
   of the words' column; large reader text wraps its note rather than crossing into the words. */
.garden-time {
  position: absolute;
  inset-inline-end: max(
    var(--gutter),
    calc((100% - var(--hero-h) * 2400 / 1120) / 2 + var(--gutter))
  );
  inset-block-end: calc(clamp(1.5rem, 4vh, 2.5rem) + (var(--hero-h) - var(--garden-h)) / 2);
  max-inline-size: calc(100cqi - var(--words-start) - min(34rem, 44vw) - var(--gutter));
  display: grid;
  grid-template-columns: auto minmax(5.5rem, 14rem) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1.1rem 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(251, 250, 243, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px var(--rule),
    0 16px 40px -24px rgba(22, 37, 26, 0.6);
  color: var(--moss);
  visibility: hidden;
  opacity: 0;
  translate: 0 0.75rem;
  transition:
    opacity 600ms var(--ease),
    translate 700ms var(--ease-out),
    visibility 0s;
}

.garden-hero.is-grown .garden-time {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  transition-delay: 900ms;
}

.garden-time-text {
  display: grid;
  line-height: 1.2;
}

.garden-time output {
  display: block;
  min-inline-size: 7.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--moss);
}

.garden-time-text span {
  font-size: 0.6875rem;
  color: var(--ink-2);
}

.garden-time input {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 100%;
  block-size: 1.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.garden-time input::-webkit-slider-runnable-track {
  block-size: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #e7b77a,
    #f1d27f 18%,
    #f4e2a0 34%,
    #efc56a 60%,
    #d98f5b 74%,
    #6c6a86 86%,
    #26324a
  );
}

.garden-time input::-moz-range-track {
  block-size: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #e7b77a,
    #f1d27f 18%,
    #f4e2a0 34%,
    #efc56a 60%,
    #d98f5b 74%,
    #6c6a86 86%,
    #26324a
  );
}

/* The thumb's solid moss ring keeps it visible on the pale pill in either phase. */
.garden-time input::-webkit-slider-thumb {
  -webkit-appearance: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-block-start: calc(2px - 0.625rem);
  border-radius: 50%;
  background: var(--marigold);
  box-shadow:
    0 0 0 2px var(--linen),
    0 0 0 3.5px rgba(46, 74, 44, 0.8),
    0 0 14px 4px rgba(228, 176, 74, 0.45);
}

.garden-time input::-moz-range-thumb {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--marigold);
  box-shadow:
    0 0 0 2px var(--linen),
    0 0 0 3.5px rgba(46, 74, 44, 0.8),
    0 0 14px 4px rgba(228, 176, 74, 0.45);
}

/* Once the moon is up, the sun on the track becomes the moon. */
.garden-time.is-night input::-webkit-slider-thumb {
  background: #e9ecf2;
  box-shadow:
    0 0 0 2px var(--linen),
    0 0 0 3.5px rgba(46, 74, 44, 0.8),
    0 0 14px 4px rgba(200, 212, 235, 0.5);
}

.garden-time.is-night input::-moz-range-thumb {
  background: #e9ecf2;
  box-shadow:
    0 0 0 2px var(--linen),
    0 0 0 3.5px rgba(46, 74, 44, 0.8),
    0 0 14px 4px rgba(200, 212, 235, 0.5);
}

.garden-time input:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
  border-radius: 999px;
}

/* Stacked: the garden is a band above the words, with the control under the picture. The band
   is capped by height so a tablet's picture never outgrows the screen. */
@media not all and (min-width: 1100px) {
  .garden-hero {
    min-block-size: 0;
    display: flex;
    flex-direction: column;
  }

  .garden-scene {
    position: relative;
    inset: auto;
    margin-block-start: 3.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
  }

  html:not(.js) .garden-scene,
  .garden-hero.is-unavailable .garden-scene {
    display: none;
  }

  .garden-stage {
    position: relative;
    inset: auto;
    inline-size: min(100%, 62svh * 1000 / 820);
    block-size: auto;
    aspect-ratio: 1000 / 820;
    margin-inline: auto;
  }

  .garden-wash {
    display: none;
  }

  .garden-time {
    order: 1;
    position: relative;
    inset: auto;
    inline-size: min(calc(100% - 2 * var(--gutter)), 34rem);
    max-inline-size: none;
    margin: -0.25rem auto 0;
    grid-template-columns: auto 1fr auto;
    padding: 0.5rem 1rem 0.55rem 1.1rem;
  }

  .garden-hero > .wrap {
    order: 2;
    inline-size: 100%;
    margin-block-start: 1.75rem;
    padding-block: 0 3rem;
  }

  html:not(.js) .garden-hero > .wrap,
  .garden-hero.is-unavailable > .wrap {
    margin-block-start: 6rem;
  }

  .garden-copy {
    max-inline-size: 40rem;
  }

  /* Landscape tablets and zoomed laptops: a shorter band keeps the headline above the fold. */
  @media (orientation: landscape) {
    .garden-stage {
      inline-size: min(100%, 46svh * 1000 / 820);
    }
  }
}

/* Phones: a shorter headline and a compact note. */
@media (max-width: 760px) {
  .garden-hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.1rem);
    max-inline-size: 11ch;
  }

  /* The italic turn carries the short line. */
  .garden-hero .h-wide {
    display: none;
  }

  .garden-note {
    padding: 0.4rem 0.65rem;
  }

  /* On a phone the card keeps to identity, growth, and what's next; like the app's docked card,
     it leaves the conditions to the full view. */
  .garden-note-text,
  .note-card-latin,
  .note-card-section,
  .note-card-conditions {
    display: none;
  }

  .garden-note-title {
    font-size: 0.8125rem;
  }

  .garden-note--card {
    inline-size: 15rem;
    gap: 0.4rem;
  }

  .garden-note--card .garden-note-kind,
  .note-card-meta {
    display: none;
  }

  .garden-hero .signup {
    grid-template-columns: 1fr;
  }
}

/* The smallest phones keep the card to its name and what's next. */
@media (max-width: 380px) {
  .note-card-growth {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .garden-sky,
  .garden-frame,
  .garden-note,
  .garden-time,
  .garden-hero h1,
  .garden-hero h1 em,
  .garden-hero .lede,
  .garden-hero .signup-note,
  .garden-hero .signup input,
  .preview-pill {
    transition: none;
  }
}

/* The site's own reduce-motion switch, where a page offers one. */
:root.reduce-motion .garden-sky,
:root.reduce-motion .garden-frame,
:root.reduce-motion .garden-note,
:root.reduce-motion .garden-time,
:root.reduce-motion .garden-hero h1,
:root.reduce-motion .garden-hero h1 em,
:root.reduce-motion .garden-hero .lede,
:root.reduce-motion .garden-hero .signup-note,
:root.reduce-motion .garden-hero .signup input,
:root.reduce-motion .preview-pill {
  transition: none;
}

/* The year: a sticky stage that scrolling sweeps through ------------- */

.year {
  position: relative;
  /* About two and a half screens of scroll sweep the whole year. */
  block-size: 260svh;
  background: var(--year-tint);
  transition: background-color 900ms var(--ease);
}

.year-stage {
  position: sticky;
  inset-block-start: 0;
  block-size: 100svh;
  display: grid;
  align-content: center;
}

.year-stage .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  inline-size: 100%;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(251, 250, 243, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--moss);
  transition:
    color 500ms var(--ease),
    border-color 500ms var(--ease),
    background-color 500ms var(--ease);
}

.js .preview-pill {
  opacity: 0;
}

.preview-pill::before {
  content: "";
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 999px;
  background: var(--marigold);
  box-shadow: 0 0 0 0 rgba(228, 176, 74, 0.6);
  animation: beacon 2400ms ease-out infinite;
}

@keyframes beacon {
  from {
    box-shadow: 0 0 0 0 rgba(228, 176, 74, 0.6);
  }
  to {
    box-shadow: 0 0 0 10px rgba(228, 176, 74, 0);
  }
}

.is-ready .preview-pill {
  animation: fade-up 800ms var(--ease-out) 100ms both;
}

/* Early access sign-up ------------------------------------------------ */

.signup {
  display: grid;
  grid-template-columns: minmax(0, 22rem) auto;
  gap: 0.75rem 0.75rem;
  align-items: center;
  inline-size: 100%;
}

.signup input {
  font: inherit;
  font-size: 1.0625rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 250, 243, 0.4);
  background: rgba(251, 250, 243, 0.1);
  color: var(--linen);
  min-inline-size: 0;
  transition:
    border-color 140ms var(--ease),
    background-color 140ms var(--ease);
}

.signup input::placeholder {
  color: rgba(251, 250, 243, 0.55);
}

.signup input:hover {
  border-color: rgba(251, 250, 243, 0.7);
}

.signup input:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 2px;
  border-color: var(--linen);
  background: rgba(251, 250, 243, 0.16);
}

.signup .signup-note,
.signup .signup-status {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: rgba(251, 250, 243, 0.72);
}

.signup .signup-status:empty {
  block-size: 0;
  margin: 0;
  overflow: hidden;
}

.signup .signup-status:focus-visible {
  outline: none;
}

.signup.is-done input,
.signup.is-done button,
.signup.is-done .signup-note {
  display: none;
}

.signup.is-done .signup-status {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--linen);
  animation: fade-up 600ms var(--ease-out) both;
}

.signup.is-error .signup-status {
  color: #f3c2b5;
}

.signup.is-error input {
  border-color: #f3c2b5;
}

.season {
  display: grid;
}

.year-hint {
  margin-block-start: 2rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.year-hint i {
  inline-size: 3rem;
  block-size: 2px;
  border-radius: 999px;
  background: var(--rule-strong);
  position: relative;
  overflow: hidden;
}

.year-hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--season-color);
  transform: scaleX(var(--year-progress, 0));
  transform-origin: left;
}

/* Almanac ------------------------------------------------------------ */

.almanac {
  min-inline-size: 0;
  background: var(--moss);
  color: var(--linen);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 30px 60px -30px rgba(22, 37, 26, 0.5);
}

.almanac-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block-end: 1rem;
}

.almanac-head h2 {
  color: var(--linen);
  font-size: 1.375rem;
  font-weight: 600;
  max-inline-size: none;
}

.almanac-meta {
  margin-block-start: 0.35rem;
  font-size: 0.9375rem;
  color: rgba(251, 250, 243, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.almanac-meta span {
  white-space: nowrap;
}

.zone-picker {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.zone-picker legend {
  float: left;
  padding: 0;
  margin-inline-end: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(251, 250, 243, 0.78);
}

.zone-picker label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(251, 250, 243, 0.35);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 140ms var(--ease),
    border-color 140ms var(--ease),
    transform 200ms var(--ease-out);
}

.zone-picker label:hover {
  border-color: rgba(251, 250, 243, 0.7);
  transform: translateY(-1px);
}

.zone-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.zone-picker label:has(input:checked) {
  background: var(--linen);
  border-color: var(--linen);
  color: var(--moss);
}

.zone-picker label:has(input:focus-visible) {
  outline: 2px solid var(--marigold);
  outline-offset: 2px;
}

.almanac-scroll {
  overflow-x: auto;
  min-inline-size: 0;
}

.almanac-chart {
  inline-size: 100%;
  min-inline-size: 320px;
  block-size: auto;
  display: block;
  overflow: visible;
  font-family: var(--font-body);
}

.almanac-chart .month-line {
  stroke: rgba(251, 250, 243, 0.12);
}

.almanac-chart .month-label,
.almanac-chart .crop-label {
  fill: rgba(251, 250, 243, 0.82);
  font-size: 13px;
}

.almanac-chart .crop-label {
  fill: var(--linen);
  font-size: 14px;
}

.almanac-chart .band {
  transform-box: fill-box;
  transform-origin: left center;
  transition:
    x 480ms var(--ease),
    width 480ms var(--ease),
    opacity 500ms var(--ease);
}

.almanac-chart .band-indoors {
  fill: var(--sprout);
  opacity: 0.55;
}

.almanac-chart .band-sow {
  fill: var(--leaf);
}

.almanac-chart .band-harvest {
  fill: var(--marigold);
}

.almanac-chart .band.is-later {
  opacity: 0.16;
}

.almanac-chart .frost-line {
  stroke: var(--frost);
  stroke-dasharray: 3 5;
  stroke-linecap: round;
  transition: transform 480ms var(--ease);
}

.almanac-chart .frost-label {
  fill: var(--frost);
  font-size: 12px;
  transition: transform 480ms var(--ease);
}

.almanac-chart .today-line {
  stroke: var(--fn-sage);
  stroke-width: 1;
}

.almanac-chart .today-dot {
  fill: var(--linen);
}

.almanac-chart .sweep {
  transition: opacity 400ms var(--ease);
}

.almanac-chart .sweep.is-hidden {
  opacity: 0;
}

.almanac-chart .sweep-line {
  stroke: var(--marigold);
  stroke-width: 2;
}

.almanac-chart .sweep-label {
  fill: var(--marigold);
  font-size: 13px;
  font-weight: 500;
}

.almanac.grow .band {
  animation: band-grow 640ms var(--ease) both;
}

@keyframes band-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.almanac-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-block-start: 0.75rem;
  font-size: 0.875rem;
  color: rgba(251, 250, 243, 0.78);
}

.almanac-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.almanac-legend i {
  inline-size: 1.25rem;
  block-size: 0.5rem;
  border-radius: 999px;
}

.almanac-legend .swatch-indoors {
  background: var(--sprout);
  opacity: 0.55;
}

.almanac-legend .swatch-sow {
  background: var(--leaf);
}

.almanac-legend .swatch-harvest {
  background: var(--marigold);
}

.almanac-legend .swatch-frost {
  background: repeating-linear-gradient(90deg, var(--frost) 0 3px, transparent 3px 7px);
  block-size: 2px;
}

.almanac-legend .swatch-today {
  inline-size: 2px;
  block-size: 0.9rem;
  background: var(--linen);
}

.almanac-foot {
  margin-block-start: 0.75rem;
  font-size: 0.875rem;
  color: rgba(251, 250, 243, 0.62);
}

/* The assistant exchange: the conversation plays out (home) ---------------- */

.exchange {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.0625rem;
  min-block-size: 16rem;
}

.exchange .turn {
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
}

.js .exchange .turn:not(.is-shown) {
  opacity: 0;
  transform: translateY(0.75rem);
}

.exchange .you {
  align-self: flex-end;
  max-inline-size: 85%;
  background: rgba(251, 250, 243, 0.12);
  border-radius: 1rem;
  padding: 0.75rem 1.125rem;
}

.exchange .lushly {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.exchange .lushly .wordmark {
  block-size: 1.5rem;
  inline-size: auto;
  aspect-ratio: 108 / 64;
  margin-block-start: 0.1rem;
  color: var(--marigold);
}

.exchange .lushly p {
  max-inline-size: none;
}

.exchange .typing {
  display: inline-flex;
  gap: 0.3rem;
  padding-block: 0.55rem;
}

.exchange .typing i {
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-radius: 999px;
  background: rgba(251, 250, 243, 0.7);
  animation: blink 1000ms ease-in-out infinite;
}

.exchange .typing i:nth-child(2) {
  animation-delay: 160ms;
}

.exchange .typing i:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.exchange .lushly.is-typing p {
  display: none;
}

.exchange .lushly:not(.is-typing) .typing {
  display: none;
}

.replay {
  margin-block-start: 1.5rem;
  background: none;
  border: 1px solid rgba(251, 250, 243, 0.35);
  color: var(--linen);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 140ms var(--ease);
}

.replay:hover {
  border-color: var(--linen);
}

/* Closing ------------------------------------------------------------ */

.closing {
  position: relative;
  min-block-size: 92svh;
  display: grid;
  align-items: center;
  color: var(--linen);
  background: var(--night);
  isolation: isolate;
}

.closing .wrap {
  padding-block: clamp(4rem, 10vh, 7rem);
  inline-size: 100%;
}

.closing .wordmark {
  display: block;
  inline-size: min(60vw, 26rem);
  block-size: auto;
  aspect-ratio: 108 / 64;
  color: var(--linen);
  margin-block-end: 1.5rem;
}

.closing h2 {
  color: var(--linen);
  max-inline-size: 18ch;
}

.closing p {
  margin-block-start: 1rem;
  color: rgba(251, 250, 243, 0.82);
  font-size: 1.125rem;
  max-inline-size: 40ch;
}

.closing .actions {
  margin-block-start: 2rem;
  max-inline-size: 36rem;
}

/* The home closing shows the hero's garden by moonlight, so the page moves through one day
   from top to bottom. It reuses the hero's stage, sky and grain (garden-hero.js). */
.closing--garden {
  min-block-size: var(--hero-h);
  overflow: clip;
}

.garden-still {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.garden-still .garden-sky,
.garden-still .garden-frame {
  opacity: 1;
}

html:not(.js) .garden-still,
.garden-still.is-unavailable {
  background: linear-gradient(#080f1e, #172536 48%, #344347 74%, #1d3034);
}

html:not(.js) .garden-still .garden-stage,
.garden-still.is-unavailable .garden-stage {
  display: none;
}

.closing--garden .wordmark {
  inline-size: min(100%, 52vw, 15rem);
}

.closing--garden h2 em {
  display: block;
  font-style: italic;
  color: var(--sprout);
}

@media not all and (min-width: 1100px) {
  .closing--garden {
    min-block-size: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .garden-still {
    position: relative;
    inset: auto;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, #000 84%, transparent);
  }

  .garden-still .garden-stage {
    position: relative;
    inset: auto;
    inline-size: min(100%, 62svh * 1000 / 820);
    block-size: auto;
    aspect-ratio: 1000 / 820;
    margin-inline: auto;
  }

  @media (orientation: landscape) {
    .garden-still .garden-stage {
      inline-size: min(100%, 46svh * 1000 / 820);
    }
  }

  html:not(.js) .garden-still,
  .garden-still.is-unavailable {
    display: none;
  }

  .closing.closing--garden .wrap {
    margin-block-start: -1rem;
    padding-block: 0 3.5rem;
  }

  html:not(.js) .closing.closing--garden .wrap {
    padding-block-start: 4rem;
  }
}

/* Stub pages ------------------------------------------------------------- */

.page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}

.page h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.page .lede {
  margin-block-start: 1.25rem;
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-inline-size: 48ch;
}

.page .body {
  margin-block-start: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.page .body h2 {
  font-size: 1.5rem;
  margin-block-start: 1.5rem;
}

.bot-page .body {
  max-inline-size: var(--measure);
}

.bot-page h1 {
  overflow-wrap: anywhere;
}

.bot-page code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.bot-page pre {
  margin: 0;
  padding: 1rem 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-inline-start: 3px solid var(--moss);
  background: var(--paper);
  line-height: 1.5;
}

.bot-page pre code {
  font-size: 0.875rem;
}

/* Footer ------------------------------------------------------------- */

.site-footer {
  border-block-start: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.site-footer .brand {
  color: var(--moss);
}

.site-footer .brand .wordmark {
  block-size: 2.25rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--moss);
  text-decoration: underline;
}

.site-footer .copy {
  margin-inline-start: auto;
}

/* Motion preferences --------------------------------------------------- */

.motion-toggle {
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.6rem 0;
  cursor: pointer;
  min-block-size: 2.75rem;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.25em;
}

.motion-toggle:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

.motion-toggle[aria-pressed="true"] {
  background: transparent;
  color: var(--moss);
  font-weight: 600;
  text-decoration-color: currentColor;
}

.motion-toggle:disabled {
  cursor: default;
}

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

  .is-ready .site-header .wordmark,
  .is-ready .preview-pill,
  .site-menu-panel,
  .preview-pill::before,
  .almanac.grow .band {
    animation: none;
  }

  .almanac-chart .band,
  .almanac-chart .frost-line,
  .almanac-chart .frost-label,
  .year,
  .js .exchange .turn {
    transition: none;
  }

  .js .preview-pill,
  .js .exchange .turn:not(.is-shown) {
    opacity: 1;
    transform: none;
  }
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 60rem) {
  .year-stage .wrap {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-content: center;
  }

  .year-hint {
    margin-block-start: 1rem;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9375rem;
  }

  .site-nav .nav-link {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .year {
    block-size: auto;
  }

  .year-stage {
    position: static;
    block-size: auto;
    min-block-size: 100svh;
    padding-block: 6rem 3rem;
    align-content: start;
  }

  .site-footer .copy {
    margin-inline-start: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 40rem) {
  .brand .wordmark {
    block-size: 2.75rem;
  }

  .almanac {
    padding-inline: 1rem;
    border-radius: 1rem;
  }

  .almanac-head h2 {
    font-size: 1.125rem;
  }

  .almanac-chart .crop-label,
  .almanac-chart .month-label,
  .almanac-chart .sweep-label {
    font-size: 12px;
  }

  .almanac-chart .frost-label {
    font-size: 11px;
  }

  .almanac-legend {
    gap: 0.4rem 1.1rem;
    font-size: 0.8125rem;
  }

  .exchange .you {
    max-inline-size: 100%;
  }
}

@media (max-width: 40rem) {
  .signup {
    grid-template-columns: 1fr;
  }

  .signup .btn {
    inline-size: 100%;
  }
}

/* The page /api/early-access answers with when a browser posts the form without JavaScript
   (packages/server/src/early-access-page.ts). */
.signup-result-header {
  padding-block-start: clamp(1.25rem, 3vw, 2rem);
}

.signup-result {
  padding-block: clamp(3rem, 12vh, 8rem);
}

/* Keep the words under the wordmark: the column stays the site's width, the text stays short. */
.signup-result > * {
  max-inline-size: 40rem;
}

.signup-result h1 {
  margin-block: 0 1rem;
  font-size: clamp(2.25rem, 4.2vw, 3rem);
}

/* The in-page choice follows the same path as the device preference. */

:root.reduce-motion {
  scroll-behavior: auto;
}

:root.reduce-motion.is-ready .site-header .wordmark,
:root.reduce-motion.is-ready .preview-pill,
:root.reduce-motion .site-menu-panel,
:root.reduce-motion .preview-pill::before,
:root.reduce-motion .almanac.grow .band {
  animation: none;
}

:root.reduce-motion .almanac-chart .band,
:root.reduce-motion .almanac-chart .frost-line,
:root.reduce-motion .almanac-chart .frost-label,
:root.reduce-motion .year,
:root.reduce-motion.js .exchange .turn {
  transition: none;
}

:root.reduce-motion.js .preview-pill,
:root.reduce-motion.js .exchange .turn:not(.is-shown) {
  opacity: 1;
  transform: none;
}

.motion-toggle[aria-pressed="true"]::before {
  content: "\2713\00a0" / "";
}

@media (min-width: 961px) {
  /* On one row it sits at the right with the copyright; wrapped on a phone it stays left. */

  .motion-toggle {
    margin-inline-start: auto;
  }

  .site-footer .motion-toggle:not([hidden]) + .copy {
    margin-inline-start: 0;
  }
}

/* Under the floating header every other page has. */

.site-header.is-floating + .page--ed {
  padding-block-start: clamp(7rem, 12vw, 9.5rem);
}

/* The bot page has no script to float its header, so it sticks. */

body:has(.bot-page) .site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgba(251, 250, 243, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

.almanac-chart .band.is-later {
  opacity: 0.36;
}
