:root {
  --ink: #1f2328;
  --soft: #4a5059;
  --faint: #7b818b;
  --rule: #e3e5e8;
  --accent: #1c5fad;
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

.wrap {
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.nowrap { white-space: nowrap; }

/* Header: site name on the left, section links on the right */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.4rem;
}
.site-header a { color: var(--ink); }
.site-header a:hover { color: var(--accent); text-decoration: none; }
.site-header .brand {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  gap: 1.75rem;
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 2.75rem;
}
h1 {
  margin: 0 auto;
  max-width: 44rem;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.22;
}
.when {
  margin: 1.1rem 0 0;
  color: var(--soft);
}

/* Speakers, shown in the hero under the title */
.hero .people {
  max-width: 44rem;
  margin-top: 1.5rem;
  padding-top: 0;
}
.hero .person img {
  width: 8rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 0.7rem;
}
.hero .person .name { font-size: 1.2rem; }
.hero .person .affil { font-size: 1rem; }

/* Sections */
section[id] { margin-top: 2.5rem; }
h2 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
p { margin: 0 0 0.8rem; }
.note {
  color: var(--soft);
  font-size: 0.95rem;
}

/* Overview: text with the teaser figure beside it */
.overview {
  display: grid;
  /* The figure is sized so that its height matches the two paragraphs
     beside it at full width; if the text changes length, adjust 23.75rem. */
  grid-template-columns: minmax(0, 1fr) 23.75rem;
  gap: 1.75rem;
  align-items: center;
}
.overview-text p:last-child { margin-bottom: 0; }
.teaser { margin: 0; }
.teaser img {
  display: block;
  width: 100%;
  height: auto;
}

/* Speakers */
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 46rem;
  margin-inline: auto;
  padding-top: 0.5rem;
  text-align: center;
}
.person {
  display: block;
  color: var(--ink);
}
.person:hover { text-decoration: none; }
.person img {
  display: block;
  width: 7.25rem;
  height: 7.25rem;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rule);
  object-fit: cover;
}
.person .name {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}
.person:hover .name { text-decoration: underline; text-underline-offset: 0.18em; }
.person .affil {
  display: block;
  color: var(--soft);
  font-size: 0.95rem;
}

/* Schedule */
.schedule {
  width: 100%;
  border-collapse: collapse;
}
.schedule th {
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
  text-align: left;
}
.schedule td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.schedule th:last-child,
.schedule td:last-child { padding-right: 0; }
.schedule .time { white-space: nowrap; }
.schedule .who { white-space: nowrap; }
.schedule .part {
  margin-right: 0.4rem;
  font-weight: 700;
}
.schedule .tba { color: var(--faint); }
.schedule .pause td { color: var(--faint); }
.schedule details { margin-top: 0.15rem; }
.schedule summary {
  color: var(--faint);
  font-size: 0.95rem;
  cursor: pointer;
}
.schedule details p {
  margin: 0.3rem 0 0.2rem;
  color: var(--soft);
  font-size: 0.95rem;
}

/* Materials */
.materials {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
}
.materials dt { font-weight: 700; }
.materials dd { margin: 0; }

/* Footer */
footer {
  margin-top: 3rem;
  padding-bottom: 2rem;
  color: var(--soft);
  font-size: 0.92rem;
  text-align: center;
}
footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
footer a { color: var(--soft); }

/* Narrow screens: the teaser moves above the overview text */
@media (max-width: 800px) {
  .overview { grid-template-columns: 1fr; gap: 1rem; }
  .teaser {
    order: -1;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
  }
}

/* Small screens */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 3rem; }
  .site-header nav { display: none; }
  .hero { padding-top: 2rem; }
  h1 { font-size: 1.7rem; }
  .nowrap { white-space: normal; }
  .person img { width: 5.25rem; height: 5.25rem; }
  .hero .people { margin-top: 1.1rem; }
  .hero .person img { width: 6.25rem; margin-bottom: 0.5rem; }
  .hero .person .name { font-size: 1.05rem; }
  .hero .person .affil { font-size: 0.9rem; }
  .person .name { font-size: 1rem; }
  .person .affil { font-size: 0.88rem; }

  /* Schedule rows stack: time and speaker on one line, session below */
  .schedule thead { display: none; }
  .schedule tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .schedule tbody tr:first-child { border-top: 1px solid var(--ink); }
  .schedule td { padding: 0; border: 0; }
  .schedule .time { grid-row: 1; grid-column: 1; font-size: 0.92rem; color: var(--soft); }
  .schedule .who { grid-row: 1; grid-column: 2; font-size: 0.92rem; }
  .schedule .slides { grid-row: 1; grid-column: 3; font-size: 0.92rem; }
  .schedule .what { grid-row: 2; grid-column: 1 / -1; }

  .materials { grid-template-columns: 1fr; gap: 0; }
  .materials dd { margin-bottom: 0.6rem; }
}
