/* Dr. Beate Jaeger — site styles. No framework. Fonts self-hosted: Instrument Serif (headings), Geist (text). */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@view-transition { navigation: auto; }

:root {
  --bg: #f6f2ea;            /* warm paper */
  --card: #fffdf9;
  --tint: #ebefe6;          /* pale sage */
  --ink: #17231f;
  --body: #47544f;
  --muted: #7d8983;
  --line: rgba(23, 35, 31, .1);
  --green: #1f5a50;
  --green-deep: #143f38;
  --clay: #b5764f;
  --radius: 28px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --sway: cubic-bezier(.45, .05, .55, .95);
  --soft: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(23, 35, 31, .06), 0 30px 60px -34px rgba(31, 62, 54, .28);
  --max: 1120px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--body); overflow-x: clip;
  font: 400 17px/1.75 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {   /* soft daylight wash */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 560px at 92% -6%, rgba(142, 178, 160, .34), transparent 64%),
    radial-gradient(700px 520px at -10% 40%, rgba(222, 190, 160, .26), transparent 62%);
}
body::after {    /* paper grain */
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .4s var(--ease); }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }
::selection { background: rgba(31, 90, 80, .2); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { margin: 0 0 1.15em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 12px; }

/* ---------- floating navigation ---------- */
.site-header { position: fixed; inset: 16px 0 auto; z-index: 30; display: flex; justify-content: center; pointer-events: none; }
.nav-pill {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 22px;
  height: 62px; padding: 0 8px 0 22px; border-radius: 999px; max-width: calc(100% - 24px);
}
.nav-pill::before {   /* the glass sits on its own layer so the menu overlay is not trapped inside the blur */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(255, 253, 249, .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--soft);
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--body); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 9px 13px; border-radius: 999px;
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: rgba(23, 35, 31, .06); }
.nav a.lang { color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.nav a.cta { background: var(--green); color: #fff; padding: 11px 20px; margin-left: 4px; }
.nav a.cta:hover { background: var(--green-deep); color: #fff; }
.menu-btn { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(23, 35, 31, .06); cursor: pointer; }
.menu-btn span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: var(--ink); transition: transform .6s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.open .menu-btn span:first-child { transform: rotate(45deg); }
.open .menu-btn span:last-child { transform: rotate(-45deg); }

@media (max-width: 940px) {
  .nav-pill { width: calc(100% - 24px); justify-content: space-between; }
  .menu-btn { display: block; z-index: 2; }
  .brand { z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 96px 32px 40px; background: rgba(246, 242, 234, .94); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s var(--ease), visibility .6s;
  }
  .open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; color: var(--ink); padding: 4px 0; background: none !important;
           opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .nav a.lang { font-family: var(--font); font-size: .95rem; margin: 18px 0 0; }
  .nav a.cta { font-family: var(--font); font-size: 1rem; font-weight: 500; margin: 18px 0 0; padding: 14px 26px; background: var(--green) !important; color: #fff; }
  .open .nav a { opacity: 1; transform: none; }
  .open .nav a:nth-child(2) { transition-delay: .05s; } .open .nav a:nth-child(3) { transition-delay: .1s; }
  .open .nav a:nth-child(4) { transition-delay: .15s; } .open .nav a:nth-child(5) { transition-delay: .2s; }
  .open .nav a:nth-child(6) { transition-delay: .25s; } .open .nav a:nth-child(7) { transition-delay: .3s; }
}

/* ---------- shared pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--body); max-width: 46em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 26px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; text-decoration: none;
  transition: transform .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.btn::after {   /* arrow in its own circle */
  content: ""; width: 40px; height: 40px; border-radius: 50%; flex: none; transition: transform .6s var(--ease);
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.btn:hover::after { transform: translate(3px, -3px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 18px 34px -18px rgba(31, 90, 80, .7); }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(23, 35, 31, .25); }
.btn-ghost::after { background: rgba(23, 35, 31, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317231f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- hero ---------- */
.hero { padding: clamp(150px, 20vh, 210px) 0 clamp(70px, 10vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .w { display: inline-block; }
.hero .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.25; color: var(--green); }
.page-hero { padding-bottom: clamp(24px, 4vw, 50px); }
.page-hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
.page-hero .lead { font-family: var(--font); font-style: normal; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--body); margin-top: 26px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 400px); }
.hero-art::before, .hero-art::after {   /* slow breathing rings behind the portrait */
  content: ""; position: absolute; inset: -9%; border-radius: 999px 999px 40px 40px; border: 1px solid rgba(31, 90, 80, .22);
  animation: breathe 9s var(--sway) infinite alternate;
}
.hero-art::after { inset: -18%; border-color: rgba(181, 118, 79, .2); animation-delay: -4.5s; }
.arch { position: relative; padding: 9px; border-radius: 999px 999px 34px 34px; background: rgba(255, 253, 249, .75); box-shadow: var(--soft); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 20%; border-radius: 999px 999px 26px 26px; }
@keyframes breathe { from { transform: scale(.975); opacity: .5; } to { transform: scale(1.02); opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.tint { background: var(--tint); border-radius: clamp(28px, 5vw, 60px); margin-inline: clamp(8px, 2vw, 24px); }
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.split .section-head { position: sticky; top: 120px; }
.section-head .eyebrow { margin-bottom: 20px; }
.frame { margin-top: 34px; padding: 8px; border-radius: var(--radius); background: var(--card); box-shadow: var(--soft); max-width: 320px; }
.frame img { width: 100%; border-radius: 21px; }
.prose { font-size: 1.06rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.7em 0 .4em; }
.prose .note { font-size: .93rem; color: var(--muted); padding: 16px 20px; border-left: 2px solid var(--clay); background: rgba(255, 253, 249, .7); border-radius: 0 14px 14px 0; }

.cv { list-style: none; margin: 0; padding: 0; counter-reset: cv; }
.cv > li { display: grid; grid-template-columns: 70px .8fr 1.5fr; gap: clamp(16px, 3vw, 44px); padding: 34px 0; border-top: 1px solid var(--line); counter-increment: cv; }
.cv > li:last-child { border-bottom: 1px solid var(--line); }
.cv > li::before { content: counter(cv, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--clay); line-height: 1.15; }
.cv h3 { margin: 0; }
.cv p, .cv ul { margin: 0; }
.cv ul { padding-left: 1.1em; }
.cv ul li + li { margin-top: .7em; }
.cv ul li::marker { color: var(--clay); }

.band {
  position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px); border-radius: clamp(28px, 4vw, 44px);
  background: var(--green-deep); color: rgba(255, 255, 255, .78); box-shadow: 0 40px 80px -44px rgba(20, 63, 56, .7);
}
.band::before {   /* light that follows the pointer (site.js sets --mx / --my) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 85%) var(--my, 0%), rgba(170, 214, 190, .26), transparent 60%);
}
.band > * { position: relative; }
.band h2 { color: #fff; }
.band p { max-width: 44em; }
.band .eyebrow { color: #b9dccb; }
.band a { color: #fff; }
.band .mail { font-family: var(--serif); font-size: clamp(1.7rem, 4.4vw, 3rem); line-height: 1.1; margin: .5em 0 0; overflow-wrap: anywhere; }
.band .mail a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.band .mail a:hover { background-size: 100% 1px; }
.band .btn-primary { background: #fff; color: var(--green-deep); box-shadow: none; }
.band .btn-primary:hover { background: var(--bg); color: var(--green-deep); }
.band .btn-primary::after { background-color: var(--green); }

.closing { text-align: center; }
.closing .wrap { max-width: 860px; }
.closing h2 { font-style: italic; }
.closing blockquote { margin: 0; font-size: 1.12rem; }
.closing blockquote footer { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--green); }
.closing .prose { text-align: left; margin-top: 30px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 26px; margin-top: 54px; }
.quote { margin: 0; padding: clamp(26px, 4vw, 46px); border-radius: var(--radius); background: var(--card); box-shadow: var(--soft); }
.quote::before { content: "“"; display: block; font-family: var(--serif); font-size: 4.6rem; line-height: .7; height: .5em; color: var(--clay); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin-bottom: .8em; }
.quote figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--green); }

/* ---------- publications ---------- */
.pubs { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pubs li { counter-increment: pub; border-top: 1px solid var(--line); }
.pubs li:last-child { border-bottom: 1px solid var(--line); }
.pubs a {
  display: grid; grid-template-columns: 62px 1fr 44px; column-gap: 18px; align-items: start; padding: 26px 14px; margin-inline: -14px;
  border-radius: 20px; text-decoration: none; color: var(--body); transition: background-color .6s var(--ease), transform .6s var(--ease);
}
.pubs a::before { content: counter(pub, decimal-leading-zero); grid-row: 1 / span 3; font-family: var(--serif); font-size: 1.4rem; color: var(--clay); }
.pubs a::after {
  content: ""; grid-column: 3; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; transition: transform .6s var(--ease), background-color .6s var(--ease);
  background: rgba(23, 35, 31, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317231f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pubs a:hover { background: var(--card); }
.pubs a:hover::after { transform: translate(3px, -3px); background-color: rgba(31, 90, 80, .14); }
.pubs span { grid-column: 2; }
.pub-title { font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.18; color: var(--ink); margin-bottom: 8px; }
.pub-authors { font-size: .94rem; }
.pub-journal { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.pubs + .prose { margin-top: 40px; }

/* ---------- footer ---------- */
.site-footer { padding: 70px 0 44px; border-top: 1px solid var(--line); margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; }
.site-footer img { height: 62px; width: auto; margin: -8px 0 12px -4px; }
.site-footer p { max-width: 30em; }
.site-footer h4 { margin: 0 0 14px; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.fine { margin: 54px 0 0; font-size: .84rem; color: var(--muted); }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(74%, 320px); margin-top: 26px; }
  .split .section-head { position: static; }
  .cv > li { grid-template-columns: 44px 1fr; }
  .cv > li > div { grid-column: 2; }
  .pubs a { grid-template-columns: 40px 1fr; padding-inline: 10px; margin-inline: -10px; }
  .pubs a::after { display: none; }
}

/* ---------- motion: site.js adds "js" to <html>, then "in" to each element as it scrolls into view ---------- */
/* Keep this list in step with REVEAL in site.js. */
.js :is(.hero-copy > *, .hero-art, .page-hero .wrap > *, .section-head, .prose > *, .cv > li, .band, .quote, .pubs li, .closing .wrap > *, .notfound .wrap > *) {
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.js :is(.hero-copy > *, .hero-art, .page-hero .wrap > *, .section-head, .prose > *, .cv > li, .band, .quote, .pubs li, .closing .wrap > *, .notfound .wrap > *):not(.in) {
  opacity: 0; transform: translateY(30px); filter: blur(8px);
}
.js .hero h1 .w { opacity: 0; transform: translateY(.45em); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i) * 90ms + 120ms); }
.js .hero h1.in .w { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, visibility, color, background-color !important; }
  .js :is(.hero-copy > *, .hero-art, .page-hero .wrap > *, .section-head, .prose > *, .cv > li, .band, .quote, .pubs li, .closing .wrap > *, .notfound .wrap > *):not(.in),
  .js .hero h1 .w { transform: none; filter: none; }
}
