/* ==========================================================================
   SLIME Workshop — site styles
   Hand-written replacement for the Weebly "Dusk" theme.
   Design tokens lifted from the original files/main_style.css:
   Poppins type, ink #4f4f4e, links #1382d6, sticky 120px header, etc.
   ========================================================================== */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --ink: #4f4f4e;          /* headings / logo */
  --text: #3f3f3f;         /* body copy */
  --text-soft: #717170;
  --name: #2a2a2a;         /* speaker/commentator names */
  --link: #1382d6;
  --link-hover: #2a2a2a;
  --time: #24678d;         /* schedule time stamps */
  --rule: #e5e5e5;
  --accent-credit: #508d24;
  --container: 1170px;
  --header-h: 120px;
  --header-h-tablet: 93px;
  --header-h-compact: 65px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }

h1, h2, h3 { font-family: "Poppins", sans-serif; color: var(--ink); line-height: 1.25; }

strong, b { color: var(--name); font-weight: 600; }

ul { margin: 0.5em 0; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

hr.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.2s ease;
}
body.is-compact { padding-top: var(--header-h-compact); }
body.is-compact .site-header .container { height: var(--header-h-compact); }

.site-logo {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.044em;
  text-transform: uppercase;
  color: #1f1f1f;
  white-space: nowrap;
}
.site-logo:hover { color: #000; }

/* desktop nav */
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  margin: 0 11px;
}
.main-nav a:hover { color: var(--name); }
.main-nav a.active { color: #111; font-weight: 600; }
.main-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: currentColor;
  margin-top: 4px;
}

/* hamburger */
.hamburger {
  display: none;
  padding: 8px; margin: 0;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink);
}
.hamburger svg { display: block; }

/* mobile overlay nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-nav li { margin: 14px 0; }
.mobile-nav a {
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
.mobile-nav a.active { color: var(--link); }
.mobile-nav-close {
  position: absolute; top: 22px; right: 22px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink); padding: 8px;
}

/* ---- Hero banner ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 440px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #2a2a2a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__logo { display: block; width: auto; max-width: min(560px, 82%); margin: 0 auto; }
.hero__subtitle {
  margin: 22px 0 0;
  font-size: clamp(18px, 3.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.hero__subtitle .date { display: block; color: #ffffff; font-size: 0.9em; }
.hero__wordmark {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

/* hero background per conference (paths relative to /css) */
.hero--slime1 { background-image: url(../assets/images/hero/slime1-hero.jpg); }
.hero--slime2 { background-image: url(../assets/images/hero/slime2-hero.jpg); }
.hero--slime3 { background-image: url(../assets/images/hero/slime3-hero.jpg); background-position: 50% 40%; }
.hero--slime4 { background-image: url(../assets/images/hero/slime4-hero.jpg); background-position: 50% 14%; }
.hero--slime5 {
  background-image: url(../assets/images/hero/slime5-hero.jpg);
  background-position: center;
}
/* "SLIME V" lockup: cap the height so the hero collapses to the same wide
   cinematic band as SLIME 4 (~470px) instead of inflating to a tall near-square.
   The dripping logo is taller in aspect, so we constrain by height; on narrow
   screens the width cap binds first, keeping it responsive like the other heroes. */
body.conf--slime5 .hero__logo {
  max-width: min(860px, 94%);
  max-height: 350px;
}
.hero--gallery { background-image: url(../assets/images/hero/gallery-hero.jpg); background-position: 50% 57%; min-height: 340px; }

/* ---- Content bands --------------------------------------------------- */
.band { padding: 50px 0; }
.band--tight { padding: 30px 0; }
.band h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
}
.band p { margin: 0 0 1em; }
.band p:last-child { margin-bottom: 0; }

.band-title {
  text-align: center;
  padding: 34px 0;
}
.band-title h1 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* two-column responsive layout (replaces the old multi-column tables) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
}
.two-col--people { gap: 4px 40px; }

/* label/content rows for SLIME 1 & 2 (About / Format / Schedule) */
.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
}
.info-row__label {
  font-size: 20px; font-weight: 700; color: var(--name);
  margin: 0;
}

/* schedule */
.day-title { font-size: 20px; font-weight: 700; color: var(--name); margin: 0 0 0.8em; }
.talk { margin: 0 0 1.2em; }
.talk .time { color: var(--time); }
.note-change { color: #c23b3b; font-weight: 700; }

/* speakers / commentators */
.people-col h2 { margin-bottom: 0.7em; }
.person { margin: 0 0 1em; }
.person .role { color: var(--text); }

/* colophon */
.colophon { text-align: center; }
.colophon .credit { color: var(--accent-credit); }
.colophon small { color: var(--text-soft); font-size: 14px; }

/* canceled talk (SLIME 2) */
.canceled { color: #818181; }
.canceled strong { color: #818181; }

/* notice (SLIME 5 placeholder) */
.notice {
  text-align: center;
  background: #f2f2f2;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  padding: 22px;
  margin: 0 auto;
  max-width: 760px;
  color: var(--text);
}
.tba { color: var(--text-soft); font-style: italic; }

/* ---- Per-conference section colours (faithful to source) ------------- */
/* SLIME 4 */
body.conf--slime4 .band-title { background: #ff9a00; }
body.conf--slime4 .band-title h1 { color: #1994c1; }
body.conf--slime4 .band--logistics { background: #ffe961; }
body.conf--slime4 .band--people { background: #fffac4; }
/* SLIME 3 */
body.conf--slime3 .hero__subtitle { color: #f6aaf0; }
body.conf--slime3 .band--people { background: #aadbd8; }
body.conf--slime3 .band--schedule { background: #e6fad2; }
/* SLIME 2 */
body.conf--slime2 .hero__subtitle { color: #65ff00; }
/* SLIME 1 */
body.conf--slime1 .hero__subtitle { color: #67ff00; }
/* SLIME 5 — animated black oil-slick title bar: iridescent sheens drift over near-black */
body.conf--slime5 .band-title {
  background:
    linear-gradient(100deg,
      transparent 30%,
      rgba(150, 68, 205, 0.22) 42%,
      rgba(206, 92, 198, 0.55) 50%,
      rgba(150, 68, 205, 0.22) 58%,
      transparent 70%),
    #08080d;
  background-size: 220% 100%, 100% 100%;
  animation: oil-shimmer 80s ease-in-out infinite;
}
body.conf--slime5 .band-title h1 { color: #f4f2ff; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
@keyframes oil-shimmer {
  0%   { background-position: 0% 0, 0 0; }
  50%  { background-position: 100% 0, 0 0; }
  100% { background-position: 0% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.conf--slime5 .band-title { animation: none; }
}
body.conf--slime5 .band--logistics { background: #f7f7f7; }
body.conf--slime5 .band--schedule { background: #f7f7f7; }

/* ---- Gallery --------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}
.gallery-grid a { display: block; }
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
.gallery-credit { text-align: center; margin-top: 24px; color: var(--text-soft); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 6px 40px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  background: transparent; border: 0; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
}
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--ink); }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  body { padding-top: var(--header-h-tablet); }
  body.is-compact { padding-top: var(--header-h-compact); }
  .site-header .container { height: var(--header-h-tablet); }
  .main-nav { display: none; }
  .hamburger { display: block; }
  .site-logo { font-size: 28px; }
}

@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .info-row__label { font-size: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 38px 0; }
  .hero { min-height: 340px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .site-logo { font-size: 24px; }
}
