/* ===== Base ===== */
:root {
  --color-bg: #faf7f2;
  --color-text: #2b2a26;
  --color-muted: #6b6a63;
  --color-accent: #4a5d3a;
  --color-accent-dark: #33422a;
  --color-line: #ddd8cc;
  --color-box-bg: #f1ede3;
  --color-brown: #2e1b0e;
  --color-brown-dark: #1c110a;
  --font-heading: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-nav.solid {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--color-line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 20px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease;
}

.site-nav.solid .nav-links a {
  color: var(--color-text);
  text-shadow: none;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* ===== Cover ===== */
.cover {
  position: relative;
  height: 92vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(20, 24, 16, 0.35), rgba(20, 24, 16, 0.45)),
    url("../images/cover.jpg") center center / cover no-repeat;
  background-color: #3c3b2f; /* fallback shown until cover.jpg is added */
}

.cover-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: coverReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.cover-content p {
  margin: 10px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: coverReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

@keyframes coverReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Section spacing ===== */
section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--color-line);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 48px;
  color: var(--color-accent-dark);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 320px 540px;
  justify-content: center;
  column-gap: 48px;
  row-gap: 0;
}

.about-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--color-accent-dark);
}

.about-grid img {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  align-self: start;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-text {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.about-text p {
  color: #000;
  font-size: 1.02rem;
  text-align: justify;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  align-self: start;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--color-brown);
  border-radius: 4px;
  background: var(--color-brown);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-btn:hover {
  background: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
  color: #fff;
  text-decoration: none;
}

.social-btn.bluesky {
  border-color: #1185fe;
  background: #1185fe;
}

.social-btn.bluesky:hover {
  background: #0d64bf;
  border-color: #0d64bf;
}

.social-btn.linkedin {
  border-color: #0a66c2;
  background: #0a66c2;
}

.social-btn.linkedin:hover {
  background: #084d92;
  border-color: #084d92;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-title,
  .about-grid img,
  .about-text {
    grid-column: 1;
    grid-row: auto;
  }
  .about-grid img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ===== Research themes ===== */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.theme-box {
  display: flex;
  flex-direction: column;
  background: var(--color-box-bg);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.theme-box h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--color-accent-dark);
  margin: 0 0 14px;
}

.theme-box p {
  color: #000;
  margin: 0;
  font-size: 1.12rem;
  text-align: justify;
}

.theme-cta {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}

.theme-btn {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--color-brown);
  border-radius: 4px;
  background: var(--color-brown);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-btn:hover {
  background: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
  color: #fff;
  text-decoration: none;
}

.theme-btn.is-disabled {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-muted);
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 720px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Image Banner ===== */
.image-banner {
  padding: 0;
  border-top: none;
  background: var(--color-box-bg);
}

.image-banner + section {
  border-top: none;
}

.image-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Publications ===== */
.publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
  margin: 0 auto;
}

.publications-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.publications-list li:first-child {
  padding-top: 0;
}

.publications-list li:last-child {
  border-bottom: none;
}

.publications-list em {
  font-style: italic;
}

.pub-citation {
  margin: 0 0 14px;
  color: #000;
  font-size: 1.12rem;
  text-align: justify;
}

.pub-actions {
  display: flex;
  gap: 12px;
}

.pub-btn {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--color-brown);
  border-radius: 4px;
  background: var(--color-brown);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pub-btn:hover {
  background: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
  color: #fff;
  text-decoration: none;
}

.pub-btn.pdf {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.pub-btn.pdf:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.pub-btn.online {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.pub-btn.online:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-accent-dark);
  color: #f1ede3;
  text-align: center;
  padding: 32px 24px;
}

.site-footer blockquote {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 10px;
  line-height: 1.4;
}

.site-footer cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.site-footer .copyright {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ===== Simple / placeholder pages ===== */
.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-muted);
}

.placeholder-note {
  max-width: 560px;
  margin: 0 auto 100px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  padding: 24px;
  border: 1px dashed var(--color-line);
  border-radius: 6px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-box-bg);
  user-select: none;
  -webkit-user-select: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Shift the visible crop toward an edge for individual photos, e.g.
   <img class="crop-left" ...> to reveal more of the left side of the shot. */
.gallery-item img.crop-left { object-position: left center; }
.gallery-item img.crop-right { object-position: right center; }
.gallery-item img.crop-top { object-position: center top; }
.gallery-item img.crop-bottom { object-position: center bottom; }

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
}
