/* === Howard Orloff — howardorloff.net === */
/* Dark theme, clean typography, professional */

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --text-primary: #e8ecf1;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-dim: #1e40af;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --border: #1e293b;
  --border-light: #334155;
  --success: #22c55e;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 820px;
  --max-width-wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.site-nav .nav-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav .nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
}

.site-nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--text-primary);
}

.site-nav .nav-links a.external {
  color: var(--accent);
}

/* === LAYOUT === */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.page-container.wide {
  max-width: var(--max-width-wide);
}

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent); }

/* === TYPOGRAPHY === */
h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p { margin-bottom: 1.25rem; color: var(--text-secondary); }

strong { color: var(--text-primary); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #60a5fa; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* === HERO === */
.hero {
  padding: 4rem 0 3rem;
  text-align: left;
}

.hero .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero .description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

/* === STAT GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === TAG/CHIP === */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tag {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-weight: 500;
}

/* === ERA MARKER === */
.era-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
}

.era-marker::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

/* === PROJECT CARD (Lineage) === */
.project-section {
  border-left: 2px solid var(--border);
  padding-left: 2rem;
  margin-left: 0.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.project-section::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.project-section h2 {
  margin-top: 0;
}

/* === PRESS LOGOS === */
.press-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.press-badge {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
}

/* === KNOWLEDGE CLUSTER PAGE === */
.knowledge-header {
  padding: 3rem 0 2rem;
}

.knowledge-header .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.knowledge-header .meta .author {
  color: var(--accent);
  font-weight: 500;
}

.content-section {
  margin-top: 2rem;
}

.content-section h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* === OUTCOME LIST === */
.outcome-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.outcome-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.outcome-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === PORTFOLIO GRID === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.portfolio-card:hover {
  border-color: var(--border-light);
}

.portfolio-card .card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.portfolio-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.portfolio-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* === PORTRAIT IMAGE === */
.portrait-wrap {
  margin: 2rem 0;
  text-align: center;
}

.portrait-wrap img {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* === FOOTER === */
.site-footer {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer .footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.site-footer .footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--text-secondary);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  body { font-size: 16px; }
  .site-nav { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .page-container { padding: 0 1.25rem 3rem; }
}
