/* ============================================================================
   Versen Labs — brand design system (starter)
   Palette sampled from the logo lockups:
     ice-lavender ground (Group 238), slate-navy panel (Group 239),
     periwinkle/steel sphere accents (Group 240), black wordmark, white knockout.
   Fonts are a starting pair — swap in the build session if you want something
   closer to the wordmark's geometry (see BUILD-PLAN.md § type).
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&family=Hanken+Grotesk:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* grounds */
  --ice:    #e9ecf7;   /* pale lavender — the light ground */
  --ice-2:  #f4f6fb;   /* lifted card surface on light */
  --slate:  #3b4257;   /* dark slate-navy panel */
  --slate-2:#333949;   /* deeper slate for dark surfaces */
  --ink:    #14151a;   /* near-black text */
  --paper:  #ffffff;

  /* sphere accents */
  --periwinkle: #6d7fc4;
  --steel:      #5f7ea8;
  --mist:       #aeb9dd;

  /* semantic tokens (light theme default) */
  --bg:      var(--ice);
  --surface: var(--ice-2);
  --text:    var(--ink);
  --muted:   #626880;
  --accent:  var(--periwinkle);
  --line:    rgba(20, 21, 26, 0.12);
  --line-strong: rgba(20, 21, 26, 0.22);

  --font-display: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      var(--slate);
    --surface: var(--slate-2);
    --text:    #eef0f6;
    --muted:   #a6adc4;
    --accent:  var(--mist);
    --line:    rgba(238, 240, 246, 0.14);
    --line-strong: rgba(238, 240, 246, 0.26);
  }
}
:root[data-theme="light"] {
  --bg: var(--ice); --surface: var(--ice-2); --text: var(--ink); --muted: #626880;
  --accent: var(--periwinkle); --line: rgba(20,21,26,0.12); --line-strong: rgba(20,21,26,0.22);
}
:root[data-theme="dark"] {
  --bg: var(--slate); --surface: var(--slate-2); --text: #eef0f6; --muted: #a6adc4;
  --accent: var(--mist); --line: rgba(238,240,246,0.14); --line-strong: rgba(238,240,246,0.26);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}

/* ---- site header ---- */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0 22px;
}
.site-head .brand img { height: 30px; width: auto; display: block; }
.site-head nav { display: flex; gap: 22px; align-items: center; }
.site-head nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.site-head nav a:hover { color: var(--text); }

/* ---- log list ---- */
.log-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; }
.log-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline;
  padding: 22px 4px; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background .2s, padding .2s;
}
.log-row:last-child { border-bottom: 1px solid var(--line); }
.log-row:hover { background: var(--surface); }
.log-row .no { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.log-row .body .title { font-family: var(--font-display); font-size: clamp(18px, 3vw, 22px); font-weight: 600; }
.log-row .body .dek { color: var(--muted); font-size: 14px; margin-top: 4px; }
.log-row .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-align: right; white-space: nowrap; }

/* ---- footer ---- */
.site-foot {
  margin-top: 72px; padding: 28px 0 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
}
.site-foot a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.site-foot a:hover { color: var(--text); }
.site-foot .mark { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; }
.site-foot .mark img { height: 22px; width: auto; opacity: 0.9; }
