/* ============================================================
   CRAZY ORGANIC — shared stylesheet
   Visual system: "Field notes from an unmapped kingdom"
   (per Visual System — Crazy Organic, Drive). Naturalist
   field-guide + cartography of the unknown. Herbarium-earth
   palette, Fraunces / Inter / IBM Plex Mono, and the
   signature epistemic-stamp device.
   Framework preserved from the live site: plain static HTML,
   CSS custom properties, same section structure.
   ============================================================ */

:root {
  /* Palette — exact values from the Visual System doc */
  --ink:      #15201A;  /* forest ink — text + dark grounds      */
  --paper:    #EDE7D6;  /* field paper — primary light ground     */
  --paper-2:  #E3DBC6;  /* aged panel / slightly deeper paper     */
  --amber:    #B9772E;  /* spore amber — warm accent (not body)   */
  --moss:     #46583F;  /* secondary                              */
  --foxfire:  #5FB6A8;  /* the single glow accent — sparingly     */

  --ink-soft: #3a4239;  /* softened ink for secondary text        */
  --muted:    #5d6356;  /* muted label text (AA on paper)         */
  --line:     #cdc1a4;  /* hairline                               */
  --line-ink: #2b3a30;  /* hairline on dark grounds               */

  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 680px;     /* reading column width                   */
  --wide:    1080px;    /* page max width                         */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* faint paper grain — pure CSS, no external assets */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(21,32,26,0.020) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(21,32,26,0.020) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--moss); text-underline-offset: 2px; }
a:hover { color: var(--amber); }

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

/* ---------- layout helpers ---------- */
.container { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.measure   { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section    { padding: 60px 0; }
.section--tight { padding: 40px 0; }

/* ---------- top bar / wordmark ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wide); margin: 0 auto; padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
}
.wordmark .spore {           /* spore-print mark: soft radial disc */
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--ink) 0 38%, rgba(21,32,26,0.55) 55%, rgba(21,32,26,0.12) 72%, transparent 78%);
  flex: 0 0 auto;
}
.wordmark .name {
  font-family: var(--serif);
  font-weight: 600; font-size: 22px; letter-spacing: 0.01em;
}
.topbar nav a {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); margin-left: 22px;
}
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.active { color: var(--amber); }

/* ---------- catalog / specimen metadata strip ---------- */
.specimen-strip {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}
.specimen-strip .sep { opacity: 0.4; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--line-ink);
}
.hero::after { /* faint contour-line motif */
  content: ""; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 82% 18%, transparent 0 27px, rgba(95,182,168,0.9) 27px 28px),
    repeating-radial-gradient(circle at 10% 96%, transparent 0 35px, rgba(237,231,214,0.6) 35px 36px);
}
.hero-inner { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; padding: 84px 28px 72px; text-align: center; }
.hero .kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--foxfire); margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 18px; color: #f3eede;
}
.hero .sub { font-size: clamp(18px, 2.4vw, 21px); color: #d3cdba; max-width: 620px; margin: 0 auto; }
.hero .cta-row { margin-top: 32px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--amber); color: #1c1208; border: 1px solid var(--amber);
  padding: 14px 26px; border-radius: 2px;
  transition: background 0.15s ease, transform 0.05s ease, color 0.15s;
}
.btn:hover { background: #c9842f; color: #160d04; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--paper); border-color: rgba(237,231,214,0.5);
}
.btn--ghost:hover { background: rgba(237,231,214,0.08); color: #fff; border-color: var(--paper); }

/* ---------- generic section headings ---------- */
h2.head {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(25px, 3.3vw, 33px); line-height: 1.16; color: var(--ink);
  margin: 0 0 20px;
}
.lede { font-size: 20px; color: var(--ink); }
p { margin: 0 0 20px; }

/* paper panel band */
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* contour divider rule */
.rule {
  border: 0; height: 14px; margin: 0 auto; max-width: var(--measure);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  opacity: 0.8;
}

/* checks list (homepage "what you get") */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { position: relative; padding-left: 34px; margin: 0 0 16px; }
ul.checks li::before {
  content: "✦"; position: absolute; left: 4px; top: 0; color: var(--amber); font-size: 16px;
}

/* "our deal with you" handshake block */
.handshake { border-left: 4px solid var(--amber); padding-left: 26px; }
.handshake .qquote { font-family: var(--serif); font-style: italic; color: var(--moss); }

/* ============================================================
   EPISTEMIC STAMP — the signature device
   Mono font, specimen-tag look. Certainty encoded by border:
   established=solid · contested=dashed · preliminary=dotted ·
   philosophy=double · speculation=dashed(light) · folklore=dotted(italic)
   Text is always ink for legibility (AA); rung color is a chip.
   ============================================================ */
.stamp {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink); background: rgba(237,231,214,0.5);
  border: 1.5px solid var(--ink); border-radius: 2px;
  padding: 3px 9px; line-height: 1.2; vertical-align: middle;
  white-space: nowrap;
}
.stamp::before { /* rung color chip */
  content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--muted); flex: 0 0 auto;
}
.stamp--established { border-style: solid;  background: rgba(70,88,63,0.16); }
.stamp--established::before { background: var(--moss); }
.stamp--contested   { border-style: dashed; }
.stamp--contested::before { background: var(--amber); }
.stamp--preliminary { border-style: dotted; }
.stamp--preliminary::before { background: var(--amber); }
.stamp--philosophy  { border-style: double; border-width: 3px; }
.stamp--philosophy::before { background: var(--foxfire); }
.stamp--speculation { border-style: dashed; border-color: var(--muted); font-style: italic; }
.stamp--speculation::before { background: var(--foxfire); }
.stamp--folklore    { border-style: dotted; border-color: var(--muted); font-style: italic; }
.stamp--folklore::before { background: var(--muted); }

/* inline stamp nudged to sit with text */
.stamp.inline { font-size: 10px; padding: 2px 7px; transform: translateY(-1px); }

/* ============================================================
   ARTICLE / ISSUE PAGE
   ============================================================ */
.issue-header { padding: 44px 0 8px; }
.issue-header .specimen-strip { justify-content: center; margin-bottom: 22px; }
.issue-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.01em;
  text-align: center; margin: 0 auto 16px; max-width: 18ch;
}
.issue-dek {
  text-align: center; color: var(--ink-soft); font-size: 19px;
  max-width: 60ch; margin: 0 auto;
}

.article { font-size: 18.5px; }
.article p { margin: 0 0 22px; }
.article h3 {
  font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2;
  color: var(--ink); margin: 40px 0 14px;
}
.article strong { font-weight: 700; }
.article em { font-style: italic; }
.article .first-lead::first-letter { /* subtle drop emphasis */
  font-family: var(--serif); font-weight: 600;
}
.article .claim-row {
  margin: 26px 0; padding: 14px 18px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 3px;
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.article .claim-row .claim-txt { flex: 1 1 240px; font-style: italic; color: var(--moss); }

/* honest-part callout */
.honest {
  background: var(--ink); color: #e9e3d2; border-radius: 4px;
  padding: 26px 28px; margin: 36px 0;
}
.honest h3 { color: #f3eede; margin-top: 0; }
.honest a { color: var(--foxfire); }

/* sources / show-the-work */
.sources { font-size: 16px; }
.sources ol { padding-left: 22px; margin: 0; }
.sources li { margin: 0 0 12px; }
.sources .claimlabel { font-weight: 600; }
.sources a { word-break: break-word; }

/* epistemic-labels summary */
.labels-list { list-style: none; padding: 0; margin: 0; }
.labels-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.labels-list li:last-child { border-bottom: 0; }
.labels-list .lab-stamp { flex: 0 0 auto; min-width: 132px; }
.labels-list .lab-claim { flex: 1 1 auto; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 14px 0 0; }

/* ============================================================
   SIGNUP BLOCK  (styled wrapper around the Google Form embed)
   ============================================================ */
.signup { background: var(--ink); color: #e9e3d2; }
.signup .container { max-width: 720px; }
.signup h2.head { color: #f3eede; }
.signup p { color: #cfc9b6; }
.signup .specimen-strip { color: #9aa394; margin-bottom: 16px; }

.signup-card {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 10px; margin: 22px 0 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.signup-card iframe {
  width: 100%; border: 0; display: block; background: var(--paper);
  min-height: 480px;
}
.signup .microcopy {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em;
  color: #9aa394; margin-top: 12px;
}
.signup .microcopy strong { color: #cfc9b6; font-weight: 600; }

/* ============================================================
   ARCHIVE / INDEX OF ISSUES
   ============================================================ */
.archive-list { list-style: none; padding: 0; margin: 28px 0 0; }
.issue-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 24px; margin: 0 0 18px; background: var(--paper);
  transition: border-color 0.15s, transform 0.05s, box-shadow 0.15s;
}
.issue-card:hover { border-color: var(--amber); box-shadow: 0 2px 0 rgba(185,119,46,0.25); }
.issue-card .specimen-strip { margin-bottom: 10px; }
.issue-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.18;
  color: var(--ink); margin: 0 0 8px;
}
.issue-card p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
.issue-card .more { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin-top: 12px; display: inline-block; }

/* ---------- footer ---------- */
footer.site {
  background: #111913; color: #9aa394;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8;
  text-align: center; padding: 40px 28px; border-top: 1px solid var(--line-ink);
}
footer.site .wm { color: #e8e0cf; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 6px; }
footer.site a { color: var(--foxfire); text-decoration: none; }
footer.site a:hover { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar nav a { margin-left: 0; margin-right: 18px; }
  .section { padding: 46px 0; }
  .labels-list .lab-stamp { min-width: 0; flex-basis: 100%; margin-bottom: 6px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   HOMEPAGE v2 — latest-issue feature hero + field-journal grid
   (Adopts the reorganized homepage layout; reuses the existing
   palette, fonts, texture, cards, and stamp device.)
   ============================================================ */

/* feature hero: left-aligned variant of .hero that fronts the latest issue */
.hero--feature .hero-inner { text-align: left; max-width: 880px; padding: 72px 28px 76px; }
.hero .feature-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 22px; }
.hero .feature-meta .kick { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--foxfire); margin: 0; }
.hero .feature-meta .ep { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #9aa394; }
.hero .feature-meta .sep { color: #9aa394; opacity: 0.6; }
.hero--feature h1 { max-width: 18ch; }
.hero--feature .sub { margin: 0 0 30px; max-width: 62ch; }
.hero--feature .cta-row { margin-top: 0; display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap; }

/* pillar tag pill (on the dark hero) */
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); border: 1px solid rgba(95,182,168,0.55); border-radius: 999px; padding: 3px 11px; line-height: 1.4; }

/* field-journal: intro + per-series subheads */
.section-intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 6px; }
.series-head { margin: 34px 0 4px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.series-head:first-of-type { margin-top: 10px; }
.series-head .series-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.series-head .series-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.series-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 18px; }

/* field-journal card grid (reuses .issue-card) */
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 0; }
.issue-grid .issue-card { position: relative; overflow: hidden; height: 100%; margin: 0; display: flex; flex-direction: column; }
.issue-grid .issue-card .specimen-strip,
.issue-grid .issue-card h3,
.issue-grid .issue-card p { position: relative; }
.issue-grid .issue-card .more { margin-top: auto; }
.issue-card .num-ghost { position: absolute; top: 4px; right: 16px; pointer-events: none; user-select: none; font-family: var(--serif); font-weight: 600; font-size: 62px; line-height: 1; color: var(--amber); opacity: 0.13; }

/* archive link under the journal */
.archive-link { text-align: center; margin: 30px 0 0; }
.archive-link a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--moss); text-decoration: none; }
.archive-link a:hover { color: var(--amber); }

/* square bullets (the new system retires the diamond bullet) */
.checks--sq li { padding-left: 30px; }
.checks--sq li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); position: absolute; left: 2px; top: 11px; }

/* stamp swatch row */
.stamp-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* "our deal with you" as a bordered amber card (v2) */
.deal-card { border: 1px solid var(--amber); border-left-width: 4px; border-radius: 4px; background: rgba(185,119,46,0.06); padding: 30px 32px; }
.deal-card h2.head { margin-top: 0; }
.deal-card .qquote { font-family: var(--serif); font-style: italic; color: var(--moss); font-size: 22px; margin: 0; }

@media (max-width: 640px) {
  .issue-grid { grid-template-columns: 1fr; }
  .hero--feature .hero-inner { padding: 54px 24px 52px; }
  .deal-card { padding: 24px 22px; }
}

/* ============================================================
   EPISTEMIC STAMPS ON DARK GROUNDS (hero / signup / footer)
   The base .stamp is tuned for light paper: ink text, a dark
   border, and translucent rung backgrounds. On the dark
   forest-ink hero those read as ink-on-ink — the "Established"
   and "Preliminary" stamps all but vanish. Re-tune them here
   for the dark ground: light text, a light hairline border (the
   per-rung border-STYLE still encodes certainty), and lifted
   rung chips so the dot stays visible. Light-ground stamps are
   untouched.
   ============================================================ */
.hero .stamp,
.signup .stamp {
  color: #f3eede;
  background: rgba(237, 231, 214, 0.10);
  border-color: rgba(237, 231, 214, 0.45);
}
/* keep each rung's certainty cue (border-style), just relit for dark */
.hero .stamp--established,
.signup .stamp--established { border-style: solid; background: rgba(155, 177, 140, 0.16); }
.hero .stamp--contested,
.signup .stamp--contested   { border-style: dashed; }
.hero .stamp--preliminary,
.signup .stamp--preliminary { border-style: dotted; }
.hero .stamp--philosophy,
.signup .stamp--philosophy  { border-style: double; border-width: 3px; }
.hero .stamp--speculation,
.signup .stamp--speculation { border-style: dashed; border-color: rgba(237, 231, 214, 0.55); font-style: italic; }
.hero .stamp--folklore,
.signup .stamp--folklore    { border-style: dotted; border-color: rgba(237, 231, 214, 0.55); font-style: italic; }

/* rung chips, lightened so the dot reads on forest ink */
.hero .stamp--established::before,
.signup .stamp--established::before { background: #9BB18C; }
.hero .stamp--contested::before,
.signup .stamp--contested::before   { background: #D79A4A; }
.hero .stamp--preliminary::before,
.signup .stamp--preliminary::before { background: #C7B074; }
.hero .stamp--philosophy::before,
.signup .stamp--philosophy::before  { background: #5FB6A8; }
.hero .stamp--speculation::before,
.signup .stamp--speculation::before { background: #5FB6A8; }
.hero .stamp--folklore::before,
.signup .stamp--folklore::before    { background: #C29FBA; }
