/* ============================================================
   John Zeeman personal site
   Palette:  paper #FAFAF7 · ink #1A1A1A · green #2E5D50
             muted #6E6A61 · hairline #E4E1D8
   Type:     Fraunces (display) · Inter (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #FAFAF7;
  --ink: #1A1A1A;
  --green: #2E5D50;
  --green-dark: #24493F;
  --muted: #6E6A61;
  --hairline: #E4E1D8;
  --maxw: 44rem;
  --wide: 58rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--paper); }

/* ---------- shell ---------- */

.shell {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: var(--maxw); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1.75rem;
  flex-wrap: wrap;
}

.monogram {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.monogram span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- shared elements ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 2px;
  height: 0.9rem;
  background: var(--green);
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--green);
  color: var(--paper);
  border: 1px solid var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- home ---------- */

.hero { padding: 5.5rem 0 4.5rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.hero .name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero .name::before {
  content: "";
  width: 2px;
  height: 0.9rem;
  background: var(--green);
}

.hero .subline {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--hairline);
}

.snapshot .cell h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.6rem;
}

.snapshot .cell p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.snapshot .cell .mono { display: block; margin-bottom: 0.9rem; color: var(--green); }

.closer {
  padding: 2rem 0 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

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

.page-head { padding: 4rem 0 2.5rem; }

.page-head h1 { font-size: clamp(1.85rem, 4.5vw, 2.4rem); }

.headshot {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.75rem;
  display: block;
}

.prose p { margin-bottom: 1.4rem; max-width: 62ch; }

.prose { padding-bottom: 3rem; }

.section-rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 1.5rem 0 2.5rem;
}

/* ---------- work ---------- */

.intro-line { color: var(--muted); margin-bottom: 3rem; max-width: 60ch; }

.card {
  border-top: 1px solid var(--hairline);
  padding: 2.25rem 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2rem;
}

.card .meta .dates { padding-top: 0.55rem; }

.card .meta .mono { display: block; }
.card .meta .dates { margin-top: 0.4rem; }

.card h3 { font-size: 1.375rem; margin-bottom: 0.35rem; }

.card .role {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.card .body-copy p { margin-bottom: 0.9rem; max-width: 60ch; }
.card .body-copy p:last-child { margin-bottom: 0; }

.case { margin-bottom: 1.1rem; }
.case:last-child { margin-bottom: 0; }

.case-label {
  display: block;
  color: var(--green);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.case p { margin-bottom: 0 !important; }

.skills-strip {
  border-top: 1px solid var(--hairline);
  padding: 1.75rem 0 3.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.skills-strip .tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
}

/* ---------- writing ---------- */

.pub {
  border-top: 1px solid var(--hairline);
  padding: 2.25rem 0;
}

.pub .mono { display: block; margin-bottom: 0.75rem; color: var(--green); }

.pub h3 { font-size: 1.375rem; margin-bottom: 0.35rem; }

.pub .publisher { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.9rem; }

.pub p { max-width: 60ch; margin-bottom: 1.25rem; }

.pub .cite {
  font-style: italic;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.0625rem;
}

.pub-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- contact ---------- */

.contact-list { list-style: none; padding: 1rem 0 2rem; }

.contact-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}

.contact-list li:last-child { border-bottom: 1px solid var(--hairline); }

.link-group .sep {
  color: var(--hairline);
  margin: 0 0.6rem;
}

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

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 2rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0 2.5rem;
}

.foot .mono a { color: var(--muted); text-decoration: none; }
.foot .mono a:hover { color: var(--green); }

/* ---------- motion ---------- */

.rise { animation: rise 420ms ease both; }
.rise.d1 { animation-delay: 60ms; }
.rise.d2 { animation-delay: 120ms; }

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

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

/* ---------- focus ---------- */

a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, .tag-btn:focus-visible, .post-card:focus-visible, .fw-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 3rem; }
  .snapshot { grid-template-columns: 1fr; gap: 2rem; }
  .card { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .page-head { padding: 3rem 0 2rem; }
}

/* ============================================================
   v2.0 additions — dark mode, nav, motion, blog, timeline, etc.
   ============================================================ */

/* ---------- dark mode ---------- */

:root[data-theme="dark"] {
  --paper: #15150F;
  --ink: #F1EFE7;
  --green: #67B39D;
  --green-dark: #82C7B2;
  --muted: #9C978A;
  --hairline: #2C2B23;
}

body { transition: background-color 200ms ease, color 200ms ease; }

:root[data-theme="dark"] img:not(.no-dim) { filter: brightness(0.92) saturate(1.02); }

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--green);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  border-radius: 2px;
  z-index: 200;
  transition: top 160ms ease;
}

.skip-link:focus { top: 1rem; }

/* ---------- nav v2 ---------- */

.nav { position: relative; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted);
  border-radius: 2px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, color 160ms ease;
  line-height: 1;
}

.icon-btn:hover { border-color: var(--green); color: var(--green); }

.icon-btn svg { width: 15px; height: 15px; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- command palette ---------- */

.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 15, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.25rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease;
  z-index: 300;
}

.cmdk-overlay.open { opacity: 1; visibility: visible; }

.cmdk-panel {
  width: 100%;
  max-width: 34rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform: translateY(-6px);
  transition: transform 160ms ease;
}

.cmdk-overlay.open .cmdk-panel { transform: translateY(0); }

.cmdk-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  padding: 1rem 1.1rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
}

.cmdk-list {
  list-style: none;
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.4rem;
}

.cmdk-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

.cmdk-item-title { font-size: 0.9375rem; grid-column: 1; }
.cmdk-item-sub { grid-column: 1; color: var(--muted); font-size: 0.75rem; }
.cmdk-item-kind {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--green);
  font-size: 0.7rem;
}

.cmdk-item.active { background: var(--hairline); }
.cmdk-empty { padding: 1rem; color: var(--muted); font-size: 0.875rem; }

.cmdk-hint {
  border-top: 1px solid var(--hairline);
  padding: 0.6rem 1.1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.cmdk-hint kbd {
  font-family: inherit;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  margin-right: 0.15rem;
}

body.cmdk-lock { overflow: hidden; }

/* ---------- scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.in-view { opacity: 1; transform: none; }

.reveal-1.in-view { transition-delay: 60ms; }
.reveal-2.in-view { transition-delay: 120ms; }
.reveal-3.in-view { transition-delay: 180ms; }
.reveal-4.in-view { transition-delay: 240ms; }

/* ---------- hover / image treatments ---------- */

.photo-frame {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--hairline);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-frame:hover img { transform: scale(1.045); }

.photo-caption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.card, .pub, article.card {
  transition: transform 220ms ease, border-color 220ms ease;
}

@media (hover: hover) {
  .card:hover, .pub:hover { border-color: var(--green); }
}

/* ---------- currently exploring ---------- */

.currently {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--hairline);
}

.currently h2 {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
}

.currently-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem 1.25rem;
}

.currently-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9375rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
}

.currently-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  transform: translateY(-2px);
}

/* ---------- featured writing (home) ---------- */

.featured-writing {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--hairline);
}

.featured-writing .head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-writing h2 { font-size: 1.375rem; }

.featured-writing .see-all {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
}

.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.fw-card {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: block;
  text-decoration: none;
  color: inherit;
}

.fw-card h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; transition: color 160ms ease; }
.fw-card:hover h3 { color: var(--green); }
.fw-card p { color: var(--muted); font-size: 0.875rem; }
.fw-card .mono { display: block; margin-bottom: 0.6rem; }

/* ---------- timeline (about) ---------- */

.timeline {
  border-top: 1px solid var(--hairline);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.timeline-item .mono { padding-top: 0.15rem; }

.timeline-item h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 560;
  margin-bottom: 0.3rem;
}

.timeline-item p { color: var(--muted); font-size: 0.9375rem; max-width: 46ch; }

/* ---------- about photo strip ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

/* ---------- work: sub-case grid ---------- */

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem 1.5rem;
  margin: 1.1rem 0;
}

.case-detail-grid .tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
  display: inline-block;
}

.figure-block {
  margin: 1.5rem 0;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--green) 5%, transparent);
}

.figure-block .mono { color: var(--green); display: block; margin-bottom: 0.5rem; }
.figure-block p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat-row .stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 560;
  color: var(--green);
  display: block;
}

.stat-row .stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.subcard {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  margin-top: 1.1rem;
}

.subcard h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

/* ---------- blog index ---------- */

.blog-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.5rem;
}

.blog-search {
  flex: 1;
  min-width: 12rem;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.6rem 0.8rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: var(--ink);
}

.blog-search:focus { outline: none; border-color: var(--green); }

.tag-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tag-btn {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease;
}

.tag-btn:hover { border-color: var(--green); color: var(--green); }
.tag-btn.active { background: var(--green); border-color: var(--green); color: var(--paper); }

.post-list { list-style: none; }

.post-card {
  border-top: 1px solid var(--hairline);
  padding: 1.75rem 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card:last-child { border-bottom: 1px solid var(--hairline); }

.post-card .mono { color: var(--muted); display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.post-card .mono .dot { color: var(--hairline); }

.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  transition: color 160ms ease;
}

.post-card:hover h3 { color: var(--green); }

.post-card .subtitle { color: var(--muted); margin-bottom: 0.7rem; max-width: 58ch; }

.post-card .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.post-card .tags span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.no-results { color: var(--muted); padding: 2rem 0; display: none; }
.no-results.show { display: block; }

/* ---------- blog post page ---------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  z-index: 250;
  transition: width 80ms linear;
}

.post-head { padding: 4rem 0 2rem; }

.post-head .mono { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.post-head .mono .dot { color: var(--hairline); }

.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); max-width: 22ch; margin-bottom: 0.9rem; }

.post-head .subtitle { color: var(--muted); font-size: 1.0625rem; max-width: 56ch; }

.post-head .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }

.post-head .tags span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--green);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.post-body { padding-bottom: 4rem; max-width: 62ch; }

.post-body h2 {
  font-size: 1.3125rem;
  margin: 2.2rem 0 0.9rem;
}

.post-body h3 { font-size: 1.125rem; margin: 1.6rem 0 0.7rem; }

.post-body p { margin-bottom: 1.1rem; }

.post-body ul, .post-body ol { margin: 0 0 1.1rem 1.25rem; }
.post-body li { margin-bottom: 0.5rem; }

.post-body em { color: var(--muted); }

.post-body a { text-decoration-thickness: 1px; }

.post-nav {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* ---------- resume page ---------- */

.resume-frame {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  height: 80vh;
  min-height: 32rem;
  margin: 2rem 0 2.5rem;
}

.resume-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.resume-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---------- loading shimmer ---------- */

.page-loading::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform-origin: left;
  animation: loadbar 700ms ease forwards;
  z-index: 400;
}

@keyframes loadbar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); opacity: 0; }
}

/* ---------- responsive v2 ---------- */

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    margin-top: 1rem;
    border-top: 1px solid var(--hairline);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a.active { border-bottom-color: var(--hairline); }
  .nav { align-items: center; }
  .photo-strip { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .cmdk-overlay { padding: 4vh 1rem 1rem; }
  .resume-frame { height: 60vh; }
  .blog-controls { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .icon-btn span.label { display: none; }
}
