/* Organic — design-system tokens and component classes.
   Imported verbatim from Claude Design project "Organic"
   (497d94a3-b67d-41be-a3b4-94385fb7e7b3). This file is the source of truth
   for the system's look — retune tokens here, not in site.css. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..600&family=Figtree:wght@300;400;500;600&display=swap');

:root {
  /* ── Palette, sampled from the hero photograph ─────────────────────────
     Every colour below is derived from Alexander in the rainforest gully.
     The anchors, read straight off the frame:

       #1B2C16  foliage in shade — the dominant colour of the picture
       #0E120C  deepest shade, far right of frame
       #608360  light coming through the canopy gap
       #505144  wet river stone
       #9B816E  the guitar — the only warm note in the whole image

     Those anchors set the hues; the ramps are then generated in OKLCH on
     one shared lightness scale, so step N of any ramp matches step N of the
     others in perceived value. Chroma is fitted per step, so nothing is
     clipped on the way into sRGB.
     ──────────────────────────────────────────────────────────────────── */
  --color-bg: #f6efe4;          /* pale stone, the light the gully lets through */
  --color-surface: #e9e1d3;
  --color-text: #131d10;        /* deep forest, near-black green */
  --color-accent: #80490b;      /* the guitar, warmed and deepened */
  --color-accent-2: #44623b;    /* canopy green */
  --color-divider: color-mix(in srgb, #131d10 15%, transparent);

  /* Warm ramp — the guitar. The only heat in the photograph, so it carries
     every action: buttons, links, the lantern. */
  --color-accent-100: #fff3ea;
  --color-accent-200: #f9e3d1;
  --color-accent-300: #efc7a6;
  --color-accent-400: #dca473;
  --color-accent-500: #c58242;
  --color-accent-600: #a56521;
  --color-accent-700: #80490b;
  --color-accent-800: #593102;
  --color-accent-900: #351900;

  /* Green ramp — the canopy, from lit gap to foliage shadow. */
  --color-accent-2-100: #f2f8f0;
  --color-accent-2-200: #e0ecdd;
  --color-accent-2-300: #c2d7bc;
  --color-accent-2-400: #9dbb94;
  --color-accent-2-500: #7aa070;
  --color-accent-2-600: #5e8254;
  --color-accent-2-700: #44623b;
  --color-accent-2-800: #2d4326;
  --color-accent-2-900: #162612;

  /* Neutral ramp — wet river stone. Olive-leaning, never a cold grey. */
  --color-neutral-100: #f6f6f3;
  --color-neutral-200: #e8e8e4;
  --color-neutral-300: #d0d0c8;
  --color-neutral-400: #b1b2a7;
  --color-neutral-500: #949587;
  --color-neutral-600: #76786a;
  --color-neutral-700: #595a4f;
  --color-neutral-800: #3c3d35;
  --color-neutral-900: #21221c;

  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;

  /* Elevation — shadows tinted with the forest floor, never neutral black. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #131d10 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #131d10 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #131d10 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.washed{filter:saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px; line-height: 1.2; letter-spacing: 0.04em; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 17px; line-height: 1.25; letter-spacing: -0.01em;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 0;
  background: none; border-radius: 0;
}
.tag-accent { color: var(--color-accent-700); }
.tag-accent-2 { color: var(--color-accent-2-700); }
.tag-neutral { color: var(--color-neutral-600); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
