/* ════════════════════════════════════════════════════════════
   Wild Geranium · Geranium maculatum
   Theme: Woodland rose (light)  ·  Source Serif 4 + Outfit + DM Mono
   Layout: contained field-guide card (matches the other profiles).
   This file is the page's full visual identity. Loads last, after
   ../base.css and ../plant-profile.css.
   ════════════════════════════════════════════════════════════ */

:root {
  /* backgrounds — warm cream parchment with a faint rose cast */
  --bg:       #f5f0ea;
  --bg-warm:  #ece4d8;
  --bg-card:  #fbf6f0;
  --bg-tint:  #f0e0e8;   /* soft rose wash for panels/badges */

  /* borders */
  --border:        rgba(56, 42, 48, 0.12);
  --border-accent: rgba(181, 106, 147, 0.24);

  /* primary accent — rose-pink (the flower / page signature) */
  --rose:      #b56a93;
  --rose-soft: #cf9bb6;
  --rose-pale: #ecd7e2;

  /* secondary accent — woodland green (the lobed foliage) */
  --leaf:      #5e7d56;
  --leaf-soft: #8aa07d;

  /* neutral stone */
  --stone:       #968a86;
  --stone-light: #c6bcb4;

  /* text — warm greys */
  --text:       #382f33;
  --text-dim:   #594e52;
  --text-faint: #8b8084;

  /* darks */
  --ink:     #2a2428;
  --heading: var(--ink);
  --h2:      #a85f88;   /* lighter, readable rose for section headings */

  /* dark band text (facts-band sits on --ink) */
  --band-text:   #f0e6ea;
  --band-faint:  rgba(240, 230, 234, 0.46);
  --band-accent: #d3a3bf;

  /* page signature hue — drives page-nav hover */
  --accent: #b56a93;

  /* fonts */
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body:    'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: #e6dccf;            /* muted cream backdrop so the card floats */
  min-height: 100%;
}

body {
  /* contained field-guide card — centered and constrained */
  max-width: 680px;
  margin: 1.5rem auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(42, 36, 40, 0.06), 0 18px 50px rgba(42, 36, 40, 0.10);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── PAGE NAVIGATION (light) ───────────────────────── */
.page-nav {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: min(640px, calc(100% - 1.5rem));
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}
.page-nav a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(251, 246, 240, 0.8);
  border: 1px solid rgba(150, 80, 115, 0.18);
  color: var(--text-dim, #49403f);
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(38, 30, 32, 0.08);
}
.page-nav a:hover {
  color: var(--accent, var(--rose, #9a557d));
  border-color: var(--accent, var(--rose, #9a557d));
  background: rgba(251, 246, 240, 0.94);
}
@media (max-width: 520px) {
  .page-nav { top: 0.65rem; width: calc(100% - 1rem); }
  .page-nav a { font-size: 0.5rem; padding: 0.36rem 0.58rem; }
}

/* ── HERO (contained vertical plate) ───────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.6rem 1.6rem 2.4rem;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 6%, var(--bg-tint) 0%, rgba(240,224,232,0) 62%),
    linear-gradient(168deg, #f7f2ec 0%, var(--bg) 60%, var(--bg-warm) 100%);
  border-bottom: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
}
.hero-light {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(circle, rgba(181,106,147,0.13) 0%, rgba(181,106,147,0) 68%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-illustration {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto 1.1rem;
  height: auto;
  width: auto;
  max-height: 290px;
  max-width: 215px;
  opacity: 0.97;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--bg-tint);
  border: 1px solid var(--border-accent);
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--heading);
  margin: 1.1rem 0 0.4rem;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  letter-spacing: 0;
  color: var(--rose);
  margin-top: 0.55rem;
}
.hero-latin {
  font-style: italic;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0 auto 1rem;
}
.hero-tagline {
  max-width: 30rem;
  font-size: 1.02rem;
  color: var(--text-dim);
  margin: 0 auto 1.4rem;
}
.flagship-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px dashed var(--leaf-soft);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
}

/* ── FACTS BAND (always dark, on --ink) ───────────────────────── */
.facts-band {
  background: var(--ink);
  color: var(--band-text);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
}
.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  padding: 1.5rem 1.4rem;
  background: var(--ink);
  border-top: 1px solid rgba(240, 230, 234, 0.07);
  border-left: 1px solid rgba(240, 230, 234, 0.07);
}
.fact-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-accent);
}
.fact-value {
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--band-text);
}

/* ── SECTIONS ───────────────────────── */
.section {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem 0.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible { opacity: 1; transform: none; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.5rem;
}
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--h2);
  margin: 0 0 1.1rem;
}
.section p { margin: 0 0 1rem; color: var(--text); }
.section p strong { color: var(--text); font-weight: 500; }
.section em { font-style: italic; }

/* ── KEYSTONE CALLOUT ───────────────────────── */
.keystone-callout {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--band-text);
  border-radius: 10px;
  padding: 1.6rem 1.7rem;
  margin: 1.6rem 0 0.4rem;
}
.keystone-callout::before {
  content: "✦";
  position: absolute;
  top: -0.6rem;
  right: 0.4rem;
  font-size: 6rem;
  line-height: 1;
  color: rgba(211, 163, 191, 0.12);
  pointer-events: none;
}
.keystone-callout p { margin: 0; color: var(--band-text); position: relative; z-index: 1; }
.keystone-callout strong { color: #fff; font-weight: 500; }

/* ── PILL LIST ───────────────────────── */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--rose);
  background: var(--bg-tint);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 0.34rem 0.82rem;
}

/* ── TIMELINE ───────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.4rem; }
.tl-row { display: grid; grid-template-columns: 84px 6px 1fr; gap: 0.9rem; align-items: start; }
.tl-season {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.18rem;
}
.tl-bar {
  width: 6px;
  border-radius: 6px;
  background: var(--stone-light);
  min-height: 100%;
  align-self: stretch;
}
.tl-row.peak   .tl-bar { background: var(--rose); }
.tl-row.active .tl-bar { background: var(--leaf-soft); }
.tl-row.fade   .tl-bar { background: var(--stone-light); }
.tl-text { font-size: 0.94rem; color: var(--text-dim); }

/* ── INSECT HUB ───────────────────────── */
.insect-hub { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.4rem; }
.insect-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.insect-category-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.insect-category-icon { font-size: 1.05rem; }
.insect-category-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--heading);
  flex: 1;
}
.insect-count-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--bg-tint);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
}
.insect-list { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.insect-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.62rem;
}
.insect-tag.common {
  color: var(--rose);
  background: rgba(181, 106, 147, 0.12);
  border-color: rgba(181, 106, 147, 0.3);
}

/* ── CARE TABLE ───────────────────────── */
.care-table { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.care-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-dim);
  vertical-align: top;
}
.care-table td:first-child {
  width: 30%;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  padding-top: 1rem;
}

/* ── COMPANION GROUPS ───────────────────────── */
.companion-group { margin-top: 1.4rem; }
.companion-group-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.7rem;
}
.companion-list { display: flex; flex-direction: column; gap: 0.65rem; }
.companion-row { display: flex; align-items: baseline; gap: 0.7rem; }
.companion-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose-soft);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.companion-common { color: var(--text); font-size: 0.98rem; }
.companion-latin {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-left: 0.3rem;
}

/* ── FACT FEATURE / STORY CARDS ───────────────────────── */
.fact-feature { max-width: 720px; }
.story-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
}
.story-card--highlight {
  background: var(--bg-tint);
  border-color: var(--border-accent);
}
.story-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--rose);
  opacity: 0.8;
}
.story-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 0.6rem;
}
.story-body p { margin: 0 0 0.8rem; font-size: 0.95rem; color: var(--text-dim); }
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--text); font-weight: 500; }

/* ── SPECIES GRID ───────────────────────── */
.species-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}
.species-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.35rem;
}
.species-card.featured {
  background: var(--bg-tint);
  border-color: var(--border-accent);
  grid-column: 1 / -1;
}
.species-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.5rem;
}
.species-common {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--heading);
  margin: 0 0 0.1rem;
}
.species-latin {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-faint);
  margin: 0 0 0.7rem;
}
.species-desc { font-size: 0.9rem; color: var(--text-dim); margin: 0 0 0.9rem; }
.species-traits { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.species-trait {
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.24rem 0.52rem;
}

/* ── FOOTER ───────────────────────── */
footer {
  margin: 3.5rem 0 0;
  padding: 2.8rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  text-align: center;
}
footer p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-faint);
  margin: 0;
}
footer strong { color: var(--rose); font-weight: 500; }

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 720px) {
  .species-grid { grid-template-columns: 1fr; }
  .species-card.featured { grid-column: auto; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1.3rem 2rem; }
  .hero-illustration { max-height: 235px; max-width: 180px; }
  .hero-content { max-width: none; }
  .facts-band { grid-template-columns: repeat(2, 1fr); }
  .story-card { grid-template-columns: 1fr; gap: 0.4rem; }
  .story-number { font-size: 0.78rem; }
}
@media (max-width: 540px) {
  html { background: var(--bg); }
  body {
    margin: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
  }
  .hero { border-radius: 0; }
  footer { border-radius: 0; }
}
@media (max-width: 380px) {
  .facts-band { grid-template-columns: 1fr; }
}