/* ---------------------------------------------------------------------------
   Lee Goymer — portfolio design system
   Dark, technical, metric-forward. No JS, no webfonts, fast everywhere.
--------------------------------------------------------------------------- */

:root {
  --bg: #0b0f14;
  --bg-raise: #10161e;
  --bg-raise-2: #141c26;
  --line: #1d2733;
  --line-bright: #2a3a4c;
  --text: #d8e0ea;
  --muted: #8b97a8;
  --accent: #57d9a3;
  --accent-dim: #2c5d4a;
  --amber: #e6b455;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --w: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 75% -100px, rgba(87, 217, 163, 0.07), transparent 60%),
    radial-gradient(900px 420px at 10% 10%, rgba(78, 119, 168, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- nav ------------------------------------------------------------------ */
.nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.nav-name { font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.nav-name:hover { text-decoration: none; color: var(--accent); }
.nav nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: var(--w); margin: 0 auto; padding: 0 1.5rem; }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 4.5rem 0 3rem; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.pulse {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); margin: 0 0.25rem 0 0.4rem;
  box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.55);
  animation: pulse 2.4s infinite;
  vertical-align: 6%;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(87, 217, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 217, 163, 0); }
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.hero-role { font-size: 1.35rem; color: var(--accent); margin: 0 0 1.1rem; font-weight: 600; }
.hero-lede { max-width: 46rem; color: var(--muted); font-size: 1.12rem; margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.62rem 1.15rem;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  background: transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #06231a; font-weight: 650; }
.btn-primary:hover { background: #6ce5b2; }

/* --- stats bar ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  overflow: hidden;
  margin: 1rem 0 3rem;
}
.stat { padding: 1.1rem 1.2rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value {
  display: block;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.82rem; color: var(--muted); }

/* --- sections ------------------------------------------------------------- */
section { margin-bottom: 4.2rem; }
h2 { font-size: 1.55rem; letter-spacing: -0.01em; margin: 0 0 1.1rem; }
.tick {
  display: inline-block; width: 0.55em; height: 0.55em;
  background: var(--accent); border-radius: 3px;
  margin-right: 0.55rem; transform: rotate(45deg);
  vertical-align: 8%;
}
.section-lede { color: var(--muted); max-width: 50rem; margin-top: -0.3rem; }

.diagram {
  margin: 1.6rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 0.8rem;
}
.diagram img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* --- featured case studies -------------------------------------------------- */
.feature {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 1.5rem 1.6rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.feature:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  background: var(--bg-raise-2);
  transform: translateY(-2px);
}
.feature-index {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--accent);
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  align-self: flex-start;
}
.feature-body { flex: 1; }
.feature-body h3 { margin: 0 0 0.3rem; font-size: 1.22rem; }
.feature-body p { margin: 0 0 0.75rem; color: var(--muted); max-width: 44rem; }
.feature-cta { color: var(--accent); font-size: 0.92rem; white-space: nowrap; align-self: center; }

.status {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber);
  border: 1px solid rgba(230, 180, 85, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: 18%;
  white-space: nowrap;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips-loose { margin: 0.9rem 0; }
.chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  background: rgba(87, 217, 163, 0.08);
  border: 1px solid rgba(87, 217, 163, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-variant-numeric: tabular-nums;
}
.chip-dim { background: transparent; border-color: var(--line-bright); color: var(--muted); }

/* --- card grid -------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 0.9rem; }
.card {
  display: block;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.card:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  background: var(--bg-raise-2);
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.card-status {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--amber); margin: 0 0 0.5rem;
}
.card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 0.8rem; }

.mentions { margin-top: 1.6rem; color: var(--muted); font-size: 0.93rem; }
.mentions ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.mentions li { margin-bottom: 0.25rem; }
.mentions strong { color: var(--text); font-weight: 600; }

/* --- prose ------------------------------------------------------------------ */
.prose { max-width: 48rem; }
.prose p, .prose ul, .prose ol { color: #c3ccd8; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); }
.prose h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8rem; color: var(--accent); }
.prose code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--bg-raise-2); border: 1px solid var(--line);
  padding: 0.08em 0.35em; border-radius: 5px;
}
.prose pre {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote {
  margin: 1.4rem 0; padding: 0.7rem 1.2rem;
  border-left: 3px solid var(--amber);
  background: rgba(230, 180, 85, 0.05);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}
.prose blockquote p { margin: 0.3rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; }
.prose th { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; }

/* --- case study page --------------------------------------------------------- */
.case { padding-top: 1.5rem; }
.crumb { font-size: 0.9rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb-bottom { margin-top: 3rem; }
.case-head { margin: 1.2rem 0 1.8rem; }
.case-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 0.4rem; letter-spacing: -0.015em; }
.case-meta { margin: 0 0 0.8rem; color: var(--muted); }
.case-meta .status { margin-left: 0; }
.case-tagline { font-size: 1.18rem; color: var(--muted); max-width: 46rem; margin: 0; }
.case-stack, .case-links { margin-top: 2.4rem; }
.case-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.shots { display: grid; gap: 1rem; margin-top: 2rem; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); }
.shot img { width: 100%; display: block; }

/* --- resume ------------------------------------------------------------------ */
.resume { padding-top: 1.5rem; }
.resume-sheet {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.6rem 3rem;
  margin: 1.2rem 0 3rem;
  max-width: 52rem;
}
.resume-sheet h1 { margin-top: 0; font-size: 2rem; }
.resume-sheet hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.muted { color: var(--muted); }

/* --- footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); margin-top: 4rem; }
.footer-inner {
  max-width: var(--w); margin: 0 auto; padding: 1.6rem 1.5rem 2.2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--muted); font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-note { font-size: 0.8rem; opacity: 0.75; }

/* --- responsive ---------------------------------------------------------------- */
@media (max-width: 760px) {
  .feature { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .feature-cta { align-self: flex-end; }
  .resume-sheet { padding: 1.6rem 1.3rem; }
  .hero { padding-top: 2.5rem; }
}

/* --- print (resume) -------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #111; font-size: 12px; }
  .nav, .footer, .noprint { display: none !important; }
  main { max-width: 100%; padding: 0; }
  .resume-sheet { border: 0; background: #fff; padding: 0; max-width: 100%; }
  .resume-sheet h1, .prose h2, .prose h3 { color: #111; }
  .prose p, .prose ul, .prose ol { color: #222; }
  a { color: #114488; text-decoration: none; }
}
