@font-face {
  font-family: 'Cormorant Unicase';
  src: url('fonts/cormorant-unicase-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Unicase';
  src: url('fonts/cormorant-unicase-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant SC';
  src: url('fonts/cormorant-sc-light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant SC';
  src: url('fonts/cormorant-sc-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('fonts/cormorant.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('fonts/cormorant-italic.ttf') format('truetype');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .25em; }
a:hover, a[aria-current="page"] { text-decoration-thickness: .15em; }
:focus-visible { outline: .18rem solid currentColor; outline-offset: .28rem; }
.classical[data-pointer-focus] :focus { outline: none; }
.skip { position: fixed; inset: 1rem auto auto 1rem; z-index: 2; padding: .65em 1em; background: white; color: black; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead, .section-nav, footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.masthead { justify-content: space-between; }
.mark { font-weight: bold; text-decoration: none; font-size: 1.4rem; }
.section-nav a { text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }
.subtitle { font-size: clamp(1.05rem, 2vw, 1.65rem); }
.section { scroll-margin-block-start: 1rem; }
.section p { max-width: 36ch; }
.topics { margin: .75rem 0 0; padding-inline-start: 1.2em; }
footer { padding: 1.5rem 0 2rem; }

.classical {
  --paper: #f6f1e7; --ink: #29241f; --body: 'Cormorant', Garamond, Georgia, serif;
  --rule: #a89a88; --accent: #77392d;
  --text-grey: #606060;
  --handwritten-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 5' preserveAspectRatio='none'%3E%3Cpath d='M1 3.7 Q25 1.3 47 2.6 T84 2.6 Q104 1.7 119 2.9' fill='none' stroke='%2377392d' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --heading-font: 'Cormorant SC', var(--body);
  color: var(--text-grey);
  font-weight: 300;
}
body.classical.book,
body.classical:not(.book) > footer { width: min(90%, 78rem); margin-inline: auto; }
body.classical:not(.book) #main > :is(.sections, .research-highlights) { width: min(88%, 76rem); margin-inline: auto; }
.classical .masthead { border-bottom: 1px solid var(--rule); padding: 1.3rem 0; }
.classical .sticky-masthead {
  position: sticky;
  top: .65rem;
  z-index: 5;
  margin-inline: clamp(.65rem, 1.5vw, 1.5rem);
  margin-bottom: calc(-1 * var(--masthead-height, 6rem));
  padding: .85rem max(3%, calc((100% - 78rem) / 2));
  padding-inline-start: max(2.4%, calc((100% - 78rem) / 2.5));
  border: 1px solid #8d786e45;
  border-radius: .8rem;
  background: color-mix(in srgb, var(--paper) 87%, transparent);
  box-shadow: 0 .2rem .8rem #29241f1f;
}
.sticky-masthead .section-nav { font-size: calc(1.1rem + 2pt); }
.sticky-masthead:has(.language-switcher) .section-nav { margin-inline-start: auto; }
.language-switcher { display: flex; align-items: center; gap: .38em; font: .95rem/1.3 var(--body); margin-inline-start: auto; }
.sticky-masthead .language-switcher { margin-inline-start: 0; }
.language-switcher a { text-decoration: none; }
.language-switcher a[aria-current] { color: var(--accent, var(--ink)); font-weight: 700; }
.chooser > .language-switcher { justify-content: flex-end; padding: 1rem 5% 0; }
html:has(.sticky-masthead) { scroll-padding-top: calc(var(--masthead-height, 6rem) + 1rem); }
.classical .mark { color: var(--accent); }
.classical main :is(h1, h2, h3, h4, h5, h6, .hero-motto, .title-with-tree, .about-sidebar dt),
.classical .sticky-masthead .section-nav { font-family: var(--heading-font); }
.classical :is(h1, h2, .section-nav, .hero-motto, .back-link, .publication-title, .title-with-tree) { color: var(--accent); }
.classical :is(.reader-prose h2, .reader-rail-label, .reader-tags .reader-tag-label) { color: var(--text-grey); }
.wordmark { display: inline-flex; align-items: center; gap: .3em; margin-inline-start: -.3rem; font-size: 1.862rem; white-space: nowrap; }
.wordmark-tree { width: .72em; height: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.wordmark-thoughts { display: block; font: 300 .76705em/1.15 var(--heading-font); letter-spacing: .08em; }
.wordmark .wordmark-tree { overflow: visible; }
.tree-leaf { opacity: 0; fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wordmark:hover .wordmark-thoughts > span {
    animation: wordmark-letter .09s steps(1, end) calc(var(--letter-index) * .09s) both;
  }
  .wordmark:hover .tree-branches { transform-origin: 11px 30px; animation: tree-shake .48s ease-out; }
  .wordmark:hover .tree-leaf { animation: tree-leaf-fall .95s ease-in both; }
  .wordmark:hover .tree-leaf:last-child { animation-delay: .13s; --leaf-drift: 6px; }
}
@keyframes wordmark-letter { from { opacity: 0; } to { opacity: 1; } }
@keyframes tree-shake {
  22% { transform: rotate(-4deg); }
  46% { transform: rotate(3deg); }
  70% { transform: rotate(-1.5deg); }
}
@keyframes tree-leaf-fall {
  12%, 70% { opacity: 1; }
  50% { transform: translate(1px, 12px) rotate(55deg); }
  to { opacity: 0; transform: translate(var(--leaf-drift, -5px), 29px) rotate(125deg); }
}
.classical .hero { padding-block-end: clamp(1.75rem, 5vw, 4rem); text-align: center; }
.hero-artwork { margin: 0; }
:is(.hero-artwork, .section-artwork) img { display: block; width: 100%; height: auto; border-radius: .8rem; }
.hero-artwork .hero-credit { padding-inline: 1rem; }
.hero-motto { width: 88%; margin: .7rem auto 0; font-size: calc(clamp(1.4rem, 3vw, 2.3rem) + 24pt); font-style: italic; }
@media (max-width: 26rem) {
  body:has(.language-switcher) .hero-motto { font-size: min(calc(1.4rem + 24pt), 11vw); }
}
.motto-typing { display: inline-grid; text-align: start; }
.motto-typing > span { grid-area: 1 / 1; }
.motto-typing:has(.motto-animated) > :first-child { opacity: 0; }
.motto-spacer { visibility: hidden; }
.motto-animated::after {
  content: '';
  display: inline-block;
  position: absolute;
  width: 1px;
  height: .9em;
  margin: .34em 0 0 .1em;
  background: currentColor;
}
.motto-pulsing::after { animation: motto-pulse var(--motto-pulse-duration) ease-in-out infinite; }
@keyframes motto-pulse { 50% { opacity: .15; } }
.hero-introduction { width: min(90%, 112ch); margin: 1rem auto 1.25rem; font-size: 1.125rem; text-align: start; }
.hero-introduction p { font-size: calc(1em + 5pt); }
.hero-introduction p + p { margin-top: .85rem; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.25rem; margin-top: .85rem; }
.hero-links a, .publication-links a, .contact-button, .back-link {
  display: inline-block;
  padding: .3rem .9rem;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  font-size: .875rem;
  text-decoration: none;
}
.hero-credit { margin-top: .25rem; color: var(--text-grey); font-size: .75rem; text-align: right; }
.classical .section { padding: 2.15rem clamp(1rem, 4vw, 3rem); position: relative; font-size: calc(1rem + 2pt); }
.classical .section::before {
  content: '';
  position: absolute;
  inset-block-start: var(--rule-offset, 1.8rem);
  inset-inline-start: var(--rule-position, 0);
  height: min(var(--rule-length, 4rem), 55%);
  border-inline-start: 1px solid var(--rule);
}
.classical #research { --rule-position: 100%; --rule-length: 8rem; }
.classical #music { --rule-offset: 1.1rem; --rule-length: 2.5rem; }
.classical #teaching { --rule-offset: 5rem; --rule-length: 7rem; }
.classical #literature { --rule-position: 100%; --rule-offset: 3rem; --rule-length: 5rem; }
.classical #about { --rule-length: 6rem; }
.classical h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 300; margin-bottom: .6em; }
.classical .section h2 { font-size: calc(clamp(1.7rem, 3vw, 2.8rem) + 2pt); }
.music-construction p { max-width: none; margin: 0 0 .65rem; font-size: clamp(1.4rem, 4vw, 3rem); text-align: center; }
.music-construction img { display: block; width: 100%; height: auto; border-radius: .8rem; border: 1px solid var(--ink); }
.research-highlights {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  padding: 0 clamp(0rem, 2vw, 2rem) 2.5rem;
  font-size: calc(1rem + 2pt);
}
.research-highlights section:first-child { padding-inline-end: clamp(1rem, 3vw, 2.5rem); }
.research-highlights section + section { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(1rem, 3vw, 2.5rem); }
.research-highlights h3 { font-weight: 300; line-height: 1.2; }
.research-highlights p + p { margin-top: .85em; }
.recent-writings { list-style: none; margin: 0; padding: 0; }
.recent-writings li + li { margin-top: 1em; }
.recent-writing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25em .65em; margin-top: .3em; font-size: .85em; }
.publication-type-badge, .hero-links a, .back-link, .ongoing-more {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: .3rem;
  padding: .08rem .45rem;
  font: 600 .875rem/1.2 'Cormorant Unicase', var(--body);
}
.hero-links a, .back-link { padding-block: .25rem; }
.ongoing-more { text-decoration: none; }
@media (max-width: 44rem) {
  .research-highlights { grid-template-columns: 1fr; gap: 2rem; }
  .research-highlights section:first-child { padding-inline-end: 0; }
  .research-highlights section + section { border-inline-start: 0; padding-inline-start: 0; }
}

.swiss { --paper: #edf0ec; --ink: #111511; --body: Helvetica, Arial, sans-serif; --accent: #c63220; }
body.swiss { padding-inline: clamp(1rem, 4vw, 5rem); }
.swiss .masthead { padding-block: 1rem; border-bottom: 2px solid; }
.swiss .opening { display: grid; grid-template-columns: 2.3fr 1fr; border-bottom: 2px solid; }
.swiss .hero { align-self: end; padding: clamp(2rem, 7vw, 7rem) 1rem 1.5rem 0; }
.swiss h1 { max-width: 9ch; font-size: clamp(3rem, 11vw, 11rem); letter-spacing: -.085em; line-height: .88; }
.swiss .subtitle { margin-top: 1.5rem; font-weight: bold; }
.swiss-index { display: grid; align-content: end; background: var(--accent); color: white; padding: clamp(1rem, 3vw, 3rem); }
.swiss-index a { border-top: 1px solid; padding: .5em 0; font-size: clamp(1rem, 2vw, 2rem); display: block; font-weight: bold; text-decoration: none; }
.swiss-index a:hover { text-decoration: underline; }
.swiss .section { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-bottom: 1px solid; padding: 1.4rem 0; }
.swiss h2 { font-size: clamp(1.75rem, 4vw, 4rem); letter-spacing: -.055em; }
.swiss .topics { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; list-style: none; padding: 0; }
.swiss .topics li { border-bottom: 1px solid #767a75; }

.monochrome { --paper: #161616; --ink: #f3f3ef; --body: Arial, sans-serif; --rule: #646464; }
body.monochrome { padding-inline: clamp(1rem, 5vw, 6rem); }
.monochrome .masthead { border-bottom: 1px solid var(--rule); padding: 1.15rem 0; }
.monochrome .opening { display: grid; grid-template-columns: 1fr 1fr; min-height: min(35rem, 75vh); align-items: center; }
.monochrome .hero { padding: 3rem 0; }
.monochrome h1 { font: 400 italic clamp(3rem, 8vw, 8rem)/.92 Georgia, serif; letter-spacing: -.06em; max-width: 8ch; }
.monochrome .subtitle { margin-top: 1.4rem; letter-spacing: .08em; }
.score { display: grid; gap: clamp(1rem, 3vw, 3rem); padding: 2.5rem 0; }
.score i { height: 1px; background: #aaa; position: relative; }
.score i::before { content: ''; position: absolute; inset: -.45rem auto auto var(--beat, 15%); width: clamp(1.5rem, 6vw, 6rem); height: .9rem; background: #f3f3ef; }
.score i:nth-child(2) { --beat: 48%; }
.score i:nth-child(3) { --beat: 29%; }
.score i:nth-child(4) { --beat: 70%; }
.score i:nth-child(5) { --beat: 56%; }
.monochrome .sections { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(1rem, 6vw, 6rem); }
.monochrome .section { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.monochrome h2 { font: 400 clamp(2rem, 4vw, 4.2rem)/1 Georgia, serif; margin-bottom: .4em; }

.chooser { --paper: #f6f5f0; --ink: #1b1b1b; --body: Arial, sans-serif; }
.gallery { max-width: 78rem; margin: auto; padding: clamp(2rem, 7vw, 6rem) 5%; }
.gallery h1 { font: 400 clamp(3rem, 8vw, 7rem)/1 Georgia, serif; letter-spacing: -.055em; margin: .2em 0; }
.designs { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sample { color: var(--ink); background: var(--paper); font-family: var(--body); display: grid; align-content: end; min-height: 13rem; height: 100%; padding: 1.25rem; border: 1px solid #767676; }
.sample.swiss { border-top: .8rem solid var(--accent); }
.sample strong { font-size: 1.5rem; }
.sample span { margin-top: .5rem; }

@media (max-width: 48rem) {
  .designs { grid-template-columns: 1fr; }
  .sample { min-height: 8rem; }
}
@media (max-width: 38rem) {
  .swiss .opening, .swiss .section, .monochrome .opening, .monochrome .sections { grid-template-columns: 1fr; }
  .swiss-index { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .monochrome .opening { min-height: auto; }
  .score { padding: .5rem 0 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(body.classical) { scroll-behavior: smooth; }
}

.classical .section h3 { font-size: calc(1.17rem + 2pt); font-weight: 300; }
.subsection-list { margin-block: 0; padding-inline-start: 1.1em; }
.subsection-list li::marker { content: ''; }
.classical .section .subsection-list h3 { margin-block: .55em; font-size: calc(1.17rem + 3pt); }
.classical .section a { overflow-wrap: anywhere; }
.classical .about-profile {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.6fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  max-width: 64rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 5rem);
}
.about-portrait { width: min(100%, 15rem); margin: 0; }
.about-profile img { display: block; width: 100%; height: auto; }
.about-profile img, .section-artwork img { border: 1px solid var(--ink); border-radius: .8rem; }
.about-sidebar { container-type: inline-size; }
.about-sidebar dl { margin: 1rem 0 0; font-size: calc(1rem + 3pt); }
.about-sidebar dt { color: var(--accent); font-style: italic; font-weight: 700; margin-top: 1rem; }
.about-sidebar dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.about-affiliations { margin: 0; padding-inline-start: 1em; }
.about-affiliations li::marker { font-size: .6em; }
.about-sidebar a[href^="mailto:"] { font-size: min(.875rem, 5.5cqi); white-space: nowrap; }
@media (width > 44rem) {
  .about-sidebar {
    position: sticky;
    inset-block-start: 1rem;
    max-block-size: calc(100dvh - 2rem);
    overflow-y: auto;
  }
}
.about-story { font-size: 1.2rem; }
.classical .about-story :is(h1, h2) { font-size: calc(clamp(1.7rem, 3vw, 2.8rem) - 5pt); font-weight: 300; margin-bottom: .6em; }
.about-story p + p { margin-top: .8em; }
.about-story h2 { margin-top: 1.6em; }
.about-story ul { padding-inline-start: 1.2em; }
.about-story li + li { margin-top: .75em; }
.classical .about-details p { max-width: 60ch; margin-bottom: .75rem; }
.about-links { display: flex; align-items: center; gap: .65rem; }
.about-links a + a { border-inline-start: 1px solid var(--rule); padding-inline-start: .65rem; }
.classical .about-details .about-contact h3 { font-size: 1.1rem; font-weight: 700; margin: .65rem 0 .35rem; }

.book-main { max-width: 44rem; margin-inline: auto; }
.book-title, .book-contents, .poem { padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.book-title h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; }
.book-title p { margin-top: .75rem; font-size: 1.2rem; }
.book-contents ol { columns: 2; column-gap: 2rem; padding-inline-start: 1.6rem; }
.book-contents li { break-inside: avoid; margin-bottom: .45rem; }
.poem p { white-space: pre-wrap; overflow-wrap: break-word; margin-bottom: 1em; }
.publication { padding-block: 2rem; border-bottom: 1px solid var(--rule); }
.classical .publication p { max-width: none; }
.classical .publication h3 { font-weight: 300; font-size: calc(1.45rem + 2pt); line-height: 1.15; margin: .4rem 0; }
.publication h4 { font-size: 1rem; margin-bottom: .35rem; }
.publication-meta { color: var(--text-grey); }
.publication-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1rem; }
.sliding-section[data-animating] { overflow: clip; }
.row-panel[hidden] { display: none; }
.ongoing-panels { position: relative; }
.ongoing-panels > [data-panel="overview"][hidden] { display: block; visibility: hidden; }
.dissertation-panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior-y: contain; padding-inline-end: .5rem; }
.dissertation-panel h2 { font-size: 1.4rem; line-height: 1.15; margin-top: 1em; }
.dissertation-panel h2:nth-child(2) { margin-top: 0; }
.row-return { display: inline-block; margin-bottom: 1rem; }

@media (max-width: 34rem) {
  .book-contents ol { columns: 1; }
}
@media (max-width: 44rem) {
  .classical .about-profile { grid-template-columns: 1fr; }
  .about-story { grid-row: 1; }
}

.illustrated-section {
  --artwork-width: 25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--artwork-width));
  gap: 1.5rem;
  align-items: start;
}
#research .illustrated-section { --artwork-width: 50rem; }
#research .section-artwork { width: min(100%, 24rem); justify-self: center; }
#literature .illustrated-section { --artwork-width: 34rem; }
.section-artwork { margin: 0; }
@media (min-width: 42.01rem) {
  :is(#research, #literature) .illustrated-section {
    grid-template-columns: minmax(0, min(72%, var(--artwork-width))) minmax(0, 1fr);
  }
  :is(#research, #literature) .section-artwork { grid-area: 1 / 1; }
  :is(#research, #literature) .illustrated-section > div { grid-area: 1 / 2; }
}
@media (max-width: 42rem) {
  .illustrated-section { grid-template-columns: 1fr; }
  .section-artwork { width: min(100%, var(--artwork-width)); }
}

@media (hover: hover) {
  .artwork-reveal { position: relative; }
  .artwork-reveal .hero-credit {
    position: absolute;
    inset: auto .75rem .75rem auto;
    width: fit-content;
    max-width: calc(100% - 1rem);
    margin: 0;
    padding: .35rem .75rem;
    border-radius: 1rem;
    background: #221f1dec;
    color: #fff;
    text-align: center;
    opacity: 0;
    pointer-events: none;
  }
  .artwork-reveal:is(:hover, :focus-visible) .hero-credit { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .artwork-reveal .hero-credit { transition: opacity .24s ease; }
}

@media (hover: hover) {
  .classical a:not(.skip, .browse-tags a), .lesson-subheading .heading-with-tree {
    text-decoration: none;
    background-image: var(--handwritten-line);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 3px;
  }
  .classical a:not(.skip, .browse-tags a):is(:hover, :focus-visible),
  .lesson-subheading :is(h2, h3):hover .heading-with-tree {
    text-decoration: none;
    background-size: 100% 3px;
  }
  .classical a:not(.skip, .browse-tags a):hover, .lesson-subheading :is(h2, h3):hover .heading-with-tree { text-shadow: 0 .2rem .4rem #221f1d59; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .classical a:not(.skip, .browse-tags a), .lesson-subheading .heading-with-tree {
    position: relative;
    top: 0;
    transition: top .2s ease, text-shadow .2s ease;
  }
  .classical a:not(.skip, .browse-tags a):is(:hover, :focus-visible),
  .lesson-subheading :is(h2, h3):hover .heading-with-tree {
    transition: top .2s ease, text-shadow .2s ease, background-size .32s ease-out;
  }
  .classical a:not(.skip, .wordmark, .browse-tags a):hover, .lesson-subheading :is(h2, h3):hover .heading-with-tree { top: -.15rem; }
}

.publication-title { position: relative; }
.title-with-tree, .heading-with-tree { position: relative; }
:is(.publication-title, .title-with-tree, .heading-with-tree) .wordmark-tree {
  position: absolute;
  inset-inline-start: -.8em;
  inset-block-start: .05em;
  opacity: 0;
  pointer-events: none;
}
.heading-with-tree .wordmark-tree { inset-inline-start: -.95em; }
a:is(:hover, :focus-visible) > .heading-with-tree > .wordmark-tree { opacity: 1; }
.lesson-subheading :is(h2, h3):hover .wordmark-tree { opacity: 1; }
.title-with-tree:is(:hover, :focus-visible) .wordmark-tree { opacity: 1; }
.publication-word, .publication-word > span { display: inline-block; }
@media (hover: hover) {
  .publication-text:hover {
    background-color: #eee5d8;
    box-shadow: 0 .35rem .9rem #29241f26;
  }
  .publication-title > a:hover .wordmark-tree { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .publication-text { transition: box-shadow .2s ease, background-color .2s ease; }
  .publication-title { transition: translate .2s ease; }
  .publication-text:hover .publication-title { translate: .25rem 0; }
  .publication-title:hover .publication-word > span { animation: publication-shiver .26s ease-out; }
  .publication-title:hover .publication-word > span:nth-child(even) { animation-delay: .035s; }
}
@keyframes publication-shiver {
  25% { transform: translate(.35px, -.6px); }
  55% { transform: translate(-.35px, .4px); }
  80% { transform: translateY(-.25px); }
}

body.classical.article-reader { width: min(94%, 95rem); }
.classical.article-reader .masthead { border-bottom: 0; }
.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: clamp(2rem, 5vw, 4rem) 4rem; }
.reader-article { min-width: 0; }
.reader-article header { margin-bottom: 2.25rem; }
.reader-article h1 { font-size: calc(clamp(2rem, 4vw, 3.5rem) - 10pt); font-weight: 300; line-height: 1.1; }
.reader-article header p { margin-top: .75rem; }
.reader-article header .reader-article-type { margin: 0 0 .55rem; font-style: italic; }
.reader-doi { font-size: calc(1rem + 2pt); }
.reader-prose { font-size: 1.18rem; }
.reader-prose p { margin-bottom: .85rem; overflow-wrap: anywhere; }
.reader-article h2 { margin-top: 1.7rem; scroll-margin-top: 1.5rem; font-size: 1.55rem; line-height: 1.2; }
.reader-rail-label { font-size: 1.25rem; font-style: italic; }
.reader-contents .reader-rail-label { font-size: calc(1.25rem + 1pt); }
:is(.reader-contents, #reader-contents-dialog) ol { font-size: calc(1rem + 1pt); }
:is(.reader-contents, .reader-notes, #reader-contents-dialog) ol { list-style: none; padding: 0; margin: .65rem 0 0; }
:is(.reader-contents, #reader-contents-dialog) li { margin-bottom: .55rem; }
.reader-contents a { display: block; padding-inline-start: .55rem; border-inline-start: 2px solid transparent; }
.reader-contents a[aria-current] { color: var(--accent); font-weight: 700; border-inline-start-color: currentColor; }
.reader-record { margin: 0 0 1.35rem; }
.reader-record div + div { margin-top: .55rem; }
.reader-record dt, .reader-tags .reader-tag-label {
  color: var(--text-grey);
  font-size: calc(.875rem + 3pt);
  font-weight: 300;
  line-height: inherit;
}
.reader-record dd { margin: 0; font-size: calc(1rem + 3pt); }
.reader-notes > ol > li { padding-block: .4rem; overflow-wrap: anywhere; }
.reader-notes > ol > li:is(:target, :focus) { background: #eee5d8; }
.note-number, .note-marker { color: var(--accent); font-weight: 700; }
.note-marker { margin-inline-start: .1em; }
.note-return { font-size: .875rem; }
.classical .publication-title > a { display: block; }
.reader-contents-trigger, .reader-dialog-header button {
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  padding: .3rem .85rem;
  cursor: pointer;
}
#reader-contents-dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .8rem .8rem 0 0;
  margin: auto auto 0;
  width: min(100%, 34rem);
  max-height: 75dvh;
}
#reader-contents-dialog::backdrop { background: #29241f70; }
.reader-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.reader-dialog-header h2 { margin-bottom: 0; }

@media (max-width: 64.999rem) {
  .reader-dialog-ready .reader-contents { display: none; }
  .reader-contents-trigger { position: fixed; z-index: 2; inset: auto 1rem 1rem auto; box-shadow: 0 .2rem .6rem #29241f26; }
}

@media (min-width: 65rem) {
  .reader-layout { grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr) minmax(11rem, 1.35fr); gap: clamp(1.25rem, 3vw, 3rem); }
  .reader-rail { align-self: start; padding: .35rem .8rem; }
  .reader-contents { position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem); overflow: auto; }
  .reader-notes-aligned > ol { position: relative; }
  .reader-notes-aligned > ol > li { position: absolute; inset-inline: 0; padding-block-start: 0; }
  .reader-contents-trigger { display: none; }
}

.browse-page .book-title h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.browse-link { display: inline-block; margin-block: .75rem; }
.browse-filters:not([hidden]) { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; margin-block: 1.5rem 1rem; }
.browse-filters label {
  display: grid;
  gap: .35rem;
  flex: 1 1 10rem;
  min-width: 0;
  font-family: 'Cormorant Unicase', var(--body);
  font-weight: 600;
}
.browse-filters :is(select, input, button) {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .5rem;
  padding: .35rem .6rem;
}
.browse-filters :is(select, input) {
  width: 100%;
  min-width: 0;
  font-family: var(--body);
  font-weight: 300;
}
.browse-filters button { cursor: pointer; }
.browse-count { color: var(--accent); }
.browse-results { padding-bottom: 3rem; }
.browse-entry { padding-block: 1.35rem; border-bottom: 1px solid var(--rule); }
.browse-entry h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin: .3rem 0 .5rem; }
.browse-tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .8rem 0 0; list-style: none; }
.browse-tags li { border: 1px solid var(--rule); border-radius: .45rem; padding: .1rem .55rem; font-size: .9rem; }
.about-research-fields { margin: .4rem 0 0; }
.reader-tags { max-inline-size: 100%; margin-block-end: 1.25rem; }
.reader-tags .browse-tags { margin-block: .35rem .75rem; }
.reader-tags li { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }

.mirror-layout .book-title h1 { font-size: calc(clamp(3rem, 8vw, 6rem) + 15pt); text-align: center; }
.mirror-poems .poem h2 { font-size: calc(clamp(1.7rem, 3vw, 2.8rem) + 5pt); }
.mirror-poems .poem p { font-size: calc(1rem + 5pt); }
.mirror-layout .book-contents { container-type: inline-size; }
.classical .mirror-layout #contents-title { font-size: min(1.45rem, 12cqi); white-space: nowrap; }

@media (min-width: 54rem) {
  .mirror-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(58%, 44rem)) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    max-width: 70rem;
  }
  .mirror-layout .book-title { grid-column: 1 / -1; }
  .mirror-layout .mirror-poems { grid-column: 2; }
  .mirror-layout .book-contents {
    position: sticky;
    top: 1rem;
    align-self: start;
    inline-size: 158.76%;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    translate: calc(-1 * max(2.3vw, (100vw - 70rem) * .23)) 0;
  }
  .mirror-layout .book-contents ol { columns: 1; }
}

.classical .return-masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  justify-content: flex-start;
  gap: .5rem 1rem;
  padding: .65rem;
  background: var(--paper);
}
.return-masthead-hidden:not(:focus-within) { transform: translateY(-105%); }
@media (prefers-reduced-motion: no-preference) {
  .return-masthead { transition: transform .22s ease; }
}

.lesson-page .book-title h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; }
.seminar-page .book-title h1 { font-size: calc(clamp(2rem, 5vw, 3.6rem) - 10pt); }
.lesson-prose { font-size: 1.2rem; padding-block: 2rem 4rem; }
.lesson-prose h3 { color: var(--accent); font-weight: 700; margin: 0; }
.lesson-subheading { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; margin: 1.4em 0 .45em; }
.lesson-heading-button { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.lesson-book-button, .lesson-booking button {
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .3rem;
  padding: .25rem .45rem;
  font: 600 .875rem/1.2 'Cormorant Unicase', var(--body);
  cursor: pointer;
}
@media (hover: hover) {
  .lesson-subheading .lesson-book-button { opacity: 0; }
  .lesson-subheading:is(:hover, :focus-within) .lesson-book-button { opacity: 1; }
}
.lesson-intro-book-button { margin-top: .8rem; padding: .48rem .85rem; font-size: 1.125rem; }
.lesson-prose > h3[id] { margin: 1.4em 0 .45em; }
.lesson-booking {
  width: min(calc(100% - 2rem), 34rem);
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: .65rem;
  color: var(--text-grey);
  background: var(--paper);
}
.lesson-booking::backdrop { background: #29241f70; }
.lesson-booking-header, .lesson-booking-contact { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: baseline; }
.lesson-booking-header { justify-content: space-between; }
.lesson-booking-heading { display: grid; gap: .25rem; }
.lesson-booking-heading :is(h2, .lesson-booking-selection) { margin: 0; font-size: clamp(1.2rem, 4.5vw, 2rem); }
.lesson-booking-price { margin-top: .45rem; font: 700 1.25rem/1.3 'Cormorant Unicase', var(--body); }
.lesson-booking-contact { gap: .2rem .5rem; overflow-wrap: anywhere; }
#lesson-request { display: grid; gap: .8rem; margin-top: .75rem; }
#lesson-request label { display: grid; gap: .25rem; }
#lesson-request .lesson-format { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; margin: 0; padding: 0; }
.lesson-format legend { padding: 0; margin-bottom: .25rem; }
#lesson-request .lesson-format label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .45rem;
  border: 1px solid var(--rule);
  border-radius: .3rem;
  font: 600 .875rem/1.2 'Cormorant Unicase', var(--body);
  cursor: pointer;
}
.lesson-format input { margin: 0; accent-color: var(--accent); }
#lesson-request .lesson-format label:has(:checked) { border-color: var(--accent); background-color: #eee1d4; }
.lesson-request-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem; }
#lesson-request :is(input, textarea) {
  min-width: 0;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: .3rem;
  padding: .3rem .5rem;
}
.lesson-booking-footer { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem 1rem; }
.lesson-booking-footer button { margin-inline-start: auto; }
.lesson-prose p + p { margin-top: .8em; }
.lesson-prose a:has(> strong) { color: var(--accent); }


.classical :is(
  .hero-links a, .publication-links a, .contact-button, .back-link, .ongoing-more,
  .publication-type-badge, .browse-tags li, .browse-filters button,
  .reader-contents-trigger, .reader-dialog-header button,
  .lesson-book-button, .lesson-booking button, .lesson-format label, .seminar-price
) {
  @media (hover: hover) {
    background-image: var(--handwritten-line);
    background-repeat: no-repeat;
    background-position: left .3rem bottom .12rem;
    background-size: 0 3px;

    &:not(:disabled):is(:hover, :focus-visible, :has(:focus-visible)) {
      border-color: var(--accent);
      background-color: #eee1d4;
      background-size: calc(100% - .6rem) 3px;
      box-shadow: 0 .2rem .45rem #221f1d35;
      text-shadow: 0 .2rem .4rem #221f1d59;
    }
  }

  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    &:is(a):hover { top: 0; }
    transition: translate .2s ease, text-shadow .2s ease, box-shadow .2s ease, background-color .2s ease;

    &:is(:hover, :focus-visible, :has(:focus-visible)) {
      translate: 0 -.15rem;
      transition: translate .2s ease, text-shadow .2s ease, box-shadow .2s ease, background-color .2s ease, background-size .32s ease-out;
    }
  }
}
@media (hover: hover) {
  .classical .browse-tags a { text-decoration: none; }
}

.lesson-week-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; margin-block: .45rem; }
.lesson-week-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(6.5rem, 1fr));
  gap: .55rem;
  max-block-size: 15rem;
  overflow: auto;
  padding: .25rem .3rem .55rem;
}
.lesson-week-grid h3 { font-size: .95rem; margin: 0 0 .35rem; }
.lesson-week-grid .lesson-slot { display: block; width: 100%; margin-bottom: .3rem; }
.lesson-booking button:disabled { opacity: .55; cursor: default; }
.lesson-booking .lesson-slot[aria-pressed="true"] { border-color: var(--accent); background-color: #eee1d4; }
.lesson-slot-status { color: var(--accent); margin-top: .35rem; }
.lesson-booking-selection { color: var(--accent); font-family: var(--heading-font); font-weight: 300; }

.classical .lesson-subheading h2 { font-size: calc(clamp(1.7rem, 3vw, 2.8rem) - 5pt); font-weight: 300; margin: 0; }
.seminar-page .lesson-prose h3 { font-weight: 300; }
.seminar-price {
  margin-inline-start: auto;
  padding: .25rem .45rem;
  border: 1px solid var(--rule);
  border-radius: .3rem;
  color: var(--accent);
  background: var(--paper);
  font: 700 .875rem/1.2 'Cormorant Unicase', var(--body);
  cursor: pointer;
}
.lesson-prose ol { padding-inline-start: 1.4em; }
.lesson-prose ol li + li { margin-top: .75em; }
.seminar-page .lesson-prose ol li > strong,
.seminar-page .lesson-prose ol li::marker { color: var(--accent); font-weight: 700; }
.lesson-prose ol + p { margin-bottom: 1.5em; }

.teaching-contents { padding-block-start: 1.5rem; color: var(--accent); }
.classical .teaching-contents .reader-rail-label { color: var(--accent); }
.lesson-prose :is(h2, h3)[id] { scroll-margin-top: 4rem; }
@media (min-width: 54rem) {
  .lesson-page .book-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(62%, 44rem)) minmax(0, 1fr);
    gap: 0 clamp(1rem, 3vw, 2.5rem);
    max-width: 76rem;
  }
  .lesson-page :is(.book-title, .lesson-prose) { grid-column: 2; }
  .teaching-contents { grid-column: 1; grid-row: 2; position: sticky; top: 4.5rem; align-self: start; }
}

.teaching-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 54%); align-items: start; gap: 1.25rem; }
.teaching-intro figure { align-self: center; }
@media (max-width: 38rem) {
  .teaching-intro { grid-template-columns: 1fr; }
  .teaching-intro figure { width: min(100%, 22rem); }
}
.teaching-intro-stacked { grid-template-columns: 1fr; }
.teaching-intro-stacked figure { width: min(97.2%, 39.6rem); justify-self: center; }
.classical .teaching-intro-stacked .lesson-subheading h2 { font-weight: 700; }

.mobile-menu-toggle, .section-nav .phone-navigation-link { display: none; }

@media (max-width: 44rem) {
  .classical .sticky-masthead {
    top: 0;
    margin: 0;
    padding: .25rem max(1rem, env(safe-area-inset-right)) .25rem max(1rem, env(safe-area-inset-left));
    gap: 0 .75rem;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    background: color-mix(in srgb, var(--paper) 95%, transparent);
    box-shadow: none;
  }
  .sticky-masthead .wordmark { font-size: 1.48rem; margin-inline-start: 0; min-height: 44px; }
  .mobile-menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding-inline: .6rem;
    min-height: 44px;
    color: var(--accent);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: .4rem;
    font: 600 1rem 'Cormorant Unicase', var(--body);
    cursor: pointer;
  }
  .mobile-menu-icon {
    display: block;
    width: .9rem;
    height: .55rem;
    border-block: 1px solid currentColor;
  }
  .mobile-menu-toggle[aria-expanded="true"] { background: #eee1d4; }
  .sticky-masthead[data-mobile-menu] .section-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 .65rem;
    margin: .2rem 0 0;
    padding: .25rem 0;
    max-height: 55dvh;
    overflow: auto;
    border-top: 1px solid #a89a884d;
  }
  .sticky-masthead[data-mobile-menu="closed"] .section-nav { display: none; }
  .sticky-masthead .section-nav a { display: flex; align-items: center; min-height: 44px; padding: .15rem .25rem; }
  .hero-motto { font-size: clamp(2.15rem, 10.5vw, 3.6rem); }
  .hero-introduction { width: 90%; }
  .hero-introduction p { font-size: 1.23rem; }
  .classical .hero { padding-block-end: 2rem; }
  .hero-artwork .hero-credit { padding-inline: 5%; }
  body.classical:not(.book) #main > :is(.sections, .research-highlights) { width: 90%; }
  .classical .section { padding-inline: .7rem; }
  .ongoing-panels { min-block-size: 13rem; }
  .research-highlights { padding-block-end: 1.5rem; }
  .classical .section h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .classical :is(.hero-links a, .back-link, .lesson-book-button, .seminar-price, .reader-contents-trigger) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .7rem;
  }
  .classical .lesson-subheading .lesson-book-button { opacity: 1; }
  .classical .return-masthead { padding: .35rem 0; }
  .classical .return-masthead .back-link { font-size: .82rem; }
  .reader-layout { padding-block-start: 1.25rem; padding-block-end: 5rem; }
  .reader-contents-trigger { bottom: max(1rem, env(safe-area-inset-bottom)); }
  .reader-prose, .lesson-prose, .about-story { line-height: 1.6; }
  .lesson-page .book-title { padding-block: 1.5rem; }
  .lesson-page .book-title h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .seminar-page .book-title h1 { font-size: clamp(1.45rem, 6vw, 2rem); }
  .teaching-contents { padding-block-start: .9rem; }
  .teaching-contents a, .mirror-layout .book-contents a, #reader-contents-dialog a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .mirror-layout .book-contents ol { columns: 2; column-gap: 1rem; }
  .mirror-layout .book-contents li { break-inside: avoid; }
  .mirror-layout .book-title h1 { font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .mirror-poems .poem p { font-size: 1.23rem; }
  .browse-filters label { flex-basis: 100%; }
  .browse-filters :is(select, input, button) { min-height: 44px; font-size: 1rem; }
  .lesson-booking {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: .8rem;
  }
  .lesson-booking :is(button, .lesson-format label) { min-height: 44px; }
  .lesson-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
    max-block-size: 14rem;
  }
  .lesson-week-grid .lesson-slot { padding-inline: .15rem; overflow-wrap: anywhere; }
  #lesson-request :is(input:not([type="radio"]), textarea) { min-height: 44px; font-size: 1rem; }
}
