/* ===========================================================================
   POLLN8 Field Guide , field-guide.css
   Brand tokens mirror the in-game styles.css so marketing and game stay in sync.
   Dark cinematic green world · cream reading layer · single nectar-gold accent.
   =========================================================================== */

:root {
  /* Brand tokens - matched to the marketing site palette */
  --color-bg: #0a130e;
  --color-bg-deep: #0a130e;
  --color-bg-mid: #0e1b13;
  --color-bg-rise: #12241a;
  --cream: #e6ede2;
  --cream-soft: rgba(230, 237, 226, 0.82);
  --cream-faint: rgba(230, 237, 226, 0.6);
  --gold: #e9c46a;
  --gold-deep: #cfa64a;
  --panel: rgba(22, 39, 27, 0.5);
  --panel-strong: rgba(22, 39, 27, 0.72);
  --panel-border: rgba(143, 165, 147, 0.18);
  --panel-border-strong: rgba(143, 165, 147, 0.32);
  --art-line: rgba(230, 237, 226, 0.82);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 72rem;
  --readw: 40rem;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1.0625rem;
  background:
    radial-gradient(120% 90% at 50% 8%, #12241a 0%, var(--color-bg-mid) 42%, var(--color-bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Brand wordmark ---- */
.brand__mark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
}
.brand-8 {
  color: var(--gold);
}
.brand__mark--sm {
  font-size: 1.35rem;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #1a1305;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: var(--cream);
  text-underline-offset: 3px;
  text-decoration-color: var(--panel-border-strong);
}
a:hover {
  text-decoration-color: var(--gold);
}

/* ===========================================================================
   Header / nav
   =========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(2, 7, 5, 0.92), rgba(2, 7, 5, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.7rem, 2.5vw, 1.6rem);
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--cream-soft);
  padding: 0.2rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav a:hover {
  color: var(--cream);
}
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===========================================================================
   Layout primitives
   =========================================================================== */
main {
  display: block;
}
section {
  padding-inline: clamp(1.1rem, 5vw, 2.5rem);
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
  color: var(--cream);
}

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(3rem, 9vw, 6rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(246, 200, 76, 0.16), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.6rem);
  margin: 0 auto 1.4rem;
  max-width: 18ch;
}
.hero__lede {
  max-width: var(--readw);
  margin: 0 auto 2.2rem;
  color: var(--cream-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: linear-gradient(180deg, #ffd25a, var(--gold) 55%, var(--gold-deep));
  color: #1a1305;
  box-shadow: 0 10px 30px -12px rgba(246, 200, 76, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(246, 200, 76, 0.7);
}
.btn--ghost {
  background: var(--panel);
  color: var(--cream);
  border: 1.5px solid var(--panel-border-strong);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* ===========================================================================
   Prose sections
   =========================================================================== */
.prose {
  max-width: var(--readw);
  margin: clamp(2.5rem, 6vw, 4rem) auto;
}
.prose h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin-bottom: 1.1rem;
}
.prose p + p {
  margin-top: 1.1rem;
}
.prose p {
  color: var(--cream-soft);
}
.prose--feature {
  max-width: 54rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  position: relative;
}
.prose--feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.6rem, 4vw, 2.8rem);
  bottom: clamp(1.6rem, 4vw, 2.8rem);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.prose--feature h2,
.prose--feature p {
  margin-left: 1.4rem;
}

/* ===========================================================================
   Section heads
   =========================================================================== */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.section-sub {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--cream-soft);
}

/* ===========================================================================
   Pollinator cards
   =========================================================================== */
.pollinators {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 5rem) auto;
}
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.card {
  --accent: var(--gold);
}
.card article {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card article:hover {
  transform: translateY(-4px);
  border-color: var(--panel-border-strong);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}
.card__art {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: radial-gradient(
    ellipse at 50% 40%,
    color-mix(in srgb, var(--accent) 18%, transparent),
    transparent 72%
  );
  color: var(--art-line);
}
.card__art svg,
.card__art img {
  width: 116px;
  height: auto;
  filter: drop-shadow(0 0.18rem 0.5rem rgba(0, 0, 0, 0.4));
}
.card__group {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  filter: brightness(1.25) saturate(0.9);
}
.card__name {
  font-size: 1.55rem;
  margin: 0.25rem 0 0.5rem;
}
.card__role {
  color: var(--cream-soft);
  font-size: 0.96rem;
  flex-grow: 1;
}
.card__toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  background: transparent;
  border: 1.5px solid var(--panel-border-strong);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.card__toggle:hover {
  border-color: var(--gold);
  background: rgba(246, 200, 76, 0.08);
}
.card__toggle-less {
  display: none;
}
.card__toggle[aria-expanded="true"] .card__toggle-more {
  display: none;
}
.card__toggle[aria-expanded="true"] .card__toggle-less {
  display: inline;
}
/* Without JS, the toggle does nothing and all detail is shown , hide the button. */
.no-js .card__toggle {
  display: none;
}
/* With JS, collapse detail by default; expand when the toggle is pressed. */
.js .card__detail {
  display: none;
}
.js .card__toggle[aria-expanded="true"] + .card__detail {
  display: block;
}
.card__detail {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--panel-border);
  font-size: 0.92rem;
}
.card__detail > div {
  margin-bottom: 0.85rem;
}
.card__detail > div:last-child {
  margin-bottom: 0;
}
.card__detail dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.card__detail dd {
  color: var(--cream-soft);
}
.card__traits ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.card__traits li {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(246, 200, 76, 0.1);
  border: 1px solid var(--panel-border);
  color: var(--cream);
}

/* ===========================================================================
   Needs grid
   =========================================================================== */
.needs {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 5rem) auto;
}
.needs-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
}
.need-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem;
  position: relative;
  padding-left: 1.3rem;
}
.need-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 3px;
  height: 1.4rem;
  border-radius: 3px;
  background: var(--gold);
}
.need-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.need-card p {
  color: var(--cream-soft);
  font-size: 0.93rem;
}

/* ===========================================================================
   CTA
   =========================================================================== */
.cta {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 5rem) auto clamp(4rem, 9vw, 6rem);
}
.cta__inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(246, 200, 76, 0.12), transparent 70%),
    var(--panel-strong);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.1rem;
  max-width: 18ch;
  margin-inline: auto;
}
.cta__text {
  max-width: 44rem;
  margin: 0 auto 2rem;
  color: var(--cream-soft);
}
.cta__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.1rem, 5vw, 2.5rem) 3rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer__brand p {
  color: var(--cream-faint);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  font-size: 0.92rem;
}
.footer__nav a {
  color: var(--cream-soft);
  text-decoration: none;
}
.footer__nav a:hover {
  color: var(--gold);
}
.footer__legal {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: var(--cream-faint);
}

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .prose--feature h2,
  .prose--feature p {
    margin-left: 1rem;
  }
}

/* ===========================================================================
   Reduced motion
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* ---- Site chrome (matches the polln8.me marketing pages) ---- */
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.site-header .lockup { height: 40px; width: auto; display: block;
  filter: drop-shadow(0 0 8px rgba(246, 200, 76, 0.4)); }
.footer__nav a[aria-current="page"] { color: var(--gold); }
