/* ════════════════════════════════════════════════════════════
   Ohio Spiderwort · Tradescantia ohiensis
   Theme: Bluejacket (DARK)  ·  Spectral + Outfit + DM Mono
   Layout: contained field-guide card (matches the other profiles),
   inverted to a dark twilight palette so the blue flower reads as
   luminous. Loads last, after ../base.css and ../plant-profile.css.
   ════════════════════════════════════════════════════════════ */

:root {
  /* backgrounds — deep indigo card on a near-black backdrop */
  --bg:       #1b1e2e;   /* card background */
  --bg-warm:  #262a3c;   /* tag / trait chips */
  --bg-card:  #23273a;   /* elevated panels (insect, story, species) */
  --bg-tint:  #2b3050;   /* iris-tinted panel (badges, pills, featured) */

  /* borders */
  --border:        rgba(255, 255, 255, 0.10);
  --border-accent: rgba(141, 151, 214, 0.32);

  /* primary accent — luminous iris blue (the flower / page signature) */
  --iris:      #9aa3e0;
  --iris-soft: #aab2e6;
  --iris-pale: #3a406a;

  /* secondary accent — glaucous teal-green (the waxy foliage) */
  --glauc:      #84a89e;
  --glauc-soft: #6f968c;

  /* tertiary accent — warm gold (the stamens), used sparingly */
  --pollen:      #d8b45a;
  --pollen-soft: #c0994a;

  /* neutral stone */
  --stone:       #6b6e82;
  --stone-light: #3c3f54;   /* empty timeline bar — visible but muted on dark */

  /* text — light cool greys */
  --text:       #dcdef0;
  --text-dim:   #abaec6;
  --text-faint: #7c8099;

  /* darks (the deepest layer — facts band & keystone) */
  --ink:     #141623;
  --heading: #e9ebf6;   /* bright heading on dark */
  --h2:      #9aa3e0;   /* iris section headings */

  /* band text (on --ink) */
  --band-text:   #e6e8f4;
  --band-faint:  rgba(230, 232, 244, 0.46);
  --band-accent: #aab3e2;

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

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

* { box-sizing: border-box; }

html {
  background: #0f1018;            /* near-black 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(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── PAGE NAVIGATION (dark) ───────────────────────── */
.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(26, 29, 46, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim, #abaec6);
  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(0, 0, 0, 0.4);
}
.page-nav a:hover {
  color: var(--accent, var(--iris, #aab2e6));
  border-color: var(--accent, var(--iris, #aab2e6));
  background: rgba(26, 29, 46, 0.92);
}
@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% 4%, rgba(120,135,225,0.20) 0%, rgba(120,135,225,0) 60%),
    linear-gradient(168deg, #20243c 0%, var(--bg) 58%, rgba(22,24,38,0) 100%),
    linear-gradient(180deg, #20243c 0%, #181b2a 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: 84%;
  height: 72%;
  background: radial-gradient(circle, rgba(124,139,228,0.22) 0%, rgba(124,139,228,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: 285px;
  max-width: 220px;
  opacity: 0.98;
  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(--iris);
  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.02;
  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(--iris);
  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(--pollen);
  border: 1px dashed var(--pollen-soft);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
}

/* ── FACTS BAND (deepest layer, 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(233, 234, 243, 0.07);
  border-left: 1px solid rgba(233, 234, 243, 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(--iris);
  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: 1px solid var(--border-accent);
  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(170, 179, 226, 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(--iris);
  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(--iris); }
.tl-row.active .tl-bar { background: var(--glauc); }
.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(--iris);
  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(--iris);
  background: rgba(141, 151, 214, 0.14);
  border-color: rgba(141, 151, 214, 0.34);
}

/* ── 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(--iris);
  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(--iris-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(--iris);
  opacity: 0.85;
}
.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(--iris);
  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(--iris); 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: 185px; }
  .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; }
}