/* =========================================================
   Workshop site — minimalist stylesheet
   ========================================================= */

/* ---- Variables ---- */
:root {
  --color-text: #212529;
  --color-text-secondary: #495057;
  --color-text-muted: #6c757d;
  --color-accent: #1f6fd1;
  --color-accent-dark: #1857a6;

  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-border: #e5e7eb;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-height: 56px;
  --container-max: 1110px;
  --section-padding: 72px;
}

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

html {
  scroll-behavior: smooth;
  /* anchor jumps land below the fixed navbar */
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
strong { font-weight: 600; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section-padding) 0; }
.section + .section { border-top: 1px solid var(--color-border); }

.section-header { margin-bottom: 36px; }

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.section-desc { margin-top: 8px; color: var(--color-text-secondary); }

.coming-soon { color: var(--color-text-muted); font-style: italic; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); }

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  min-width: 0;
  font-size: 1.15rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-brand:hover { color: var(--color-text); text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block;
  padding: 6px 8px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-text); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--color-text-muted); border-radius: 2px; }

/* ---- Hero: photo banner with a dark title box ---- */
.hero {
  min-height: 460px;
  height: 62vh;
  max-height: 640px;
  margin-top: var(--nav-height);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a4a5a url("../img/hero-santa-clara.jpg") center 40% / cover no-repeat;
}

.hero-box {
  max-width: 960px;
  width: 100%;
  padding: 28px 40px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-line { font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.5; }
.hero-line a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.hero-line a:hover { text-decoration: none; border-color: #fff; }

/* ---- Overview ---- */
.overview-text p { margin-bottom: 16px; text-align: justify; color: var(--color-text-secondary); }

/* ---- Call for Papers ---- */
/* stacked top-down */
.cfp-grid,
.cfp-details { display: flex; flex-direction: column; gap: 32px; }

.cfp-topics h3,
.cfp-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }

.cfp-intro { color: var(--color-text-secondary); margin-bottom: 10px; }

.topic-list { padding-left: 20px; list-style: disc; color: var(--color-text-secondary); }
.topic-list li { padding: 3px 0; }
.topic-list li::marker { color: var(--color-accent); }

.cfp-card p { color: var(--color-text-secondary); margin-bottom: 12px; }

.cfp-card strong { color: var(--color-text); }

/* ---- Important dates: a plain two-column list ---- */
.dates-timeline { max-width: 720px; border-top: 1px solid var(--color-border); }
.timeline-item { border-bottom: 1px solid var(--color-border); }
.timeline-dot { display: none; }
.timeline-content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
}
.timeline-label { font-weight: 600; }
.timeline-date { color: var(--color-text-secondary); text-align: right; }

/* ---- Speakers & organizers: photo, name, affiliation ---- */
.speakers-grid,
.organizers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
}

.speaker-card,
.organizer-card {
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
}
.speaker-card:hover { text-decoration: none; }

.speaker-photo,
.organizer-photo {
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-light);
  margin-bottom: 14px;
}
.speaker-photo { width: 160px; height: 160px; }
.organizer-photo { width: 130px; height: 130px; }

.speaker-name,
.organizer-info h4 { font-size: 1.05rem; font-weight: 400; color: var(--color-text); }
.speaker-card:hover .speaker-name { color: var(--color-accent); }

.speaker-affiliation,
.organizer-info p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.45; }

.organizer-info { width: 100%; }
.organizer-info h4 a { color: inherit; }
.organizer-info h4 a:hover,
.organizer-card:has(> a:hover) h4 a { color: var(--color-accent); text-decoration: none; }

/* Email shown as text (muted @ and .) rather than a mailto link, to deter scrapers */
.email-obfuscated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.email-obfuscated svg { flex-shrink: 0; width: 13px; height: 13px; opacity: 0.6; }
.email-text { min-width: 0; overflow-wrap: break-word; }
.email-obfuscated .obf { padding: 0 1px; color: var(--color-text-muted); }

/* ---- Schedule: striped table ---- */
.schedule-table { border-top: 1px solid var(--color-border); }

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(220px, 1.4fr);
  gap: 20px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

.schedule-head { font-weight: 600; background: var(--color-bg-light); }
.schedule-row:nth-child(odd) { background: #f4f4f4; }

.schedule-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-session { font-weight: 600; }
.schedule-row.is-break .schedule-session { font-weight: 400; font-style: italic; }
.schedule-detail { color: var(--color-text-secondary); }



/* ---- Footer ---- */
.footer {
  padding: 32px 0;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer p + p { margin-top: 4px; }
.footer-credit { font-size: 0.75rem; }
.footer-credit a { color: inherit; text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --section-padding: 56px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 12px;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --section-padding: 44px; }

  .container,
  .nav-container { padding: 0 16px; }

  .hero { min-height: 360px; height: auto; padding: 24px 16px; }
  .hero-box { padding: 20px 18px; }

  .overview-text p { text-align: left; }

  .timeline-content { flex-direction: column; gap: 0; }
  .timeline-date { text-align: left; }

  .schedule-head { display: none; }
  .schedule-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
