:root {
  color-scheme: dark;
  --bg: #090c0a;
  --ink: #ebe4d6;
  --muted: #c4b8a6;
  --line: rgba(235, 228, 214, 0.16);
  --brass: #c6a36a;
  --ember: #ffcf8a;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header-offset: calc(env(safe-area-inset-top, 0px) + 3.25rem);
  --gutter-l: max(6vw, env(safe-area-inset-left, 0px));
  --gutter-r: max(6vw, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 340;
  line-height: 1.55;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; touch-action: manipulation; }

button { font: inherit; color: inherit; }

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

::selection {
  background: var(--brass);
  color: #16130c;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 0.7rem;
}

.skip:focus { top: calc(0.6rem + env(safe-area-inset-top, 0px)); }

/* Floating dust, drawn by js/nocturne.js */

.dust {
  position: fixed;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-offset);
  padding: env(safe-area-inset-top, 0px) var(--gutter-r) 0 var(--gutter-l);
  color: #f6f1e8;
  mix-blend-mode: difference;
}

.site-header.is-solid {
  mix-blend-mode: normal;
  background: rgba(9, 12, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mark {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 3.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.35rem 1.15rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 3.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover { color: var(--brass); }
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(var(--hero-zoom, 1.06)) translate3d(var(--hx, 0), var(--hy, 0), 0);
  will-change: transform;
}

.hero img.fit-hero { object-position: center 42%; }

.hero::after,
.plant-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 44rem;
  padding: 22vh var(--gutter-r) 8vh var(--gutter-l);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 45%);
}

.hero-copy a { pointer-events: auto; }

.eyebrow,
.num,
.index-bar {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.moon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(255, 220, 160, 0.55));
}

.moon circle { fill: rgba(235, 228, 214, 0.12); }
.moon path { fill: #f3e6c8; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-optical-sizing: auto;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 8ch;
  margin: 0.15em 0 0.2em;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.86;
}

h1 .w { display: inline-block; }

.js h1 .w {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.25em);
  animation: word-in 1.6s var(--ease-out) forwards;
  animation-delay: calc(1.1s + var(--i) * 0.16s);
}

@keyframes word-in {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.js .hero .lede,
.js .hero .cue,
.js .hero .eyebrow {
  opacity: 0;
  animation: fade-in 1.4s ease forwards;
  animation-delay: 1.9s;
}

.js .hero .eyebrow { animation-delay: 0.9s; }

@keyframes fade-in { to { opacity: 1; } }

.lede {
  max-width: min(36ch, 100%);
  margin: 0;
  color: #f0e8da;
}

.cue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  border-bottom: 1px solid var(--brass);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--brass);
}

/* Collection */

#collection { position: relative; }

.index-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter-r) 0.2rem var(--gutter-l);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.group-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(3rem, 7vh, 5rem) var(--gutter-r) 1.1rem var(--gutter-l);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-offset) + 44px);
}

.group-bar span:first-child {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 420;
  line-height: 1;
}

.group-bar span:last-child {
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plant-nav {
  position: relative;
  top: auto;
  z-index: 8;
  display: flex;
  gap: 0.25rem 1.2rem;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
  overflow-x: auto;
  background: rgba(9, 12, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
  scroll-padding-inline: 1rem;
}

.plant-nav.is-pinned {
  position: sticky;
  top: var(--header-offset);
}

.plant-nav::-webkit-scrollbar { display: none; }

.plant-nav a {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  gap: 0.4rem;
  min-height: 44px;
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 transparent;
  transition: color 0.4s ease, box-shadow 0.4s ease;
}

.plant-nav a span {
  color: var(--brass);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.plant-nav a[aria-current="true"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--brass);
}

.plant-nav a:focus-visible { outline-offset: -2px; }

.plant {
  --lit: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100svh;
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}

.plant:nth-of-type(even) { grid-template-columns: 0.85fr 1.15fr; }
.plant:nth-of-type(even) .plant-media { order: 2; }

.plant-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #050605;
}

.plant-media img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0), 0) scale(var(--zoom, 1));
  will-change: transform;
}

.ghost {
  position: absolute;
  right: 4%;
  bottom: -0.18em;
  z-index: 3;
  font-family: var(--serif);
  font-size: clamp(9rem, 22vw, 22rem);
  font-weight: 360;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 228, 214, 0.22);
  transform: translate3d(0, var(--gy, 0), 0);
  pointer-events: none;
  user-select: none;
}

.plant:nth-of-type(even) .ghost { right: auto; left: 4%; }

.fit-asterias { object-position: center 45%; }
.fit-plumosa { object-position: center 40%; }
.fit-castellanosii { object-position: center 45%; }
.fit-lembckei { object-position: center 55%; }
.fit-fissuratus { object-position: center 50%; }
.fit-hexaedrophorus { object-position: center 40%; }
.fit-decaryi { object-position: center 35%; }
.fit-cooperi { object-position: center 55%; }
.fit-capricorne { object-position: center 40%; }
.fit-punillense { object-position: center 50%; }
.fit-humilis { object-position: center 40%; }
.fit-matanzanus { object-position: center 45%; }
.fit-floricomus { object-position: center 40%; }
.fit-heliosa { object-position: 40% 50%; }
.fit-horrida { object-position: center 40%; }
.fit-pseudoglobosa { object-position: center 50%; }
.fit-suzannae { object-position: center 40%; }
.fit-subglauca { object-position: center 45%; }
.fit-perezdelarosae { object-position: center 55%; }
.fit-megalothelon { object-position: center 45%; }
.fit-cinerea { object-position: center 35%; }
.fit-coquimbana { object-position: center 40%; }
.fit-esmeraldana { object-position: center 50%; }
.fit-aurantiacus { object-position: center 45%; }
.fit-uncinatus { object-position: center 50%; }
.fit-slabana { object-position: center 50%; }
.fit-hakujo { object-position: center 45%; }
.fit-batesiana { object-position: center 45%; }
.fit-petrophila { object-position: center 45%; }

.plant-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(4.5rem, 8vh, 7rem) var(--gutter-r) clamp(4.5rem, 8vh, 7rem) var(--gutter-l);
}

.num { margin: 0; color: var(--brass); }

.plant h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
  line-height: 0.92;
}

.binomial {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.plant p:last-child { max-width: 38ch; margin: 0; }

/* Text that rises out of the dark */

.js .rv {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(1.4rem);
  transition:
    opacity 1.2s ease,
    filter 1.2s ease,
    transform 1.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.11s);
}

.js .rv.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Care and keeper */

.care,
.keeper {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem 4rem;
  padding: 12vh var(--gutter-r) 12vh var(--gutter-l);
  border-top: 1px solid var(--line);
}

.care h2,
.keeper h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.9;
}

.facts { display: grid; gap: 1.6rem; }

.facts article { border-top: 1px solid var(--line); padding-top: 0.9rem; }

.facts h3 {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
}

.facts p,
.keeper p { margin: 0; max-width: 52ch; color: var(--muted); }

.keeper p + p { margin-top: 1rem; }

/* Seedlings */

.seedlings {
  padding: 12vh var(--gutter-r) 12vh var(--gutter-l);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-offset);
}

.seedlings-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem 4rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.seedlings h2 {
  grid-row: span 2;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.9;
}

.seedlings-head p { margin: 0; max-width: 52ch; color: var(--muted); }

.seedlings-head .seed-count {
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.seed-grid {
  columns: 4 15rem;
  column-gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seed-grid li {
  margin: 0 0 0.75rem;
  break-inside: avoid;
}

.seed {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050605;
}

.seed img {
  width: 100%;
  height: auto;
  filter: brightness(0.62) saturate(0.85);
  transform: scale(1.02);
  transition: filter 0.7s ease, transform 1.2s var(--ease-out);
}

.seed:focus-visible { outline-offset: -2px; }
.seed:focus-visible img,
.seed.is-lit img { filter: none; transform: scale(1.06); }

@media (hover: hover) and (pointer: fine) {
  .seed:hover img { filter: none; transform: scale(1.06); }
}

@media (hover: none), (pointer: coarse) {
  .seed img { filter: brightness(0.85); }
}

.seed-view {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 5, 4, 0.96);
  color: var(--ink);
}

.seed-view::backdrop { background: rgba(0, 0, 0, 0.7); }

.seed-view[open] {
  display: grid;
  place-items: center;
  animation: seed-in 0.5s var(--ease-out);
}

.seed-view img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.seed-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(9, 12, 10, 0.7);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.seed-close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); }
.seed-prev { left: max(1rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.seed-next { right: max(1rem, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

@media (hover: hover) and (pointer: fine) {
  .seed-btn:hover { border-color: var(--brass); color: var(--ember); }
}

.seed-pos {
  position: absolute;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-align: center;
}

@keyframes seed-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Goodnight */

.goodnight {
  position: relative;
  z-index: 21;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding: 18vh var(--gutter-r) 20vh var(--gutter-l);
  border-top: 1px solid var(--line);
  text-align: center;
}

.goodnight-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--muted);
  transition: opacity 1.5s ease;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 48px;
  padding: 0.55rem 1.3rem 0.55rem 0.6rem;
  border: 1px solid rgba(198, 163, 106, 0.55);
  border-radius: 999px;
  background: rgba(198, 163, 106, 0.06);
  color: var(--brass);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.switch-knob {
  position: relative;
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(198, 163, 106, 0.25);
  transition: background 0.4s ease;
}

.switch-knob::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 1.38rem;
  width: 1.04rem;
  height: 1.04rem;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px 3px rgba(255, 207, 138, 0.7);
  transition: left 0.45s var(--ease-out), background 0.4s ease, box-shadow 0.4s ease;
}

.switch[aria-pressed="true"] .switch-knob { background: rgba(235, 228, 214, 0.08); }

.switch[aria-pressed="true"] .switch-knob::after {
  left: 0.18rem;
  background: #4a4639;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .switch:hover { background: rgba(198, 163, 106, 0.14); border-color: var(--brass); }
}

.goodnight-after {
  min-height: 3.2em;
  margin: 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  color: #f3e6c8;
  opacity: 0;
  transition: opacity 2s ease 1.2s;
}

.blackout {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(3, 3, 6, 0.9), #020203 70%);
  opacity: 0;
  transition: opacity 2.4s ease;
}

html.lights-out .blackout { opacity: 1; }
html.lights-out .goodnight-line { opacity: 0.25; }
html.lights-out .goodnight-after { opacity: 1; }
html.lights-out .dust { z-index: 21; }

/* Footer */

.colophon {
  padding: 2.5rem var(--gutter-r) calc(5.5rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.colophon ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.colophon li { margin: 0.35rem 0; }

.colophon a { color: var(--ink); }

/* Dock */

.dock {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 12, 10, 0.72);
  backdrop-filter: blur(14px);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.85rem 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.dock-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-btn[aria-pressed="true"] {
  background: rgba(198, 163, 106, 0.16);
  color: var(--ember);
}

.dock-btn[data-toggle="sound"][aria-pressed="false"] .waves { opacity: 0.25; }

@media (hover: hover) and (pointer: fine) {
  .dock-btn:hover { color: var(--ink); }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Over the years */

.plant-media img { transition: opacity 0.28s ease; }
.plant-media img.is-swapping { opacity: 0; }

.years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.years span {
  margin-right: 0.4rem;
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.years button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.years button[aria-pressed="true"] {
  border-color: var(--brass);
  background: rgba(198, 163, 106, 0.16);
  color: var(--ember);
}

/* Calendar and map sections */

.blooms,
.origins {
  padding: 12vh var(--gutter-r) 12vh var(--gutter-l);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-offset);
}

.sec-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem 4rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.sec-head h2 {
  grid-row: span 2;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.9;
}

.sec-head p { margin: 0; max-width: 52ch; color: var(--muted); }

.sec-head .sec-meta {
  min-height: 1.5em;
  color: var(--ember);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}

.sec-head .sec-meta:empty { display: none; }

/* Flowering calendar */

.cal-wrap { overflow-x: auto; }

.cal {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cal th,
.cal td { padding: 0; }

.cal thead th { padding-bottom: 0.5rem; }

.cal .mon {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.cal .mon.is-now { color: var(--ember); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 0.35em; }
.cal .mon[aria-pressed="true"] { background: rgba(198, 163, 106, 0.2); color: var(--ember); }

.cal tbody th[scope="row"] {
  width: 13rem;
  padding: 0.2rem 1rem 0.2rem 0;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.cal tbody th a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cal tbody th a span { color: var(--brass); font-size: 0.72rem; letter-spacing: 0.1em; margin-right: 0.35rem; }

.cal .cal-group th {
  padding: 1.4rem 0 0.4rem;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
}

.cal tbody td {
  position: relative;
  height: 1.9rem;
  background-image: linear-gradient(to right, rgba(235, 228, 214, 0.05) 1px, transparent 1px);
}

/* The usual season: a soft band through the row */
.cal td.u::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0;
  background: rgba(198, 163, 106, 0.22);
}

.cal td.u-start::before { left: 0.25rem; border-radius: 999px 0 0 999px; }
.cal td.u-end::before { right: 0.25rem; border-radius: 0 999px 999px 0; }
.cal td.u-start.u-end::before { border-radius: 999px; }

/* Photographed in flower: a bright dot */
.cal .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(255, 207, 138, 0.7);
  transform: translate(-50%, -50%);
}

/* The chosen month glows down its column */
.cal tbody td.col-on { background-color: rgba(198, 163, 106, 0.08); }

.cal tbody tr { transition: opacity 0.3s ease; }
.cal tbody tr.off { opacity: 0.28; }
.cal tbody tr.due th a { color: var(--ember); }

@media (hover: hover) and (pointer: fine) {
  .cal .mon:hover { color: var(--ink); }
  .cal tbody th a:hover { color: var(--ember); }
  .years button:hover { color: var(--ink); }
}

/* Map */

.maps {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: start;
}

.map { margin: 0; }

.map-frame {
  position: relative;
  border: 1px solid var(--line);
  background: #070a08;
}

.map-frame img { display: block; width: 100%; height: auto; }

.map figcaption {
  margin-top: 0.7rem;
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pin {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.pin::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 207, 138, 0.18), 0 0 14px rgba(255, 207, 138, 0.75);
  transition: transform 0.2s ease;
}

.pin[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  left: 18px;
  color: var(--ember);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.pin[aria-expanded="true"]::before { transform: scale(1.5); }

.pin-pop {
  position: absolute;
  z-index: 2;
  min-width: 12rem;
  max-width: min(17rem, calc(100% - 12px));
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 12, 10, 0.94);
  backdrop-filter: blur(10px);
}

.pin-pop ul { margin: 0; padding: 0; list-style: none; }
.pin-pop li + li { margin-top: 0.55rem; }

.pin-pop a { color: var(--ink); text-decoration: none; }
.pin-pop a span { color: var(--brass); font-size: 0.72rem; letter-spacing: 0.1em; margin-right: 0.3rem; }
.pin-pop small { display: block; color: var(--muted); font-size: 0.78rem; }

@media (hover: hover) and (pointer: fine) {
  .pin:hover::before { transform: scale(1.35); }
  .pin-pop a:hover { color: var(--ember); }
}

/* Small screens */

@media (max-width: 860px) {
  .site-header {
    mix-blend-mode: normal;
    background: rgba(9, 12, 10, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mark { font-size: 0.88rem; letter-spacing: 0.02em; }

  .site-header nav { flex: 1; min-width: 0; justify-content: flex-end; gap: 0.65rem; }

  .site-header nav a { letter-spacing: 0.06em; font-size: 0.68rem; }

  h1 { font-size: clamp(3.15rem, 14vw, 4.8rem); }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    padding: calc(var(--header-offset) + 1.5rem) var(--gutter-r) calc(5rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1) 26%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.9));
  }

  .plant,
  .plant:nth-of-type(even) {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100svh - var(--header-offset));
    scroll-margin-top: var(--header-offset);
  }

  .plant:nth-of-type(even) .plant-media { order: 0; }

  .plant-media { grid-area: 1 / 1; min-height: calc(100svh - var(--header-offset)); }

  .ghost,
  .plant:nth-of-type(even) .ghost {
    top: calc(var(--header-offset) + 2.5rem);
    right: 4%;
    bottom: auto;
    left: auto;
    font-size: 8rem;
  }

  .plant-copy {
    grid-area: 1 / 1;
    z-index: 4;
    justify-content: flex-end;
    padding: 18vh var(--gutter-r) calc(5.2rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.86));
  }

  .plant h2 { font-size: clamp(2.7rem, 12vw, 4.2rem); }

  .plant p:last-child { color: #f3ecdf; }

  .care,
  .keeper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 4.5rem;
  }

  .seedlings { padding-block: 4.5rem; }

  .seedlings-head { grid-template-columns: 1fr; gap: 1rem; }

  .seedlings h2 { grid-row: auto; }

  .blooms,
  .origins { padding-block: 4.5rem; }

  .sec-head { grid-template-columns: 1fr; gap: 1rem; }

  .sec-head h2 { grid-row: auto; }

  .cal { min-width: 0; font-size: 0.82rem; }

  .cal tbody th[scope="row"] { width: auto; max-width: 8.5rem; padding-right: 0.5rem; overflow: hidden; text-overflow: ellipsis; }

  .cal tbody th a span { display: none; }

  .cal .mon { min-height: 32px; letter-spacing: 0; }

  .maps { grid-template-columns: 1fr; }

  .seed-grid { columns: 2; column-gap: 0.5rem; }

  .seed-grid li { margin-bottom: 0.5rem; }

  .dock-btn span { display: none; }
  .dock-btn { padding: 0 0.7rem; }
}

@media (max-width: 480px) {
  .site-header nav a[href="#keeper"] { display: none; }
}

@media (max-width: 860px) and (max-height: 520px) {
  .plant,
  .plant:nth-of-type(even) { display: block; min-height: 0; }

  .plant-media { min-height: 72vw; height: 72vw; }

  .plant-copy {
    background: none;
    padding: 1.35rem var(--gutter-r) 1.6rem var(--gutter-l);
  }
}

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

  .js h1 .w,
  .js .hero .lede,
  .js .hero .cue,
  .js .hero .eyebrow {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .js .rv { opacity: 1; filter: none; transform: none; transition: none; }

  .seed img { transition: none; }
  .seed-view[open] { animation: none; }

  .hero img,
  .plant-media img,
  .ghost { transform: none; }
}
