/* soupnode.top — quiet gallery */

:root {
  --ink: #1c221f;
  --ink-soft: #4a5650;
  --ink-faint: #7a8680;
  --paper: #e4ebe6;
  --paper-deep: #d2dbd5;
  --mist: #c5d0c9;
  --sea: #3a5248;
  --tile-gap: clamp(0.6rem, 1.4vw, 1.1rem);
  --page-pad: clamp(1.25rem, 4vw, 2.75rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 80% at 12% -10%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(167, 186, 176, 0.35), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(180, 196, 188, 0.4), transparent 55%),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body.page-enter {
  animation: page-enter 0.7s var(--ease) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-enter,
  .project-grid .tile,
  .tile-meta,
  .site-header a,
  .site-footer a {
    animation: none !important;
    transition: none !important;
  }
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

a:hover {
  opacity: 0.72;
}

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

.site-shell {
  width: min(100% - (var(--page-pad) * 2), var(--max));
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  /* Keep brand | nav on one row; only true mobile may stack (see media query). */
  flex-wrap: nowrap;
  gap: 0.5rem 0.85rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) 0 clamp(1.6rem, 4vw, 2.8rem);
  overflow: visible;
}

.brand {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.25rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  /* Content-sized; ellipsize before the right nav cluster loses links */
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 0;
}

.brand:hover {
  opacity: 1;
  color: var(--sea);
}

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  /* Wrap only inside this right cluster — never force a full-width row under brand */
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  flex: 0 0 auto;
  margin-left: auto;
  overflow: visible;
  row-gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.nav-about,
.nav-lab,
.nav-text,
.nav-edit,
.nav-studio {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink-soft);
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.nav-about:hover,
.nav-lab:hover,
.nav-text:hover,
.nav-edit:hover,
.nav-studio:hover {
  opacity: 1;
  color: var(--ink);
}

/* Injected only after Tailscale editor probe succeeds */
.nav-edit,
.nav-studio {
  color: var(--ink-faint);
}

.nav-edit[hidden],
.nav-studio[hidden] {
  display: none !important;
}

/* Stay normal flex items (do not force inline — that helped clip the last link) */
.nav-edit.is-visible,
.nav-studio.is-visible {
  display: block;
}

/*
 * Tailscale edit + studio: tighten the right cluster only.
 * Do NOT wrap the nav under the brand — name stays left, links stay right.
 */
.site-header.has-private-nav .site-nav {
  gap: 0.3rem 0.45rem;
}

.site-header.has-private-nav .nav-about,
.site-header.has-private-nav .nav-lab,
.site-header.has-private-nav .nav-text,
.site-header.has-private-nav .nav-edit,
.site-header.has-private-nav .nav-studio {
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}

.site-main {
  flex: 1;
}

/* —— Home grid —— */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--tile-gap);
  list-style: none;
  margin: 0;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  background: var(--mist);
  animation: tile-in 0.75s var(--ease) both;
}

.project-grid .tile:nth-child(1) { animation-delay: 0.05s; }
.project-grid .tile:nth-child(2) { animation-delay: 0.12s; }
.project-grid .tile:nth-child(3) { animation-delay: 0.19s; }
.project-grid .tile:nth-child(4) { animation-delay: 0.26s; }

@keyframes tile-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tile img,
.tile .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.tile img.is-live-tile {
  transition: transform 0.55s var(--ease), opacity 0.6s var(--ease);
}

.tile:hover img,
.tile:hover .placeholder,
.tile:focus-visible img,
.tile:focus-visible .placeholder {
  transform: scale(1.03);
}

.tile:hover {
  opacity: 1;
}

.tile-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(to top, rgba(20, 28, 24, 0.55) 0%, rgba(20, 28, 24, 0.08) 55%, transparent 100%);
  color: #f4f7f5;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.tile:hover .tile-meta,
.tile:focus-visible .tile-meta {
  opacity: 1;
}

.tile-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tile-year,
.tile-collab {
  font-size: 0.78rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  opacity: 0.88;
  margin-top: 0.15rem;
}

.tile-collab {
  opacity: 0.72;
  font-weight: 400;
}

.placeholder {
  display: grid;
  place-items: end start;
  padding: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 34, 31, 0.45);
  font-weight: 500;
}

.placeholder span {
  background: rgba(228, 235, 230, 0.55);
  padding: 0.15rem 0.35rem;
}

.ph-1 { background: linear-gradient(145deg, #9aaca0 0%, #6e8578 48%, #4f665b 100%); }
.ph-2 { background: linear-gradient(160deg, #b7c4bc 0%, #8a9b92 45%, #5f7368 100%); }
.ph-3 { background: linear-gradient(135deg, #879990 0%, #5c7167 50%, #3e5248 100%); }
.ph-4 { background: linear-gradient(150deg, #a8b5aa 0%, #7d9084 42%, #55685e 100%); }

/* —— Project page —— */

.project-hero {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.project-hero h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.project-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.project-body {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 800px) {
  .project-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.project-text p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.project-text p:last-child {
  margin-bottom: 0;
}

.project-gallery {
  display: grid;
  gap: var(--tile-gap);
}

/* Detail galleries keep original photo proportions; square crops are grid tiles only. */
.project-gallery .frame {
  overflow: hidden;
  background: var(--mist);
}

.project-gallery .frame img {
  width: 100%;
  height: auto;
}

.project-gallery .frame .placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* —— About —— */

.about-page {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.about-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
  background: var(--mist);
  animation: page-enter 0.85s var(--ease) both;
}

.about-credit {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.about-copy h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  animation: page-enter 0.75s var(--ease) 0.08s both;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.65;
  animation: page-enter 0.8s var(--ease) 0.14s both;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-cv-link {
  margin-top: 1.5rem !important;
}

.about-cv-link a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 82, 72, 0.4);
  color: var(--ink);
}

.about-cv-link a:hover {
  opacity: 1;
  color: var(--sea);
  border-bottom-color: var(--sea);
}

/* —— CV —— */

.cv-page h1,
.cv-page .cv-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

/* Web keeps the short “CV” label; print/PDF show the full name. */
.cv-title-print {
  display: none;
}

.cv-intro {
  color: var(--ink-soft);
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.cv-intro a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.cv-section {
  margin-bottom: clamp(1.6rem, 3.5vw, 2.2rem);
}

.cv-section h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(58, 82, 72, 0.18);
}

.cv-section h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 450;
  margin: 1rem 0 0.35rem;
}

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

.cv-list li {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  padding-left: 0;
  font-size: 0.95rem;
}

.cv-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 82, 72, 0.35);
}

.cv-list a:hover {
  opacity: 1;
  color: var(--sea);
  border-bottom-color: var(--sea);
}

.cv-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cv-row dt {
  font-weight: 550;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cv-row dd {
  margin: 0;
}

.cv-page {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* —— Lab / hub —— */

.lab-page h1,
.hub-page h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.lab-lead {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.lab-grid {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.lab-tile-ph {
  background:
    linear-gradient(145deg, rgba(58, 82, 72, 0.22), transparent 55%),
    var(--mist);
}

.lab-crumb {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.lab-live {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px solid rgba(58, 82, 72, 0.18);
  display: grid;
  gap: 0.55rem;
  transition: opacity 0.35s var(--ease);
}

.lab-live.is-tick .lab-live-metrics strong {
  animation: lab-live-pulse 0.45s var(--ease);
}

.lab-live-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lab-live.is-live .lab-live-title {
  color: var(--sea);
}

.lab-live.is-down .lab-live-title {
  color: var(--ink-faint);
}

.lab-live-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.lab-live-metrics > span {
  min-width: 0;
  max-width: 100%;
}

.lab-live-metrics strong {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05em;
}

.lab-live-lines {
  --lab-live-slot: 1.35em;
  --lab-live-slot-gap: 0.35rem;
  --lab-live-clamp: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(5, var(--lab-live-slot));
  gap: var(--lab-live-slot-gap);
  height: calc((5 * var(--lab-live-slot)) + (4 * var(--lab-live-slot-gap)));
  overflow: hidden;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
}

.lab-live-lines li {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lab-live-clamp);
  line-clamp: var(--lab-live-clamp);
}

.lab-live-lines li.is-empty {
  visibility: hidden;
}

@media (max-width: 640px) {
  .lab-live {
    min-width: 0;
  }

  .lab-live-metrics {
    gap: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  .lab-live-lines {
    /* Fixed window: wrap freely inside, scroll if a slot still runs long */
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
    height: calc((5 * 2.7em) + (4 * 0.35rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.84rem;
  }

  .lab-live-lines li {
    display: block;
    height: auto;
    min-height: 1.35em;
    flex: 0 0 auto;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }
}

@keyframes lab-live-pulse {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

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

.lab-crumb a:hover {
  color: var(--sea);
}

.lab-external a {
  font-weight: 500;
}

.stl-viewer-embed {
  margin: 1.15rem 0 1.4rem;
  max-width: 38rem;
  border: 1px solid rgba(58, 82, 72, 0.16);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.35), transparent 55%),
    var(--paper-deep);
  overflow: hidden;
}

.stl-viewer-embed iframe {
  display: block;
  width: 100%;
  height: min(28rem, 78vw);
  border: 0;
  background: var(--paper-deep);
}

.lab-section {
  margin: 0 0 2rem;
  max-width: 38rem;
}

.lab-aside-block {
  margin-top: 0.5rem;
}

.lab-section h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--sea);
}

.lab-aside {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 36rem;
}

.lab-aside code,
.lab-links code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(58, 82, 72, 0.08);
  padding: 0.08em 0.28em;
  border-radius: 0.2em;
}

.lab-links {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
}

.lab-page > .lab-links {
  padding-bottom: 3rem;
}

.lab-links li {
  margin-bottom: 0.85rem;
}

.lab-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 82, 72, 0.35);
  font-weight: 500;
}

.lab-links .lab-label {
  font-weight: 500;
}

.lab-links .note {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 0.15rem;
  border: 0;
}

/* —— Text (writing) —— */

.text-page h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.text-lead {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.text-grid {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.text-tile-ph {
  background:
    linear-gradient(160deg, rgba(58, 82, 72, 0.14), transparent 58%),
    var(--mist);
}

.text-crumb {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.text-item-page {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.text-article {
  max-width: 38rem;
}

.text-article h1 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.15;
}

.text-body {
  margin-top: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}

.text-body p {
  margin: 0 0 1.05em;
}

.text-body p:last-child {
  margin-bottom: 0;
}

.text-body h2,
.text-body h3 {
  font-family: var(--font-display);
  font-weight: 450;
  letter-spacing: -0.015em;
  margin: 1.6em 0 0.45em;
}

.text-gallery {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.text-gallery .frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* —— Footer —— */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.4rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(58, 82, 72, 0.15);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

.site-footer .copy {
  margin-left: auto;
  color: var(--ink-faint);
}

/* True mobile only: brand may wrap; nav may sit under as a right/left cluster */
@media (max-width: 560px) {
  .brand {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(1.15rem, 5.5vw, 1.4rem);
  }

  .site-header {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  .site-nav {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    margin-left: auto;
  }

  .site-footer .copy {
    margin-left: 0;
    flex-basis: 100%;
  }

  .cv-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* —— Print / CV PDF (WeasyPrint uses print media) —— */

.cv-download {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.cv-download a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 82, 72, 0.4);
  color: var(--ink);
}

.cv-download a:hover {
  opacity: 1;
  color: var(--sea);
  border-bottom-color: var(--sea);
}

@media print {
  @page {
    size: A4;
    margin: 14mm 16mm;
  }

  html,
  body {
    background: #fff !important;
    background-image: none !important;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.4;
    min-height: 0;
  }

  body.page-enter {
    animation: none !important;
  }

  .site-shell {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .site-header,
  .site-footer,
  .site-nav,
  .cv-download,
  script {
    display: none !important;
  }

  .site-main,
  .cv-page {
    padding: 0 !important;
    margin: 0 !important;
  }

  .cv-page h1,
  .cv-page .cv-title {
    font-size: 18pt;
    margin: 0 0 0.25rem;
    letter-spacing: 0;
    color: #111;
  }

  .cv-title-web {
    display: none !important;
  }

  .cv-title-print {
    display: inline !important;
  }

  .cv-intro {
    color: #333;
    margin: 0 0 1rem;
    font-size: 10pt;
  }

  .cv-intro a {
    color: #111;
    text-decoration: none;
    border-bottom: none;
  }

  /* Do not keep entire sections together: the exhibitions list is long, and
     break-inside:avoid was pushing it onto page two with a nearly empty page one. */
  .cv-section {
    margin-bottom: 0.9rem;
  }

  .cv-row,
  .cv-list li {
    break-inside: avoid;
  }

  .cv-section h2 {
    color: #333;
    border-bottom-color: #bbb;
    font-size: 9pt;
    margin: 0 0 0.4rem;
    padding-bottom: 0.2rem;
  }

  .cv-section h3 {
    font-size: 11pt;
    margin: 0.55rem 0 0.2rem;
    color: #111;
  }

  .cv-list li,
  .cv-row {
    color: #222;
    font-size: 9.5pt;
    margin-bottom: 0.25rem;
  }

  .cv-list a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
  }

  .cv-row {
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
  }

  .cv-row dt {
    color: #111;
  }

  a[href]::after {
    content: none !important;
  }
}
