:root {
  --bg: #faf6f0;
  --bg-soft: #f3ebe4;
  --ink: #3d2c2a;
  --text: #2c2422;
  --muted: #6f6460;
  --line: #eadfd6;
  --pink: #e0919e;
  --pink-deep: #d17a88;
  --accent: #c45c74;
  --footer: #e0919e;
  --footer-text: #ffffff;
  --shadow: 0 12px 32px rgba(61, 44, 42, 0.1);
  --radius: 4px;
  --header: "Playfair Display", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--pink);
  color: var(--footer-text);
  padding: 0.4rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  padding: 2.4rem 1.5rem 1.4rem;
  text-align: center;
}

.site-title {
  margin: 0 0 1.15rem;
  font-family: var(--header);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.15rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin: 0 auto;
  background: var(--pink);
  color: var(--footer-text);
  border: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--pink);
}

main {
  flex: 1;
  width: min(980px, calc(100% - 2.4rem));
  margin: 0 auto 3.5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.2fr;
  gap: 2.4rem;
  align-items: start;
}

.photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.intro p,
.copy p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.45rem 1.05rem;
  background: var(--pink);
  color: var(--footer-text);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn:hover {
  background: var(--pink-deep);
}

.page-title {
  font-family: var(--header);
  font-weight: 500;
  font-size: 2rem;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.6rem 0 0.45rem;
}

.cv-item {
  margin: 0 0 1.15rem;
}

.cv-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.cv-item p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.preprint {
  margin: 0 0 1.4rem;
}

.preprint p {
  margin: 0 0 0.35rem;
}

.preprint a {
  word-break: break-all;
}

.talk-list {
  margin: 0;
  padding-left: 1.15rem;
}

.talk-list li {
  margin: 0 0 1rem;
}

.contact-note {
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--pink);
}

.btn-outline:hover {
  background: #f8e6ea;
}

.promise-box {
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--pink);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #cbb8b0;
}

.tip {
  border-bottom: 1px dotted var(--accent);
  cursor: help;
}

.tooltip {
  position: absolute;
  z-index: 40;
  max-width: 280px;
  padding: 0.75rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.45;
  pointer-events: none;
}

.tooltip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c45c74;
  background: #fff6f6;
}

.error {
  margin: 0.35rem 0 0;
  color: #b04058;
  font-size: 0.88rem;
}

.legal-copy h2 {
  font-family: var(--header);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--text);
}

.site-footer {
  margin-top: auto;
  padding: 2.2rem 1.2rem 1.8rem;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.footer-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.footer-name {
  margin: 0;
  font-family: var(--header);
  font-size: 1.45rem;
  color: var(--footer-text);
}

.footer-meta {
  margin: 0.35rem 0 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.legal-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.legal-nav a,
.legal-nav button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav button:hover {
  color: var(--footer-text);
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(420px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sticky-cta {
  display: none;
}

.error-page {
  text-align: center;
  padding: 2rem 0 3rem;
}

.error-code {
  margin: 0;
  font-family: var(--header);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--pink);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    margin-top: 0.9rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.7rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .photo {
    max-width: 360px;
    margin: 0 auto;
  }

  body.has-sticky-cta {
    padding-bottom: 4.4rem;
  }

  body.has-sticky-cta .site-footer {
    padding-bottom: 5.2rem;
  }

  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    justify-content: center;
    padding: 0.85rem 1rem;
    background: var(--pink);
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 600;
  }

  .cookie-banner {
    bottom: 4.4rem;
  }

  body.has-sticky-cta.no-sticky-cta .cookie-banner,
  body.no-sticky-cta .cookie-banner {
    bottom: 1rem;
  }
}
