:root {
  --purple: #4a1766;
  --purple-2: #6b2190;
  --magenta: #e0187e;
  --gold: #f4b81c;
  --paper: #fbf8f2;
  --card: #ffffff;
  --ink: #2b2230;
  --muted: #6d6375;
  --line: #e8e0ea;
  --tabs-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: var(--purple-2); }

/* ---- masthead: echoes the printed cover ---- */
.masthead {
  background:
    radial-gradient(120% 80% at 100% 0%, #8a2aa8 0%, transparent 60%),
    linear-gradient(160deg, var(--purple) 0%, #6a1d8c 55%, #a01a86 100%);
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  overflow: hidden;
}
.brand { max-width: 720px; margin: 0 auto; }
.brand-name { font-weight: 700; letter-spacing: .04em; font-size: 22px; line-height: 1.1; }
.brand-sub { font-size: 12.5px; opacity: .9; line-height: 1.3; }
.ribbon {
  margin: 12px -24px 6px;
  background: linear-gradient(90deg, #ff2e8a, var(--magenta));
  transform: rotate(-2deg);
  text-align: center;
  padding: 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ribbon span { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 20px; }
.meeting { text-align: center; font-weight: 700; letter-spacing: .03em; font-size: 15px; }

main { max-width: 720px; margin: 0 auto; padding: 12px 16px 0; outline: none; }

h1.page { font-size: 20px; color: var(--purple); margin: 8px 0 12px; line-height: 1.25; }
.dayline { font-weight: 700; color: var(--purple); margin: 6px 0 10px; font-size: 18px; }

/* ---- cards with the program's purple header band ---- */
.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(60, 20, 80, .08), 0 4px 16px rgba(60, 20, 80, .06);
  margin: 0 0 16px;
  overflow: hidden;
}
.band {
  margin: 0;
  background: linear-gradient(100deg, var(--purple) 0%, var(--purple-2) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
  border-bottom: 3px solid var(--magenta);
  line-height: 1.3;
}
.band small { display: block; font-weight: 500; font-size: 13.5px; opacity: .9; }

.hero {
  background: #fff;
  border-left: 5px solid var(--magenta);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 4px 0 16px;
}
.hero p { margin: 4px 0; }
.kicker { font-weight: 800; color: var(--purple); font-size: 18px; }

/* ---- event list ---- */
.list { list-style: none; margin: 0; padding: 0; }
.ev { padding: 12px 16px; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev .time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.ev .time > span:first-child { font-style: italic; white-space: nowrap; }
.ev .title { display: block; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; margin: 2px 0 4px; }
.ev a.title { color: var(--purple-2); }
.ev a.title::after { content: " ›"; color: var(--magenta); }
.ev.now { background: #fdf0f7; }
.live {
  display: inline-block; font-style: normal; font-weight: 800; font-size: 11px; line-height: 1.6;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--magenta);
  border-radius: 999px; padding: 1px 8px;
}
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 4px; padding: 0 6px; line-height: 1.6;
}
.badge.alliance { background: #f3e6f8; color: var(--purple-2); }
.badge.suite { background: #fff3d6; color: #8a5a00; }
.badge.acaai { background: #e9eef6; color: #2f4a72; }
.note { color: var(--muted); font-style: italic; font-size: 14.5px; margin: 4px 0 0; }

.where {
  display: flex; gap: 6px; align-items: flex-start; color: var(--ink); text-decoration: none;
  font-size: 15px; line-height: 1.35;
}
.where svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--magenta); stroke-width: 2; }
.where span { border-bottom: 1px dotted #b9a9c2; }

/* ---- day chips ---- */
.chips { display: flex; gap: 8px; margin: 0 0 14px; }
.chip {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; text-decoration: none; font-weight: 700;
  color: var(--purple); background: #fff; border: 2px solid #dccbe5;
}
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---- suite + talks ---- */
.suite, .talk { padding: 4px 16px 14px; }
.suite .big { font-weight: 800; font-size: 19px; color: var(--purple); text-align: center; margin: 10px 0; line-height: 1.35; }
.suite p { margin: 8px 0; }
.talk .when { font-style: italic; color: var(--muted); margin: 12px 0 2px; }
.talk h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.talk .presenter { margin: 0 0 6px; color: var(--purple-2); font-weight: 600; }
.talk p { margin: 8px 0; }

/* ---- maps ---- */
.map .note { padding: 8px 16px 0; font-style: normal; color: var(--purple-2); font-weight: 600; }
.map img { display: block; width: 100%; height: auto; padding: 10px; background: #fff; }
.hint { color: var(--muted); font-size: 13px; padding: 0 16px 12px; margin: 0; }

/* ---- about ---- */
.letter { padding: 6px 16px 12px; }
.letter p { margin: 10px 0; }
.sig { font-weight: 700; }
.sig span { font-weight: 400; color: var(--muted); }
.chairs { list-style: none; margin: 0; padding: 6px 16px; }
.chairs li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.chairs li:first-child { border-top: 0; }
.chairs .yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.card > .note { padding: 0 16px 12px; }
.future { list-style: none; margin: 0; padding: 8px 16px 14px; text-align: center; }
.future li { padding: 6px 0; }
.future b { display: block; color: var(--purple); }
.future span { color: var(--muted); }

/* ---- bottom tab bar ---- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(60, 20, 80, .08);
  z-index: 10;
}
.tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 2px 0;
}
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabs a.on { color: var(--magenta); }

.talk > .band { margin: 0 -16px; }
.guide { padding: 0 16px 16px; }
.guide > .band { margin: 0 -16px; }
.guide h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.3; }
.guide p { margin: 0 0 14px; }
.back { display: inline-block; margin: 4px 0 0; font-weight: 700; text-decoration: none; color: var(--purple-2); }
.places { list-style: none; margin: 0; padding: 0; }
.place { padding: 12px 16px; border-top: 1px solid var(--line); }
.place:first-child { border-top: 0; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pl-name { font-weight: 700; line-height: 1.3; }
.pl-walk { flex: none; max-width: 45%; text-align: right; font-size: 13.5px; color: var(--muted); font-style: italic; }
.pl-note { margin: 6px 0 8px; font-size: 15.5px; }
.status { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 1px 10px; }
.status.open { background: #e3f4e8; color: #1d6b34; }
.status.later { background: #fff3d6; color: #8a5a00; }
.status.closed { background: #eeeaf0; color: var(--muted); }
.place.closed .pl-name, .place.closed .pl-note { color: var(--muted); }
.pdf-link { text-align: center; margin: 4px 0 20px; font-size: 15px; }
.button {
  display: block; text-align: center; padding: 12px 16px; border-radius: 999px;
  background: var(--magenta); color: #fff; font-weight: 800; text-decoration: none;
}
