:root {
  --accent: #4a1f76;      /* MANOLO purple */
  --text: #1f1f24;
  --muted: #6b6878;
  --rule: #e4e1ea;
  --band: #f7f5fa;
  --bg: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Top bar: logo and title on the left, menu on the right.
   On narrow screens the menu moves to a second row. */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar-inner {
  padding: 10px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo title nav";
  align-items: center;
  gap: 8px 20px;  /* column gap = space between logo and title */
}
.brand-logo { grid-area: logo; justify-self: start; }
.brand-logo img { height: 48px; width: auto; display: block; }
.brand-title {
  grid-area: title;
  justify-self: start;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-title:hover { color: var(--accent); }
.topbar nav { grid-area: nav; justify-self: end; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.topbar nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.topbar nav a:hover,
.topbar nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 780px) {
  .topbar-inner { grid-template-areas: "logo title" "nav nav"; grid-template-columns: auto 1fr; padding: 10px 16px 0; row-gap: 4px; }
  .topbar nav { justify-self: center; }
  .topbar nav a { padding: 6px 0 8px; }
}

/* Hero (home page only) */
.hero {
  text-align: center;
  padding: 64px 16px 48px;
  background: var(--band);
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 auto 12px;
  max-width: 18em;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 auto 28px;
  max-width: 32em;
}
.hero .when { font-weight: 600; font-size: 1.2rem; margin: 0; }
.hero .note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.hero .where { margin: 4px 0 0; }
.hero .actions { margin-top: 28px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.content .actions { justify-content: flex-start; margin: 24px 0; }
.button {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.button:hover { background: #3a165f; }
.button.disabled { background: transparent; color: var(--muted); border-color: var(--rule); cursor: default; }
.button small { font-size: 0.8em; }

/* Main content column */
.content { max-width: 760px; margin: 0 auto; padding: 40px 16px 56px; }
.content h1, .content h2 { font-family: var(--serif); color: var(--accent); font-weight: 600; line-height: 1.25; }
.content h1 { font-size: 2.2rem; margin: 0 0 24px; }
.content h2 { font-size: 1.55rem; margin: 44px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.content > h2:first-child { margin-top: 0; }
.content ul { padding-left: 1.3em; }
.content li { margin: 4px 0; }

.muted { color: var(--muted); }

/* Venue map */
.venue-details { display: flow-root; }
.venue-location { width: 260px; max-width: 100%; margin: 0 auto 24px; }
.venue-location figcaption { margin-top: 8px; font-size: 0.85rem; text-align: center; }
.venue-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

@media (min-width: 720px) {
  .venue-location { float: right; margin: 0 0 20px 28px; }
}

/* Tables */
table { border-collapse: collapse; width: 100%; }
.dates th, .dates td { text-align: left; vertical-align: top; padding: 4px 12px 4px 0; }
.schedule td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; }
.dates th { font-weight: 500; width: 55%; }
.schedule .time { width: 5.5em; font-variant-numeric: tabular-nums; color: var(--muted); }
.schedule tr.break td { color: var(--muted); }
.schedule tr.break td:not(.time) { font-style: italic; }
.schedule .speaker { font-weight: 600; }
.schedule .speaker.muted { font-weight: 400; font-style: italic; }
.schedule .talk-title { font-style: italic; }

/* People */
.people { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 28px; }
.people li { margin: 0; }
.affiliation { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.topic { display: block; font-size: 0.9rem; margin-top: 4px; }
.schedule .affiliation { display: inline; margin-left: 6px; }
.schedule .affiliation::before { content: "· "; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  background: var(--band);
  padding: 32px 16px 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer p { max-width: 720px; margin: 8px auto; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 36px; margin-bottom: 20px; }
.logos img { height: 44px; width: auto; display: block; }
.logo-text { font-weight: 500; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-logo img { height: 38px; }
  .brand-title { font-size: 0.95rem; }
  .topbar nav { gap: 4px 14px; }
  .topbar nav a { font-size: 0.85rem; }
  .hero { padding: 44px 16px 36px; }
  .dates th { width: auto; }
}
