/* Megafaun.org — shared "field journal" design system.
   Originates from the Claude Design import (Megafaun Landing.dc.html);
   extracted here so every page shares one stylesheet instead of repeating
   the same inline styles eight times. */

:root {
  --bg: oklch(0.16 0.02 260);
  --bg-panel: oklch(0.12 0.015 260);
  --bg-paper: oklch(0.95 0.015 85);
  --text: oklch(0.95 0.015 85);
  --text-muted: oklch(0.72 0.02 85);
  --text-dim: oklch(0.5 0.02 85);
  --ink: oklch(0.16 0.02 260);
  --ink-muted: oklch(0.3 0.02 260);
  --ink-dim: oklch(0.4 0.02 260);
  --accent: oklch(0.62 0.14 45);
  --accent-soft: oklch(0.62 0.14 45 / 0.08);
  --green: oklch(0.58 0.09 145);
  --border: oklch(0.4 0.02 85 / 0.25);
  --border-ink: oklch(0.4 0.02 260 / 0.5);
  --serif: 'Newsreader', serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

.mono { font-family: var(--mono); }

/* ---- NAV ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-nav .brand img {
  width: 34px; height: 34px;
  object-fit: cover;
  filter: contrast(1.2);
}
.site-nav .brand span {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.site-nav .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.site-nav .links a.active { color: var(--accent); }

/* ---- PAGE HEADER (non-home pages) ---- */
.page-header {
  padding: 90px 56px 64px;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}
.page-header h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.page-header p.lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---- NUMBERED SECTION (vertical rail label, like MISSION on the landing page) ---- */
.rail-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--border);
}
.rail-section .rail {
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
.rail-section .rail h2 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0;
}
.rail-section .rail-content {
  padding: 72px;
}
.rail-section .rail-content h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
}
.rail-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 760px;
}
.rail-section p + p { margin-top: 20px; }
.rail-section a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---- PLAIN SECTION ---- */
.section {
  padding: 90px 56px;
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
}
.section-head .tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ---- LIST / CRITERIA ---- */
.field-list {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
  padding-left: 22px;
  margin: 0;
}
.field-list li { margin-bottom: 6px; }
.field-list li::marker { color: var(--accent); }

/* ---- CARD GRID (species-style) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card-grid .card { background: var(--bg); }
.card-grid .card .thumb {
  aspect-ratio: 1;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.card-grid .card .thumb img { width: 100%; filter: contrast(1.15); }
.card-grid .card .thumb.placeholder {
  background: repeating-linear-gradient(135deg, oklch(0.22 0.02 260) 0 10px, oklch(0.19 0.02 260) 10px 20px);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0;
}
.card-grid .card .body { padding: 24px; }
.card-grid .card .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-grid .card .kicker.green { color: var(--green); }
.card-grid .card .title { font-size: 22px; margin-bottom: 4px; }
.card-grid .card .latin {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
}
.card-grid .card p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---- DISPATCH ROW ---- */
.dispatch-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.dispatch-row .meta { font-family: var(--mono); font-size: 12px; color: var(--text-dim); padding-top: 4px; }
.dispatch-row .title { font-size: 24px; margin-bottom: 8px; }
.dispatch-row p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; max-width: 700px; }

/* ---- PAPER (light) SECTION ---- */
.paper-section {
  background: var(--bg-paper);
  color: var(--ink);
  padding: 90px 56px;
}
.paper-section .inner { max-width: 1000px; margin: 0 auto; }
.paper-section .section-head .tag { color: var(--ink-dim); }
.paper-section p.intro { font-size: 16px; line-height: 1.6; color: var(--ink-muted); max-width: 640px; margin: 0 0 48px; }
.paper-section a.button {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 12px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.paper-section a.button:hover { background: var(--ink); color: var(--bg-paper); }
.paper-section a.button.solid { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.paper-section a.button.solid:hover { opacity: 0.85; color: var(--ink); }

.tier-grid {
  border: 1.5px dashed var(--border-ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tier-grid .tier { padding: 36px; border-right: 1.5px dashed var(--border-ink); }
.tier-grid .tier:last-child { border-right: none; }
.tier-grid .tier.featured { background: var(--accent-soft); }
.tier-grid .tier .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-dim); margin-bottom: 18px; }
.tier-grid .tier .price { font-family: var(--serif); font-size: 40px; margin-bottom: 18px; }
.tier-grid .tier .price span { font-size: 16px; color: var(--ink-dim); }
.tier-grid .tier p { font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 28px; }

/* ---- MEDIA (video/image banner) ---- */
.field-media {
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.field-media img, .field-media video {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

/* ---- DONATE BUTTON (dark bg) ---- */
.btn-donate {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 16px 30px;
  border: none;
  cursor: pointer;
}
.btn-donate:hover { color: var(--ink); opacity: 0.9; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-panel);
  padding: 64px 56px 40px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .brand img { width: 28px; height: 28px; object-fit: cover; }
.site-footer .brand span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; font-weight: 600; }
.site-footer p { font-size: 13.5px; line-height: 1.7; color: var(--text-dim); max-width: 340px; }
.site-footer .col-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.site-footer .col-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .col-links a { color: var(--text-muted); }
.site-footer .contact { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 0; }
.site-footer .legal {
  border-top: 1px solid oklch(0.4 0.02 85 / 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .tier-grid .tier { border-right: none; border-bottom: 1.5px dashed var(--border-ink); }
  .tier-grid .tier:last-child { border-bottom: none; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .rail-section { grid-template-columns: 1fr; }
  .rail-section .rail { display: none; }
  .rail-section .rail-content { padding: 56px 24px; }
  .dispatch-row { grid-template-columns: 1fr; gap: 8px; }
  .card-grid { grid-template-columns: 1fr; }
  .page-header { padding: 64px 24px 48px; }
  .section, .paper-section { padding: 64px 24px; }
  .site-footer { padding: 48px 24px 32px; }
}
@media (max-width: 640px) {
  .site-nav { padding: 20px 24px; }
  .site-nav .links { gap: 12px 18px; font-size: 11px; }
}
