/* ============================================================
   The SEEDS Library — editorial stylesheet (brand v2)
   A botanical journal on SEEDS Sand: Forest ink, thin rules,
   Lora display over Work Sans body, coral + spring accents.
   Shared by library/index.html AND library/articles/*.html,
   so every url() below resolves from library/ (../assets/…).
   ============================================================ */

/* ---------- Self-hosted fonts (no external requests) ---------- */
@font-face{
  font-family:"Work Sans"; font-weight:100 900; font-style:normal; font-display:swap;
  src:url("../assets/fonts/WorkSans-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Work Sans"; font-weight:100 900; font-style:normal; font-display:swap;
  src:url("../assets/fonts/WorkSans-latinext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Lora"; font-weight:400 600; font-style:normal; font-display:swap;
  src:url("../assets/fonts/Lora-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Lora"; font-weight:400 600; font-style:normal; font-display:swap;
  src:url("../assets/fonts/Lora-latinext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Lora"; font-weight:400 500; font-style:italic; font-display:swap;
  src:url("../assets/fonts/Lora-italic-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  /* ---- Official SEEDS palette (Brand Guidelines, April 2021) ---- */
  --forest:#2B4835;        /* Forest Green — primary */
  --spring:#2FF141;        /* Spring Green — signature accent */
  --sand:#E9EDD9;          /* Sand — warm page ground */
  --jungle:#286932; --fern:#238C32; --canopy:#1EAF32;
  --seafoam:#53FF9C; --pollen:#C7F100;
  --white:#FFFFFF; --black:#1C1C1C;
  --ink:#1C2A24;           /* body text on light */
  --dark-forest:#13391C;   /* deepest jungle for dark bands */
  --sage:#8FA084;          /* muted sage */
  --line:#D4DAC6;          /* hairline on sand */
  /* legacy aliases kept so older rules resolve to brand colours */
  --paper:var(--sand); --moss:var(--fern); --leaf:var(--canopy); --petal:var(--fern);
  --clay:#C96F4A; --coral:#FF7273; --sun:#EDBB4B; --sprout:#9BDBA8;

  /* ---- type ---- */
  --font-head:"Lora",Georgia,"Times New Roman",serif;
  --font-body:"Work Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --kern-head:-0.005em;
  /* back-compat aliases used across this sheet */
  --font-titles:var(--font-head);
  --serif:var(--font-head);
  --kern-title:var(--kern-head);

  /* ---- editorial surfaces derived from the brand ---- */
  --cream:#F6F8EC;             /* light near-white: text on dark + light stock */
  --light-sand:#F7F9F0;
  --paper-bright:#FBFCF5;      /* card stock */
  --paper-shade:#E1E7D2;       /* recessed / archive panels (deeper sand) */

  /* ---- derived UI shades (AA-checked on sand/cream) ---- */
  --ink-soft:#47584E;          /* muted metadata */
  --clay-deep:#A8402C;         /* deep terracotta for small warm text/accents */
  --hairline:rgba(28,42,36,0.15);
  --hairline-strong:rgba(28,42,36,0.30);
  --shadow-soft:0 1px 2px rgba(19,57,28,0.06), 0 10px 28px rgba(19,57,28,0.10);
  --radius:14px; --radius-small:8px;
}

/* ---------- Base ---------- */

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

/* Author display rules would otherwise beat the UA [hidden] rule — keep it authoritative. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 6%, rgba(143, 160, 132, 0.16), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(47, 241, 65, 0.06), transparent 40%),
    var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: var(--kern-head);
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Serif display on non-heading elements (wordmarks, pull-quotes) */
.wordmark, .footer-wordmark, .pull-quote p, .seeds-word {
  font-family: var(--font-head);
}

.container { max-width: 68.75rem; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--cream);
  padding: 0.6rem 1.1rem; border-radius: 0 0 var(--radius-small) var(--radius-small);
  transition: top 160ms ease;
}
.skip-link:focus { top: 0; color: var(--cream); }

/* ---------- Small-caps metadata ---------- */

.meta, .kicker, .issue-line, .archive-label, .found-offline, .like-kind, .film-where {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meta { margin-bottom: 0.55rem; }
.dot { color: var(--clay-deep); }

.tag {
  color: var(--clay-deep);
  font-weight: 700;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 1px;
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.4rem) 1.2rem 1.6rem;
  border-bottom: 1px solid var(--line);
}
.masthead-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.masthead-logo img { display: block; width: auto; height: clamp(30px, 6vw, 40px); }
.masthead-badge {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cream);
  background: var(--forest);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.masthead-logo:hover .masthead-badge { background: var(--jungle); }

.issue-line { margin: 0 0 0.4rem; }

/* Provenance line under the masthead tagline — says what this page is */
.provenance {
  max-width: 46rem;
  margin: 1rem auto 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.provenance em { font-style: italic; }
.provenance a { color: inherit; }
.wordmark {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  letter-spacing: var(--kern-head);
  margin: 0 0 0.25em;
  color: var(--forest);
  font-weight: 600;
}
.tagline { font-style: italic; color: var(--ink-soft); margin: 0; font-size: clamp(0.98rem, 2.4vw, 1.1rem); }

.masthead--small { padding: 1.5rem 1.2rem 1.1rem; }
.masthead--small .masthead-logo { margin-bottom: 0.7rem; }
.masthead--small .masthead-logo img { height: clamp(26px, 5vw, 34px); }
.masthead--small .wordmark { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.wordmark-link { color: var(--forest); text-decoration: none; }
.wordmark-link:hover { color: var(--jungle); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Category nav ---------- */

.category-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 68.75rem; margin-inline: auto; padding-inline: clamp(0.8rem, 3vw, 2.5rem); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.85rem 0.3rem;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 15px; flex: none; }

.category-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.35rem;
  padding: 0.35rem 0;
}
.cat-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-small);
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, background-color 140ms ease;
}
.cat-btn:hover { color: var(--clay-deep); background: var(--paper-shade); }
.cat-btn.is-active {
  color: var(--forest);
  font-weight: 700;
  border-bottom-color: var(--coral);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---------- Section scaffolding ---------- */

section { padding-block: clamp(2.4rem, 6vw, 4.2rem); }
section + section { border-top: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-title {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: var(--kern-head);
  color: var(--forest);
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
  margin-bottom: 0.4rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 0;
  border-bottom: 1px solid var(--coral);
}
.section-sub { font-style: italic; color: var(--ink-soft); margin: 0; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2rem, 5vw, 3.4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.kicker { color: var(--clay-deep); font-weight: 700; margin-bottom: 0.9rem; }
.hero-title {
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  letter-spacing: var(--kern-head);
  margin-bottom: 0.45em;
}
.hero-title a { color: var(--forest); text-decoration: none; }
.hero-title a:hover { color: var(--jungle); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-dek { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--ink-soft); font-style: italic; }
.byline { color: var(--ink-soft); }
.hero-text .byline { margin-bottom: 1.4rem; }

.hero-art {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 5 / 4;
}
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.6rem;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--forest);
}
.btn-primary:hover { background: var(--dark-forest); border-color: var(--dark-forest); color: var(--cream); transform: translateY(-1px); }

/* Bright SEEDS CTA — signature spring green with forest text */
.btn-bright {
  background: var(--spring);
  color: var(--dark-forest);
  border: 1px solid var(--spring);
}
.btn-bright:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47, 241, 65, 0.30);
}

/* ---------- Featured film ---------- */

.film-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.film-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}
.film-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(64px, 14vw, 88px);
  height: clamp(64px, 14vw, 88px);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 150ms ease;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(19, 57, 28, 0.45)); }
.film-name { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--forest); }
.film-where { margin-top: 0.4rem; }
.video-note {
  margin-top: 1rem;
  background: var(--paper-shade);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-small);
  padding: 0.8rem 1rem;
  font-style: italic;
  color: var(--ink);
}

/* ---------- Latest grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.card {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(19,57,28,0.07), 0 16px 34px rgba(19,57,28,0.13); }

.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-shade);
  border-bottom: 1px solid var(--line);
}
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
a.card-media:focus-visible { outline-offset: -3px; }
.card:hover .card-media img { transform: scale(1.04); }

.card-body {
  padding: 1.15rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .meta { margin-bottom: 0.4rem; }
.card-title { font-size: 1.22rem; color: var(--forest); margin-bottom: 0.4rem; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--jungle); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dek { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }
.card .byline { margin-bottom: 0; }

.card-archive {
  background: var(--paper-shade);
  box-shadow: none;
  border-style: dashed;
}
.card-archive:hover { transform: none; box-shadow: none; }
.card-archive:hover .card-media img { transform: none; }
.card-archive .card-media { border-bottom-color: var(--hairline-strong); }
.card-archive .card-media img { opacity: 0.94; }
.card-archive .card-title { color: var(--ink-soft); }
.archive-label {
  margin: 0.75rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--hairline-strong);
  color: var(--clay-deep);
}

.grid-empty {
  text-align: center;
  padding: 2.6rem 1.2rem;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--paper-bright);
  margin-top: 0.4rem;
}
.grid-empty .empty-mark { width: 48px; height: auto; margin: 0 auto 0.7rem; display: block; }
.grid-empty p { margin: 0 auto; max-width: 34rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Things we like ---------- */

.likes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
}
.like-card {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
}
.like-kind { color: var(--clay-deep); font-weight: 700; margin-bottom: 0.5rem; }
.like-title { font-size: 1.08rem; color: var(--forest); }
.like-card p:not(.like-kind):not(.found-offline) { font-size: 0.94rem; color: var(--ink-soft); flex-grow: 1; }
.found-offline {
  margin: 0.7rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--hairline-strong);
}

/* ---------- Contribute ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin-bottom: 2rem;
}
.step {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.1rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--spring);
  color: var(--dark-forest);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.12rem; color: var(--forest); }
.step p { margin-bottom: 0; font-size: 0.97rem; color: var(--ink-soft); }

.contribute-cta { text-align: center; margin-bottom: 2.4rem; }

.pitch-form {
  max-width: 34rem;
  margin-inline: auto;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 4vw, 2.1rem);
  scroll-margin-top: 5.5rem;
}
.form-title { color: var(--forest); font-size: 1.3rem; margin-bottom: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-small);
  padding: 0.65rem 0.8rem;
}
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 7rem; }
.form-error {
  color: var(--clay-deep);
  font-style: italic;
  margin-bottom: 1rem;
}
.form-success {
  margin-top: 1.4rem;
  text-align: center;
  background: var(--paper-shade);
  border-radius: var(--radius-small);
  padding: 1.3rem 1.1rem 1rem;
}
.form-success svg { width: 44px; height: 44px; margin-bottom: 0.5rem; }
.form-success p { margin-bottom: 0.3rem; font-weight: 700; color: var(--forest); }
.form-fineprint { font-weight: 400 !important; font-size: 0.85rem; font-style: italic; color: var(--ink-soft) !important; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark-forest);
  color: var(--cream);
  padding: clamp(2.4rem, 6vw, 3.6rem) 0 1.6rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(246, 248, 236, 0.22);
}
.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: var(--kern-head);
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.footer-mark { width: 30px; height: auto; flex: none; display: block; }
.footer-about p:not(.footer-wordmark) { color: rgba(246, 248, 236, 0.85); font-size: 0.95rem; }
.footer-heading {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--spring);
  margin-bottom: 0.8rem;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav a { color: var(--sprout); text-decoration-color: rgba(155, 219, 168, 0.5); }
.footer-nav a:hover { color: var(--spring); }
.footer-nav a:focus-visible { outline-color: var(--spring); }
.you-are-here { color: rgba(246, 248, 236, 0.85); }
.you-are-here em { color: var(--spring); font-style: italic; }
.footer-colophon { padding-top: 1.4rem; }
.footer-colophon p { margin: 0; font-size: 0.85rem; font-style: italic; color: rgba(246, 248, 236, 0.72); text-align: center; }

/* ---------- Article pages ---------- */

.article-page .masthead { border-bottom: none; }
.article-rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.article {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.1rem, 4vw, 2rem) clamp(2.4rem, 6vw, 4rem);
}
.article-header { text-align: center; margin-bottom: 2rem; }
.article-title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: var(--kern-head);
  color: var(--forest);
  margin: 0.4em 0 0.45em;
}
.article-byline { font-style: italic; color: var(--ink-soft); margin-bottom: 0; }

.article-art { margin: 2rem 0; }
.article-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 2;
}
.article-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-caption {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.article-body h2 {
  font-size: 1.32rem;
  color: var(--forest);
  margin-top: 1.8em;
}
/* Drop cap, but only where it can land on plain prose. Migrated pieces open
   with all sorts of things — a link, an image, a video — and a floated capital
   detaches from whatever follows it. `.has-dropcap` is set in script.js only
   when the first paragraph really does begin with a letter. */
.article-body > p.has-dropcap::first-letter {
  float: left;
  font-family: var(--font-head);
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--clay-deep);
  font-weight: 600;
}

.pull-quote {
  margin: 2.2rem 0;
  padding: 1.4rem 1.2rem;
  border-top: 1px solid var(--coral);
  border-bottom: 1px solid var(--coral);
  text-align: center;
}
.pull-quote p {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--forest);
  line-height: 1.4;
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-top: 2.2rem;
  font-weight: 700;
}
.back-link::before { content: "\2190\00a0"; }

.article-next {
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--hairline-strong);
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid, .film-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 30rem; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .category-list { display: none; padding-bottom: 0.6rem; }
  .category-list.open { display: flex; flex-direction: column; align-items: stretch; }
  .category-list.open .cat-btn { text-align: left; width: 100%; border-bottom: none; border-left: 3px solid transparent; border-radius: var(--radius-small); }
  .category-list.open .cat-btn.is-active { border-left-color: var(--coral); background: var(--paper-shade); }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid, .likes-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover .card-media img { transform: none; }
}

/* ============================================================
   SEEDS strip — the Library is a section of the SEEDS site,
   not a separate publication. This bar says so on every page.
   ============================================================ */
.seeds-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: var(--forest, #2B4835);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.seeds-bar-brand { display: inline-flex; flex: none; }
.seeds-bar-brand img { display: block; width: 92px; height: auto; filter: brightness(0) invert(1); }
.seeds-bar-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; margin-left: auto; }
.seeds-bar-nav a,
.seeds-bar-nav span {
  font-family: var(--font-sans, inherit);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.seeds-bar-nav a:hover { color: #2FF141; text-decoration: underline; text-underline-offset: 3px; }
.seeds-bar-nav span[aria-current] { color: #2FF141; font-weight: 700; }

/* ---------- Browse bar: filters sit with the grid they control ---------- */
.browse-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 0.85rem;
  padding: 1rem 0 1.1rem;
  margin-bottom: 1.6rem;
  background: var(--paper, #F6F8EF);
  border-bottom: 1px solid var(--hairline, #D4DAC6);
}
.browse-search { position: relative; display: flex; align-items: center; max-width: 30rem; }
.browse-search svg { position: absolute; left: 0.85rem; width: 1.05rem; height: 1.05rem; color: var(--ink-soft, #3A4A40); opacity: 0.7; pointer-events: none; }
.browse-search input {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.62em 1em 0.62em 2.6rem;
  border: 1.5px solid var(--hairline, #D4DAC6);
  border-radius: 999px;
  background: #fff;
  color: inherit;
}
.browse-search input:focus-visible { outline: 3px solid var(--forest, #2B4835); outline-offset: 1px; }
.browse-count { margin: 0; font-size: 0.86rem; color: var(--ink-soft, #3A4A40); }

.browse-bar .category-nav { border: 0; background: none; padding: 0; }
.browse-bar .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.load-more-wrap { text-align: center; margin-top: 2rem; }

/* Cards with no artwork of their own */
.card-media--blank {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  background: linear-gradient(160deg, #eef2e6, #e2e9d7);
}
.card-media--blank img { width: 44px; height: auto; opacity: 0.55; }

/* Film marker */
.tag--video { background: var(--forest, #2B4835); color: #2FF141; }

/* ---------- Embedded film ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.8rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0E2A17;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Article body, migrated content ---------- */
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.4rem 0; }
.article-body figure { margin: 1.6rem 0; }
.article-body figcaption { font-size: 0.88rem; color: var(--ink-soft, #3A4A40); margin-top: 0.5rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.3rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.article-body hr { border: 0; border-top: 1px solid var(--hairline, #D4DAC6); margin: 2rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.94rem; }
.article-body th, .article-body td { border: 1px solid var(--hairline, #D4DAC6); padding: 0.5rem 0.7rem; text-align: left; }
.article-origin { font-size: 0.88rem; color: var(--ink-soft, #3A4A40); font-style: italic; margin-top: 2rem; }

/* ---------- Submission output ---------- */
.field-hint { font-weight: 400; color: var(--ink-soft, #3A4A40); font-size: 0.88em; }
.pitch-form select {
  width: 100%; font: inherit; padding: 0.6em 0.8em;
  border: 1.5px solid var(--hairline, #D4DAC6); border-radius: 8px; background: #fff; color: inherit;
}
.submission-out {
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--hairline, #D4DAC6);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: 20rem;
  overflow: auto;
}
.submission-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

@media (max-width: 640px) {
  .seeds-bar { gap: 0.5rem 0.9rem; }
  .seeds-bar-nav { margin-left: 0; width: 100%; }
  .browse-bar { position: static; }
}
