/* drvikasgupta.com
 *
 * Palette: the cool greys of X-ray film, the ink of contrast-filled vessels,
 *   and the amber of an angiography annotation. Red is kept for emergencies.
 * Type: Newsreader for headings; Public Sans, set large, for everything read
 *   at length, because many readers here are older or recovering from stroke.
 * Layout: left-aligned on a 12-column grid, 1180px at most. One dark band per
 *   page. The home page angiogram is the only decorative moment.
 */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --film: #E6E9EC;
  --film-soft: #F2F4F6;
  --paper: #FFFFFF;
  --ink: #172A3A;
  --slate: #4B5B69;
  --rule: #CBD2D8;
  --amber: #E0A030;
  --amber-deep: #8A5A0A;
  --alert: #A32018;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Type scale, ratio 1.25 on an 18px body */
  --t-small: 0.9375rem;
  --t-body: 1.125rem;
  --t-lead: 1.3125rem;
  --t-h3: 1.1875rem;
  --t-h2: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
  --t-h1: clamp(2.35rem, 1.35rem + 4.4vw, 4.5rem);
  --t-figure: clamp(2.4rem, 1.8rem + 2.4vw, 3.5rem);

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --gap: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --measure: 66ch;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.018em; }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 700; }
p, li, dd { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-ink :focus-visible, .foot :focus-visible, .alertbar :focus-visible { outline-color: var(--amber); }

.wrap {
  width: 100%;
  max-width: calc(1180px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose > * + * { margin-top: 1em; }
.prose p, .prose li { max-width: var(--measure); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose h3 + p { margin-top: 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }

.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
.small { font-size: var(--t-small); line-height: 1.55; }
.muted { color: var(--slate); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.skip:focus { top: 0.75rem; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- Emergency bar ---------------------------------------------------- */

.alertbar {
  background: var(--ink);
  color: #fff;
  font-size: var(--t-small);
  line-height: 1.45;
}
.alertbar p {
  padding-block: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: baseline;
}
.alertbar strong { color: var(--amber); font-weight: 700; }

/* ---- Masthead --------------------------------------------------------- */

.masthead { background: var(--film); position: relative; z-index: 5; }
.masthead--ruled { border-bottom: 1px solid var(--rule); }
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand { text-decoration: none; display: grid; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; }
.brand__field { font-size: var(--t-small); color: var(--slate); }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 2vw, 1.9rem); row-gap: 0.25rem; }
.nav a {
  display: block;
  padding: 0.45rem 0;
  font-size: 1.0625rem;
  text-decoration-color: transparent;
}
.nav a:hover { text-decoration-color: var(--amber); }
.nav a[aria-current="page"] { text-decoration-color: var(--ink); font-weight: 600; }

.menu-btn {
  display: none;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 62rem) {
  .js .menu-btn { display: inline-block; }
  .js .masthead__in { flex-wrap: wrap; }
  .js .nav { display: none; flex-basis: 100%; }
  .js .nav[data-open] { display: block; }
  .nav ul { flex-direction: column; }
  .js .nav ul { border-top: 1px solid var(--rule); padding-top: 0.5rem; }
  .nav a { padding: 0.7rem 0; font-size: 1.125rem; }
  html:not(.js) .masthead__in { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  html:not(.js) .nav ul { flex-direction: row; }
}

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 0.9rem 1.35rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
}
.btn:hover { background: #0E1E2B; border-color: #0E1E2B; }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: rgba(23, 42, 58, 0.07); border-color: var(--ink); }
.band-ink .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.linkbtn {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.linkbtn:hover { text-decoration-color: currentColor; }

/* ---- Home: hero ------------------------------------------------------- */

.hero { position: relative; background: var(--film); overflow: hidden; }
.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-content: center;
  min-height: 43rem;
  padding-block: 4rem 5.5rem;
  pointer-events: none;
}
.hero__text { grid-column: 1 / span 7; display: grid; gap: 1.6rem; justify-items: start; pointer-events: auto; }
.hero__text .lead { max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hero__role { font-size: var(--t-small); color: var(--slate); max-width: 34em; }

.angio { position: absolute; top: 0; bottom: 0; right: 0; width: min(54%, 46rem); --angio-align: right; }
.angio canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.angio__vessels { filter: blur(0.3px); }
.angio__blush { opacity: 0; transition: opacity 1.6s ease; }
.angio[data-phase="filled"] .angio__blush { opacity: 1; }

.hero__caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate);
}

@media (max-width: 62rem) {
  .hero__in { display: block; min-height: 0; padding-block: 1.5rem 0; }
  .hero__text { gap: 1.3rem; }
  .angio { position: relative; width: 100%; height: 21rem; margin-top: 0.5rem; --angio-align: center; }
  .angio__vessels, .angio__blush {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  }
  .hero__caption { position: static; padding-block: 0.75rem 1.25rem; }
}
@media (max-width: 30rem) {
  .angio { height: 17.5rem; }
  .hero__actions .btn { width: 100%; text-align: center; }
}

/* ---- Sections --------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--film { background: var(--film-soft); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 46rem; }

.band-ink { background: var(--ink); color: #EEF1F3; }
.band-ink .muted { color: #B9C4CD; }

/* ---- Home: introduction ----------------------------------------------- */

.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
  align-items: start;
}
.portrait { grid-column: 1 / span 4; }
.portrait img { width: 100%; border-radius: var(--radius); background: var(--film); }
.portrait figcaption { margin-top: 0.7rem; font-size: var(--t-small); color: var(--slate); }
.intro__text { grid-column: 6 / span 7; display: grid; gap: 1.15rem; align-content: start; }
.intro__text p { max-width: var(--measure); }
@media (max-width: 54rem) {
  .portrait { grid-column: 1 / span 12; max-width: 20rem; }
  .intro__text { grid-column: 1 / span 12; }
}

.record {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.record > div { padding: 1.5rem 1.5rem 0 0; }
.record > div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.record dt {
  font-family: var(--font-display);
  font-size: var(--t-figure);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.record dd { margin-top: 0.6rem; font-size: var(--t-small); color: var(--slate); max-width: 17em; }
@media (max-width: 54rem) {
  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record > div { padding: 1.25rem 1rem 1.25rem 0; }
  .record > div + div { padding-left: 0; border-left: 0; }
  .record > div:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .record > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* ---- Home: index of conditions ---------------------------------------- */

.index { list-style: none; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding: 1.25rem 0.75rem 1.25rem 0;
  text-decoration: none;
  position: relative;
  transition: padding-left 0.18s ease, background-color 0.18s ease;
}
.index a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--amber);
  transform: scaleY(0);
  transition: transform 0.18s ease;
}
.index a:hover, .index a:focus-visible { padding-left: 1.1rem; background: var(--paper); }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index__cond { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); line-height: 1.15; letter-spacing: -0.01em; }
.index__proc { font-weight: 600; }
.index__note { color: var(--slate); font-size: 1.0625rem; }
@media (max-width: 54rem) {
  .index a { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
}

/* ---- Home: through the wrist ------------------------------------------ */

.wrist__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
  align-items: start;
}
.wrist__text { grid-column: 1 / span 6; display: grid; gap: 1.15rem; }
.wrist__text p { max-width: 34em; }
.wrist__text a { text-decoration-color: var(--amber); }
.route-map { grid-column: 8 / span 5; list-style: none; counter-reset: stop; position: relative; }
.route-map::before {
  content: "";
  position: absolute;
  left: 0.5625rem;
  top: 1.7rem; bottom: 1.7rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), rgba(224, 160, 48, 0.35));
}
.route-map li {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0 0.7rem 2.4rem;
}
.route-map li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--amber);
  background: var(--ink);
}
.route-map li:first-child::before, .route-map li:last-child::before { background: var(--amber); }
.route-map__place { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.route-map__vessel { color: #B9C4CD; font-size: 1.0625rem; }
@media (max-width: 54rem) {
  .wrist__text, .route-map { grid-column: 1 / span 12; }
}

/* ---- Literature brief ------------------------------------------------- */

.issue-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.5rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.75rem;
}
.issue-card__main { grid-column: 1 / span 7; display: grid; gap: 1rem; align-content: start; justify-items: start; }
.issue-card__main h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.14; letter-spacing: -0.012em; text-wrap: balance; }
.issue-card__main h3 a { text-decoration-thickness: 1.5px; }
.issue-card__list { grid-column: 8 / span 5; list-style: none; }
.issue-card__list li { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.issue-card__list li:first-child { padding-top: 0; }
.issue-card__list strong { display: block; font-weight: 600; line-height: 1.35; }
.issue-card__list span { font-size: var(--t-small); color: var(--slate); }
@media (max-width: 54rem) {
  .issue-card__main, .issue-card__list { grid-column: 1 / span 12; }
}

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--film);
  color: var(--ink);
}
.tag--caution { background: #F6E7C8; color: #5C3B00; }

.entries { display: grid; gap: 0; }
.entry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0.9rem;
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-top: 1px solid var(--rule);
}
.entry:first-child { border-top-color: var(--ink); }
.entry__meta { grid-column: 1 / span 3; display: grid; gap: 0.55rem; align-content: start; justify-items: start; font-size: var(--t-small); color: var(--slate); }
.entry__meta .entry__source { color: var(--ink); font-weight: 600; }
.entry__body { grid-column: 4 / span 8; display: grid; gap: 0.95rem; align-content: start; }
.entry__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.16; letter-spacing: -0.012em; text-wrap: balance; }
.entry__study { font-weight: 600; color: var(--slate); font-size: var(--t-small); margin-top: -0.4rem; }
.entry__body p { max-width: var(--measure); }
.entry__adds strong, .entry__link strong { font-weight: 700; }
.entry__link {
  border-left: 3px solid var(--amber);
  padding: 0.15rem 0 0.15rem 0.9rem;
  font-size: 1.0625rem;
}
.entry__cite { font-size: var(--t-small); color: var(--slate); }
.entry__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-weight: 600; }
@media (max-width: 54rem) {
  .entry__meta, .entry__body { grid-column: 1 / span 12; }
  .entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
}

.note {
  background: var(--film-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-size: 1.0625rem;
  max-width: 46rem;
}
.note h2, .note h3 { font-family: var(--font-body); font-size: var(--t-h3); font-weight: 700; letter-spacing: 0; margin-bottom: 0.35rem; }

.archive { list-style: none; border-top: 1px solid var(--ink); }
.archive li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--gap); padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.archive time { color: var(--slate); font-size: var(--t-small); }
@media (max-width: 40rem) { .archive li { grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; } }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-weight: 600; }

/* ---- Home: two doors -------------------------------------------------- */

.doors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.door {
  background: var(--paper);
  border-top: 4px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.door h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.door ul { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.4rem; font-weight: 600; }
@media (max-width: 46rem) { .doors__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Inner pages ------------------------------------------------------ */

.pagehead { background: var(--film); padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2.25rem, 5vw, 3.75rem); }
.pagehead .wrap { display: grid; gap: 1.25rem; }
.pagehead h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); max-width: 17em; }
.pagehead__meta { font-size: var(--t-small); color: var(--slate); font-weight: 600; }
.pagehead__meta ~ .lead { font-size: var(--t-body); line-height: 1.6; max-width: var(--measure); }

.with-aside {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.with-aside > .toc { grid-column: 1 / span 3; position: sticky; top: 1.5rem; }
.with-aside > .content { grid-column: 5 / span 8; min-width: 0; }
.toc h2 { font-family: var(--font-body); font-size: var(--t-small); font-weight: 700; letter-spacing: 0; color: var(--slate); margin-bottom: 0.6rem; }
.toc ul { list-style: none; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; font-size: 1.0625rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { border-left-color: var(--amber); }
@media (max-width: 62rem) {
  .with-aside > .toc { grid-column: 1 / span 12; position: static; margin-bottom: 2.5rem; }
  .with-aside > .content { grid-column: 1 / span 12; }
  .toc ul { columns: 2; column-gap: 1.5rem; border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; text-decoration: underline; text-decoration-color: var(--amber); }
}
@media (max-width: 34rem) { .toc ul { columns: 1; } }

[id] { scroll-margin-top: 1.5rem; }

.topic { padding-block: clamp(2.25rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
.topic:first-child { padding-top: 0; border-top: 0; }
.topic__head { margin-bottom: 1.4rem; display: grid; gap: 0.4rem; }
.topic__proc { font-weight: 600; color: var(--slate); }
.topic .prose h3:first-child { margin-top: 0; }

.work {
  margin-top: 2rem;
  border-left: 3px solid var(--amber);
  padding: 0.2rem 0 0.2rem 1.2rem;
  max-width: 44rem;
}
.work--flush { margin-top: 0; }
.work h3 { margin-bottom: 0.6rem; }
.work ul { list-style: none; display: grid; gap: 0.55rem; font-size: 1.0625rem; }

.callout {
  border: 1.5px solid var(--alert);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  max-width: 44rem;
  margin-top: 1.75rem;
}
.callout strong { color: var(--alert); }

/* BE FAST */
.befast { list-style: none; border-top: 1px solid var(--ink); margin-top: 1.75rem; max-width: 46rem; }
.befast li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1rem; align-items: center; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.befast__letter { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--alert); }
.befast__word { font-weight: 700; display: block; }
.befast li:last-child .befast__body { font-weight: 600; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 1.75rem; list-style: none; }
.steps3 li { border-top: 3px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.steps3 h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.steps3 p { font-size: 1.0625rem; }
@media (max-width: 54rem) { .steps3 { grid-template-columns: minmax(0, 1fr); } }

.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 1.5rem; }
.gloss > div { padding: 0.9rem 0; border-top: 1px solid var(--rule); break-inside: avoid; }
.gloss dt { font-weight: 700; }
.gloss dd { color: var(--slate); font-size: 1.0625rem; }
@media (max-width: 46rem) { .gloss { grid-template-columns: minmax(0, 1fr); } }

.mediacard { border-top: 3px solid var(--ink); padding-top: 1.1rem; max-width: 44rem; display: grid; gap: 0.5rem; justify-items: start; margin-top: 1.5rem; }
.mediacard h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }

/* Lists of record: publications, trials, talks */
.reflist { list-style: none; border-top: 1px solid var(--ink); }
.reflist > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.reflist__year { color: var(--slate); font-variant-numeric: tabular-nums; font-weight: 600; }
.reflist__title { font-weight: 600; line-height: 1.4; }
.reflist__detail { font-size: var(--t-small); color: var(--slate); margin-top: 0.25rem; }
.reflist__links { font-size: var(--t-small); margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-weight: 600; }
.me { color: var(--ink); font-weight: 700; }

.trialgroups { display: grid; gap: 2rem; }
.trialgroups h3 { margin-bottom: 0.6rem; }
.deflist { border-top: 1px solid var(--ink); }
.deflist > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.deflist dt { font-weight: 700; }
.deflist dd { color: var(--slate); font-size: 1.0625rem; }
@media (max-width: 40rem) { .deflist > div { grid-template-columns: minmax(0, 1fr); } }

.plainlist { list-style: none; display: grid; gap: 0.55rem; }
.plainlist--ruled { border-top: 1px solid var(--ink); gap: 0; }
.plainlist--ruled li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }

.block + .block { margin-top: clamp(2.75rem, 6vw, 4.25rem); }
.block > h2 { margin-bottom: 1.25rem; }
.block > h2 + p { margin-bottom: 1.5rem; max-width: var(--measure); }

/* About */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: start; }
.about__portrait { grid-column: 1 / span 4; position: sticky; top: 1.5rem; }
.about__portrait img { border-radius: var(--radius); width: 100%; }
.about__facts { margin-top: 1.25rem; font-size: var(--t-small); display: grid; gap: 0.75rem; }
.about__facts dt { color: var(--slate); }
.about__facts dd { font-weight: 600; }
.about__text { grid-column: 6 / span 7; min-width: 0; }
@media (max-width: 54rem) {
  .about__portrait { grid-column: 1 / span 12; position: static; max-width: 22rem; }
  .about__text { grid-column: 1 / span 12; }
}

.timeline { list-style: none; position: relative; margin-top: 0.5rem; }
.timeline::before { content: ""; position: absolute; left: 0.4375rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 0.55rem 0 0.9rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--slate); }
.timeline li[data-kind="practice"]::before { background: var(--ink); border-color: var(--ink); }
.timeline li:last-child::before { background: var(--amber); border-color: var(--amber-deep); }
.timeline__years { font-size: var(--t-small); color: var(--slate); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline__what { font-weight: 600; display: block; }
.timeline__where { color: var(--slate); display: block; font-size: 1.0625rem; }
.timeline__key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: var(--t-small); color: var(--slate); margin-bottom: 0.75rem; list-style: none; }
.timeline__key li { display: flex; align-items: center; gap: 0.45rem; }
.timeline__key i { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--slate); display: inline-block; }
.timeline__key li:last-child i { background: var(--ink); border-color: var(--ink); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.contact__grid > div { border-top: 3px solid var(--ink); padding-top: 1.1rem; display: grid; gap: 0.6rem; align-content: start; }
.contact__grid h2 { font-size: 1.7rem; }
.contact__big { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; font-variant-numeric: lining-nums; }
@media (max-width: 46rem) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Footer ----------------------------------------------------------- */

.foot { background: var(--ink); color: #DDE3E8; font-size: var(--t-small); line-height: 1.55; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 2.5rem var(--gap);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.foot__name { font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1.2; }
.foot__id { display: grid; gap: 0.5rem; align-content: start; }
.foot nav ul { list-style: none; display: grid; gap: 0.4rem; }
.foot a { text-decoration-color: rgba(224, 160, 48, 0.75); text-decoration-thickness: 1.5px; }
.foot a:hover { text-decoration-color: #fff; }
.foot__notes { display: grid; gap: 0.75rem; align-content: start; color: #B9C4CD; }
@media (max-width: 54rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Spacing helpers ---------------------------------------------------- */

.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-35 { margin-top: 3.5rem; }
.mt-4 { margin-top: 4rem; }
.mb-s { margin-bottom: 0.6rem; }
.mb-2 { margin-bottom: 2rem; }
.measure { max-width: var(--measure); }
.callout--top { margin-top: 0; margin-bottom: 2.5rem; }

/* ---- Preview bundle (all pages in one document) ----------------------- */

.route[hidden] { display: none; }
.route { scroll-margin-top: 40rem; }

/* ---- Motion and print -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .angio__blush, .index a, .index a::before { transition: none; }
}

@media print {
  .alertbar, .masthead nav, .menu-btn, .angio, .hero__caption, .foot nav, .skip { display: none !important; }
  body { font-size: 11pt; }
  .hero, .pagehead, .section--film, .band-ink, .foot { background: #fff !important; color: #000 !important; }
  a { text-decoration: none; }
}
