/* chrismentley.com — design tokens
   Ink/paper/field-report system. Serif for headline statements, a technical
   grotesk for body and UI, mono reserved strictly for real numbers and data
   (license ID, phone, the coverage list) — this is a numbers-first practice,
   so the mono treatment is content, not decoration. */

:root {
  --ink: #161b22;
  --paper: #f3f2ed;
  --paper-raised: #ebe9e1;
  --forest: #33473b;
  --forest-dark: #24332a;
  --brass: #8a6a34;
  --rule: #d9d6c9;
  --muted: #5b5f57;
  --white: #ffffff;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --measure: 65ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--forest-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.site-header .wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a {
  margin-left: 28px;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover { border-bottom-color: var(--forest); }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 16ch;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.btn-primary { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper-raised); color: var(--ink); }

/* coverage ledger */

.ledger {
  border: 1px solid var(--rule);
  background: var(--white);
}

.ledger-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

.ledger ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.ledger li:last-child { border-bottom: none; }
.ledger li span:last-child { color: var(--muted); }

/* ---------- panels (two ways to work) ---------- */

.panels { padding: 64px 0; border-bottom: 1px solid var(--rule); }

.panels h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 40px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.panel {
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid var(--rule);
}

.panel:first-child { border-right: 1px solid var(--rule); padding-right: 40px; }
.panel:last-child { padding-left: 40px; }

.panel h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.panel p { color: var(--muted); margin: 0 0 14px; max-width: 48ch; }

.panel ul { margin: 0; padding-left: 18px; color: var(--ink); }
.panel li { margin-bottom: 6px; }

/* ---------- case note ---------- */

.case-note { padding: 56px 0; border-bottom: 1px solid var(--rule); }

.case-note .tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brass);
  margin-bottom: 10px;
}

.case-note p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 58ch;
  margin: 0;
}

/* ---------- credentials strip ---------- */

.credentials { padding: 40px 0; }

.credentials .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.credentials strong { color: var(--ink); font-weight: 600; }
.credentials .mono { font-family: var(--font-mono); color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 26px;
  width: auto;
  display: block;
}

/* ---------- about page ---------- */

.about-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.about-hero .wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.headshot-slot {
  width: 220px;
  height: 220px;
  border: 1px solid var(--rule);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--rule);
}

.headshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--rule);
  display: block;
}

.headshot-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--brass);
  font-family: var(--font-mono);
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.about-hero .role {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.bio { padding: 48px 0; border-bottom: 1px solid var(--rule); }
.bio .wrap { max-width: var(--measure); }
.bio p { margin: 0 0 20px; }

.todo-flag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass);
  border: 1px dashed var(--brass);
  padding: 10px 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.detail-blocks {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}

.detail-blocks .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.detail-blocks h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.detail-blocks ul { margin: 0; padding: 0; list-style: none; }
.detail-blocks li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.detail-blocks li:last-child { border-bottom: none; }
.detail-blocks .mono { font-family: var(--font-mono); }

@media (max-width: 800px) {
  .hero .wrap, .panel-grid, .detail-blocks .wrap, .about-hero .wrap {
    grid-template-columns: 1fr;
  }
  .panel:first-child { border-right: none; padding-right: 0; }
  .panel:last-child { padding-left: 0; }
  .headshot-slot, .headshot { width: 140px; height: 140px; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
