/* ============================================================
   Phil Donovan — personal site
   Concept: a survey sheet. Topographic palette, cartographic
   marginalia, trig-station markers.
   ============================================================ */

:root {
  /* Topo sheet palette — cool map paper, not cream. */
  --paper:      #EDEEE8;
  --paper-deep: #E4E6DE;
  --ink:        #16181A;
  --ink-soft:   #4A4F50;
  --ink-faint:  #7C8281;

  --contour:    #9A7B4F;   /* bistre — contour lines */
  --water:      #2B5A72;   /* topo water blue — links */
  --water-deep: #1C3F52;
  --signal:     #B7362B;   /* survey red — trig marks, used sparingly */

  --rule:       rgba(22, 24, 26, 0.13);
  --rule-firm:  rgba(22, 24, 26, 0.26);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --rail-w: 208px;
  --measure: 78ch;
  --page-max: 1340px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* Faint paper tooth — a printed sheet, not a screen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 72%);
}

a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--water-deep); text-decoration-color: var(--signal); }

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-deep);
  padding: 0.08em 0.34em;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip:focus { left: 0; }

/* ── shared type devices ───────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

/* ============================================================
   Marginalia rail
   ============================================================ */

.rail { display: none; }

@media (min-width: 1100px) {
  .rail {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    padding: 2.6rem 1.6rem 2rem;
    border-right: 1px solid var(--rule-firm);
    z-index: 5;
  }

  .rail__id { display: flex; flex-direction: column; gap: 0.25rem; }

  .rail__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
  }

  .rail__role {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    line-height: 1.5;
  }

  .rail__nav { flex: 1; }
  .rail__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }

  .rail__nav a {
    display: block;
    padding: 0.32rem 0 0.32rem 1.1rem;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 160ms ease;
  }

  /* trig-station tick, filled when the section is in view */
  .rail__nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-bottom: 6px solid transparent;
    transition: border-bottom-color 160ms ease;
  }

  .rail__nav a:hover { color: var(--ink); }
  .rail__nav a:hover::before { border-bottom-color: var(--rule-firm); }

  .rail__nav a[aria-current="true"] { color: var(--ink); }
  .rail__nav a[aria-current="true"]::before { border-bottom-color: var(--signal); }

  .rail__datum {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    border-top: 1px solid var(--rule);
    padding-top: 0.9rem;
  }

  /* Only the pages that actually have a rail get offset for it. Post pages
     have no rail and should stay centred. */
  body:not(.post-page) #main { margin-left: var(--rail-w); }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-firm);
  isolation: isolate;
}

.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__contours {
  --contour-op: 0.42;
  --contour-op-index: 0.55;
  --trig-op: 0.9;
}

.hero__contours .c {
  fill: none;
  stroke: var(--contour);
  stroke-width: 1;
  opacity: var(--contour-op);
  vector-effect: non-scaling-stroke;
}

.hero__contours .c--index {
  stroke-width: 1.9;
  opacity: var(--contour-op-index);
}

.hero__contours .trig {
  fill: var(--signal);
  opacity: var(--trig-op);
}

/* On narrow screens the landform sits under the text — pull it back so the
   copy stays legible. */
@media (max-width: 860px) {
  .hero__contours { --contour-op: 0.2; --contour-op-index: 0.28; --trig-op: 0.5; }
}

/* Contours draw themselves in on load — a sheet being surveyed. */
@media (prefers-reduced-motion: no-preference) {
  .hero__contours .c {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .hero__contours .c:nth-child(1) { animation-delay: 0.05s; }
  .hero__contours .c:nth-child(2) { animation-delay: 0.14s; }
  .hero__contours .c:nth-child(3) { animation-delay: 0.23s; }
  .hero__contours .c:nth-child(4) { animation-delay: 0.32s; }
  .hero__contours .c:nth-child(5) { animation-delay: 0.41s; }
  .hero__contours .c:nth-child(6) { animation-delay: 0.50s; }
  .hero__contours .c:nth-child(7) { animation-delay: 0.59s; }
  .hero__contours .c:nth-child(8) { animation-delay: 0.68s; }
  .hero__contours .c:nth-child(9) { animation-delay: 0.77s; }

  .hero__contours .trig {
    opacity: 0;
    animation: fade 0.7s ease 1.5s forwards;
  }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: var(--trig-op); } }

.hero__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8.5rem) clamp(1.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9.5vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.038em;
  margin: 0.7rem 0 0;
  text-wrap: balance;
}

.hero__role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
}

.hero__affil {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0.55rem 0 0;
}

.hero__affil a {
  color: var(--water);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-firm);
  padding-bottom: 1px;
}

.hero__affil a:hover { border-bottom-color: var(--signal); }

.hero__affil + .hero__affil { margin-top: 0.25rem; }

.hero__pitch {
  max-width: 60ch;
  margin: 1.9rem 0 0;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.4rem;
}

/* Screen shows buttons; print swaps in the contact line. */
.hero__contact-print { display: none; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--rule-firm);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  border-color: var(--ink);
  background: rgba(22, 24, 26, 0.045);
  color: var(--ink);
}

/* Tertiary action — present but not competing with the downloads. */
.btn--quiet {
  border-color: transparent;
  color: var(--ink-faint);
}

.btn--quiet:hover {
  border-color: var(--rule-firm);
  color: var(--ink);
}

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--water-deep);
  border-color: var(--water-deep);
  color: var(--paper);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(3.2rem, 6vw, 5.4rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 1;
}

.section:last-of-type { border-bottom: none; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule-firm);
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: -0.022em;
  margin: 0;
}

/* ── experience timeline ──────────────────────────────── */

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

.role {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule);
}

.role:first-child { border-top: none; padding-top: 0; }

@media (min-width: 800px) {
  .role {
    grid-template-columns: 10.5rem 1fr;
    gap: 3rem;
  }
}

.role__years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.role__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.012em;
  margin: 0;
  line-height: 1.3;
}

.role__org {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--water);
  margin: 0.4rem 0 0.9rem;
}

.role__sep { color: var(--ink-faint); }

/* trig-triangle bullets — survey control points */
.ticks { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }

.ticks li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
}

.ticks li:last-child { margin-bottom: 0; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--contour);
  opacity: 0.75;
}

/* ── capabilities ─────────────────────────────────────── */

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.6rem 2.6rem;
  margin: 0;
}

.cap { border-top: 1px solid var(--rule-firm); padding-top: 0.85rem; }

.cap dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.cap dd {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ── selected work ────────────────────────────────────── */

.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--rule-firm);
  border-radius: 2px;
  padding: 1.5rem 1.6rem 1.35rem;
  background: rgba(255, 255, 255, 0.36);
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease, transform 180ms ease;
}

.card:hover { border-color: var(--contour); transform: translateY(-2px); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.012em;
  margin: 0 0 0.6rem;
}

.card h3 a { text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--water); padding-bottom: 1px; }
.card h3 a:hover { color: var(--water-deep); border-bottom-color: var(--signal); }

.card p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }

/* The one project that gets room to explain itself. */
.card--feature {
  grid-column: 1 / -1;
  border-color: var(--contour);
  background: rgba(255, 255, 255, 0.62);
  padding: 1.9rem 2rem 1.6rem;
}

.card__flag {
  font-family: var(--font-mono);
  font-size: 0.66rem !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--signal) !important;
  margin: 0 0 0.7rem !important;
}

.card--feature h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 0.85rem;
}

.card--feature .card__lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.card--feature p + p { margin-top: 0.85rem; }
.card--feature p:not(.card__flag):not(.card__meta) { max-width: 62ch; }

/* Wide screens: let the two paragraphs sit side by side so the card fills. */
@media (min-width: 950px) {
  .card--feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    align-content: start;
  }

  .card--feature > .card__flag,
  .card--feature > h3,
  .card--feature > .card__meta { grid-column: 1 / -1; }

  .card--feature p + p { margin-top: 0; }
  .card--feature p:not(.card__flag):not(.card__meta) { max-width: none; }
}

.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
}

/* ── education ────────────────────────────────────────── */

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

.edu li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.edu li:first-child { border-top: none; padding-top: 0; }

@media (min-width: 800px) {
  .edu li {
    grid-template-columns: 10.5rem 1fr auto;
    gap: 3rem;
    align-items: baseline;
  }
}

.edu__years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.edu__degree { font-weight: 600; }
.edu__degree em { font-weight: 400; color: var(--ink-soft); font-style: italic; }

.edu__inst {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.045em;
  color: var(--ink-soft);
}

/* ── research ─────────────────────────────────────────── */

.papers { margin: 0; padding: 0; list-style: none; counter-reset: paper; }

.papers li {
  counter-increment: paper;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0 1rem 2.6rem;
  border-top: 1px solid var(--rule);
  position: relative;
  max-width: 78ch;
}

.papers li:first-child { border-top: none; }

.papers li::before {
  content: counter(paper, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}

.paper__title { font-weight: 600; line-height: 1.45; }

.paper__authors {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ── contact ──────────────────────────────────────────── */

.contact__lead {
  max-width: 56ch;
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

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

.contact li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.contact li:first-child { border-top: none; }

.contact__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact a { font-size: 1.05rem; }

/* ── footer ───────────────────────────────────────────── */

.foot {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid var(--rule-firm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   Writing — archive listing + post pages
   ============================================================ */

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

.writing li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}

.writing li:first-child { border-top: none; padding-top: 0; }

@media (min-width: 800px) {
  .writing li {
    grid-template-columns: 10.5rem 1fr;
    gap: 3rem;
    align-items: baseline;
  }
}

.writing__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.writing__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.012em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--water);
  padding-bottom: 1px;
}

.writing__title:hover { color: var(--water-deep); border-bottom-color: var(--signal); }

.writing__note {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ── post pages ───────────────────────────────────────── */

.post {
  max-width: 74ch;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem) 4rem;
  position: relative;
  z-index: 1;
}

.post__back {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}

.post__back a { text-decoration: none; color: var(--ink-faint); }
.post__back a:hover { color: var(--ink); }

.post__head {
  padding-bottom: 1.6rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--rule-firm);
}

.post__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0.8rem 0 0;
  text-wrap: balance;
}

.post__subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.prose { font-size: 1.06rem; line-height: 1.68; }

.prose > :first-child { margin-top: 0; }

.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.018em;
  line-height: 1.22;
  margin: 2.6rem 0 0.9rem;
}

.prose h1 { font-size: 1.6rem; font-weight: 700; }
.prose h2 { font-size: 1.35rem; font-weight: 700; }
.prose h3 { font-size: 1.12rem; font-weight: 600; }

.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

.prose a { color: var(--water); }
.prose a:hover { color: var(--water-deep); text-decoration-color: var(--signal); }

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8rem 0;
  border: 1px solid var(--rule);
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--contour);
  color: var(--ink-soft);
  font-style: italic;
}

.prose pre {
  background: rgba(22, 24, 26, 0.045);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.prose pre code { background: none; padding: 0; font-size: inherit; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--rule-firm);
}

.post__foot {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-firm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.post__foot p { margin: 0 0 0.5rem; }
.post__stale { color: var(--ink-faint); opacity: 0.85; }

/* ============================================================
   Print — the sheet becomes the CV
   ============================================================ */

@media print {
  :root { --page-max: 100%; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.2pt;
    line-height: 1.42;
  }

  body::before,
  .rail,
  .hero__contours,
  .hero__actions,
  .skip,
  .foot__datum { display: none !important; }

  #main { margin-left: 0 !important; }

  a { color: #000; text-decoration: none; }

  .hero { border-bottom: 1.5pt solid #000; }

  .hero__inner { padding: 0 0 12pt; max-width: 100%; }

  .hero__name { font-size: 26pt; margin: 2pt 0 0; }
  .hero__role { font-size: 11pt; margin-top: 2pt; color: #000; }
  .hero__affil { font-size: 8.6pt; margin-top: 3pt; color: #000; }
  .hero__affil a { border-bottom: none; }
  .hero__pitch { font-size: 10pt; margin-top: 8pt; max-width: 100%; }

  .hero__contact-print {
    display: block;
    margin: 8pt 0 0;
    font-family: var(--font-mono);
    font-size: 8.6pt;
    letter-spacing: 0.03em;
    color: #000;
  }

  /* No break-inside on .section — a section taller than a page would be
     shunted whole to the next sheet and leave page 1 empty. Rows guard
     themselves instead. */
  .section {
    padding: 12pt 0 6pt;
    max-width: 100%;
    border-bottom: none;
  }

  .section__head { break-after: avoid; }

  .section__head { margin-bottom: 10pt; padding-bottom: 4pt; border-bottom: 0.75pt solid #000; }
  .section__head h2 { font-size: 13pt; }

  .role { padding: 8pt 0; break-inside: avoid; grid-template-columns: 8rem 1fr; gap: 1rem; }
  .role__title { font-size: 11pt; }
  .role__org { color: #000; margin-bottom: 5pt; }
  .ticks li { margin-bottom: 2.5pt; max-width: 100%; }
  .ticks li::before { border-bottom-color: #000; }

  .card { border-color: #999; background: none; break-inside: avoid; padding: 8pt 10pt; }
  .card:hover { transform: none; }
  .card h3 a { border-bottom: none; }

  .work, .caps { gap: 8pt; }

  .papers li, .edu li, .contact li { break-inside: avoid; }

  .eyebrow, .card__meta, .paper__authors { color: #444 !important; }
}
