/* The Bioneer — site stylesheet
   Inherits the WEF parent system verbatim.
   Cream #F5F0E8 · Ink #1A1409 · Gold #A8832A
   Cormorant Garamond (display) + Jost (body) */

:root {
  --cream: #F5F0E8;
  --cream-deep: #EDE6D4;
  --cream-soft: #FBF8F3;
  --ink: #1A1409;
  --ink-soft: #1C1C1A;
  --ink-mute: rgba(26, 20, 9, 0.55);
  --ink-faint: rgba(26, 20, 9, 0.35);
  --gold: #A8832A;
  --gold-light: #C9A84C;
  --gold-pale: #FFD38D;
  --line: rgba(26, 20, 9, 0.12);
  --line-gold: rgba(168, 131, 42, 0.25);
  --serif: "Cormorant Garamond", Garamond, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --grid-max: 1180px;
  --col-pad: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--ink); }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =============== Typography =============== */
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: 72px; line-height: 1.02; font-weight: 300; letter-spacing: -0.022em; }
h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
h2 { font-size: 40px; line-height: 1.12; font-weight: 400; }
h2 em { font-style: italic; color: var(--gold); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
h4 { font-size: 24px; line-height: 1.25; font-weight: 500; }
h5 { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

p { margin-bottom: 14px; max-width: 68ch; }
p.lead { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink-mute); margin-bottom: 32px; max-width: 38em; }
p.deck { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink-mute); margin-bottom: 26px; max-width: 40em; }
strong { font-weight: 500; color: var(--ink); }
em { font-style: italic; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }

/* =============== Rules & dividers =============== */
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); margin: 48px 0; }
.rule-gold { height: 2px; background: var(--gold); width: 56px; margin: 14px 0 28px; }

/* =============== Layout containers =============== */
.wrap { max-width: var(--grid-max); margin: 0 auto; padding: 0 var(--col-pad); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--col-pad); }

/* =============== Header / nav =============== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.site-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-header .brand img.ring { height: 26px; width: auto; display: block; }
.site-header .brand .wm { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
.site-header .brand .wm em { font-style: italic; color: var(--gold); font-weight: 500; }
.site-header nav { display: flex; gap: 26px; align-items: center; }
.site-header nav a { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid transparent; padding: 4px 0; }
.site-header nav a:hover, .site-header nav a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.site-header .sub-attr { font-family: var(--sans); font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 2px; display: block; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }

/* =============== Hero =============== */
.hero { padding: 96px 0 80px; border-bottom: 1px solid var(--line-gold); }
.hero .eyebrow { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero .tag { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); margin-top: 6px; }
.hero .deck { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-mute); max-width: 44em; margin-top: 26px; line-height: 1.5; }

.hero-full {
  background: var(--ink); color: var(--cream);
  padding: 120px 0 100px; border-bottom: none;
}
.hero-full h1 { color: var(--cream); }
.hero-full h1 em { color: var(--gold-pale); }
.hero-full .eyebrow { color: var(--gold-pale); }
.hero-full .deck { color: rgba(245, 240, 232, 0.6); }

/* =============== Sections =============== */
section.section { padding: 88px 0; border-top: 1px solid var(--line-gold); }
section.section:first-of-type { border-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 6px 0 0; }
.section-head .eyebrow { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.section-head a.more { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; }
.section-head a.more:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* =============== Cards / grids =============== */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { display: block; text-decoration: none; color: var(--ink); background: var(--cream-soft); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--gold); color: var(--ink); }
.card .media { aspect-ratio: 4 / 3; background: var(--cream-deep) linear-gradient(135deg, rgba(26,20,9,0.05), rgba(168,131,42,0.08)); position: relative; overflow: hidden; }
.card .media .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--ink-faint); font-size: 16px; }
.card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 22px 24px 24px; }
.card .kicker { font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.card h4 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.card .dek { font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 15px; line-height: 1.5; }
.card .meta { margin-top: 14px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* Horizontal feature card (hero-sized article) */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: stretch; border: 1px solid var(--line); background: var(--cream-soft); }
.feature .media { aspect-ratio: auto; min-height: 380px; }
.feature .body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature h4 { font-size: 34px; line-height: 1.15; }
.feature .dek { font-size: 17px; }

/* Video card */
.video-card .media { background: var(--ink); position: relative; }
.video-card .media::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 36px; opacity: 0.85; }
.video-card .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Gallery tile */
.tile { position: relative; overflow: hidden; background: var(--cream-deep); aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--ink-faint); font-size: 14px; text-align: center; padding: 20px; }
.tile .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(to top, rgba(26,20,9,0.85), transparent); color: var(--cream); font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.tile.portrait { aspect-ratio: 3 / 4; }
.tile.landscape { aspect-ratio: 4 / 3; }

/* =============== Masthead panel (dark) =============== */
.masthead-panel { background: var(--ink); color: var(--cream); padding: 64px 56px; margin: 64px 0; border-top: 2px solid var(--gold); }
.masthead-panel h2 { color: var(--cream); }
.masthead-panel h2 em { color: var(--gold-pale); }
.masthead-panel .eyebrow { color: var(--gold-pale); font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; display: block; }
.masthead-panel p { color: rgba(245, 240, 232, 0.72); max-width: 44em; }

/* =============== Quote / pull =============== */
.pull { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.4; color: var(--ink); border-left: 2px solid var(--gold); padding: 14px 28px; margin: 36px 0; max-width: 40em; }
.pull .attrib { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 14px; font-weight: 500; }

/* =============== Q&A formatting =============== */
.qa { margin: 40px 0; }
.qa .q { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); margin-bottom: 10px; line-height: 1.4; max-width: 50em; }
.qa .q::before { content: "Q. "; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: 0.15em; color: var(--gold); vertical-align: 3px; margin-right: 4px; }
.qa .a { font-size: 15.5px; line-height: 1.75; color: var(--ink); max-width: 50em; }
.qa .a::before { content: "A. "; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.15em; color: var(--ink); margin-right: 4px; }

/* =============== Article body (journal / interview) =============== */
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink); max-width: 640px; margin: 0 auto; }
.article-body p { max-width: none; margin-bottom: 18px; }
.article-body p.lead { font-size: 22px; }
.article-body h3 { margin: 40px 0 16px; }
.article-body h4 { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: -0.01em; margin: 36px 0 12px; }
.article-body ul, .article-body ol { margin: 16px 0 22px 0; padding-left: 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.article-body ul li::before { content: "—"; color: var(--gold); position: absolute; left: 0; top: 0; }
.article-body .byline { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin: 10px 0 30px; }
.article-body .byline span.gold { color: var(--gold); font-weight: 500; }

/* =============== CTA / banner =============== */
.cta-banner { background: var(--cream-deep); padding: 72px 56px; text-align: center; border-top: 2px solid var(--gold); margin-top: 80px; }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { margin: 0 auto 28px; max-width: 36em; color: var(--ink-mute); }
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 15px 32px; border: 0; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--gold-pale); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--gold-pale); }

/* =============== Subscribe form =============== */
.sub-form { display: flex; gap: 0; max-width: 520px; margin: 0 auto; border: 1px solid var(--ink); }
.sub-form input { flex: 1; border: 0; background: var(--cream); padding: 16px 20px; font-family: var(--sans); font-size: 14px; color: var(--ink); outline: none; }
.sub-form input::placeholder { color: var(--ink-faint); }
.sub-form button { border: 0; background: var(--ink); color: var(--cream); padding: 16px 24px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; cursor: pointer; }
.sub-form button:hover { background: var(--gold); color: var(--ink); }

/* =============== Footer =============== */
.site-footer { background: var(--ink); color: var(--cream); padding: 64px 0 40px; margin-top: 120px; border-top: 2px solid var(--gold); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; align-items: flex-start; }
.site-footer h5 { color: var(--gold-pale); margin-bottom: 14px; }
.site-footer p, .site-footer li { color: rgba(245, 240, 232, 0.72); font-size: 13px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(245, 240, 232, 0.85); border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--gold-pale); border-bottom-color: var(--gold-pale); }
.site-footer .brand-block img.wm { height: 28px; margin-bottom: 14px; }
.site-footer .brand-block .ring { height: 38px; width: auto; margin-bottom: 18px; display: block; }
.site-footer .legal { border-top: 1px solid rgba(245, 240, 232, 0.12); margin-top: 48px; padding-top: 24px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 240, 232, 0.4); text-align: center; }

/* =============== Tables (issue archive, TOC) =============== */
.toc { width: 100%; border-collapse: collapse; margin: 20px 0 40px; }
.toc th, .toc td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.toc th { font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; border-bottom-color: var(--line-gold); }
.toc td.num { font-family: var(--serif); font-size: 19px; color: var(--gold); width: 80px; }
.toc td em { font-style: italic; color: var(--ink-mute); }

/* =============== Utility =============== */
.center { text-align: center; }
.gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 48px; }

/* =============== Responsive =============== */
@media (max-width: 960px) {
  :root { --col-pad: 28px; }
  h1 { font-size: 54px; }
  h2 { font-size: 32px; }
  .hero { padding: 72px 0 60px; }
  .hero-full { padding: 90px 0 80px; }
  .feature { grid-template-columns: 1fr; }
  .feature .media { min-height: 260px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
  .site-header nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 20px var(--col-pad); gap: 16px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --col-pad: 22px; }
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .feature .body { padding: 28px 24px; }
  .feature h4 { font-size: 26px; }
  .masthead-panel, .cta-banner { padding: 40px 24px; }
  .sub-form { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .cta-banner { display: none; }
  body { background: #fff; }
}
