/* ── Palette: UNIL-adjacent blue & gold (matches the organizers' materials) ── */
:root {
  --blue:   #012169;
  --gold:   #B9975B;
  --ink:    #1a1a1a;
  --muted:  #525252;
  --bg:     #ffffff;
  --light:  #e8edf5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* The photo is optional. Drop a wide image at img/hero.jpg and it appears
   behind the blue veil below; until then the gradient alone is shown, and a
   missing file changes nothing. See README-site.txt for size guidance.      */
.hero {
  position: relative;
  background-color: var(--blue);
    background-image:
    linear-gradient(180deg,
      rgba(1, 33, 105, 0.68) 0%,
      rgba(1, 33, 105, 0.34) 45%,
      rgba(1, 33, 105, 0.78) 100%),
    url("img/hero.jpg");
  background-size: cover;
  background-position: center 58%;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--gold);
  color: #fff;
  padding: 2.2rem 1.5rem 4rem;
  text-align: center;
}
.hero nav {
  margin-bottom: 3rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}
.hero nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.9rem;
  opacity: 0.85;
  display: inline-block;
  padding: 0.15rem 0;
}
.hero nav a:hover { opacity: 1; border-bottom: 2px solid var(--gold); }
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: normal;
  letter-spacing: 0.5px;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(0, 20, 60, 0.55);
}
.hero .subtitle {
  margin-top: 0.8rem;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--gold);
  font-style: italic;
  text-shadow: 0 1px 14px rgba(0, 20, 60, 0.55);
}
.hero .meta {
  margin-top: 1.4rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 0 1px 14px rgba(0, 20, 60, 0.55);
}
.hero-body { max-width: 860px; margin: 0 auto; }

/* Landing page: no nav, so give the hero a little more room to breathe */
.hero-landing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-landing .subtitle { font-style: normal; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
main { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3rem 0 1rem; border-bottom: 1px solid #eee; }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--blue);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.4rem;
}
section p { margin-bottom: 1rem; }
.fine { font-size: 0.9rem; color: var(--muted); }
.lead { font-size: 1.12rem; }
a { color: var(--blue); }

/* ── Theme cards ──────────────────────────────────────────────────────────── */
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.theme-card {
  background: var(--light);
  border-top: 3px solid var(--gold);
  padding: 1.1rem 1.2rem;
}
.theme-card h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.theme-card p { font-size: 0.92rem; margin: 0; }

/* ── Keynote cards ────────────────────────────────────────────────────────── */
.keynotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.keynote-card {
  border: 1px solid #ddd;
  border-left: 4px solid var(--blue);
  padding: 1.3rem 1.5rem;
}
.keynote-card h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--blue);
  font-size: 1.15rem;
}
.keynote-card h3 a { text-decoration: none; }
.keynote-card h3 a:hover { border-bottom: 2px solid var(--gold); }
.keynote-card .affiliation {
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.keynote-card p { font-size: 0.95rem; }
.keynote-card img {
  width: 110px; height: 110px; object-fit: cover;
  border-radius: 50%;
  float: right; margin: 0 0 0.5rem 1rem;
}
.keynote-tbd {
  border-left-style: dashed;
  border-left-color: var(--gold);
}
.keynote-tbd h3 { color: var(--muted); }
.keynote-tbd .affiliation { color: var(--muted); }

/* ── Placeholders (CfP, Program) ──────────────────────────────────────────── */
.placeholder {
  background: #fafafa;
  border: 1px dashed var(--gold);
  padding: 1.4rem 1.6rem;
  color: var(--muted);
}
.placeholder strong { color: var(--ink); }

/* ── Call for papers ──────────────────────────────────────────────────────── */
.cfp-details {
  list-style: none;
  margin: 0 0 1rem;
}
.cfp-details li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  border-left: 3px solid var(--light);
  margin-bottom: 0.3rem;
}

/* ── Editions (landing page) ──────────────────────────────────────────────── */
.edition-card {
  border: 1px solid #ddd;
  border-left: 4px solid var(--blue);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}
.edition-card h3 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--blue);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.edition-date {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem !important;
}
.edition-card p:last-child { margin-bottom: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.cta { text-align: center; margin: 1.5rem 0; }
.cta-left { text-align: left; margin-bottom: 0; }
.button {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  padding: 0.75rem 2rem;
  border-radius: 4px;
}
.button:hover { background: var(--gold); }

/* ── Committee ────────────────────────────────────────────────────────────── */
.committee { list-style: none; }
.committee li {
  padding: 0.35rem 0 0.35rem 1.2rem;
  border-left: 3px solid var(--light);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  margin-top: 3rem;
  background: var(--light);
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--blue); }
.funding {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.funding img { max-height: 48px; vertical-align: middle; }

/* ── Logo band ────────────────────────────────────────────────────────────── */
/* Both logos sit on white, as their brand guidelines require. */
.logo-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.6rem;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 4px;
  max-width: 720px;
  margin: 0 auto 1.4rem;
  padding: 1.1rem 1.5rem;
}
.logo-band-label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-band a { display: inline-flex; align-items: center; }
.logo-band img { display: block; width: auto; }
.logo-unil { height: 34px; }
.logo-snsf { height: 30px; }

@media (max-width: 560px) {
  .hero nav a { margin: 0 0.55rem; }
  .logo-band { gap: 0.6rem 1rem; padding: 1rem; }
  .logo-unil { height: 28px; }
  .logo-snsf { height: 25px; }
}
