/* ==========================================================================
   Open Science in Management Summit — design tokens
   Palette pulled from the event flyer (teal identity)
   ========================================================================== */
:root {
  --pine: #17453e;      /* deep teal — hero & register band */
  --teal: #2e7266;      /* flyer teal — primary actions */
  --aqua: #9ad6c6;      /* light accent on dark */
  --mist: #ecf4f1;      /* tinted section background */
  --paper: #fbfcfb;     /* page background */
  --ink: #14211e;       /* body text */
  --ink-soft: #4c5f5a;  /* secondary text */
  --line: #d5e2dd;

  --display: "Sora", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--teal); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.02em; }

/* ---------- protocol tags (signature label style) ---------- */
.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0 0 0.75rem;
}
.tag--light { color: var(--aqua); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(23, 69, 62, 0.92);
  backdrop-filter: blur(8px);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  white-space: nowrap;
}
.nav__brand-thin { font-weight: 500; color: var(--aqua); }
.nav__dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--aqua);
  flex: none;
}
.nav__links { display: flex; gap: 1.25rem; }
.nav__links a {
  color: #dcefe9;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nav__links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--aqua);
  text-decoration-thickness: 2px;
}
.nav__toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(46, 114, 102, 0.35); }
.btn--ghost { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.hero .btn--ghost { border-color: var(--aqua); color: var(--aqua); }
.btn--invert { background: #fff; color: var(--pine); }
.btn--nav { background: var(--aqua); color: var(--pine); padding: 0.55rem 1.2rem; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90rem 40rem at 110% -20%, rgba(154, 214, 198, 0.16), transparent 60%),
    var(--pine);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}
/* full-bleed VU campus photo behind a teal overlay */
.hero--photo {
  background:
    linear-gradient(100deg, rgba(13, 37, 33, 0.94) 0%, rgba(16, 43, 38, 0.82) 46%, rgba(23, 69, 62, 0.55) 100%),
    url("assets/vu-hero.jpg");
  background-size: cover;
  background-position: center 42%;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 14em;
}
.hero__accent { color: var(--aqua); }

/* keep hero content from stretching edge-to-edge on wide screens */
.hero__inner { max-width: 1160px; margin: 0 auto; }

.hero__lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #d8ebe5;
  margin: 0 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem 2rem;
  max-width: 46rem;
  margin: 0;
  border-top: 1px solid rgba(154, 214, 198, 0.3);
  padding-top: 1.5rem;
}
.hero__facts dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
}
.hero__facts dd { margin: 0.15rem 0 0; font-weight: 600; }

/* ---------- page header band (subpages) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90rem 40rem at 110% -20%, rgba(154, 214, 198, 0.16), transparent 60%),
    var(--pine);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.page-head__inner { max-width: var(--max); margin: 0 auto; }
/* variant: Amsterdam photo behind the teal overlay */
.page-head--photo {
  background-image:
    linear-gradient(115deg, rgba(23, 69, 62, 0.94) 0%, rgba(23, 69, 62, 0.74) 55%, rgba(23, 69, 62, 0.55) 100%),
    var(--head-img, url("assets/amsterdam-hero.jpg"));
  background-size: cover;
  background-position: center 62%;
  padding-top: clamp(4rem, 9vw, 6.5rem);
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
}
.page-head--travel { --head-img: url("assets/travel-hero.jpg"); }
.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: #fff;
  max-width: 16em;
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
}
.section--tint {
  max-width: none;
  background: var(--mist);
}
.section--tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--pine);
}
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--pine);
}
.section__note { color: var(--ink-soft); max-width: 46em; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pill-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 2rem 0 0;
}
.pill-row li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.pill-row li {
  color: var(--ink);   /* keep text dark on light section backgrounds */
}
.pill-row li::before {
  content: "";
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--teal);   /* the flyer's teal dots */
  flex: none;
}

/* On the dark hero, pills become translucent teal chips with light text */
.hero .pill-row li {
  background: rgba(154, 214, 198, 0.12);
  border-color: rgba(154, 214, 198, 0.35);
  color: #eaf5f0;
}
.hero .pill-row li::before { background: var(--aqua); }

/* ---------- program ---------- */
.days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}
.day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.day__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.day__head p { margin: 0; color: var(--ink-soft); }
.sched {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.sched li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-top: 1px dashed var(--line);
}
.sched .mono { color: var(--teal); font-weight: 500; padding-top: 0.1rem; }

.tracks h3 { margin-bottom: 1rem; }
.track {
  background: #fff;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}
.track__label { color: var(--teal); font-weight: 500; margin: 0 0 0.4rem; }
.track p:last-child { margin: 0; }

/* ---------- people ---------- */
.group-title {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mist);
}
.people {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.person strong { display: block; font-family: var(--display); font-weight: 700; color: var(--pine); }
.person span:not(.person__initials) { color: var(--ink-soft); font-size: 0.92rem; }
.person__initials {
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--teal);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}
.person--keynote {
  background: var(--pine);
  border-color: var(--pine);
}
.person--keynote strong { color: #fff; }
.person--keynote span:not(.person__initials) { color: #cfe8e0; }
.person--keynote .person__initials { background: var(--aqua); color: var(--pine); }
.people--feature { grid-template-columns: 1fr; max-width: 44rem; }
.section--tint .person { border-color: transparent; }

/* ---------- cards (travel / stay) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p:last-child { margin-bottom: 0; }
.section--tint .card { border-color: transparent; }

/* photo at the top of a card, flush to its edges */
.card { overflow: hidden; }
.card__photo {
  display: block;
  width: calc(100% + 3rem);
  height: 190px;
  object-fit: cover;
  object-position: center;
  margin: -1.5rem -1.5rem 1.25rem;
  background: var(--mist);
}
.card__photo--top { object-position: top center; }

/* image credit line */
.credits { font-size: 0.72rem; color: var(--slate); margin-top: 2rem; }
.credits a { color: inherit; text-decoration: underline; }

/* ---------- reading / resources page ---------- */
.res-feature {
  background: var(--pine);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: 1.5rem;
}
.res-feature h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.res-feature p { color: #d8ebe5; max-width: 48em; margin: 0; }
.res-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* scannable resource list */
.res-list { margin-top: 1.75rem; border-top: 1px solid var(--fog); }
.res-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 2.5rem;
  padding: 1.4rem 0.75rem;
  border-bottom: 1px solid var(--fog);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.res-item:hover { background: rgba(23, 69, 62, 0.045); padding-left: 1.25rem; }
.res-item__main { flex: 1 1 auto; max-width: 48em; }
.res-item__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pine);
  margin: 0 0 0.25rem;
}
.res-item__title .arrow { color: var(--teal); white-space: nowrap; }
.res-item:hover .res-item__title { text-decoration: underline; text-underline-offset: 3px; }
.res-item__desc { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.res-item__meta { flex: none; align-self: center; color: var(--slate); text-align: right; }
@media (max-width: 640px) {
  .res-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .res-item__meta { text-align: left; align-self: flex-start; }
}

/* ---------- organizer team panel ---------- */
.team-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 840px;
  margin: 2.5rem auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 2.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-left: 1px solid var(--line);
  transition: background 0.15s ease;
}
.team-cell:first-child { border-left: 0; }
.team-cell:hover { background: var(--mist); }
.team-cell__photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--fog);
  margin-bottom: 0.35rem;
  transition: border-color 0.15s ease;
}
.team-cell:hover .team-cell__photo { border-color: var(--teal); }
.team-cell strong { font-family: var(--display); font-weight: 700; color: var(--pine); }
.team-cell span { color: var(--ink-soft); font-size: 0.9rem; }

/* round photo inside the .person list (organizers page) */
.person__photo {
  flex: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- partner logo strip ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding: 2.75rem clamp(1.25rem, 5vw, 3rem);
  background: #fff;
  border-top: 1px solid var(--line);
}
.partners img {
  height: 54px;
  width: auto;
  display: block;
}

/* ---------- register band ---------- */
.register {
  background: var(--pine);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}
.register h2 { color: #fff; }
.register p { max-width: 38em; margin: 0 auto 1.75rem; color: #d8ebe5; }
.register__hint { margin-top: 1.5rem; color: var(--aqua); font-size: 0.85rem; }
.register__hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer p { margin: 0.3rem 0; }

/* ---------- mobile nav ---------- */
@media (max-width: 780px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--pine);
    padding: 0.5rem 0 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 1.5rem; }
  .btn--nav { margin-left: auto; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.4rem; height: 2.4rem;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav__toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  /* stack the organizer panel into one column with horizontal dividers */
  .team-panel { grid-template-columns: 1fr; max-width: 340px; }
  .team-cell { border-left: 0; border-top: 1px solid var(--line); }
  .team-cell:first-child { border-top: 0; }
}
