:root {
  --paper: #080b12;
  --ink: #f5f7fb;
  --muted: #9aa5b5;
  --line: #273142;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dark: #1d4ed8;
  --night: #05070b;
  --white: #111827;
  --shell: 1160px;
  --narrow: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), var(--narrow)); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: white; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(8, 11, 18, .92); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.site-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 5px 5px 0 #172554; font-size: 14px; font-weight: 900; text-decoration: none; letter-spacing: .08em; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-bright); }

.hero { min-height: 690px; padding-block: 110px 90px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 90px; align-items: end; background-image: linear-gradient(rgba(59, 130, 246, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, .055) 1px, transparent 1px); background-size: 48px 48px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-bright); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 920px; margin-bottom: 28px; font-size: clamp(48px, 6.2vw, 82px); font-weight: 850; letter-spacing: -.055em; line-height: .98; }
h2 { margin-bottom: 22px; font-size: clamp(36px, 4vw, 55px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
h3 { margin-bottom: 12px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.hero-lede { max-width: 790px; color: var(--muted); font-size: 21px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.button { border-radius: 2px; letter-spacing: .01em; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 5px 5px 0 #172554; }
.button-primary:hover { border-color: var(--accent-bright); background: var(--accent-bright); }
.button-secondary:hover { border-color: var(--accent-bright); background: var(--white); }
.hero-aside { padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: rgba(17, 24, 39, .82); }
.aside-label { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-aside ul { margin: 0; padding: 0; list-style: none; }
.hero-aside li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }

.section { padding-block: 100px; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 55px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: transparent; border: 0; }
.capability-card { min-height: 330px; padding: 34px; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--white); transition: border-color .16s ease, transform .16s ease; }
.capability-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.capability-card > span { display: block; margin-bottom: 68px; color: var(--accent); font-size: 13px; font-weight: 800; }
.capability-card p { color: var(--muted); font-size: 16px; }

.timeline { border-top: 2px solid var(--accent); }
.timeline article { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline article div { max-width: 750px; }
.timeline article p:last-child { margin-bottom: 0; color: var(--muted); }
.timeline-date { margin: 3px 0 0; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > a { color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; }
.post-list { border-top: 2px solid var(--accent); }
.post-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row p { margin-bottom: 5px; color: var(--muted); font-size: 13px; text-transform: uppercase; }
.post-row h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.post-row > span { color: var(--accent); font-size: 24px; }
.empty-writing { padding: 28px 4px; border-bottom: 1px solid var(--line); }
.empty-writing p { margin-bottom: 5px; color: var(--muted); font-size: 13px; text-transform: uppercase; }
.empty-writing h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.025em; }

.cta { border-top: 1px solid #1e3a8a; background: linear-gradient(135deg, #07111f 0%, #0b1730 55%, #111827 100%); color: var(--ink); }
.cta-inner { min-height: 390px; padding-block: 80px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.cta h2 { max-width: 780px; margin-bottom: 0; }
.cta .eyebrow { color: var(--accent-bright); }
.button-light { flex: 0 0 auto; border-color: var(--accent-bright); color: #fff; }
.button-light:hover { background: var(--accent); color: #fff; }

.page-hero { padding-block: 115px 90px; }
.page-hero h1 { font-size: clamp(45px, 5.6vw, 72px); }
.prose-section { padding-block: 70px; border-top: 1px solid var(--line); }
.prose-section h2 { font-size: 40px; }
.prose-section p { color: var(--muted); font-size: 20px; line-height: 1.7; }
.experience-list { border-top: 2px solid var(--accent); }
.experience-list article { display: grid; grid-template-columns: 310px 1fr; gap: 60px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.experience-list h3 { margin: 6px 0 2px; font-size: 22px; }
.experience-list article > div p:last-child, .experience-list article > p { margin-bottom: 0; color: var(--muted); }
.focus-block { margin-bottom: 100px; padding: 55px; border: 0; background: var(--white); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; }
.tag-list span { padding: 7px 11px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }

.writing-index { padding-top: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; border-top: 0; }
.post-card { min-height: 330px; padding: 34px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); text-decoration: none; }
.post-card > p { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.post-card h2 { margin-bottom: 18px; font-size: 34px; }
.post-card > span { color: var(--muted); }
.post-card strong { margin-top: auto; padding-top: 30px; color: var(--accent); font-size: 14px; }
.post-card-empty { cursor: default; }

.article { max-width: 900px; padding-block: 100px; }
.article-header { padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(46px, 6vw, 76px); }
.article-lede { color: var(--muted); font-size: 22px; }
.article-body { max-width: 730px; margin: 60px auto 0; }
.article-body p, .article-body li { color: #cbd5e1; font-size: 19px; line-height: 1.8; }
.article-body h2 { margin-top: 55px; font-size: 36px; }
.article-body blockquote { margin: 40px 0; padding: 20px 30px; border-left: 4px solid var(--accent); background: var(--white); }
.article-body blockquote p { margin: 0; color: var(--ink); font-size: 24px; font-weight: 700; }
.error-page { min-height: 650px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--accent); font-size: 14px; font-weight: 800; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { min-height: 0; padding-block: 80px; grid-template-columns: 1fr; gap: 60px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
  .capability-card > span { margin-bottom: 35px; }
  .experience-list article { grid-template-columns: 1fr; gap: 18px; }
  .writing-index { grid-template-columns: 1fr; }
  .cta-inner { align-items: start; flex-direction: column; justify-content: center; }
}

@media (max-width: 560px) {
  .shell, .narrow { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 70px; }
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 13px; }
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  .hero-lede { font-size: 18px; }
  .section { padding-block: 72px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .split-heading { align-items: start; flex-direction: column; }
  .focus-block { padding: 30px 24px; }
  .article { padding-block: 70px; }
  .article-body p, .article-body li { font-size: 18px; }
  .footer-inner { padding-block: 35px; align-items: start; flex-direction: column; justify-content: center; }
}
