/* ============================================================
   andrewveal.com — operator's dossier
   Palette: paper #F7F8F9 / ink #1B2530 / navy #16406B /
            steel #5B6B7C / hairline #DDE3E8 / signal #C05621
   Type: Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #F7F8F9;
  --ink: #1B2530;
  --navy: #16406B;
  --steel: #5B6B7C;
  --hairline: #DDE3E8;
  --signal: #C05621;
  --card: #FFFFFF;
  --max: 760px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
header.site .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--navy); }
nav.top a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; color: var(--steel); text-decoration: none;
  margin-left: 22px; letter-spacing: 0.02em;
}
nav.top a:hover, nav.top a:focus-visible { color: var(--navy); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 18px;
}
h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08; letter-spacing: -0.025em; max-width: 15em;
}
.hero p.lede {
  margin-top: 22px; font-size: 19px; color: var(--steel); max-width: 34em;
}
.hero .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: "IBM Plex Mono", monospace; font-size: 14px;
  padding: 12px 22px; border-radius: 4px; letter-spacing: 0.02em;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: #123356; }
.btn.ghost { border: 1px solid var(--hairline); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- scope strip ---------- */
.scope {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--card);
}
.scope .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding-top: 26px; padding-bottom: 26px;
}
.scope .stat b {
  display: block; font-family: "Archivo", sans-serif;
  font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--navy);
}
.scope .stat span {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--steel);
}
@media (max-width: 640px) {
  .scope .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}

/* ---------- section scaffolding ---------- */
section.block { padding: 64px 0 8px; }
h2 {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 26px; letter-spacing: -0.02em; margin-bottom: 8px;
}
.section-sub { color: var(--steel); max-width: 36em; margin-bottom: 36px; }

/* ---------- route line + waypoints (signature) ---------- */
.route { position: relative; padding-left: 34px; }
.route::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(var(--navy) 60%, var(--hairline));
}
.waypoint { position: relative; margin-bottom: 28px; }
.waypoint::before {
  content: ""; position: absolute; left: -32px; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--navy);
}
.waypoint.pending::before { border-color: var(--hairline); }

.case-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 26px 28px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.case-card:hover { border-color: var(--navy); transform: translateX(3px); }
.case-card .tag {
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy);
}
.case-card .tag.soon { color: var(--steel); }
.case-card h3 {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.015em; margin: 8px 0 6px;
}
.case-card p { color: var(--steel); font-size: 15.5px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 40em; }
.about-grid p { color: var(--ink); }
.trail-note {
  margin-top: 26px; padding: 18px 22px; background: var(--card);
  border-left: 3px solid var(--signal); border-radius: 0 6px 6px 0;
  color: var(--steel); font-size: 15.5px;
}
.trail-note b { color: var(--ink); }

/* ---------- contact / footer ---------- */
section.contact { padding: 64px 0 80px; }
.contact-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
footer.site {
  border-top: 1px solid var(--hairline); padding: 28px 0 44px;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--steel);
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer.site a { color: var(--steel); }
footer.site a:hover { color: var(--navy); }

/* ---------- case study pages ---------- */
article.case { padding: 64px 0 40px; }
article.case h1 { font-size: clamp(30px, 5vw, 42px); }
.case-meta {
  display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--steel);
}
.case-meta b { color: var(--ink); display: block; font-family: "IBM Plex Sans", sans-serif; font-size: 15px; }
article.case h2 { margin-top: 44px; font-size: 22px; }
article.case p { margin-top: 14px; max-width: 40em; }
article.case ul { margin: 14px 0 0 22px; max-width: 40em; }
article.case li { margin-bottom: 8px; }

.draft-banner {
  margin-top: 30px; padding: 12px 18px; border-radius: 6px;
  background: #FFF6EC; border: 1px solid #F0D9BF;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--signal);
}
.placeholder { color: var(--steel); font-style: italic; }

.backlink {
  display: inline-block; margin-bottom: 30px; text-decoration: none;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--steel);
}
.backlink:hover { color: var(--navy); }

.pager {
  margin: 56px 0 70px; padding-top: 26px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pager a { text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--navy); }
