:root {
  --paper: #fefbf9;
  --paper-deep: #f9f0ee;
  --ink: #28201e;
  --muted: #645954;
  --red: #8f2028;
  --rule: rgba(143, 32, 40, 0.78);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #e0a82f; outline-offset: 5px; }
.shell { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 2px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--red);
  font: 700 clamp(1.4rem, 2vw, 1.95rem)/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
}
.wordmark-ipa {
  position: relative;
  top: 5px;
  color: #918883;
  font: 500 .58rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px clamp(18px, 2.5vw, 38px); }
.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 5px 0 3px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--red); color: var(--red); }
.nav-toggle { display: none; }

.eyebrow, .section-label, .meta {
  color: var(--red);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  color: var(--red);
  font: 500 clamp(4rem, 7vw, 7.4rem)/.96 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.slogan-line { white-space: nowrap; }
.lede { margin: 24px 0; font-size: clamp(1.06rem, 1.45vw, 1.3rem); }
.text-link, .audio-button {
  border: 0;
  border-bottom: 2px solid var(--red);
  padding: 0 0 3px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr);
  gap: clamp(46px, 7vw, 110px);
  align-items: center;
  min-height: 610px;
  padding: clamp(62px, 7vw, 102px) 4% 48px;
  border-bottom: 2px solid var(--rule);
}
.hero-copy { position: relative; z-index: 5; }
.home-hero .hero-copy { left: -2%; width: calc(100% + clamp(42px, 4vw, 64px)); }
.quick-links, .footer-links { display: flex; flex-wrap: wrap; gap: 18px 42px; }
.home-portrait { position: relative; min-height: 520px; }
.home-portrait .portrait {
  position: absolute;
  inset: 6% 11% 5% 9%;
  width: 80%;
  height: 89%;
  border-radius: 34px;
  object-fit: cover;
  object-position: 50% 43%;
}
.flower { position: absolute; z-index: 4; display: block; height: auto; pointer-events: none; user-select: none; }
.home-portrait .red { top: -16%; right: -13%; width: 68%; transform: rotate(264deg); }
.home-portrait .blue { bottom: -14%; left: -20%; width: 50%; transform: rotate(-7deg); }

.home-lower {
  position: relative;
  min-height: 350px;
  overflow: hidden;
}
.home-panel { position: relative; z-index: 5; padding: 44px clamp(52px, 9vw, 142px) 72px; }
.recent-panel { min-height: 350px; }
.home-panel h2, .content-card h2 {
  margin: 0 0 18px;
  color: var(--red);
  font: 500 clamp(2.1rem, 3.1vw, 3.5rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.home-panel .section-label { position: absolute; top: 46px; left: 18px; font-size: 1.12rem; }
.home-panel p { max-width: 650px; }
.updates { margin: 0; padding: 0; list-style: none; }
.updates li { display: grid; grid-template-columns: 110px minmax(0, 760px); gap: 22px; padding: 8px 0 19px; border-bottom: 2px solid rgba(143,32,40,.42); }
.updates time { color: var(--red); white-space: nowrap; }
.update-secondary { color: #887d77; }
.home-footer,
.botanical-footer {
  position: relative;
  width: 100vw;
  min-height: 84px;
  margin-left: calc(50% - 50vw);
  align-items: flex-end;
  overflow: visible;
}
.home-footer p,
.botanical-footer p { position: relative; z-index: 6; }
.footer-floral-layer {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 500px;
  overflow: hidden;
  pointer-events: none;
}
.home-footer .yellow { right: 0; bottom: -125px; width: 310px; }
.home-footer .pink { bottom: -145px; left: 0; width: 350px; opacity: .96; }

.subpage-main { position: relative; min-height: calc(100vh - 146px); overflow: visible; }
.sub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
  gap: 34px;
  align-items: center;
  min-height: 250px;
  padding: clamp(28px, 3.5vw, 46px) 7%;
  border-bottom: 2px solid var(--rule);
  background:
    radial-gradient(circle at 88% 50%, rgba(249, 240, 238, .36), transparent 32%),
    var(--paper);
}
.sub-hero-copy { position: relative; z-index: 6; max-width: 820px; }
.sub-visual { position: relative; min-height: 190px; }
.sub-visual .flower {
  filter: drop-shadow(0 8px 0 rgba(40,32,30,.025));
  transform-origin: 50% 65%;
}
.subpage-main .sub-hero { height: auto; min-height: 0; padding-block: 40px; }
.subpage-main .sub-hero .lede { margin: 20px 0 0; }
.subpage-main .sub-visual { display: contents; min-height: 0; }
.content-area { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 2px solid var(--rule); }
.content-card { position: relative; z-index: 5; min-height: 285px; padding: 46px clamp(32px, 5vw, 72px) 58px; }
.content-card + .content-card { border-left: 2px solid var(--rule); }
.content-card > :not(.flower) { position: relative; z-index: 6; }
.content-card p { max-width: 700px; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 13px 0; border-bottom: 2px solid rgba(143,32,40,.35); }
.plain-list strong { color: var(--red); }

.publication { padding: 10px 0 12px; }
.publication + .publication { border-top: 1px solid rgba(143, 32, 40, .24); }
.publication p { margin: 2px 0; }
.publication-title { font-weight: 700; }

.empty-note { max-width: 620px; padding: 28px 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); font-size: 1.1rem; }
.contact-list { display: grid; gap: 18px; max-width: 520px; }
.contact-row { display: grid; grid-template-columns: 100px 1fr; gap: 22px; padding-bottom: 16px; border-bottom: 2px solid rgba(143,32,40,.4); }
.contact-row strong { color: var(--red); }

/* Clean botanical compositions: strong silhouettes, edge crops, and generous space. */

/* Research — a right-edge blue anchor with one light companion. */
.research-page .sub-hero { grid-template-columns: minmax(0, 1.35fr) minmax(240px, .4fr); }
.research-page .sub-hero-copy { max-width: 980px; }
.research-page .sub-visual { position: static; }
.research-page .hero-flower-one { z-index: 2; right: -6%; bottom: -12%; width: 27%; transform: rotate(-5deg); }
.research-page .hero-flower-two { z-index: 1; right: 25%; top: -7%; width: 16%; transform: rotate(7deg); }
.research-page .corner-flower { right: 7%; bottom: -195px; width: 310px; transform: rotate(18deg); opacity: .48; }
.research-page .content-area { border-bottom: 0; }
.research-page .content-card { grid-column: 1 / -1; }
.research-page .plain-list strong { display: block; margin-bottom: 3px; font-size: 1.14rem; }
.research-page .plain-list span { display: block; }
.research-page .related-work { margin-top: 10px; }

/* Publications — a compact upper-right pairing balanced by a lower-left crop. */
.publications-page .sub-visual { position: static; }
.publications-page .hero-flower-one { z-index: 2; right: 5%; bottom: -1%; width: 24%; transform: rotate(-2deg) scaleX(1.1); }
.publications-page .corner-flower { left: -1%; bottom: -195px; width:385px; transform: rotate(7deg); opacity: .52; }
.publications-page .content-area { border-bottom: 0; }
.publications-page .content-card { grid-column: 1 / -1; }
.publications-page .publication { width: 100%; max-width: none; }
.publications-page .publication p { max-width: none; }
.research-page .display,
.portfolio-page .display { font-size: clamp(3.7rem, 6.4vw, 6.8rem); }
.publications-page .display,
.teaching-page .display { font-size: clamp(3.05rem, 5.2vw, 5.55rem); }

/* Teaching — one flower enters from above, another from the side, and one from below. */
.teaching-page .sub-hero { grid-template-columns: minmax(0, 1.42fr) minmax(230px, .36fr); }
.teaching-page .sub-hero-copy { max-width: 1040px; }
.teaching-page .sub-visual { position: static; }
.teaching-page .hero-flower-one { z-index: 2; right: 28%; top: -43%; width: 20%; transform: rotate(-4deg); }
.teaching-page .top-right-camellia { z-index: 1; top: -97%; right: -17%; width: 46%; transform: rotate(2deg); opacity: .60; }
.teaching-page .subpage-main { z-index: auto; }
.teaching-page .botanical-footer { z-index: 1; }
.teaching-page .teaching-camellia-background { z-index: 0; height: 760px; }
.teaching-page .left-background-camellia { left: -20%; bottom: -130px; width: 620px; transform: rotate(-8deg); opacity: .20; }
.teaching-page .background-camellia { right: 4%; bottom: -375px; width: 620px; transform: rotate(8deg); opacity: .20; }
.teaching-page .content-card { grid-column: 1 / -1; }
.teaching-page .content-area { border-bottom: 0; }
.teaching-page .updates li { grid-template-columns: 110px minmax(0, 1fr); }

/* Portfolio — one full-bleed floral illustration behind the title. */
.portfolio-page .sub-hero { overflow: hidden; }
.portfolio-page .sub-visual { position: static; }
.portfolio-page .portfolio-thicket { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .36; }
.portfolio-page .content-card { grid-column: 1 / -1; }
.portfolio-page .content-area { border-bottom: 0; }
.portfolio-page .content-card p { max-width: 1100px; }

/* Service — a large side crop with a quiet top accent and a low left counterweight. */
.service-page .sub-visual { position: static; }
.service-page .hero-flower-two { z-index: 2; right: -6%; bottom: -18%; width: 26%; transform: rotate(-4deg); }
.service-page .hero-flower-three { z-index: 1; right: 24%; top: 10%; width: 11%; transform: rotate(6deg); }
.service-page .corner-flower { right: 0; bottom: -215px; width: 330px; transform: rotate(7deg); opacity: .48; }

/* Contact — an upright right-side illustration with a single lower corner echo. */
.contact-page .sub-visual { position: static; }
.contact-page .hero-flower-one { z-index: 2; right: 13%; bottom: -8%; width: 23%; transform: rotate(-5deg); }
.contact-page .hero-flower-two { z-index: 1; right: -4%; top: -7%; width: 19%; transform: rotate(7deg); }
.contact-page .corner-flower { left: 7%; bottom: -210px; width: 315px; transform: rotate(-7deg); opacity: .5; }

.site-footer { display: flex; justify-content: center; gap: 22px; padding: 10px 0 12px; background: transparent; font-size: .88rem; text-align: center; }
.site-footer p { margin: 0; white-space: nowrap; }

@media (min-width: 981px) {
  .subpage-main .sub-hero { height: auto; min-height: 0; padding-block: 40px; }
  .subpage-main .sub-hero .lede { margin: 20px 0 0; }
  .subpage-main .sub-visual { display: contents; min-height: 0; }
}

@media (max-width: 980px) {
  .shell { width: min(calc(100% - 40px), var(--max)); }
  .home-hero, .sub-hero { grid-template-columns: 1fr; }
  .research-page .sub-hero,
  .publications-page .sub-hero,
  .teaching-page .sub-hero,
  .portfolio-page .sub-hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .home-hero { padding-inline: 5%; }
  .home-hero .hero-copy { left: 0; width: auto; }
  .home-portrait { width: min(100%, 620px); min-height: 570px; margin-inline: auto; }
  .home-portrait .portrait { inset: 3% 12%; width: 76%; height: 92%; }
  .home-portrait .red { right: 0; width: 54%; }
  .home-portrait .blue { left: 3%; width: 38%; }
  .content-area { grid-template-columns: 1fr; }
  .content-card + .content-card { border-top: 2px solid var(--rule); border-left: 0; }
  .home-panel { padding-left: 66px; }
  .sub-visual { min-height: 250px; }
  .sub-visual .flower { max-width: 620px; }
  .home-footer .yellow { width: min(34vw, 290px); }
  .home-footer .pink { width: min(40vw, 330px); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { flex-direction: row; align-items: center; gap: 12px; min-height: 68px; padding: 12px 0; }
  .wordmark { flex-wrap: wrap; gap: 5px 8px; }
  .wordmark-ipa { top: 2px; }
  .nav-toggle {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--red);
    cursor: pointer;
  }
  .nav-toggle::before,
  .nav-toggle::after {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  }
  .nav-toggle::before { transform: translateY(-1px); box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
  .nav-toggle::after { opacity: 0; transform: translateY(-1px); }
  .nav-toggle[aria-expanded="true"]::before { box-shadow: none; transform: translateY(-1px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after { opacity: 1; transform: translateY(-1px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: auto;
    display: grid;
    width: max-content;
    box-sizing: border-box;
    gap: 0;
    padding: 8px 18px;
    border: 1.5px solid var(--rule);
    border-radius: 0 0 16px 16px;
    background: rgba(254, 251, 249, .98);
    box-shadow: 0 12px 28px rgba(74, 43, 43, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: 11px 0 9px; font-size: .72rem; }
  .display { font-size: clamp(3.5rem, 17vw, 5rem); }
  .lede { margin: 18px 0; }
  .quick-links { gap: 12px 24px; }
  .home-hero { display: flex; flex-direction: column; min-height: 0; gap: 30px; padding: 42px 0 32px; }
  .home-hero .hero-copy { display: contents; }
  .home-portrait { order: 1; }
  .home-hero .display {
    order: 2;
    margin-top: -12px;
    font-size: clamp(1.95rem, 8.7vw, 2.7rem);
    letter-spacing: -.045em;
    text-align: left;
    align-self: stretch;
    white-space: nowrap;
  }
  .home-hero .display br { display: none; }
  .home-hero .lede { order: 3; margin-top: -6px; }
  .home-hero .quick-links { order: 4; }
  .home-portrait { min-height: clamp(270px, 87vw, 355px); }
  .home-portrait .portrait { inset: 6% 15%; width: 70%; height: 83%; border-radius: 24px; }
  .home-portrait .red { top: -14%; right: -6%; width: 49%; }
  .home-portrait .blue { bottom: -7%; left: -3%; width: 34%; }
  .home-panel { padding: 32px 18px 44px; }
  .home-panel .section-label { left: 4px; top: 36px; }
  .updates li { grid-template-columns: 1fr; gap: 3px; }
  .sub-hero { gap: 8px; min-height: 0; padding: 28px 5%; }
  .subpage-main .sub-hero { padding-block: 28px; }
  .sub-hero-copy { width: 100%; max-width: none; }
  .sub-visual { min-height: 0; }
  .content-card { min-height: 220px; padding: 30px 20px 42px; }
  .publication-title, .publication p, .updates span { overflow-wrap: anywhere; }
  .contact-row { grid-template-columns: 1fr; gap: 3px; }
  .site-footer { flex-direction: row; align-items: flex-end; }
  .footer-floral-layer { width: 100vw; }
  .research-page .hero-flower-one { right: -29%; bottom: -14%; width: 48%; opacity: 1; }
  .research-page .hero-flower-two { right: 8%; top: -7%; width: 28%; opacity: 1; }
  .publications-page .hero-flower-one { right: -17%; bottom: -12%; width: 42%; opacity: 1; }
  .portfolio-page .portfolio-thicket { opacity: .36; }
  .research-page .display,
  .portfolio-page .display { font-size: clamp(3.1rem, 14vw, 4.5rem); }
  .publications-page .display,
  .teaching-page .display { font-size: clamp(2.3rem, 11.3vw, 3.05rem); }
  .teaching-page .top-right-camellia { top: -45%; right: -25%; width: 52%; opacity: .60; }
  .teaching-page .teaching-camellia-background { height: 620px; }
  .teaching-page .left-background-camellia,
  .teaching-page .background-camellia { width: min(135vw, 530px); }
  .teaching-page .left-background-camellia { left: -38%; bottom: -120px; }
  .teaching-page .background-camellia { right: -28%; bottom: -315px; }
  .home-footer .yellow { right: -8%; bottom: -95px; width: min(48vw, 230px); }
  .home-footer .pink { bottom: -105px; left: -10%; width: min(53vw, 250px); }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 20px); }
  .wordmark { font-size: 1.3rem; }
  .wordmark-ipa { font-size: .52rem; }
  .site-nav { width: max-content; }
  .display { font-size: clamp(3.15rem, 16vw, 4rem); }
  .research-page .display,
  .portfolio-page .display { font-size: clamp(2.8rem, 13.5vw, 3.45rem); }
  .publications-page .display,
  .teaching-page .display { font-size: clamp(2.15rem, 10.8vw, 2.85rem); }
  .home-panel h2, .content-card h2 { font-size: 2.15rem; }
  .content-card { padding-inline: 16px; }
  .teaching-page .updates li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
