/* ===== Design tokens (sampled from the original Squarespace site) ===== */
:root {
  --mustard: #e8d390;
  --charcoal: #2d2d2a;
  --dusty-blue: #88b3b1;
  --heading-blue: #416495;
  --cream: #e9e6de;
  --cream-text: #f3ede0;
  --ink: #22221f;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 0.5em;
}

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

/* ===== Header / nav ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: currentColor;
}

.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: inherit;
}

/* ===== Research nav dropdown ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0 0 2px;
  margin: 0;
  font-family: var(--font-sans);
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  border-bottom-color: currentColor;
}

.nav-dropdown-toggle .caret {
  font-size: 0.7em;
  transition: transform 0.15s ease;
}

.nav-dropdown.open .nav-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 200px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  padding: 8px 0;
  z-index: 20;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(0,0,0,0.06);
}

/* Section backgrounds matching the original page-by-page palette */
.bg-mustard { background: var(--mustard); color: var(--ink); }
.bg-charcoal { background: var(--charcoal); color: var(--cream-text); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-dusty { background: var(--dusty-blue); color: var(--ink); }

.bg-charcoal .site-nav a.active,
.bg-charcoal .heading-accent { color: var(--dusty-blue); }

.heading-accent { color: var(--heading-blue); }

/* ===== Wavy divider between sections ===== */
.wave-divider {
  display: block;
  width: 100%;
  height: 90px;
  margin-bottom: -1px;
}

/* ===== Hero (homepage) ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 70vh;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--heading-blue);
}

.hero-rule {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.25);
  margin: 24px 0;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d87ad;
  font-size: 1.1rem;
  line-height: 2;
}

/* ===== Generic page hero (title band) ===== */
.page-hero {
  padding: 90px 0 60px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--heading-blue);
}

.page-hero.on-dark h1 { color: var(--cream-text); }

/* ===== Content sections ===== */
.section {
  padding: 70px 0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  margin-bottom: 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== Interactive kids-book preview ===== */
.book-preview {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  height: 560px;
}

.book-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.language-buttons .btn {
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
}

.language-buttons .btn.active {
  background: var(--charcoal);
  color: var(--cream-text);
}

.prose {
  font-size: 1.08rem;
  max-width: 68ch;
}

.prose p { margin: 0 0 1.2em; }

.prose.centered {
  margin: 0 auto;
  text-align: left;
}

/* ===== Research area banner ===== */
.banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 15, 0.28);
}

.banner-content { position: relative; z-index: 1; }

.banner h1,
.banner h2 {
  color: #fdf8ea;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 28px;
}

.pill-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill-row span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fdf8ea;
}

/* ===== Full-bleed photo overlay (Circular Economy, Publications, Contact) ===== */
.photo-overlay-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 60px 24px;
  overflow: hidden;
}

.photo-overlay-section.overlay-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 12, 0.55);
}

.photo-overlay-section.overlay-split {
  min-height: 60vh;
}

.photo-overlay-section .overlay-bg-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.photo-overlay-section .overlay-bg-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.photo-overlay-card {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  background: rgba(20, 20, 16, 0.55);
  backdrop-filter: blur(2px);
  border-radius: 20px;
  padding: 44px 48px;
  color: var(--cream-text);
  text-align: left;
}

.photo-overlay-card h1 {
  color: #fdf8ea;
}

.photo-overlay-card .heading-accent {
  color: var(--dusty-blue);
}

.photo-overlay-card .contact-block h3 {
  color: var(--dusty-blue);
}

.photo-overlay-card a {
  color: var(--dusty-blue);
}

@media (max-width: 640px) {
  .photo-overlay-card {
    padding: 30px 26px;
  }
}

/* ===== Cards (research topics, press) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bg-cream .card,
.bg-mustard .card {
  background: rgba(0,0,0,0.04);
}

.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body { padding: 22px 24px; }

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card-body p {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.9;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* ===== Video embeds ===== */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px 999px 999px 0;
  background: var(--charcoal);
  color: var(--cream-text);
  text-decoration: none;
  font-size: 0.98rem;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #1c1c19;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--dusty-blue);
  color: inherit;
  border-radius: 6px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.contact-block { margin-bottom: 32px; }

.contact-block h3 {
  color: var(--heading-blue);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-block a,
.contact-block p {
  margin: 0;
  font-size: 1.05rem;
}

/* ===== Contact form ===== */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.2);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(255,255,255,0.6);
}

.contact-form button {
  border: none;
  cursor: pointer;
  justify-self: start;
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 0 36px;
  text-align: center;
}

.site-footer .social-icons {
  justify-content: center;
  margin-bottom: 14px;
}

.site-footer .email {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

/* ===== Waitlist / coming soon ===== */
.waitlist-box {
  text-align: center;
  padding: 60px 0 90px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image { order: -1; min-height: 320px; }

  .site-header { padding: 20px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 12px;
  }

  .site-nav.open { display: flex; }

  .social-icons { order: 2; }

  .nav-dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 4px 0;
    margin-top: 8px;
    width: 100%;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}
