/* zacharyjsparks.com design tokens
   Fonts: Bricolage Grotesque, IBM Plex Sans, IBM Plex Mono (all open licensed).
   Self-host them from the repo (for example with the Fontsource packages) so the
   site has no third-party font requests. */

:root {
  /* Color, light */
  --ground: #F3F6F2;
  --paper: #FFFFFF;
  --ink: #0F1A14;
  --muted: #4A5A50;
  --rule: #D5DDD6;
  --accent: #2D7549;
  --viridian: #609078; /* second chart series and decoration only, never text */

  /* Heat ramp: ground to accent. Logo mark, hero graphic, chart palette. */
  --heat-0: #E4EBE6;
  --heat-1: #CBE8CE;
  --heat-2: #ACE1AF; /* Celadon */
  --heat-3: #7BC089;
  --heat-4: #48A860; /* Chateau */
  --heat-5: #2D7549;

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1120px;
  --gutter: 32px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 56px;
  --space-6: 96px;
  --radius-cell: 1px;
  --radius-ui: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1511;
    --paper: #151D18;
    --ink: #EEF3EF;
    --muted: #A0AEA5;
    --rule: #26312A;
    --accent: #6FCB8A;

    --heat-0: #18221C;
    --heat-1: #1E3B2A;
    --heat-2: #26593C;
    --heat-3: #348050;
    --heat-4: #4DA86B;
    --heat-5: #6FCB8A;
  }
}

/* Base */
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule { height: 1px; background: var(--rule); }

/* Primary button: accent fill, ground-colored text */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--ground);
  border-radius: var(--radius-ui);
  text-decoration: none;
  font-weight: 500;
}

/* Heat cells: add one of .heat-0 to .heat-5 */
.heat-0 { background: var(--heat-0); }
.heat-1 { background: var(--heat-1); }
.heat-2 { background: var(--heat-2); }
.heat-3 { background: var(--heat-3); }
.heat-4 { background: var(--heat-4); }
.heat-5 { background: var(--heat-5); }

/* Rows: project and post lists */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
}
.row:hover { background: var(--paper); }
.row .arrow { display: inline-block; color: var(--accent); transition: transform 0.15s; }
.row:hover .arrow { transform: translateX(4px); }

/* Motion is optional */
@media (prefers-reduced-motion: reduce) {
  .row, .row .arrow { transition: none; }
}
