/* ============================================================
   StarBrazer × Seth Talbott — single-page site
   Static recreation of the design-system prototype. Component
   classes below mirror the React primitives 1:1 (Button, Badge,
   Card, StatBlock, SkillMeter, Input, SectionHeading) using the
   same token values shipped in styles.css.
   ============================================================ */

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); overflow-x: hidden; }
section[id], header[id] { scroll-margin-top: 72px; }

/* ---- Layout ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--space-6); }
.section { padding: var(--space-9) 0; }
.bg-page   { background: var(--surface-page); }
.bg-sunken { background: var(--surface-sunken); }
.bg-dark   { background: var(--surface-darker); position: relative; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }

.hero-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: var(--space-8); align-items: center; position: relative; }
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---- Mono eyebrow ---- */
.eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--starlight-600); margin: 0 0 14px; }
.eyebrow--dark { color: var(--starlight-400); }
.eyebrow--small { font-size: 11px; letter-spacing: 0.1em; }

/* ---- SectionHeading ---- */
.sh-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: 1.04; letter-spacing: -0.02em; color: var(--text-strong); margin: 0; text-wrap: balance; }
.sh-title--dark { color: var(--paper-100); }

/* ---- Button ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.005em; line-height: 1; border: 1.5px solid transparent; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 16px; font-size: 13px; gap: 8px; }
.btn-md { padding: 12px 22px; font-size: 15px; gap: 10px; }
.btn-lg { padding: 16px 30px; font-size: 17px; gap: 12px; }
.btn-accent { background: var(--starlight-500); color: var(--ink-900); border-color: var(--starlight-500); }
.btn-accent:hover { background: var(--starlight-600); color: var(--ink-900); }
.btn-primary { background: var(--ink-800); color: var(--paper-100); border-color: var(--ink-800); }
.btn-primary:hover { background: var(--ink-700); }
.btn-secondary { background: transparent; color: var(--ink-800); border-color: var(--ink-800); }
.btn-secondary:hover { background: var(--paper-200); }
.btn-secondary.on-dark { color: var(--paper-100); border-color: var(--border-on-dark); }
.btn-secondary.on-dark:hover { background: rgba(246, 241, 233, 0.08); }

/* ---- Card ---- */
.card { position: relative; border-radius: var(--radius-card); overflow: hidden; }
.card-raised { background: var(--surface-raised); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); color: var(--text-body); }
.card-dark { background: var(--surface-dark); border: 1px solid var(--border-on-dark); color: var(--text-on-dark); }
.card-accent::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--starlight-500); }

/* ---- StatBlock (on dark in hero) ---- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-4xl); line-height: 1; letter-spacing: -0.02em; color: var(--paper-100); }
.stat-value.accent { color: var(--starlight-400); }
.stat-label { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm); color: var(--paper-100); }
.stat-sub { font-family: var(--font-sans); font-size: var(--text-xs); line-height: 1.5; color: var(--slate-300); }

/* ---- SkillMeter (on dark) ---- */
.skill { display: flex; flex-direction: column; gap: 8px; }
.skill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.skill-label { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm); color: var(--paper-100); }
.skill-pct { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-xs); color: var(--starlight-400); }
.skill-track { height: 7px; border-radius: var(--radius-pill); background: rgba(246, 241, 233, 0.14); overflow: hidden; }
.skill-fill { width: 0; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--starlight-600), var(--starlight-400)); transition: width var(--dur-slow) var(--ease-out); }

/* ---- Badge ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-xs); border: 1px solid transparent; line-height: 1.1; }
.badge-neutral { background: var(--paper-200); color: var(--ink-700); border-color: var(--paper-300); }
.badge-starlight-solid { background: var(--starlight-700); color: var(--paper-50); border-color: var(--starlight-700); }

/* ---- Input ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea { width: 100%; font-family: var(--font-sans); font-size: var(--text-md); color: var(--text-strong); background: var(--surface-raised); border: 1.5px solid var(--paper-300); border-radius: var(--radius-sm); padding: 11px 14px; outline: none; box-sizing: border-box;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.field input:focus, .field textarea:focus { border-color: var(--starlight-500); box-shadow: 0 0 0 3px var(--starlight-100); }
.field textarea { resize: vertical; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 17, 30, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-on-dark); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 14px var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand span { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--paper-100); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.navlink { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--slate-300); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
.navlink:hover { color: var(--starlight-300); }

/* ---- Ventures + press rows ---- */
.venture { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.venture-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--starlight-600); margin-bottom: 6px; }
.venture-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--text-strong); letter-spacing: -0.01em; }
.venture-note { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.press { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md); text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.press:hover { border-color: var(--starlight-400); transform: translateX(3px); }

/* ---- Editorial helpers ---- */
.lede-serif { font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.65; color: var(--text-body); margin: 0 0 18px; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero-grid, .two-col, .grid-2 { grid-template-columns: 1fr !important; }
  .nav-links .navlink { display: none; }
  .section { padding: var(--space-8) 0; }
  .hero-portrait-wrap { max-width: 420px; }
}
@media (max-width: 560px) {
  .stat-row { gap: 28px !important; }
  .container { padding-inline: var(--space-5); }
}
