/* Structure shared by every theme. Themes set the tokens below and restyle components.
   Keep colors, fonts, and decoration out of this file. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5f5f5f;
  --surface: #f4f4f4;
  --border: #dddddd;
  --accent: #1a1a1a;
  --accent-fg: #ffffff;
  --link: var(--fg);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 8px;
  --maxw: 760px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 100; background: var(--bg); padding: 6px 10px; }

/* ---------- header and nav ---------- */
.site-header__inner, .site-main, .site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; color: inherit; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 16px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; color: inherit; font-size: 0.92rem; white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-facts { display: none; }  /* sidebar themes turn this on */

/* Phones: nav becomes one horizontally scrollable row instead of a hamburger. */
@media (max-width: 720px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 4px; }
}

/* ---------- main blocks ---------- */
.site-main { padding-top: 24px; padding-bottom: 64px; }
.page-head { margin: 24px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.block, .prose { margin-top: 40px; }
.prose > :first-child { margin-top: 0; }
.note { color: var(--muted); font-size: 0.9rem; }
.tba { font-family: var(--font-mono); font-size: 0.8em; letter-spacing: 0.05em; color: var(--muted); border: 1px dashed var(--border); border-radius: 4px; padding: 0 6px; }
.prose dt { font-weight: 700; margin-top: 16px; }
.prose dd { margin: 4px 0 0; }

/* hero */
.hero { padding: 32px 0 8px; }
.hero__title { font-size: clamp(2.6rem, 11vw, 5rem); margin: 0.1em 0; letter-spacing: -0.02em; }
.hero__kicker { margin: 0; font-size: 1.05rem; }
.hero__tagline { font-size: 1.2rem; color: var(--muted); margin: 0 0 20px; }

/* key facts (venue, date, ...) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.button { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--accent); border-radius: var(--radius); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.button--primary { background: var(--accent); color: var(--accent-fg); }

/* callout (BoF banner) */
.callout { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.callout p { margin: 0; }
.callout__eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.callout__title { font-size: 1.15rem; font-weight: 700; }
.callout__meta { color: var(--muted); font-size: 0.95rem; }

/* dates */
.dates { list-style: none; padding: 0; margin: 0; }
.dates li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dates__when { font-weight: 600; }
.dates .is-done .dates__what, .dates .is-done .dates__when { text-decoration: line-through; color: var(--muted); }
@media (max-width: 480px) { .dates li { grid-template-columns: 1fr; gap: 0; } }

/* news */
.news__list { list-style: none; padding: 0; margin: 0; }
.news__list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.news__date { display: block; font-size: 0.8rem; color: var(--muted); }
.news__text p { margin: 0; }

/* people */
.people { list-style: none; padding: 0; margin: 0; }
.people--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; }
.people--cards .person { display: flex; flex-direction: column; gap: 2px; }
.people--bios .person { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; }
.people--bios .person__name { margin: 0; }
.people--bios p { margin: 4px 0; }
@media (max-width: 480px) { .people--bios .person { grid-template-columns: 1fr; } }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--muted); }
.person__name { font-weight: 700; }
.person__role { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.person__aff, .person__bio { font-size: 0.9rem; color: var(--muted); }
.committee { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 32px; }
.committee li { break-inside: avoid; padding: 6px 0; }
.committee .person__aff { display: block; }

/* schedule */
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule__row { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.schedule__row--break { color: var(--muted); }
.schedule__row--keynote .schedule__title { font-weight: 700; }

/* bof */
.bof__title { font-size: 1.6rem; }
.facts--bof dd { font-size: 1.05rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 72px; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* ---------- style bar (always visible at the bottom) ---------- */
.has-style-bar { padding-bottom: 64px; }  /* keep the footer clear of the bar */
.style-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); color: var(--fg); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(0,0,0,.08); font-family: var(--font-body);
}
.style-bar__label { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.style-bar__options { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.style-bar__options::-webkit-scrollbar { display: none; }
.style-bar button {
  flex: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--fg); background: transparent; color: var(--fg); font: inherit; font-size: 0.9rem; font-weight: 600;
}
.style-bar button:hover { background: var(--bg); }
.style-bar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.style-bar button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.style-bar .style-bar__random { border-style: dashed; font-weight: 500; color: var(--muted); border-color: var(--muted); }
@media (max-width: 560px) {
  .has-style-bar { padding-bottom: 96px; }
  .style-bar { gap: 6px; padding-top: 8px; }
  .style-bar__label { width: 100%; text-align: center; font-size: 0.85rem; }
  .style-bar__options { gap: 5px; }
  .style-bar button { padding: 6px 9px; font-size: 0.8rem; }
}
