/*
 * Elkhonon Goldberg — 2026 design
 * The study as a gallery: tinted walls, matted prints, a claret accent
 * taken from the photographs, and Newsreader over Hanken Grotesk.
 */

/* Tokens */
:root {
  /* Supplied palette */
  --lemon-icing: #f5ebc8;
  --nimbus-cloud: #d5d5d7;
  --raindrops-on-roses: #ebd8dc;
  --cloud-dancer: #f0efeb;
  --ice-melt: #d4e4f1;
  --peach-dust: #f0d9cc;
  --almost-aqua: #c9d3c0;
  --orchid-tint: #dbd3dc;

  /* Working colors */
  --paper: var(--cloud-dancer);
  --mat: #fbfaf8;
  --ink: #1c2536;
  --text: #343c4b;
  --muted: #4e5563;
  --claret: #7a2233;
  --claret-deep: #5c1726;
  --rule: rgb(28 37 54 / 0.16);
  --on-ink: #e9e8e4;
  --on-ink-muted: #b4b8c0;

  /* Running text */
  --text-size: 1.15rem;
  --text-leading: 1.4;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --pad: max(var(--gutter), calc((100% - var(--max)) / 2));
  --section: clamp(48px, 5.6vw, 80px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .14 0 0 0 0 .2 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Foundation */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--text);
  font: 400 var(--text-size) / var(--text-leading) var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--lemon-icing);
  color: var(--ink);
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--claret);
}
:focus-visible {
  outline: 2px solid var(--claret);
  outline-offset: 4px;
  border-radius: 1px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}
p {
  margin-bottom: 1.2em;
  text-wrap: pretty;
}
strong {
  font-weight: 600;
  color: var(--ink);
}
address {
  font-style: normal;
}
section[id],
article[id],
h2[id],
h3[id],
.anchor-target {
  scroll-margin-top: 24px;
}
.anchor-target {
  display: block;
  height: 0;
}

/* Matted images, like the prints on the study walls */
.frame {
  --mat-w: clamp(10px, 1.7vw, 26px);
  margin: 0;
  padding: var(--mat-w);
  background: var(--mat);
  box-shadow:
    0 0 0 1px rgb(28 37 54 / 0.08),
    0 30px 44px -30px rgb(20 24 36 / 0.55),
    0 6px 14px -8px rgb(20 24 36 / 0.3);
}
.frame img {
  display: block;
  width: 100%;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgb(28 37 54 / 0.09);
}
.frame a {
  display: block;
}
.frame figcaption {
  margin: calc(var(--mat-w) * 0.7) 0 calc(var(--mat-w) * -0.3);
  font: italic 400 0.875rem/1.45 var(--display);
  color: var(--muted);
  text-align: right;
}

/* Links with a drawn underline */
.text-link,
.quick-links a,
.section-heading > a,
.services-contact a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9em;
  padding: 8px 0 6px;
  font: 500 0.9375rem/1.4 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  transition:
    color 0.2s ease,
    background-size 0.3s ease;
}
.text-link:hover,
.quick-links a:hover,
.section-heading > a:hover,
.services-contact a:hover {
  background-size: 35% 1px;
}
.text-link > span,
.section-heading > a > span,
.services-contact a > span {
  font-size: 0.85em;
  transition: transform 0.25s ease;
}
.text-link:hover > span,
.section-heading > a:hover > span,
.services-contact a:hover > span {
  transform: translate(2px, -2px);
}
.button-link {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
}
.button-link:hover {
  background: var(--claret);
  color: #fff;
  background-size: auto;
}

/* Small italic labels set in the display face */
.eyebrow {
  margin-bottom: 1rem;
  font: italic 400 1.125rem/1.4 var(--display);
  color: var(--claret);
}

/* Header */
.site-header {
  padding-inline: var(--pad);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-block: 26px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  color: var(--ink);
  font: 500 1.5rem/1.1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark span {
  font: italic 400 0.9rem var(--display);
  color: var(--claret);
}
#navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
}
#navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.9375rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(var(--claret), var(--claret)) 50% 78% / 0 1.5px
    no-repeat;
  transition:
    color 0.2s ease,
    background-size 0.3s ease;
}
#navigation a:hover {
  background-size: 100% 1.5px;
}
#navigation a[aria-current="page"] {
  color: var(--claret);
  background-size: 100% 1.5px;
}
.menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem var(--sans);
  cursor: pointer;
}
.menu-button[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* Section frame: full-bleed walls, contained content */
.hero,
.welcome,
.room,
.services-section,
.profile-cards {
  padding-inline: var(--pad);
}
.room {
  /* Full-bleed rows may reach under a desktop scrollbar; keep them inside */
  overflow-x: clip;
  background-image: var(--grain);
  padding-block: var(--section);
}
.room-ice {
  background-color: var(--ice-melt);
}
.room-peach {
  background-color: var(--peach-dust);
}
.room-orchid {
  background: var(--orchid-tint) var(--grain);
}

/* Hero */
.hero {
  padding-top: clamp(36px, 6vw, 84px);
  padding-bottom: var(--section);
}
.hero-copy {
  position: relative;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}
.hero-heading {
  margin: 0;
}
.hero-name {
  display: block;
  font-size: clamp(3.25rem, 9.4vw, 8.6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.hero-degree {
  display: inline-block;
  font-size: 0.26em;
  font-style: italic;
  letter-spacing: 0;
  color: var(--claret);
}
.hero-roles {
  display: block;
  margin-top: clamp(16px, 2.2vw, 30px);
  font-size: clamp(1.3rem, 2.3vw, 2.05rem);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--claret);
  animation: rise 1.1s 0.18s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.hero-lede {
  max-width: min(50ch, calc(100% - 240px));
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  font: 400 clamp(1.1rem, 1.5vw, 1.35rem) / 1.5 var(--display);
  color: var(--text);
  animation: rise 1.1s 0.24s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.hero-copy > .text-link {
  position: absolute;
  right: 0;
  bottom: 0;
  animation: rise 1.1s 0.3s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.hero-portrait {
  --mat-w: clamp(10px, 2vw, 30px);
}
.hero-portrait img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  animation: develop 2.2s 0.15s ease-out both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}
/* The photograph develops like a print in the tray */
@keyframes develop {
  from {
    opacity: 0.25;
    filter: grayscale(1) contrast(0.6) brightness(1.25);
  }
  45% {
    opacity: 1;
  }
}

/* Welcome */
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: start;
  padding-bottom: var(--section);
}
.welcome-portrait {
  position: sticky;
  top: 32px;
  max-width: 420px;
}
.welcome-portrait img {
  aspect-ratio: 1;
  object-fit: cover;
}
.welcome h2 {
  margin-bottom: 1.4rem;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0;
  color: var(--claret);
}
.intro p {
  max-width: 62ch;
  font-size: var(--text-size);
  line-height: var(--text-leading);
}
.intro p:first-child {
  max-width: 36ch;
  margin-bottom: 1.2em;
  font: 400 clamp(1.4rem, 1.95vw, 1.8rem) / 1.36 var(--display);
  letter-spacing: -0.012em;
  color: var(--ink);
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 8px;
}

/* Upcoming symposium */
.symposium-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.symposium-image img {
  aspect-ratio: 1;
  object-fit: cover;
}
.symposium-series {
  margin-bottom: 0.9rem;
  font: 600 0.9375rem/1.4 var(--sans);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.symposium-copy h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1.07;
  margin-bottom: 0.7em;
}
.symposium-lede {
  max-width: 54ch;
  font-size: var(--text-size);
}
.symposium-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 32px 0 36px;
}
.symposium-details > div {
  padding-top: 14px;
  border-top: 1px solid rgb(28 37 54 / 0.28);
}
.symposium-details dt {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.symposium-details dd {
  margin: 0;
  font: 400 1.125rem/1.4 var(--display);
  color: var(--ink);
}
.symposium-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

/* Event heritage: the earlier destination symposia */
.event-heritage {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(36px, 6vw, 96px);
  margin-top: var(--section);
}
.heritage-intro h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.12;
}
.heritage-intro p:last-child {
  margin-bottom: 0;
}
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.heritage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
  text-decoration: none;
}
.heritage-photo {
  --mat-w: clamp(8px, 1.1vw, 16px);
  display: block;
  width: 100%;
  margin-bottom: 26px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.heritage-card:hover .heritage-photo {
  transform: translateY(-4px);
}
.heritage-photo img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.heritage-card .heritage-year {
  margin: 0;
  font: italic 400 clamp(2.4rem, 3.6vw, 3.25rem) / 1 var(--display);
  color: var(--claret);
}
.heritage-card h3 {
  margin: 4px 0 10px;
  font-size: 1.75rem;
  line-height: 1.2;
}
.heritage-card > p:not(.heritage-year) {
  margin-bottom: 18px;
  font-size: var(--text-size);
}
.heritage-link {
  margin-top: auto;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  transition:
    color 0.2s ease,
    background-size 0.3s ease;
}
.heritage-link > span {
  margin-left: 0.6em;
}
.heritage-card:hover .heritage-link {
  color: var(--claret);
  background-size: 35% 1px;
}

/* Luria Neuroscience Institute */
.lni-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.lni-copy h2 {
  max-width: 13ch;
}
.lni-copy p {
  max-width: 58ch;
}
.lni-copy .lni-lede {
  font: 400 clamp(1.3rem, 1.9vw, 1.6rem) / 1.42 var(--display);
  color: var(--ink);
}
.lni-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.lni-screenshot img {
  height: auto;
}
.lni-approvals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin: clamp(48px, 6vw, 80px) 0 28px;
  padding: 28px 32px;
  background: rgb(251 250 248 / 0.6);
}
.lni-approval {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.lni-approval img {
  display: block;
  width: 48px;
  height: auto;
  mix-blend-mode: multiply;
}
.lni-approval p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lni-fold {
  background: rgb(251 250 248 / 0.6);
}
.lni-fold + .lni-fold {
  margin-top: 10px;
}
.lni-fold summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 22px 64px 22px 32px;
  position: relative;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}
.lni-fold summary::-webkit-details-marker {
  display: none;
}
.lni-fold summary > span:first-child {
  font: 400 clamp(1.3rem, 2vw, 1.6rem) / 1.25 var(--display);
}
.lni-fold-meta {
  font-size: 0.875rem;
  color: var(--muted);
}
/* A plus that turns into a cross when the drawer opens */
.lni-fold summary::before,
.lni-fold summary::after {
  content: "";
  position: absolute;
  right: 32px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.lni-fold summary::after {
  transform: rotate(90deg);
}
.lni-fold[open] summary::before {
  transform: rotate(45deg);
}
.lni-fold[open] summary::after {
  transform: rotate(135deg);
}
.lni-fold summary:hover > span:first-child {
  color: var(--claret);
}
.lni-fold-body {
  padding: 0 32px 30px;
}
.lni-small {
  max-width: 78ch;
  margin: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}
.lni-course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(10, auto);
  grid-auto-flow: column;
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: course;
}
.lni-course-list li {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  padding: 7px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
  counter-increment: course;
}
.lni-course-list li::before {
  content: counter(course);
  font: italic 400 1rem/1.4 var(--display);
  color: var(--claret);
}
.lni-live-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lni-live-list li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.lni-live-list time {
  font: italic 400 1rem var(--display);
  color: var(--claret);
}

/* Services */
.services-section {
  padding-block: var(--section);
}
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(36px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.services-head h2 {
  margin: 0;
}
.services-intro {
  max-width: 44ch;
  margin: 0;
  font: 400 clamp(1.3rem, 1.9vw, 1.6rem) / 1.42 var(--display);
  color: var(--ink);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}
.services-portrait {
  align-self: start;
}
.services-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--mat);
  border: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.service-card h3 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  line-height: 1.15;
}
.service-card p,
.service-card ul {
  font-size: var(--text-size);
  line-height: var(--text-leading);
}
.service-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.service-card li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 8px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.6em;
  height: 1px;
  background: var(--claret);
}
.service-card > p:last-child {
  margin: auto 0 0;
  padding-top: 4px;
  color: var(--muted);
}
/* The associated practice spans the full width below the two cards */
.practice-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(36px, 6vw, 96px);
}
.practice-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.practice-card .practice-focus {
  margin: 0;
  font: italic 400 1.15rem/1.45 var(--display);
  color: var(--claret);
}
.practice-details p {
  max-width: 64ch;
}
.practice-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.96875rem;
  line-height: 1.7;
}
.practice-contact > div {
  min-width: 0;
}
.practice-contact .practice-contact-label {
  margin: 0 0 6px;
  font: italic 400 1rem/1.4 var(--display);
  color: var(--muted);
}
.services-contact {
  margin: 32px 0 0;
}

/* Selected books */
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.section-heading h2 {
  margin: 0;
}
.book-row {
  --book-gap: clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px var(--book-gap);
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--ink);
  text-decoration: none;
}
.book-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 2 / 3;
  max-height: 320px;
}
.book-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow:
    -1px 0 0 rgb(255 255 255 / 0.35) inset,
    0 14px 24px -12px rgb(20 24 36 / 0.55);
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.book-card:hover img {
  transform: translateY(-8px);
}
.book-title {
  font: 500 1rem/1.4 var(--sans);
  text-align: center;
  text-wrap: balance;
}
.book-card:hover .book-title {
  color: var(--claret);
}

/* Global editions: one long, slowly moving row of jackets */
.international {
  margin-top: var(--section);
}
.international .section-heading {
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 36px;
}
.international .section-heading p {
  margin: 0;
  font: italic 400 1.25rem/1.4 var(--display);
  color: var(--claret);
}
.translation-gallery {
  margin-inline: calc(50% - 50vw);
  padding: 8px 0 0;
  overflow: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.translation-gallery::-webkit-scrollbar {
  display: none;
}
.translation-track,
.translation-set {
  display: flex;
  width: max-content;
}
.translation-track {
  padding-bottom: 24px;
}
.translation-set {
  flex: none;
  gap: 18px;
  padding-right: 18px;
}
.translation-gallery img {
  flex: none;
  width: 164px;
  height: 164px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 20px -14px rgb(20 24 36 / 0.45);
}

/* Scientist, educator, clinician */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 80px);
  padding-block: var(--section);
}
.profile-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-style: italic;
  line-height: 1;
}
.profile-card h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--claret);
}
.profile-card p {
  font-size: var(--text-size);
  line-height: var(--text-leading);
}
.profile-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

/* Footer */
.site-footer {
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(40px, 5vw, 64px);
  background: var(--ink) var(--grain);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.site-footer a {
  color: var(--on-ink);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--lemon-icing);
}
.site-footer :focus-visible {
  outline-color: var(--lemon-icing);
}
/* Name and menu mirror the header */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgb(233 232 228 / 0.16);
}
.site-footer .footer-name {
  font: 400 clamp(1.7rem, 3vw, 2.4rem) / 1.1 var(--display);
  color: #fff;
}
.footer-identity p {
  margin: 10px 0 0;
  font: italic 400 1.0625rem/1.4 var(--display);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
}
.site-footer .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.9375rem/1 var(--sans);
  letter-spacing: 0.02em;
  background: linear-gradient(var(--lemon-icing), var(--lemon-icing)) 50% 78% /
    0 1.5px no-repeat;
  transition:
    color 0.2s ease,
    background-size 0.3s ease;
}
.site-footer .footer-nav a:hover,
.site-footer .footer-nav a[aria-current="page"] {
  color: var(--lemon-icing);
  background-size: 100% 1.5px;
}
/* Contact details and social profiles */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  padding-top: clamp(32px, 4vw, 48px);
}
.footer-contact {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px clamp(28px, 4vw, 56px);
}
.footer-contact > div {
  min-width: 0;
}
.footer-contact a {
  display: inline-block;
  padding: 2px 0;
}
/* Plain values, such as the fax number, match the linked ones */
.footer-value {
  display: inline-block;
  padding: 2px 0;
  color: var(--on-ink);
}
.site-footer .footer-label {
  margin: 0 0 6px;
  font: italic 400 1rem/1.4 var(--display);
  color: var(--on-ink-muted);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid rgb(233 232 228 / 0.35);
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--sans);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.site-footer .footer-social a:hover {
  background: var(--lemon-icing);
  border-color: var(--lemon-icing);
  color: var(--ink);
}

/* Inner pages */
.page-heading {
  padding: clamp(36px, 5.5vw, 76px) var(--pad) clamp(28px, 3.5vw, 48px);
}
.page-heading > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font: italic 400 1.125rem/1.2 var(--display);
  color: var(--claret);
  text-decoration: none;
}
.page-heading > a:hover {
  text-decoration: underline;
}
.page-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(3rem, 8vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.page-body {
  padding: 0 var(--pad) var(--section);
}
.prose {
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover {
  background: var(--claret);
  color: #fff;
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
/* Section menu that stays in view while reading a long page */
.section-links {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 0 30px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  background: rgb(240 239 235 / 0.94);
  border-block: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.section-links::-webkit-scrollbar {
  display: none;
}
.section-links a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  font: 500 0.9375rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(var(--claret), var(--claret)) 50% 78% / 0 1.5px
    no-repeat;
  transition:
    color 0.2s ease,
    background-size 0.3s ease;
}
.section-links a:hover {
  color: var(--claret);
  background-size: 100% 1.5px;
}

/* Curriculum vitae */
.cv-page section[id] {
  scroll-margin-top: 72px;
}
.cv-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 32px clamp(36px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cv-portrait {
  grid-column: 2;
  grid-row: 1;
}
.cv-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.cv-contact {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 28px clamp(24px, 4vw, 56px);
  align-content: start;
  overflow-wrap: normal;
}
.cv-contact p {
  margin: 0;
  color: var(--ink);
}
.cv-contact .cv-label {
  margin-bottom: 6px;
  font: italic 400 1rem/1.4 var(--display);
  color: var(--muted);
}
/* Phone numbers, fax and addresses all read as plain values */
.cv-contact a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}
.cv-contact a:not(.button):hover {
  color: var(--claret);
  text-decoration: underline;
}
.cv-download {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}
.cv-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 14px clamp(28px, 5vw, 80px);
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--rule);
}
.section-links + .cv-section {
  border-top: 0;
}
.cv-section > h2,
.cv-section > h3 {
  position: sticky;
  top: 72px;
  align-self: start;
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cv-entries {
  max-width: 72ch;
}
.cv-entries p {
  margin: 0 0 0.85em;
}
.cv-entries p:last-child {
  margin-bottom: 0;
}
.cv-entries b {
  font-weight: 600;
  color: var(--ink);
}
.cv-publications > h2 {
  margin: clamp(40px, 5vw, 72px) 0 4px;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}
@media (max-width: 1200px) {
  .cv-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .cv-intro {
    grid-template-columns: 1fr;
  }
  .cv-portrait {
    grid-column: 1;
    max-width: 260px;
  }
  .cv-contact {
    grid-row: 2;
  }
}
@media (max-width: 700px) {
  .cv-section {
    grid-template-columns: 1fr;
  }
  .cv-section > h2,
  .cv-section > h3 {
    position: static;
  }
  /* Hint that the section menu scrolls sideways */
  .section-links {
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
}
@media (max-width: 560px) {
  /* Address, email and web get full rows; phone and fax share one */
  .cv-contact > div:nth-child(1),
  .cv-contact > div:nth-child(4),
  .cv-contact > div:nth-child(5) {
    grid-column: 1 / -1;
  }
}
@media print {
  .section-links,
  .cv-portrait,
  .cv-download {
    display: none;
  }
  .cv-section > h2,
  .cv-section > h3 {
    position: static;
  }
}

/* Books */
.book-entry {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 28px clamp(36px, 6vw, 96px);
  align-items: start;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--rule);
}
.book-entry:first-child {
  padding-top: 0;
  border-top: 0;
}
/* Each cover stays in view while its description is read */
.book-entry figure {
  position: sticky;
  top: 32px;
  margin: 0;
}
.book-entry img {
  display: block;
  width: 100%;
  box-shadow: 0 18px 28px -16px rgb(20 24 36 / 0.55);
}
.book-copy {
  max-width: 68ch;
}
.book-copy h2 {
  margin-bottom: 0.7em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}
.book-copy p {
  margin-bottom: 1em;
}
.book-copy p:last-child {
  margin: 1.6em 0 0;
}
/* Purchase links read as buttons */
.book-copy p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 0.9375rem/1.2 var(--sans);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.book-copy p:last-child a:hover {
  background: var(--ink);
  color: var(--paper);
}
.books-page .international {
  margin-top: 0;
}
@media (max-width: 700px) {
  .book-entry {
    grid-template-columns: 1fr;
  }
  .book-entry figure {
    position: static;
    max-width: 200px;
  }
}
@media print {
  .book-entry figure {
    position: static;
  }
  .book-entry {
    break-inside: avoid;
  }
}

/* Links */
.resource-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 14px clamp(28px, 5vw, 80px);
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--rule);
}
.resource-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.resource-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.resource-list {
  max-width: 72ch;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Lists stay in the right-hand column, even in sections without a heading */
.resource-section > .resource-list {
  grid-column: 2;
}
.resource-list li + li {
  border-top: 1px solid var(--rule);
}
.resource-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.resource-list li:first-child a {
  padding-top: 0;
}
.resource-list a:hover {
  color: var(--claret);
  text-decoration: underline;
}
/* A small mark tells what each link opens: a document, a film, a book, or
   a password-protected resource */
.resource-list a {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
}
.resource-list a::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  transform: translateY(3px);
  background-color: var(--claret);
  -webkit-mask: var(--resource-icon) center / contain no-repeat;
  mask: var(--resource-icon) center / contain no-repeat;
}
.resource-list a[href$=".pdf"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h8l4.5 4.5v14.5H6z'/%3E%3Cpath d='M14 2.5V7h4.5M9 12h6M9 15.5h6'/%3E%3C/svg%3E");
}
.resource-list a[href*="icarusfilms.com"],
.resource-list a[href*="fanlight.com"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M10 8.5l5.5 3.5-5.5 3.5z' fill='black' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.resource-list a[href^="/links/courses/"],
.resource-list a[href^="/links/recordings/"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10.5' rx='1.5'/%3E%3Cpath d='M8.5 10.5v-3a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E");
}
.resource-list a[href*="amazon.com"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h6a2 2 0 0 1 2 2v13a1.5 1.5 0 0 0-1.5-1.5H4zM20 5h-6a2 2 0 0 0-2 2v13a1.5 1.5 0 0 1 1.5-1.5H20z'/%3E%3C/svg%3E");
}
/* Behind the password: what each file is, rather than a lock */
.resource-page .resource-list a[href$=".ppt"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='12' rx='1'/%3E%3Cpath d='M12 16.5V20M8.5 20h7'/%3E%3C/svg%3E");
}
.resource-page .resource-list a[href$=".mp3"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3.5' y='13.5' width='4' height='6.5' rx='1'/%3E%3Crect x='16.5' y='13.5' width='4' height='6.5' rx='1'/%3E%3C/svg%3E");
}
.resource-page .resource-list a[href^="/links/recordings/"][href$="/"] {
  --resource-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h6l2 2h10v11H3z'/%3E%3C/svg%3E");
}
@media (max-width: 700px) {
  .resource-section {
    grid-template-columns: 1fr;
  }
  .resource-section > .resource-list {
    grid-column: auto;
  }
}

/* Forms */
label {
  display: block;
  margin: 0 0 6px;
  font: 500 0.9375rem/1.4 var(--sans);
  color: var(--ink);
}
input:not([type="checkbox"]):not([type="hidden"]),
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgb(28 37 54 / 0.35);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.2s ease;
}
input:not([type="checkbox"]):not([type="hidden"]):hover,
textarea:hover {
  border-color: rgb(28 37 54 / 0.6);
}
input:not([type="checkbox"]):not([type="hidden"]):focus,
textarea:focus {
  border-color: var(--ink);
}
.error {
  color: var(--claret-deep);
}
.success {
  color: #1b5e3a;
}

/* Password screen for the protected courses and recordings */
.resource-access {
  max-width: 520px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--mat);
  border: 1px solid var(--rule);
}
.resource-access h2 {
  margin-bottom: 0.5em;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.resource-access > p {
  margin-bottom: 0;
}
.resource-access .error {
  margin: 18px 0 0;
  padding: 10px 14px;
  background: var(--raindrops-on-roses);
}
.resource-access form {
  margin-top: 24px;
}
.resource-access .button {
  margin-top: 18px;
}
.resource-back {
  margin: 24px 0 0;
  font-size: 0.9375rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(36px, 6vw, 96px);
  align-items: start;
  padding: 0 var(--pad) var(--section);
}
/* Details: the same labeled groups as on the CV */
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 28px clamp(28px, 4vw, 56px);
  overflow-wrap: normal;
}
.contact-list > div:nth-child(1),
.contact-list > div:nth-child(4),
.contact-list > div:nth-child(5) {
  grid-column: 1 / -1;
}
.contact-list p,
.contact-list address {
  margin: 0;
  color: var(--ink);
}
.contact-list strong {
  font-weight: 600;
}
.contact-list .contact-label {
  margin-bottom: 6px;
  font: italic 400 1rem/1.4 var(--display);
  color: var(--muted);
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--claret);
  text-decoration: underline;
}
.contact-portrait {
  max-width: 460px;
  margin-top: clamp(40px, 5vw, 56px);
}
.contact-portrait img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* The message form sits on a light card */
.contact-panel {
  padding: clamp(28px, 4vw, 48px);
  background: var(--mat);
  border: 1px solid var(--rule);
}
.contact-panel h2 {
  margin-bottom: 0.7em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}
#contact-form > label:not(.consent) {
  margin-top: 20px;
}
#contact-form > label:first-of-type {
  margin-top: 0;
}
#contact-form label > span {
  font-weight: 400;
  color: var(--muted);
}
#contact-form textarea {
  min-height: 180px;
  resize: vertical;
}
.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 24px 0;
  font-weight: 400;
  line-height: 1.5;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
#contact-form .button span {
  margin-left: 12px;
}
/* Reply page shown after submitting without JavaScript */
.form-response {
  max-width: 560px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--mat);
  border: 1px solid var(--rule);
}
.form-response p {
  margin: 0 0 24px;
  color: var(--ink);
}
/* Spam trap: present for bots, invisible and unreachable for people */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#form-status {
  margin: 20px 0 0;
  font-size: 0.9375rem;
}
#form-status.error,
#form-status.success {
  padding: 12px 16px;
}
#form-status.error {
  background: var(--raindrops-on-roses);
}
#form-status.success {
  background: var(--almost-aqua);
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .contact-portrait {
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-portrait {
    max-width: 340px;
  }
}

/* Wide tablet */
@media (max-width: 1100px) {
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-portrait {
    grid-column: 1 / -1;
  }
  .services-portrait img {
    aspect-ratio: 16 / 9;
    object-position: 50% 25%;
  }
  .lni-approvals {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lni-approval p {
    max-width: 80ch;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .symposium-feature,
  .event-heritage,
  .lni-intro {
    grid-template-columns: 1fr;
  }
  .symposium-image,
  .lni-screenshot {
    max-width: 520px;
  }
  .services-head {
    grid-template-columns: 1fr;
  }
  .book-title {
    font-size: 0.9375rem;
  }
  .profile-cards {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .profile-card p {
    max-width: 62ch;
  }
}

/* Mobile navigation */
@media (max-width: 800px) {
  .header-inner {
    padding-block: 18px;
    column-gap: 12px;
  }
  .menu-button:not([hidden]) {
    display: inline-flex;
  }
  #navigation {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
  }
  #navigation a {
    min-height: 48px;
    font: 400 1.5rem/1 var(--display);
    background-position: 0 80%;
    justify-content: flex-start;
    align-self: flex-start;
  }
  body.js-ready #navigation:not(.is-open) {
    display: none;
  }
  .hero-lede {
    max-width: 52ch;
  }
  .hero-copy > .text-link {
    position: static;
    margin-top: 20px;
    animation: none;
  }
  .welcome {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

/* Phones */
@media (max-width: 700px) {
  .book-title {
    font-size: 1rem;
  }
  .welcome {
    grid-template-columns: 1fr;
  }
  .welcome-portrait {
    position: static;
    max-width: 340px;
  }
  .symposium-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .lni-approvals {
    padding: 22px 20px;
  }
  .lni-fold summary {
    padding: 20px 56px 20px 20px;
  }
  .lni-fold summary::before,
  .lni-fold summary::after {
    right: 22px;
  }
  .lni-fold-body {
    padding: 0 20px 24px;
  }
  .lni-course-list,
  .lni-live-list {
    grid-template-columns: 1fr;
  }
  .lni-course-list {
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .service-cards {
    grid-template-columns: 1fr;
  }
  .services-portrait img {
    aspect-ratio: 4 / 3;
  }
  .practice-card {
    grid-template-columns: 1fr;
  }
  .practice-contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .book-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .translation-gallery img {
    width: 150px;
    height: 150px;
  }
  .footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .hero-name {
    font-size: clamp(2.9rem, 15.5vw, 4.6rem);
    line-height: 0.95;
  }
  .hero-portrait img {
    aspect-ratio: 1;
  }
  .wordmark {
    font-size: 1.2rem;
  }
}
@media (max-width: 560px) {
  /* Address and email get full rows; phone and fax share one */
  .footer-contact > div:nth-child(1),
  .footer-contact > div:nth-child(4) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 360px) {
  .wordmark span {
    display: none;
  }
  .lni-live-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .book-card:hover img,
  .heritage-card:hover .heritage-photo {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none !important;
  }
  body,
  .room {
    background: #fff;
    color: #000;
  }
  .frame {
    box-shadow: none;
    padding: 0;
  }
  .translation-set[aria-hidden] {
    display: none;
  }
  .service-card,
  .profile-card {
    break-inside: avoid;
  }
}
