/*
 * SUBSTRATE — A Systems Conference
 * ==================================
 * Concept: "A gathering you'd fly for." Not corporate, not salesy.
 * Intimate, technical, for builders. The design reflects the ethos:
 * no fluff, clear information, personality in the details.
 *
 * Hook: The schedule IS the layout — time as the vertical axis with
 * speakers woven in naturally. No separate "speakers grid" because
 * context matters: who talks about WHAT and WHEN.
 *
 * Why Instrument Serif? Warm, slightly unconventional, with gorgeous
 * italics. A conference named "Substrate" (foundational, geological)
 * needs a typeface that feels rooted and warm, not tech-bro geometric.
 *
 * Color: Deep earth tones — slate and warm amber. Like the inside
 * of the warehouse venue described on the page.
 */

:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Consolas', monospace;

  --bg:         #16141a;
  --bg-raised:  #1e1c24;
  --text:       #ddd8ce;
  --text-mid:   #9e9488;
  --text-quiet: #5e584e;
  --accent:     #c8a060;   /* warm amber */
  --accent-dim: #c8a06020;
  --rule:       #2a2630;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:         #f4f1ea;
    --bg-raised:  #ebe7de;
    --text:       #2a2620;
    --text-mid:   #6e6458;
    --text-quiet: #a8a090;
    --accent:     #9a7830;
    --accent-dim: #9a783020;
    --rule:       #ddd8cc;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

/* HERO */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 0.8rem;
}

.hero__detail {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-quiet);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.hero__cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

.hero__cta:hover { border-color: var(--accent); }

/* FACTS — dense row of key numbers */
.facts {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.fact {
  display: flex;
  flex-direction: column;
}

.fact__val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.fact__key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-quiet);
}

/* SECTIONS */
.section {
  margin-bottom: 3rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet);
  margin-bottom: 1.5rem;
}

/* SCHEDULE */
.schedule {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sched-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  /* reveal */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.sched-item.is-visible { opacity: 1; transform: translateY(0); }

.sched-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-quiet);
  padding-top: 0.15rem;
  letter-spacing: 0.03em;
}

.sched-break-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-quiet);
  font-style: italic;
}

.sched-talk-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.sched-speaker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.sched-speaker-role {
  color: var(--text-quiet);
}

.sched-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 560px;
}

/* VENUE */
.venue {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.venue.is-visible { opacity: 1; transform: translateY(0); }

.venue__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.2rem;
}

.venue__addr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}

.venue__note {
  font-size: 0.85rem;
  color: var(--text-mid);
  max-width: 500px;
  line-height: 1.6;
}

/* REGISTER */
.register {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.register.is-visible { opacity: 1; transform: translateY(0); }

.register__price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.register__note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-quiet);
}

.register__btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.65rem 2rem;
  margin: 1.2rem 0;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.register__btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.register__cap {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-quiet);
}

/* FOOTER */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-quiet);
  text-align: center;
  letter-spacing: 0.05em;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  body { padding: 2rem 1rem; }
  .facts { gap: 1.5rem; flex-wrap: wrap; }
  .sched-item { grid-template-columns: 55px 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sched-item, .venue, .register {
    opacity: 1; transform: none; transition: none;
  }
}
