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

:root {
  --ink: #1a1a1a;
  --ink-light: #555;
  --ink-faint: #888;
  --rule: #e2e2e2;
  --bg: #ffffff;
  --bg-subtle: #f7f7f5;
  --accent: #1a1a1a;
  --link: #2a52a0;
  --link-hover: #1a3570;
  --max: 720px;
  --wide: 960px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 17px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

/* Layout */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.content-container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
main { flex: 1; }

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

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

/* Homepage hero */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}

.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: normal;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: #333; }

.btn-secondary {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
}

.btn-secondary:hover { border-color: #bbb; background: var(--bg-subtle); }

/* Homepage sections */
.home-section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.home-section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}

/* Scope grid */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.scope-item {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.scope-item:nth-child(3n) { border-right: none; }
.scope-item:nth-last-child(-n+3) { border-bottom: none; }

.scope-number {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.scope-label {
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

/* Insights list on homepage */
.insights-preview { display: flex; flex-direction: column; gap: 0; }

.insight-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.1s;
}

.insight-row:first-child { border-top: 1px solid var(--rule); }
.insight-row:hover .insight-row-title { color: var(--link); }

.insight-row-title {
  font-size: 0.97rem;
  font-weight: 500;
  flex: 1;
  transition: color 0.15s;
}

.insight-row-date {
  font-size: 0.82rem;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.view-all {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--link);
  text-decoration: none;
}

.view-all:hover { color: var(--link-hover); text-decoration: underline; }

/* Page header */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: normal;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-header .subtitle {
  font-size: 1rem;
  color: var(--ink-light);
}

/* Prose content */
.prose {
  padding: 56px 0 96px;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--ink);
  margin: 52px 0 16px;
  padding-top: 8px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
  letter-spacing: 0.01em;
}

.prose p {
  margin-bottom: 20px;
  color: var(--ink);
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { font-weight: 600; color: var(--ink); }

.prose a { color: var(--link); }
.prose a:hover { color: var(--link-hover); }

.prose ul, .prose ol {
  margin: 0 0 20px 20px;
}

.prose li { margin-bottom: 6px; }

.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

.prose blockquote {
  border-left: 3px solid var(--rule);
  padding-left: 20px;
  color: var(--ink-light);
  margin: 24px 0;
}

/* Experience-specific */
.prose .employer-block { margin-bottom: 60px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 24px 0;
}

.prose td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.prose td:first-child {
  color: var(--ink-faint);
  white-space: nowrap;
  width: 40%;
}

/* Insights index */
.insights-index { padding: 56px 0 96px; }

.insight-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}

.insight-card:first-child { border-top: 1px solid var(--rule); }
.insight-card:hover .insight-card-title { color: var(--link); }

.insight-card-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.insight-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.insight-card-summary {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 600px;
}

/* Single insight */
.insight-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.insight-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.insight-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 640px;
}

.insight-summary {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 580px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-size: 0.88rem;
  color: var(--ink-light);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .hero { padding: 56px 0 48px; }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .scope-item:nth-child(3n) { border-right: 1px solid var(--rule); }
  .scope-item:nth-child(2n) { border-right: none; }
  .scope-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .scope-item:nth-last-child(-n+2) { border-bottom: none; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-name { display: none; }
  .nav-links { gap: 16px; }
}
