: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;
  background: linear-gradient(rgba(9, 12, 10, 0.85), transparent);
}

.site-header.is-solid {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}

.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; }

/* EN / SK switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 3.25rem;
  padding-left: 1.15rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover { color: var(--brass); opacity: 1; }
}

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;
}

.site-header .nav-secondary { color: var(--muted); }

@media (min-width: 861px) {
  .site-header a:not(.nav-secondary) + .nav-secondary {
    margin-left: 0.3rem;
    padding-left: 1.15rem;
    border-left: 1px solid var(--line);
  }
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover { color: var(--brass); }
  .site-header .nav-secondary:hover { color: var(--ink); }
}

/* 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(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28) 7rem, transparent 12rem),
    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,
.collection-count {
  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.98;
}

h1 .w { display: inline-block; }

/* The hero text is visible by default. The entrance is only an animation
   that starts from hidden (fill-mode both), so if animations never run
   (no CSS animation, a stalled renderer, a screenshot tool) the text stays. */
.js h1 .w {
  animation: word-in 1.6s var(--ease-out) both;
  animation-delay: calc(1.1s + var(--i) * 0.16s);
}

@keyframes word-in {
  from { opacity: 0; filter: blur(14px); transform: translateY(0.25em); }
}

.js .hero .lede,
.js .hero .cue,
.js .hero .month-note,
.js .hero .eyebrow {
  animation: fade-in 1.4s ease both;
  animation-delay: 1.9s;
}

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

@keyframes fade-in { from { opacity: 0; } }

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

/* This month: care and flowering, filled in by nocturne.js */
.month-note {
  max-width: min(38ch, 100%);
  margin: 1.2rem 0 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--brass);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e6dccb;
}

.month-note p { margin: 0; }

.month-note .month-note-label {
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.month-note .month-bloom { margin-top: 0.3rem; opacity: 0.85; }

.month-note a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}

.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);
}

.hero .cue {
  padding-inline: 0.75rem;
  border-color: var(--ember);
  background: rgba(9, 12, 10, 0.76);
  color: var(--ember);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .hero .cue:hover { background: var(--bg); color: var(--ink); }
}

/* Collection */

#collection {
  position: relative;
  --plant-nav-offset: 4.65rem;
}

.index-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(2rem, 5vh, 3.5rem) var(--gutter-r) 0.5rem var(--gutter-l);
  border-top: 1px solid var(--line);
}

.index-bar h2 { margin: 0; font-size: clamp(2.15rem, 4.5vw, 3.6rem); line-height: 1; }
.collection-count { flex: none; color: var(--brass); }

.directory:not(:empty) { padding: 0 var(--gutter-r) 2rem var(--gutter-l); }
.directory h3 { margin: 1rem 0 0.85rem; font: italic 1.55rem var(--serif); }
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 45%), 1fr));
  gap: 1.2rem 0.8rem;
  padding-bottom: 1rem;
}
.directory-grid a { display: grid; align-content: start; gap: 0.25rem; min-width: 0; text-decoration: none; }
.directory-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.25rem;
  background: rgba(235, 228, 214, 0.08);
}
.directory-grid strong { color: var(--ink); font: 1.12rem var(--serif); overflow-wrap: anywhere; }
.directory-grid .plant-common { line-height: 1.4; font-size: 0.8rem; }

@media (hover: hover) and (pointer: fine) {
  .directory-grid a:hover strong { color: var(--ember); }
}

.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);
}

.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 slider: photo chips that scroll sideways between two arrows */
.plant-nav {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: visible;
  padding: 0 calc(var(--gutter-r) - 0.6rem) 0 calc(var(--gutter-l) - 0.6rem);
  background: rgba(9, 12, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.js .group-bar,
.js .plant { scroll-margin-top: var(--plant-nav-offset); }

.plant-strip {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.35rem;
  padding: 0.55rem 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2.5rem;
  scrollbar-width: none;
  --fade-l: 0px;
  --fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}

.plant-strip::-webkit-scrollbar { display: none; }
.plant-strip.more-left { --fade-l: 3rem; }
.plant-strip.more-right { --fade-r: 3rem; }

.plant-strip a {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.6rem;
  min-height: 0;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  scroll-snap-align: start;
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.plant-strip img {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(235, 228, 214, 0.08);
  filter: saturate(0.75) brightness(0.8);
  transition: filter 0.4s ease, box-shadow 0.4s ease;
}

.chip-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.chip-num {
  color: var(--brass);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.chip-name {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plant-strip a[aria-current="true"] {
  color: var(--ink);
  border-color: rgba(198, 163, 106, 0.7);
  background: rgba(235, 228, 214, 0.09);
}

.plant-strip a[aria-current="true"] img {
  filter: none;
  box-shadow: 0 0 0 2px var(--brass);
}

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

.strip-group {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0 0.4rem;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
  color: var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}

.strip-group:first-child { margin-left: 0; padding-left: 0.3rem; border-left: 0; }

.strip-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.strip-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strip-arrow:disabled { opacity: 0.25; cursor: default; }

@media (hover: hover) and (pointer: fine) {
  .plant-strip a:hover { color: var(--ink); }
  .plant-strip a:hover img { filter: none; }
  .strip-arrow:not(:disabled):hover { border-color: var(--brass); color: var(--brass); }
}

/* Narrow screens: photos only, except the plant you are on. */
@media (max-width: 860px) {
  .plant-strip a:not([aria-current="true"]) { padding: 0.2rem; }
  .plant-strip a:not([aria-current="true"]) .chip-text { display: none; }
  .strip-group { font-size: 0.85rem; }
  .plant-strip.more-left { --fade-l: 1.5rem; }
  .plant-strip.more-right { --fade-r: 1.5rem; }
}

/* On touch screens the strip is swiped, so the arrows give their room back. */
@media (hover: none), (pointer: coarse) {
  .strip-arrow { display: none; }
  .plant-nav { padding: 0; }
  .plant-strip { padding-inline: calc(var(--gutter-l) - 0.3rem) var(--gutter-r); }
}

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

.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-vatteri { object-position: center 45%; }
.plant-media .fit-fukuryu {
  inset: 0;
  height: 100%;
  object-position: center 27%;
  transform: none;
  will-change: auto;
}
.fit-scheeri { object-position: center 45%; }
.fit-debilispina { object-position: center 50%; }
.fit-castellanosii { object-position: center 50%; }
.fit-lembckei { object-position: center 55%; }
.fit-fissuratus { object-position: center 50%; }
.fit-hexaedrophorus { object-position: center 40%; }
.fit-decaryi { object-position: center 45%; }
.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;
  min-width: 0;
  padding: clamp(4.5rem, 8vh, 7rem) var(--gutter-r) clamp(4.5rem, 8vh, 7rem) var(--gutter-l);
}

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

.plant-name {
  margin: 0;
  font-size: clamp(2.2rem, 3.8vw, 4.3rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.plant-common {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.plant-care {
  max-width: 54ch;
  margin: 0.3rem 0 0;
  font-size: 1rem;
}

.plant-care > div {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) 3fr;
  gap: 0.8rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
}

.plant-care dt { color: var(--brass); font-weight: 500; }
.plant-care dd { margin: 0; }

.plant-note,
.plant-source {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plant-note { max-width: 52ch; }

.plant-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.65rem;
}

.plant-source a,
.care .facts article a {
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}

.plant-source a:hover,
.care .facts article a:hover { color: var(--ember); }

.collection-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--ember);
  font-size: 0.88rem;
  text-underline-offset: 0.25em;
}

.collection-back::before { content: "↑" / ""; }

/* 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; }

/* Club: the care layout, with an opening paragraph and a link out */
.club-lede {
  margin: 0;
  max-width: 52ch;
  color: var(--ink);
  font-size: 1.08rem;
}

.club-lede a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}

.club .club-link { justify-self: start; margin-top: 0.4rem; }

/* 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 {
  display: grid;
  justify-items: center;
  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);
}

/* 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); }

.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 */

.blooms { --season-band: #806a44; }

.cal-legend {
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.cal-legend:not([hidden]) { display: flex; }
.cal-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.cal-key-season { width: 1.7rem; height: 0.65rem; border-radius: 999px; background: var(--season-band); }
.cal-key-photo { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--ember); }

.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-initial { display: none; }
.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: var(--season-band);
}

.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 {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--line);
  }

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

  /* Start-aligned so nothing is cut off on the left; a fade at the right edge
     shows there is more to scroll. */
  .site-header nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: 0.65rem;
    padding-right: 1.25rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent);
  }

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

  .lang-switch { padding-left: 0.5rem; font-size: 0.68rem; letter-spacing: 0.06em; }

  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) {
    grid-template-columns: 1fr;
    min-height: 0;
    scroll-margin-top: var(--header-offset);
  }

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

  .plant-media { height: clamp(15rem, 84vw, 34rem); }

  #fukuryu .plant-media {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .ghost,
  .plant:nth-of-type(even) .ghost {
    top: 1.5rem;
    right: 4%;
    bottom: auto;
    left: auto;
    font-size: 8rem;
  }

  .plant-copy {
    padding: 1.5rem var(--gutter-r) 2.5rem var(--gutter-l);
  }

  .plant-name { font-size: clamp(2.1rem, 8vw, 4rem); }

  .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; }

  .cal .mon-short { display: none; }
  .cal .mon-initial { display: inline; }

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

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

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

.sections-toggle { display: none; }
@media (max-width: 860px) {
  .site-header:has(nav[popover]) .sections-toggle {
    display: block; margin-left: auto; min-height: 44px; padding: 0 .65rem;
    border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer;
  }
  .sections-toggle::after { content: " ▾"; color: var(--brass); }
  .site-header nav[popover] {
    inset: var(--header-offset) var(--gutter-r) auto auto; margin: 0;
    width: min(21rem, 90vw); max-height: 75svh; overflow: auto;
    padding: .5rem 1rem; background: #101510; color: #f6f1e8; border: 1px solid var(--line);
    mask-image: none; -webkit-mask-image: none;
  }
  .site-header nav[popover]:not(:popover-open) { display: none; }
  .site-header nav:popover-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
}

@media (max-width: 860px) and (max-height: 520px) {
  .plant-media { height: 74svh; }
}

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

  .js h1 .w,
  .js .hero .lede,
  .js .hero .cue,
  .js .hero .month-note,
  .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; }
}
