/* ── Design Tokens ─────────────────────────────── */
:root {
  --blue:        #528CBE;
  --blue-50:     #EEF4F9;
  --blue-100:    #DCE8F2;
  --blue-600:    #396285;
  --blue-800:    #21384C;
  --blue-900:    #152330;
  --coral:       #E95B4E;
  --coral-50:    #FDEFED;
  --coral-600:   #A34037;
  --black:       #1B3D6E;
  --n100:        #EEE9E8;
  --n400:        #9B9391;
  --n800:        #252120;
  --white:       #FFFFFF;
  --body-text:   #3D3835;
  --radius-btn:  24px;
  --radius-tag:  20px;
  --radius-card: 12px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--n800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section Header Pattern ─────────────────────── */
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--n800);
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  line-height: 1.15;
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  transition: background 0.18s ease;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--blue-600); }

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius-btn);
  transition: background 0.18s ease, color 0.18s ease;
  letter-spacing: 0.01em;
}
.btn-secondary:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

/* ════════════════════════════════════════════════
   SUBSCRIBE BAR
════════════════════════════════════════════════ */
.subscribe-bar {
  background: var(--blue-900);
  padding: 11px 0;
}
.subscribe-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.subscribe-bar p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.subscribe-bar strong { color: white; }
.subscribe-bar-btn {
  display: inline-block;
  background: var(--coral);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: background 0.18s;
  letter-spacing: 0.04em;
}
.subscribe-bar-btn:hover { background: var(--coral-600); }

/* ════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════ */
nav {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
}
.nav-logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}
.nav-logo .ash { color: var(--blue); }
.nav-logo .ai  { color: var(--coral); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  transition: color 0.18s;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; }

/* ════════════════════════════════════════════════
   HERO (homepage only)
════════════════════════════════════════════════ */
.hero {
  background: var(--white);
  padding: 80px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--blue-50);
  border: 1px solid var(--n100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--n400);
  font-size: 13px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content { padding-top: 4px; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--n400);
  margin-bottom: 16px;
}
.hero-name {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--n800);
  line-height: 1.0;
  margin-bottom: 10px;
}
.hero-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-bio { display: flex; flex-direction: column; gap: 14px; }
.hero-bio p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.78;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.blue-rule { height: 3px; background: var(--blue); }

/* ════════════════════════════════════════════════
   WHERE I'VE BUILT
════════════════════════════════════════════════ */
.built {
  background: var(--blue-50);
  padding: 72px 0;
}
.company-grid {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
}
.company-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--n100);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.company-card:hover {
  border-color: var(--blue-100);
  box-shadow: 0 2px 12px rgba(82,140,190,0.10);
}
.company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--n800);
  letter-spacing: 0.01em;
}
.company-role {
  font-size: 11px;
  color: var(--n400);
  font-weight: 400;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════
   ESSAYS & ARTICLES
════════════════════════════════════════════════ */
.essays {
  background: var(--white);
  padding: 72px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--n100);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.article-card:hover {
  border-color: var(--blue-100);
  box-shadow: 0 4px 24px rgba(96,139,187,0.11);
  transform: translateY(-2px);
}
.article-card:hover .article-read { color: var(--blue-600); }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  background: var(--blue-50);
  color: var(--blue-600);
  width: fit-content;
}
.article-tag.coral {
  background: var(--coral-50);
  color: var(--coral-600);
}
.article-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--n800);
  line-height: 1.4;
  letter-spacing: -0.015em;
  flex-grow: 1;
}
.article-excerpt {
  font-size: 13px;
  color: var(--n400);
  line-height: 1.7;
}
.article-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-block;
  margin-top: 4px;
}
.article-read:hover { color: var(--blue-600); }
.essays-footer { text-align: center; margin-top: 40px; }

/* ════════════════════════════════════════════════
   FIELD INTEL (reads)
════════════════════════════════════════════════ */
.field-intel {
  background: var(--blue-50);
  padding: 72px 0;
}
.reads-list { display: flex; flex-direction: column; }
.read-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(96,139,187,0.15);
  align-items: start;
}
.read-item:first-child { border-top: 1px solid rgba(96,139,187,0.15); }
.read-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.35;
  letter-spacing: -0.02em;
  padding-top: 2px;
}
.read-source {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 5px;
}
.read-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--n800);
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.read-title a { transition: color 0.18s; }
.read-title a:hover { color: var(--blue); }
.read-summary {
  font-size: 13px;
  color: #5A5250;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════
   ARTICLE / PAGE CONTENT
════════════════════════════════════════════════ */
.content-page {
  background: var(--white);
  padding: 72px 0;
}
.content-page .container {
  max-width: 720px;
}
.content-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--n100);
}
.content-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 16px;
}
.content-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--n800);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.content-meta {
  font-size: 13px;
  color: var(--n400);
}
.content-hero {
  margin: 0 0 40px;
}
.content-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--n100);
  box-shadow: 0 12px 32px rgba(21, 35, 48, 0.14);
}
.content-hero a.zoomable {
  display: block;
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(21, 35, 48, 0.9);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.content-hero figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--n400);
  line-height: 1.5;
}
.content-body {
  font-size: 17px;
  color: var(--body-text);
  line-height: 1.8;
}
.content-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--n800);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.content-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--n800);
  margin: 36px 0 12px;
}
.content-body p { margin-bottom: 24px; }
.content-body ul, .content-body ol {
  margin: 0 0 24px 24px;
}
.content-body li { margin-bottom: 8px; }
.content-body blockquote {
  border-left: 3px solid var(--coral);
  padding: 12px 24px;
  margin: 32px 0;
  background: var(--coral-50);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--body-text);
}
.content-body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 2px 6px;
  border-radius: 4px;
}
.content-body pre {
  background: var(--n800);
  color: #e8e4e2;
  padding: 24px;
  border-radius: var(--radius-card);
  overflow-x: auto;
  margin-bottom: 24px;
}
.content-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.content-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-body a:hover { color: var(--blue-600); }

/* ════════════════════════════════════════════════
   WRITING INDEX
════════════════════════════════════════════════ */
.writing-index {
  background: var(--white);
  padding: 72px 0;
}
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.writing-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--n100);
}
.writing-item:first-child { border-top: 1px solid var(--n100); }
.writing-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--n800);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  transition: color 0.18s;
}
.writing-item:hover .writing-item-title { color: var(--blue); }
.writing-item-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.writing-item-summary {
  font-size: 13px;
  color: var(--n400);
  line-height: 1.65;
}
.writing-item-date {
  font-size: 12px;
  color: var(--n400);
  white-space: nowrap;
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
  background: var(--black);
  padding: 56px 0 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}
.footer-logo .ash { color: var(--blue); }
.footer-logo .ai  { color: var(--coral); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-top: 10px;
  max-width: 240px;
  line-height: 1.55;
}
.footer-nav { display: flex; gap: 56px; }
.footer-nav-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.18s;
}
.footer-nav-col a:hover { color: white; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-social { display: flex; gap: 24px; }
.footer-social a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.18s;
  font-weight: 500;
}
.footer-social a:hover { color: rgba(255,255,255,0.75); }

/* ════════════════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .container { padding: 0 20px; }

  /* Nav */
  nav .container { height: auto; padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .nav-links a { font-size: 12px; }

  /* Hero */
  .hero { padding: 40px 0 48px; }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-photo { aspect-ratio: 4 / 3; max-height: 320px; }
  .hero-name { font-size: 38px; }
  .hero-role { font-size: 14px; }

  /* Service Record */
  .built { padding: 48px 0; }
  .company-grid { flex-wrap: wrap; gap: 10px; }
  .company-card { flex: 1 1 calc(50% - 10px); min-width: 120px; }

  /* Field Notes */
  .essays { padding: 48px 0; }
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-title { font-size: 24px; margin-bottom: 28px; }

  /* Field Intel */
  .field-intel { padding: 48px 0; }
  .read-item { gap: 12px; padding: 16px 0; }

  /* Writing index & Field Intel index */
  .writing-index { padding: 48px 0; }
  .writing-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0; }
  .writing-item-date { font-size: 11px; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Content pages */
  .content-page { padding: 40px 0; }
}
