/* Samuel Punge — site-wide tokens & shared utilities.
   Color: warm paper, deep ink, oxblood accent. Single chroma family. */

:root {
  --paper:        oklch(96% 0.012 80);   /* warm cream */
  --paper-2:      oklch(93% 0.014 78);   /* slightly deeper */
  --paper-3:      oklch(88% 0.016 76);
  --ink:          oklch(20% 0.015 60);   /* near-black warm */
  --ink-2:        oklch(35% 0.014 60);
  --ink-3:        oklch(50% 0.012 60);   /* secondary text */
  --ink-4:        oklch(70% 0.010 60);   /* tertiary, hairlines */
  --rule:         oklch(82% 0.010 60);
  --accent:       oklch(45% 0.13 28);    /* oxblood */
  --accent-2:     oklch(38% 0.13 28);
  --accent-soft:  oklch(92% 0.04 28);

  --serif: 'EB Garamond', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* DARK theme — researcher / terminal coded */
[data-theme="dark"] {
  --paper:        oklch(16% 0.010 60);
  --paper-2:      oklch(20% 0.012 60);
  --paper-3:      oklch(24% 0.014 60);
  --ink:          oklch(94% 0.012 80);
  --ink-2:        oklch(82% 0.012 78);
  --ink-3:        oklch(68% 0.012 70);
  --ink-4:        oklch(45% 0.010 60);
  --rule:         oklch(30% 0.010 60);
  --accent:       oklch(68% 0.15 28);
  --accent-2:     oklch(78% 0.15 28);
  --accent-soft:  oklch(28% 0.06 28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }

/* Artboard base — full-bleed surface inside a DCArtboard */
.sp-artboard {
  width: 100%; height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  position: relative;
  overflow: hidden;
}
.sp-artboard.dense { font-size: 14px; }
.sp-artboard.regular { font-size: 16px; }
.sp-artboard.airy { font-size: 17px; letter-spacing: 0.005em; }

/* Reusable bits */
.mono { font-family: var(--mono); font-feature-settings: "ss01","cv01"; }
.sans { font-family: var(--sans); }
.serif { font-family: var(--serif); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.rule  { height: 1px; background: var(--rule); border: 0; margin: 0; }
.vrule { width: 1px; background: var(--rule); }
.dim   { color: var(--ink-3); }
.dimmer{ color: var(--ink-4); }
.accent{ color: var(--accent); }
a.spx { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-4); padding-bottom: 1px; transition: color .15s, border-color .15s; }
a.spx:hover { color: var(--accent); border-color: var(--accent); }

.sp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-3);
  background: transparent;
}
.sp-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-4); }
.sp-pill[data-status="active"]   .dot { background: oklch(60% 0.13 145); }
.sp-pill[data-status="active"]   { color: oklch(40% 0.13 145); border-color: oklch(75% 0.07 145); }
.sp-pill[data-status="closing"]  .dot { background: oklch(70% 0.13 70); }
.sp-pill[data-status="closing"]  { color: oklch(45% 0.13 70); border-color: oklch(80% 0.07 70); }
.sp-pill[data-status="parked"]   .dot { background: var(--ink-4); }
.sp-pill[data-status="closed"]   .dot { background: var(--ink-4); }
.sp-pill[data-status="closed"]   { opacity: 0.7; }
.sp-pill[data-status="pursuing"] .dot { background: var(--accent); }
.sp-pill[data-status="pursuing"] { color: var(--accent); border-color: var(--accent-soft); }

/* shared button */
.sp-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 10px 16px; border-radius: 0;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  cursor: pointer; transition: all .15s ease;
}
.sp-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.sp-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.sp-btn.ghost { background: transparent; color: var(--ink); }
.sp-btn.ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

/* lang toggle */
.sp-lang {
  display: inline-flex; gap: 0; font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--rule); border-radius: 999px; overflow: hidden;
}
.sp-lang button {
  background: transparent; border: 0; padding: 5px 12px;
  color: var(--ink-3); cursor: pointer; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--mono); font-size: 10px;
}
.sp-lang button[data-on="true"] { background: var(--ink); color: var(--paper); }

/* inputs */
.sp-input, .sp-textarea {
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 0; width: 100%; outline: none;
}
.sp-input:focus, .sp-textarea:focus { border-color: var(--accent); }
.sp-textarea { resize: none; min-height: 120px; line-height: 1.5; }

/* scrollbar inside artboards */
.sp-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.sp-scroll::-webkit-scrollbar { width: 8px; }
.sp-scroll::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 4px; }
