@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Jost:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a5a;
  --text-light: #9a9aaa;
  --border:     #e8e8ee;
  --white:      #ffffff;
  --blue:       #4a7ab5;
  --blue-dark:  #2a5a95;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text-dark);
}

body.home {
  overflow: hidden;
  height: 100vh;
}

/* ── Navbar ── */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  padding: 0 3rem !important;
  min-height: 52px !important;
}
.navbar-brand {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: var(--text-dark) !important;
}
.navbar-nav .nav-link {
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  padding: 0.4rem 1rem !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-dark) !important;
}

/* ── Remove Quarto default padding ── */
#quarto-content, .page-layout-full {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
main.content { padding: 0 !important; max-width: 100% !important; }
#title-block-header { display: none !important; }
#quarto-document-content { max-width: 100% !important; padding: 0 !important; }
.column-body { max-width: 100% !important; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 52px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem 4rem 3rem;
  gap: 6rem;
  align-items: center;
  overflow: hidden;
}

/* ── Left column ── */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  padding-bottom: 0;
  justify-content: center;
}

.photo-frame {
  width: 85%;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  margin-top: 2rem;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-top: 1rem;
  width: 100%;
}
.profile-info p {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  line-height: 1.2 !important;
}
.hero-role {
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  color: var(--blue) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
.hero-affil {
  font-size: 0.75rem !important;
  color: var(--text-mid) !important;
  line-height: 1.55 !important;
  font-weight: 300 !important;
  margin-top: 0.2rem !important;
}

.social-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.7rem !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0.6rem !important;
}
.social-row a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.social-row a:hover { color: var(--text-dark); }

/* ── Right column ── */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 3rem;
}
.hero-tag {
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  margin: 0 0 0.5rem 0 !important;
}
.hero-right h1 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.6rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--text-dark) !important;
  margin: 0 0 1.2rem 0 !important;
  border: none !important;
}
.hero-right p {
  font-size: 0.88rem !important;
  line-height: 1.9 !important;
  color: var(--text-mid) !important;
  font-weight: 300 !important;
  max-width: 580px !important;
  margin: 0 0 0.8rem 0 !important;
}

/* ── Field tags ── */
.field-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin: 1rem 0 1rem 0 !important;
  padding: 0 !important;
}
span.tag {
  display: inline-block !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  color: var(--text-light) !important;
  background: #f7f7f9 !important;
  padding: 0.25rem 0.8rem !important;
  border-radius: 20px !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
}

/* ── CTA buttons ── */
.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.btn-primary {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--blue);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark) !important;
  background: transparent;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--text-mid); }

/* ── Footer ── */
.site-footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 0.8rem 2rem;
  font-size: 0.75rem;
  color: var(--text-light);
  z-index: 10;
}
.foot-group strong {
  display: inline;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-right: 0.4rem;
}
.foot-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.foot-link:hover { color: var(--blue-dark); }
.social-foot {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.social-foot a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.social-foot a:hover { color: var(--text-dark); }

/* ── Inner pages ── */
.page-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 4rem 6rem 5rem;
}
.page-wrap h1 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.6rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin-bottom: 0.4rem !important;
  border: none !important;
}
.page-sub {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.page-wrap h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  margin: 2rem 0 0.8rem !important;
  padding-bottom: 0.4rem !important;
  border-bottom: 1px solid var(--border) !important;
}
.page-wrap p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 0.8rem;
}
.cv-list { list-style: none; padding: 0; }
.cv-list li {
  display: flex;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f2f2f6;
}
.cv-list .year {
  font-size: 0.73rem;
  color: var(--text-light);
  min-width: 60px;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.contact-item strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.contact-item a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.86rem;
}
.contact-item a:hover { text-decoration: underline; }

/* ── Carousel ── */
.carousel {
  width: 100%;
  border-radius: 3px;
  background: transparent;
}
/* ── Carousel ── */
.carousel-track {
  position: relative;
  width: 100%;
  min-height: 220px;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 0.2rem;
}
.carousel-caption {
  font-size: 0.68rem;
  color: #9a9aaa;
  letter-spacing: 0.05em;
  text-align: center;
  flex: 1;
}
.carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #4a7ab5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.carousel-btn:hover {
  color: #2a5a95;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; height: auto; padding: 2.5rem 1.5rem; gap: 2rem; }
  .hero-left { align-items: center; text-align: center; }
  .hero-right h1 { font-size: 2.2rem !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .social-row { justify-content: center; }
  .field-tags { justify-content: center; }
  .page-wrap { padding: 3rem 1.5rem 4rem; }
}

@media (min-width: 1600px) {
  html {
    font-size: 112%;
  }
}

@media (min-width: 1900px) {
  html {
    font-size: 125%;
  }
}