/* =========================================================================
   The Planters' Guild — Article styles
   Editorial layout. Applies to pages using _includes/layouts/article.njk
   (and its descendants: california-natives.njk, etc.).
   References tokens.css; never raw hex.
   ========================================================================= */

.hero {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--walnut);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--kraft);
}

.wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: var(--font-weight-sans-emphasis);
  margin: 0 0 16px;
}

.wrap h1 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 42px;
  line-height: var(--line-height-tight);
  margin: 0 0 16px;
  color: var(--walnut);
  letter-spacing: -0.01em;
}

.subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--aged-ink);
  margin: 0 0 40px;
}
.subhead em { font-style: normal; }

.wrap h2 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 26px;
  line-height: 1.25;
  margin: 48px 0 12px;
  color: var(--forest-pine);
}

.wrap p {
  margin: 0 0 18px;
  color: var(--walnut);
}
.wrap p em { font-style: italic; }
.wrap strong { color: var(--walnut); font-weight: var(--font-weight-sans-emphasis); }

/* Inline figures — default style (Fuchsia, Buckwheat: maps, plates) */
.inline-figure {
  margin: 36px 0 32px;
}
.inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.inline-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--aged-ink);
  font-style: italic;
  line-height: 1.55;
}

/* Inline-image — alternative style with bordered photoreal frame (Milkweed,
   other entries that lean on photography rather than illustrated plates).
   Kraft border + background frames the image like a botanical print mount;
   figcaption is set in Source Serif italic to feel more editorial. */
.inline-image {
  margin: 40px 0;
  padding: 0;
}
.inline-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  background: var(--kraft);
  border: 1px solid var(--kraft);
}
.inline-image figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--aged-ink);
  margin-top: 12px;
  padding: 0 4px;
}

/* Quick Reference card — keyed/value summary at end of article */
.quick-ref {
  background: var(--kraft);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 3px;
  border-left: 4px solid var(--forest-pine);
}
.quick-ref h2 {
  margin-top: 0;
  color: var(--walnut);
  font-size: 22px;
}
.quick-ref ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-ref li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--aged-ink);
  font-size: 15px;
}
.quick-ref li:last-child { border-bottom: none; }
.quick-ref li strong {
  display: inline-block;
  min-width: 130px;
  color: var(--forest-pine);
}

/* Pollinator note — soft-bordered callout for ecological asides */
.pollinator-note {
  background: var(--cream);
  border: 1px solid var(--kraft);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 3px;
  font-size: 15px;
  color: var(--aged-ink);
}
.pollinator-note .pollinator-label {
  color: var(--forest-pine);
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: var(--font-weight-sans-emphasis);
}

/* Sources — APA-7 citations at article foot */
.sources {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--kraft);
  font-size: 13px;
  color: var(--aged-ink);
  line-height: 1.6;
}
.sources-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-pine);
  font-weight: var(--font-weight-sans-emphasis);
  margin-bottom: 12px;
}
.sources p { font-size: 13px; margin-bottom: 12px; color: var(--aged-ink); }
.sources a { color: var(--aged-ink); text-decoration: underline; }
.sources a:hover { color: var(--walnut); }

/* Related-from-the-Guild cards */
.related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--kraft);
}
.related-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: var(--font-weight-sans-emphasis);
  margin-bottom: 16px;
}
.related h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--walnut);
  margin-bottom: 4px;
  font-weight: var(--font-weight-serif-heading);
}
.related-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--kraft);
  padding: 18px 22px;
  margin-bottom: 12px;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-default), background var(--transition-default);
}
.related-card:hover {
  border-color: var(--forest-pine);
  background: var(--kraft);
}
.related-card .pillar {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: var(--font-weight-sans-emphasis);
  margin-bottom: 6px;
}
.related-card p {
  font-size: 14px;
  color: var(--aged-ink);
  margin: 0;
}
