/* ==========================================================================
   Hatch Labs shared theme
   Source of truth for every Hatch Labs venture site.
   Extracted from iherebycommit.com onboarding + member pages (Nov 2026).

   Usage:
     <link rel="stylesheet" href="…/fonts.css">
     <link rel="stylesheet" href="…/hatch.css">
   Per-site accent: override --accent on :root (defaults to lime).
   ========================================================================== */

:root {
  /* Palette */
  --bg: #f0ece0;            /* cream paper */
  --paper: #ffffff;         /* inputs, white cards */
  --ink: #141413;           /* text, borders, primary buttons */
  --body: #3a3934;          /* paragraph text */
  --muted: #77746a;         /* fine print, meta */
  --line: rgba(14, 14, 14, .14);
  --grid: rgba(14, 14, 14, .07);
  --lime: #c8f135;          /* primary highlight */
  --orange: #E05A10;        /* errors, secondary highlight (member) */
  --orange-hi: #FF7A2F;     /* bright orange highlight (onboarding) */
  --teal: #3BA7A5;          /* introductions card */

  /* Per-site accent (one extra colour allowed per venture) */
  --accent: var(--lime);

  /* Type */
  --font-display: "Bebas Neue", Anton, "Arial Narrow", sans-serif;
  --font-body: "Space Mono", ui-monospace, Menlo, monospace;

  /* Shape */
  --radius: 4px;
  --border: 1.5px solid var(--ink);
  --tap: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  /* graph-paper grid */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
}
main, .hl-wrap { max-width: 640px; margin: 0 auto; padding: 24px 18px calc(40px + env(safe-area-inset-bottom)); }
.hl-wrap.wide { max-width: 960px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
h1 { font-size: 52px; line-height: .95; margin: 0 0 14px; }
h2 { font-size: 26px; letter-spacing: .04em; margin: 28px 0 10px; }
h3 { font-size: 19px; letter-spacing: .04em; margin: 14px 0 6px; }
p  { font-size: 13px; line-height: 1.65; color: var(--body); margin: 0 0 12px; }
.lead { color: var(--ink); font-size: 14px; }
.fine { font-size: 11px; color: var(--muted); }
a { color: var(--ink); }

/* Highlighter marks: <span class="hl">…</span> or h1 span */
.hl, h1 span { background: var(--accent); padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.orange { background: var(--orange-hi); color: var(--ink); }
.hl.ink { background: var(--ink); color: var(--bg); }

/* ---------- Header band (full-width accent strip) ---------- */
.hl-band { background: var(--accent); margin: -24px calc(50% - 50vw) 22px; padding: 24px calc(50vw - 50%) 18px; }
.hl-band h1 { margin-bottom: 0; }
.hl-band h1 span { background: var(--paper); }
.hl-hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tap); margin: 0 0 14px; }
.hl-back { display: inline-flex; align-items: center; min-height: var(--tap); font: 700 11px/14px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.hl-back:active { color: var(--ink); }

/* Stacked wordmark tile (black tile, cream + accent lines) */
.hl-logo { display: inline-flex; flex-direction: column; justify-content: center; height: 46px; padding: 0 8px; background: #000; border-radius: 2px; color: var(--bg); font: 400 20px/.9 var(--font-display); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.hl-logo span { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 16px; background: var(--ink); color: var(--bg); border: 0; border-radius: var(--radius); font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: var(--border); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.orange { background: var(--orange-hi); color: var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.teal { background: var(--teal); color: var(--ink); }
/* Rule: orange never sits on teal. Buttons inside a teal card are black. */
.card.teal .btn.orange, .card.teal .hl.orange, .card.teal .st.orange { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.full { width: 100%; min-height: 52px; font-size: 24px; }
.btn:active, .big:active { background: var(--lime); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }

/* Big black link block with title + small caption */
.big { display: block; width: 100%; text-align: left; text-decoration: none; background: var(--ink); color: var(--bg); border: 0; border-radius: var(--radius); padding: 22px 20px; margin: 14px 0; cursor: pointer; }
.big h2 { margin: 0; font-size: 34px; letter-spacing: .05em; line-height: 1; color: inherit; }
.big small { display: block; font-size: 12px; line-height: 1.5; margin-top: 8px; color: #cfcabb; }

/* ---------- Cards ---------- */
/* Rule: the inside of a box is never beige. Cards default to white. */
.card { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; }
.card > h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: .05em; line-height: 1; }
.card.white { background: var(--paper); }
.card.teal { background: var(--teal); }
.card.teal-line { background: var(--paper); border: 2px solid var(--teal); }
.card.on { box-shadow: inset 6px 0 0 var(--accent); }

/* Status chip */
.st { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--ink); border-radius: 3px; white-space: nowrap; }
.st.on { background: var(--lime); border-color: var(--lime); }
.st.ink { background: var(--ink); color: var(--bg); }
.st.orange { background: var(--orange-hi); border-color: var(--orange-hi); color: var(--ink); }

/* Link list rows (lime-highlighted label, arrow on right) */
.rows { display: flex; flex-direction: column; gap: 2px; }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tap); padding: 0 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.rows a:last-child { border-bottom: 0; }
.rows a > span:first-child { background: var(--accent); color: var(--ink); padding: 1px 5px; font-weight: 700; }
.rows a:active > span:first-child { background: var(--ink); color: var(--bg); }

/* ---------- Forms ---------- */
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 6px; }
input[type=email], input[type=text], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; font: 16px var(--font-body); padding: 10px 12px;
  background: var(--paper); color: var(--ink); border: var(--border); border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
.err { color: var(--orange); font-size: 12px; min-height: 16px; }
.ok  { color: var(--ink); font-size: 12px; min-height: 16px; }

.hide { display: none !important; }
