/* Minimal personal site: one ground, one ink, one accent, one small fade. */

:root {
  --paper: #ffffff;
  --ink: #1b1917;
  --muted: #5f5c56;
  --field: #f4f1ea;
  --accent: #0e5c3f;
  --accent-ink: #ffffff;
  --pad: clamp(20px, 6vw, 72px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

h2 { font-size: clamp(28px, 4vw, 42px); }

p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  max-width: 1100px;
  margin: 0 auto;
}

.wordmark {
  font-family: Georgia, serif;
  font-size: 20px;
  text-decoration: none;
}

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---------- layout ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(56px, 8vw, 104px) 0; }
section > h2 { margin-bottom: 40px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(64px, 10vw, 130px); max-width: 900px; }

.hero__kicker { font-size: 15px; color: var(--muted); }

.hero__title {
  font-size: clamp(44px, 7vw, 88px);
  margin: 16px 0 24px;
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--ink);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
}

.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- work ---------- */
.job { max-width: 780px; padding: 44px 0; }
.job:first-of-type { padding-top: 0; }
.job + .job { margin-top: 8px; }

.job__where { font-size: 15px; color: var(--muted); }

.job h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 8px 0 16px;
  text-wrap: balance;
}

.job li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  max-width: var(--measure);
}
.job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.job strong { font-weight: 700; }

.stack { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- numbers ---------- */
.numbers { background: var(--field); }

.numbers > h2, .numbers > .figures { max-width: 1100px; }

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.figures dt {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.figures dd { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* full-bleed field band */
.numbers {
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- companies ---------- */
.tenures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; max-width: 900px; }
.tenures dt { font-size: 19px; font-weight: 700; }
.tenures dd { font-size: 15px; color: var(--muted); }

/* ---------- about ---------- */
.about__body { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; max-width: var(--measure); }

.traits { margin-top: 32px; max-width: var(--measure); }
.traits li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
.traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 900px;
}
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* ---------- contact ---------- */
.contact p { max-width: var(--measure); }
.contact__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--pad) 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__name { font-family: Georgia, serif; font-size: 24px; }
.footer__meta { font-size: 14px; color: var(--muted); }
.footer__meta a { color: var(--accent); }

/* ---------- the one small animation ---------- */
.hero { animation: rise 0.6s ease-out both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.in { opacity: 1; transform: translateY(0); }
}

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

/* ---------- small screens ---------- */
@media (max-width: 800px) {
  .nav a:not(:last-child) { display: none; }
  .figures { grid-template-columns: 1fr 1fr; }
  .tenures { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .job { padding: 32px 0; }
}
