/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* Dark surfaces */
  --dark-bg:      #0d1821;
  --dark-surface: #162030;
  --dark-border:  #223040;
  --dark-text:    #dce4ed;
  --dark-muted:   #7a96aa;

  /* Light surfaces */
  --light-bg:     #eae6de;
  --light-surface:#f2efe9;
  --light-border: #d0cbc1;
  --light-text:   #1a2530;
  --light-muted:  #546070;

  /* Accent */
  --accent:       #3a6b56;
  --accent-hover: #2d5443;
  --fog:          #8fa5b8;
  --horizon:      #b8a98a;

  --space:    1rem;
  --space-lg: clamp(2.5rem, 6vw, 4rem);
  --header-h: 2.5rem;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  background: var(--light-bg);
  color: var(--light-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--dark-surface);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

/* ── Wrap ────────────────────────────────────────────────────────────────── */
.wrap {
  width: min(100% - 2 * var(--space), 72rem);
  margin-inline: auto;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--dark-bg) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  min-height: var(--header-h);
  width: min(100% - 2 * var(--space), 72rem);
  margin-inline: auto;
  padding-block: 0.5rem;
}

.site-logo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-logo a {
  color: var(--dark-text);
  text-decoration: none;
}

.site-logo a:hover {
  color: var(--fog);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--dark-text);
}

.site-nav a[aria-current="page"] {
  color: var(--dark-text);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--dark-bg);
  color: var(--dark-text);
  min-height: min(38vh, 22rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(1rem, 3vw, 1.75rem);
  padding-bottom: 0;
}

.hero .wrap {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero a {
  color: var(--fog);
}

.hero a:hover {
  color: var(--dark-text);
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 1rem;
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 36rem;
  color: var(--dark-muted);
  margin-bottom: 0;
}


/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--space-lg);
}

.section--surface {
  background: var(--light-surface);
}

.feature-list li {
  max-width: 36rem;
}

/* ── Schedule (multi-track table) ────────────────────────────────────────── */
.schedule-intro {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.schedule-scroll {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--light-border);
  border-radius: 2px;
  background: var(--light-bg);
}

.schedule-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.schedule-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: var(--light-surface);
  border-bottom: 1px solid var(--light-border);
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--light-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.schedule-table thead th {
  background: var(--light-surface);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.schedule-table tbody th[scope="row"] {
  background: color-mix(in srgb, var(--light-surface) 75%, var(--light-bg));
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  white-space: nowrap;
}

.schedule-table tbody td {
  color: var(--light-muted);
  font-style: italic;
}

.schedule-table__span {
  text-align: center;
  font-style: italic;
  color: var(--light-muted);
  background: color-mix(in srgb, var(--light-surface) 50%, var(--light-bg));
}

.schedule-footnote {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--light-muted);
}

/* ── Speaker grid ────────────────────────────────────────────────────────── */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.speaker-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.speaker-card:hover {
  border-color: var(--fog);
}

.speaker-card__portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--dark-surface);
  overflow: hidden;
}

.speaker-card__portrait svg {
  width: 100%;
  height: 100%;
  display: block;
}

.speaker-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.speaker-card__name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--step-2);
  font-weight: 400;
  margin: 0 0 0.25rem;
  color: var(--light-text);
}

.speaker-card__role {
  font-size: var(--step--1);
  color: var(--light-muted);
  margin: 0;
}

/* ── Speaker detail page ─────────────────────────────────────────────────── */
.speaker-portrait {
  width: min(260px, 100%);
  aspect-ratio: 1;
  background: var(--dark-surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.speaker-portrait svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero .btn {
  margin-top: 0.5rem;
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-border);
  padding-block: var(--space-lg);
}

.site-footer__inner p {
  margin: 0;
  max-width: none;
}

.site-footer a {
  color: var(--fog);
}

.site-footer a:hover {
  color: var(--dark-text);
}
