@import url("reset.css");

:root {
  --maroon: #800000;
  --text: #2a2a2a;
  --light: #f7f5f2;
  --muted: #888;
  --max-width: 680px;
}

html {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  background: white;
  color: var(--text);
}

body {
  margin: 0;
  padding: 0;
}

/* ── Nav ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e8e4e0;
  padding: 0.7em 0;
  text-align: center;
  z-index: 100;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 1.4em;
}

nav a:hover {
  color: var(--maroon);
}

/* ── Header ── */

header {
  background: var(--light);
  text-align: center;
  padding: 6em 2em 4em;
  border-bottom: 1px solid #e8e4e0;
}

h1 {
  font-size: 3.2em;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.4em;
  color: black;
}

.subtitle {
  font-style: italic;
  font-size: 1.2em;
  color: #555;
  margin-bottom: 0.6em;
}

.details {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--maroon);
}

/* ── Main content ── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3em 2em 4em;
}

section {
  margin-bottom: 3em;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #e8e4e0;
}

p {
  line-height: 1.65;
  margin-bottom: 1em;
}

/* ── Speaker list ── */

.speaker-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.speaker-list li {
  padding: 0.55em 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: baseline;
  gap: 0.8em;
}

.speaker-list li:first-child {
  border-top: 1px solid #eee;
}

.name {
  font-weight: 600;
  min-width: 170px;
}

.affil {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95em;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 2em;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid #e8e4e0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--maroon);
}

/* ── Mobile ── */

@media (max-width: 600px) {
  h1 {
    font-size: 2.2em;
  }

  nav a {
    margin: 0 0.8em;
  }

  .speaker-list li {
    flex-direction: column;
    gap: 0.1em;
  }

  .name {
    min-width: unset;
  }
}
