@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap');

:root {
  --paper: #faf7f2;
  --ink: #30312d;
  --muted: #72736b;
  --olive: #747a4e;
  --olive-deep: #4d5730;
  --orange: #d98770;
  --orange-dark: #b96451;
  --line: #ddd7ca;
  --wash: #f0ecdf;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  position: relative;
}

a,
a:visited {
  color: var(--olive);
}

a:hover,
a:focus-visible {
  color: #5e653b;
}

.navbar {
  background: transparent !important;
  border-bottom: 0;
  box-shadow: none;
  padding: .8rem 1.25rem;
}

#quarto-header {
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-index {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: .75rem 1.35rem;
  position: fixed;
  right: 0;
  top: 1.25rem;
  z-index: 1000;
}

.site-name {
  color: var(--olive-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(250, 247, 242, .8);
  white-space: nowrap;
}

.site-clover {
  color: var(--olive);
  fill: currentColor;
  height: .86em;
  margin-left: .2em;
  position: relative;
  top: .08em;
  vertical-align: baseline;
  width: .86em;
}

.site-clover-stem {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.external-link-icon {
  fill: none;
  height: .8em;
  margin-left: .14em;
  position: relative;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  top: -.02em;
  vertical-align: middle;
  width: .8em;
}

.site-links {
  display: flex;
  gap: 1.25rem;
}

.site-menu-toggle {
  display: none;
}

.site-links a {
  border-bottom: 1px solid transparent;
  color: var(--olive-deep);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(250, 247, 242, .8);
}

.site-links a:hover, .site-links a.is-active {
  border-bottom-color: var(--orange);
  color: var(--olive-deep);
}

.navbar-brand, .navbar-title {
  color: var(--olive) !important;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

#quarto-header .navbar-brand,
#quarto-header .navbar-brand .navbar-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
}

#title-block-header {
  display: none;
}

#title-block-header h1.title {
  color: #20211f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem) !important;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 !important;
}

#title-block-header h1.title::after {
  color: var(--olive);
  content: " ✦";
  font-size: .62em;
  vertical-align: middle;
}

.navbar-nav .nav-link {
  color: var(--olive) !important;
  font-size: .85rem;
  padding: .45rem .7rem !important;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: #5e653b !important;
}

#quarto-content { min-height: calc(100vh - 150px); }

main.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.3rem 1.4rem 5.25rem;
}

main.content > header#title-block-header { display: none; }

.page-body {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 980px;
  padding: 0 1.4rem 5.25rem;
}

.hero {
  aspect-ratio: 19 / 5;
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  width: 100vw;
  background: var(--wash);
}

.hero > p {
  height: 100%;
  margin: 0;
  width: 100%;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-hero,
.teaching-hero,
.workshop-hero,
.miscellaneous-hero {
  margin-top: -3.3rem;
  position: relative;
}

/* Fixed focal points keep each banner composition stable as the window changes. */
.research-hero img { object-position: center 30%; }
.teaching-hero img { object-position: center 53%; }
.workshop-hero img { object-position: center 78%; }
.miscellaneous-hero img { object-position: center 60%; }

.research-hero h1,
.teaching-hero h1,
.workshop-hero h1,
.miscellaneous-hero h1 {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.photo-location {
  bottom: .85rem;
  color: rgba(48, 49, 45, .78);
  font-family: "Newsreader", Georgia, serif;
  font-size: .74rem;
  font-style: italic;
  letter-spacing: .01em;
  position: absolute;
  right: 1.35rem;
  z-index: 3;
}

.home-banner .photo-location {
  bottom: .85rem;
  right: 1.35rem;
}

.research-hero::after,
.teaching-hero::after,
.workshop-hero::after,
.miscellaneous-hero::after {
  background: rgba(250, 247, 242, .58);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-placeholder {
  align-items: center;
  background:
    linear-gradient(125deg, rgba(116, 122, 78, .14), transparent 48%),
    linear-gradient(305deg, rgba(217, 135, 112, .22), transparent 55%),
    var(--wash);
  display: flex;
  height: min(32vw, 325px);
  justify-content: center;
  text-align: center;
}

.hero-placeholder span {
  color: var(--olive);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-style: italic;
}

.home-page {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -3.3rem;
  width: 100vw;
}

.home-banner {
  align-items: center;
  aspect-ratio: 19 / 5;
  background-color: var(--wash);
  background-image:
    linear-gradient(rgba(250, 247, 242, .61), rgba(250, 247, 242, .61)),
    url("assets/images/home/home-background.jpg?v=tulips");
  background-position: center 45%;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  position: relative;
  text-align: center;
}

.home-banner h1,
.research-hero h1,
.teaching-hero h1,
.workshop-hero h1,
.miscellaneous-hero h1 {
  color: #657047;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 4.1vw, 3.5rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 0;
}

.home-banner h1::after,
.research-hero h1::after,
.teaching-hero h1::after,
.workshop-hero h1::after,
.miscellaneous-hero h1::after {
  background: linear-gradient(90deg, var(--orange) 0 48%, var(--olive) 48% 100%);
  content: "";
  display: block;
  height: 2px;
  margin: .48rem auto 0;
  width: 2.3rem;
}

.home-lyric {
  color: #767676;
  font-family: Newsreader, Georgia, serif;
  font-size: .93rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 1100px;
  padding: 2.4rem 1.4rem 2.85rem;
  text-align: center;
}

.home-lyric cite {
  color: #868686;
  font-family: Inter, Arial, sans-serif;
  font-size: .73rem;
  font-style: normal;
  margin-left: .25rem;
}

.home-content {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.4rem 1.4rem 5rem;
}

.home-portrait { margin: 0; }

.home-portrait img {
  display: block;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center 45%;
  width: 100%;
}

.home-portrait .home-photo-location {
  display: block;
  margin-top: .55rem;
  position: static;
  text-align: right;
}

.home-copy { align-self: center; }

.home-copy h2 {
  border: 0;
  color: #20211f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 .65rem;
  padding: 0;
}

.home-copy p { margin: 0 0 1.15rem; }

.home-copy .home-email {
  color: var(--muted);
  font-size: .94rem;
  margin: .35rem 0 .8rem;
}

.home-email a {
  border-bottom: 1px solid var(--olive);
  color: var(--olive-deep);
  text-decoration: none;
}

.home-email a:hover { color: #364021; }

.home-copy .role {
  margin-bottom: 1.75rem;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .98;
  margin: 0 0 .6rem;
}

h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.1;
  margin: 4rem 0 1.3rem;
  padding-top: 1.35rem;
}

.teaching-section-title,
.workshop-section-title,
.miscellaneous-section-title {
  font-size: clamp(1.38rem, 2.2vw, 1.7rem);
}

.anchorjs-link { display: none; }

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 2rem 0 .35rem;
}

.role {
  color: var(--olive);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 2.1rem;
}

.lede {
  font-size: 1.06rem;
  margin-bottom: 1.25rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  margin-top: 2rem;
}

.link-row a, .text-link {
  border-bottom: 1px solid var(--orange);
  color: var(--olive);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}

.link-row .is-placeholder {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}

.link-row a:hover, .text-link:hover { color: #5e653b; }

.is-placeholder {
  border-bottom-color: var(--line) !important;
  color: var(--muted) !important;
  cursor: default;
}

.lyric {
  color: #767676;
  font-family: Newsreader, Georgia, serif;
  font-size: .93rem;
  font-style: italic;
  line-height: 1.45;
  margin: 2.15rem auto 3.1rem;
  max-width: 760px;
  text-align: center;
}

/* Give every page the same uninterrupted banner-to-lyric transition as Home. */
.hero + .lyric {
  margin: 0 auto;
  max-width: 980px;
  padding: 2.4rem 1.4rem 2.85rem;
}

.lyric cite {
  color: #868686;
  display: inline;
  font-family: Inter, Arial, sans-serif;
  font-size: .73rem;
  font-style: normal;
  margin-left: .25rem;
  letter-spacing: .02em;
}

.music-link {
  color: var(--olive);
  font-size: .9rem;
  margin-left: .3rem;
  text-decoration: none;
}

.music-link:hover { color: #5e653b; }

.home-copy .link-row .is-orange {
  border-bottom-color: var(--orange);
  color: var(--olive);
}

.home-copy .link-row .is-olive {
  border-bottom-color: var(--olive);
  color: var(--olive);
}

.home-copy .link-row {
  align-items: center;
  gap: .45rem;
}

.link-separator {
  color: var(--olive);
  font-size: .8rem;
  margin: 0 .05rem;
}

.mail-symbol { color: var(--olive); }

.linkedin-icon {
  border: 1px solid currentColor;
  border-radius: 1px;
  display: inline-block;
  font-family: Inter, Arial, sans-serif;
  font-size: .62em;
  font-weight: 600;
  line-height: 1;
  margin-right: .18rem;
  padding: .05em .11em;
  position: relative;
  top: -.05em;
}

.link-icon {
  display: inline-block;
  height: .95em;
  margin-right: .16rem;
  position: relative;
  top: .12em;
  vertical-align: baseline;
  width: .95em;
}

.section-note { color: var(--muted); font-size: .96rem; }

.record {
  display: grid;
  gap: .3rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.05rem 0;
}

.record + .record { border-top: 1px solid var(--line); }
.record-title { font-weight: 600; }
.record-meta { color: var(--muted); font-size: .88rem; }
.record-date { color: var(--olive); font-size: .85rem; text-align: right; white-space: nowrap; }

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.gallery-card {
  border: 0;
  color: var(--ink);
  display: block;
  min-height: 235px;
  padding: 1.25rem;
  position: relative;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.gallery-card:nth-child(1) { background: linear-gradient(140deg, #e9ead7, #f6efe7); }
.gallery-card:nth-child(2) { background: linear-gradient(140deg, #ece4d8, #dde4d2); }
.gallery-card:nth-child(3) { background: linear-gradient(140deg, #e4e9e3, #eee5d6); }
.gallery-card:hover { background: #f4e4dc; color: var(--ink); transform: translateY(-3px); }

.gallery-number {
  color: var(--orange-dark);
  font-family: DM Mono, monospace;
  font-size: .7rem;
}

.gallery-card h3 { bottom: 1.1rem; left: 1.25rem; margin: 0; position: absolute; }
.gallery-card p { bottom: 3.7rem; color: var(--muted); font-size: .88rem; left: 1.25rem; margin: 0; position: absolute; right: 1.25rem; }

.empty-gallery {
  align-items: center;
  background: var(--wash);
  color: var(--muted);
  display: flex;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  justify-content: center;
  min-height: 240px;
  text-align: center;
}

.photo-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.photo-gallery figure { margin: 0; overflow: hidden; }
.photo-gallery img {
  aspect-ratio: 3 / 4;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-gallery .photo-landscape { grid-column: 1 / -1; }
.photo-gallery .photo-landscape img { aspect-ratio: 3 / 2; }

.photo-modules {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.35rem;
}
.photo-module h3 {
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 .55rem;
}
.photo-module h3 span {
  color: var(--orange-dark);
  font-family: DM Mono, monospace;
  font-size: .7rem;
  margin-right: .34rem;
}
.photo-frame {
  aspect-ratio: 4 / 3;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  padding: .55rem;
  place-items: center;
  position: relative;
}
.photo-slide {
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  position: relative;
  width: auto;
  z-index: 1;
}
.photo-slide[hidden] { display: none; }
.photo-nav {
  align-items: center;
  background: rgba(250, 247, 242, .84);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  height: 2rem;
  justify-content: center;
  opacity: 0;
  padding: 0 0 .13rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .18s ease, background-color .18s ease;
  width: 2rem;
  z-index: 2;
}
.photo-module:hover .photo-nav,
.photo-module:focus-within .photo-nav { opacity: 1; }
.photo-nav:hover { background: var(--paper); }
.photo-nav-prev { left: .6rem; }
.photo-nav-next { right: .6rem; }

.quarto-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

@media (max-width: 700px) {
  main.content { padding-top: 2.25rem; }
  .page-body { padding-bottom: 4rem; }
  .navbar-nav .nav-link { padding-left: .45rem !important; padding-right: .45rem !important; }
  .hero { margin-bottom: 0; }
  .research-hero,
  .teaching-hero,
  .workshop-hero,
  .miscellaneous-hero { margin-top: -2.25rem; }
  .hero,
  .home-banner { aspect-ratio: 9 / 5; }
  .home-banner h1 {
    font-size: 2.1rem;
    transform: translateY(.7rem);
  }
  .hero img { height: 100%; }
  .hero-placeholder { height: 45vw; }
  .home-page { margin-top: -2.25rem; }
  .photo-location { bottom: .55rem; font-size: .66rem; right: .8rem; }
  .site-index {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .55rem .8rem;
    top: 1rem;
  }
  .site-name { font-size: 1.02rem; }
  .site-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--olive-deep);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    height: 2rem;
    justify-content: center;
    padding: 0;
    transition: transform .16s ease;
    width: 2rem;
  }
  .site-menu-toggle:hover,
  .site-menu-toggle:focus-visible { background: transparent; transform: translateY(-1px); }
  .site-menu-toggle span { background: currentColor; border-radius: 1px; display: block; height: 1.5px; width: 1rem; }
  .site-links {
    align-items: flex-start;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
    gap: .1rem;
    margin: 0;
    max-width: none;
    padding: .2rem 0;
    position: absolute;
    right: .9rem;
    top: calc(100% + .2rem);
  }
  .site-index.is-open .site-links { display: flex; }
  .site-links a { font-size: .88rem; padding: .32rem 0; }
  .home-content { grid-template-columns: 1fr; padding-top: .7rem; }
  .home-portrait img { max-height: none; }
  .record { grid-template-columns: 1fr; }
  .record-date { text-align: left; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card { min-height: 190px; }
  .photo-gallery { grid-template-columns: 1fr; }
  .photo-gallery .photo-landscape { grid-column: auto; }
  .photo-modules { grid-template-columns: 1fr; }
}
