:root {
  --ink: #121a17;
  --paper: #e7e4da;
  --accent: #9fc487;
  --line: rgba(231, 228, 218, .12);
  --line-strong: rgba(231, 228, 218, .3);
  --mute: rgba(231, 228, 218, .55);
  --mute-soft: rgba(231, 228, 218, .6);
  --serif: 'STIX Two Text', Georgia, serif;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 44px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  font: 600 13px var(--sans);
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

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

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px var(--pad);
  background: rgba(18, 26, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar-name {
  font: 500 15px var(--serif);
  letter-spacing: .02em;
  text-decoration: none;
}

.bar-nav {
  display: flex;
  gap: 26px;
  font: 12.5px var(--sans);
  color: var(--mute);
}
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { color: var(--paper); }

.bar-cta { display: flex; gap: 10px; }

.pill {
  font: 500 12px var(--sans);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.pill:hover { background: rgba(231, 228, 218, .08); }

.pill-solid {
  font-weight: 600;
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.pill-solid:hover { background: #b3d49d; }

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

.hero {
  padding: clamp(36px, 7vw, 52px) var(--pad) 38px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 20px;
  font: 400 clamp(27px, 4.4vw, 44px)/1.25 var(--serif);
  max-width: 900px;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  font: 13px/1.6 var(--sans);
  color: var(--mute-soft);
}

/* ---------- ledger ---------- */

.ledger {
  padding: 20px var(--pad) 30px;
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
  max-width: 1080px;
}

.year {
  font: 13px var(--sans);
  color: rgba(231, 228, 218, .5);
  padding: 22px 0;
}

.rail {
  border-left: 1px solid rgba(231, 228, 218, .15);
  padding-left: 28px;
  position: relative;
}
.rail-live { border-left-color: rgba(159, 196, 135, .4); }

.rail::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 28px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(231, 228, 218, .3);
}
.rail-live::before { background: var(--accent); }

details { border: 0; }

summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover .title { color: var(--accent); }

.title {
  font: 500 clamp(15px, 2vw, 17px)/1.35 var(--serif);
  transition: color .15s;
}

.mark {
  flex: none;
  font: 400 18px var(--sans);
  color: var(--accent);
  line-height: 1;
}
.mark::after { content: "+"; }
details[open] .mark::after { content: "\2013"; }
.rail:not(.rail-live) .mark { color: rgba(231, 228, 218, .5); }

.body {
  padding-bottom: 26px;
  max-width: 680px;
}

.body p {
  margin: 0 0 12px;
  font: 13px/1.65 var(--sans);
  color: var(--mute-soft);
}
.body p:last-child { margin-bottom: 0; }
.body b { color: var(--paper); font-weight: 600; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 18px;
}

.stat b {
  display: block;
  font: 500 22px/1 var(--serif);
  color: var(--accent);
}
.stat span {
  display: block;
  margin-top: 5px;
  font: 11px/1.5 var(--sans);
  color: rgba(231, 228, 218, .5);
}

/* ---------- panels ---------- */

.panel {
  padding: 40px var(--pad);
  border-bottom: 1px solid var(--line);
}

.panel h2 {
  margin: 0 0 14px;
  font: 400 clamp(22px, 3vw, 30px)/1.3 var(--serif);
}

.lede {
  margin: 0 0 28px;
  max-width: 680px;
  font: 13px/1.65 var(--sans);
  color: var(--mute-soft);
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px 44px;
  max-width: 1100px;
}

.projects li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.projects a {
  font: 500 16px var(--serif);
  color: var(--accent);
  text-decoration: none;
}
.projects a:hover { text-decoration: underline; }

.stars {
  margin-left: 8px;
  font: 11px var(--sans);
  color: rgba(231, 228, 218, .45);
}

.note {
  display: block;
  margin-top: 7px;
  font: 12.5px/1.6 var(--sans);
  color: var(--mute-soft);
}

.more {
  margin: 30px 0 0;
  font: 13px var(--sans);
}
.more a { color: var(--accent); text-decoration: none; }
.more a:hover { text-decoration: underline; }

.creds {
  margin: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  max-width: 900px;
}

.creds dt {
  padding: 16px 0;
  font: 13px var(--sans);
  color: rgba(231, 228, 218, .5);
  border-top: 1px solid var(--line);
}

.creds dd {
  margin: 0;
  padding: 16px 0;
  font: 13px/1.65 var(--sans);
  color: var(--mute-soft);
  border-top: 1px solid var(--line);
}

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

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px var(--pad) 40px;
}

.foot-line {
  margin: 0;
  font: 13px var(--sans);
  color: var(--mute);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font: 13px var(--sans);
}
.foot-links a { color: var(--accent); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- narrow ---------- */

@media (max-width: 720px) {
  .bar { gap: 12px; }
  .bar-nav { order: 3; width: 100%; gap: 20px; }

  .row { grid-template-columns: 1fr; }

  .year {
    padding: 24px 0 0;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .rail {
    border-left: 0;
    padding-left: 0;
  }
  .rail::before { display: none; }

  summary { padding: 8px 0 16px; }

  .creds { grid-template-columns: 1fr; }
  .creds dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .creds dd { padding-top: 6px; border-top: 0; }
}
