/* ==========================================================================
   fedehuneeus.com — stylesheet
   Replicates the look of the previous Squarespace (Pacific) site:
   Raleway, dark header over a full-screen photo slideshow, white sections,
   orange links, dark footer.  Colours and sizes are set once here.
   ========================================================================== */
:root {
  --bg-dark: #171717;        /* page background behind header/footer */
  --bg-hero: #201713;        /* behind the photos while they load */
  --bg-prefooter: #1f1f1f;
  --bg-section: #ffffff;
  --text: rgba(0, 0, 0, .95);
  --text-muted: rgba(0, 0, 0, .6);
  --heading: #201713;
  --accent: #ff8000;         /* link colour */
  --accent-hover: #e67300;
  --nav: rgba(255, 255, 255, .7);
  --nav-active: #ffffff;
  --footer-text: #c9c9c9;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --content-max: 1080px;
  --header-h: 97px;
  --sticky-h: 45px;
  --section-gap: 110px;      /* vertical space between any two blocks of content */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: .4px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ---------- header over the photos ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--header-h);
}
.header-inner {
  height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 34px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding-top: 31px;
}
.site-title-wrap { position: relative; text-align: center; padding: 0 24px; }
.site-header nav { white-space: nowrap; }
.site-title {
  display: block; color: #fff; font-weight: 600; font-size: 30px; line-height: 34px; letter-spacing: 2px;
  text-transform: uppercase; white-space: nowrap;
}
.site-tagline {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin: 8px 0 0; color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap;
}
.site-title:hover { color: #fff; text-decoration: none; }
.site-header nav a, .sticky-nav nav a {
  display: inline-block; padding: 10px 14px;
  color: var(--nav); font-size: 14px; font-weight: 700; line-height: 14px;
  letter-spacing: 2px; text-transform: uppercase;
}
.site-header nav a:hover, .sticky-nav nav a:hover,
.site-header nav a.is-active, .sticky-nav nav a.is-active { color: var(--nav-active); text-decoration: none; }
.nav-left { text-align: right; }
.nav-right { text-align: left; }
.nav-toggle { display: none; }

/* ---------- sticky bar shown after scrolling past the hero ---------- */
.sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--sticky-h); background: #1c1c1c; text-align: center;
  transform: translateY(-100%); transition: transform .25s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.sticky-nav.is-visible { transform: translateY(0); }
.sticky-nav nav { height: 100%; display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; overflow-x: auto; }
.sticky-nav nav a { padding: 15px 14px; line-height: 15px; }
body.page .site-header { position: relative; background: var(--bg-dark); }
body.page .sticky-nav { display: none; }

/* ---------- hero slideshow ---------- */
.hero { position: relative; height: 100vh; min-height: 520px; background: var(--bg-hero); overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero-arrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; z-index: 5;
  background: none; border: 0; cursor: pointer; opacity: .8; transition: opacity .2s;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow::before {
  content: ""; display: block; width: 18px; height: 18px; margin: 13px auto;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
}
.hero-prev { left: 14px; } .hero-prev::before { transform: rotate(45deg); }
.hero-next { right: 14px; } .hero-next::before { transform: rotate(-135deg); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5; text-align: center; }
.hero-dot {
  width: 9px; height: 9px; margin: 0 7px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75); background: transparent; cursor: pointer;
}
.hero-dot.is-active { background: #fff; }

/* ---------- content sections ---------- */
.index-section { background: var(--bg-section); }
.content { max-width: var(--content-max); margin: 0 auto; padding: calc(var(--section-gap) / 2) 34px; }
h2 {
  margin: 0 0 .5em; color: var(--heading);
  font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: uppercase;
}
h2.h2-gap { margin-top: var(--section-gap); }
.content > *:has(+ h2.h2-gap) { margin-bottom: 0; }
.content > ul:has(+ h2.h2-gap) > li:last-child { margin-bottom: 0; }
h3 {
  margin: 1.6em 0 .4em; color: rgba(0,0,0,.8);
  font-size: 15px; font-weight: 700; letter-spacing: .75px; text-transform: uppercase; line-height: 21px;
}
h3 a { font-weight: 700; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.about-text p { margin-bottom: 1.05em; }
.about-photo img { width: 100%; }
.about-photo .social { margin-top: 20px; justify-content: center; }

/* research / policy items */
.paper { margin: 0 0 2.4em; }
.paper:last-child { margin-bottom: 0; }
.paper > :last-child { margin-bottom: 0; }   /* no stray space after the last line of an entry */
.paper-title { margin: 0 0 .5em; font-weight: 700; text-transform: uppercase; }
.paper-title a, .entry-title { font-weight: 700; text-transform: uppercase; }   /* every entry title: bold capitals */
.paper-date { color: var(--text-muted); font-weight: 400; text-transform: none; }
.paper-meta, .paper-extra, .paper-award, .paper-summary { margin: 0 0 .5em; }
.paper-abstract { margin-top: .3em; }
.paper-abstract summary { cursor: pointer; color: var(--text-muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.paper-abstract p { margin: .6em 0 0; color: rgba(0,0,0,.8); }

/* lists */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { margin: 0 0 1em; }
.plain-list li:last-child { margin-bottom: 0; }
.course-list li { margin-bottom: .35em; }
.data-list li { margin-bottom: .8em; }

.also-at { color: var(--text-muted); }

/* references */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 34px; }
.ref { margin-bottom: 1.6em; }
.ref p { margin: 0; }
.ref-affiliation { color: var(--text-muted); }

/* ---------- social icons ---------- */
.social { display: flex; gap: 8px; }
.social a { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.social svg { width: 14px; height: 14px; }
.social-dark a { background: #111; } .social-dark svg { fill: #fff; }
.social-dark a:hover { background: var(--accent); }
.social-light a { background: transparent; } .social-light svg { fill: var(--footer-text); width: 20px; height: 20px; }
.social-light a:hover svg { fill: #fff; }

/* ---------- footer ---------- */
.pre-footer { background: var(--bg-prefooter); color: var(--footer-text); text-align: center; padding: 60px 34px 50px; }
.pre-footer .social { justify-content: center; margin-bottom: 36px; }
.back-to-top { color: var(--footer-text); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.back-to-top:hover { color: #fff; }
.site-info {
  background: var(--bg-dark); color: rgba(255,255,255,.8); text-align: center;
  padding: 28px 34px; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; line-height: 24px;
}
.site-info span::after { content: "\00a0\00a0·\00a0\00a0"; opacity: .5; }
.site-info a { color: rgba(255,255,255,.8); }

/* ---------- mobile overlay menu ---------- */
.overlay-nav {
  position: fixed; inset: 0; z-index: 40; background: rgba(23,23,23,.97);
  display: flex; align-items: center; justify-content: center;
}
.overlay-nav[hidden] { display: none; }
.overlay-nav nav { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.overlay-nav nav a { color: #fff; font-size: 20px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; padding: 12px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-left, .nav-right { display: none; }
  .header-inner { align-items: center; padding-top: 0; }
  .site-title-wrap { padding: 0; justify-self: start; }
  .site-title { font-size: 22px; line-height: 28px; }
  .nav-toggle {
    display: block; justify-self: end; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; position: relative; z-index: 50;
  }
  .nav-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .sticky-nav { display: none; }
  .hero { height: 70vh; min-height: 380px; }
  .site-tagline { display: none; }
  .about-grid, .ref-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 420px; }
  :root { --section-gap: 80px; }
  .content { padding: calc(var(--section-gap) / 2) 20px; }
  h2 { font-size: 28px; }
  .site-info span { display: block; } .site-info span::after { content: ""; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
