/* Themes are switched by html.theme-light / html.theme-dark (set by js/site.js from content/settings.json).
   .pv is the wrapper used by the CMS preview (admin/preview.js); .blc is the Big Lunch Club page scope. */

:root,
html.theme-light,
.pv.theme-light {
  --bg: #FAFAF8;
  --fg: #111110;
  --muted: #6B6964;
  --rule: #DCDAD4;
  --head-font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --head-weight: 600;
  --head-track: -0.015em;
  --head-case: none;
  --h1: clamp(34px, 4.4vw, 56px);
  --h2: clamp(24px, 2.6vw, 32px);
  --h1-lh: 1.05;
}

html.theme-dark,
.pv.theme-dark {
  --bg: #0F0F0E;
  --fg: #EDEBE6;
  --muted: #9A978F;
  --rule: #2C2B28;
  --head-font: 'Bebas Neue', 'Inter Tight', Impact, sans-serif;
  --head-weight: 400;
  --head-track: 0.02em;
  --head-case: uppercase;
  --h1: clamp(52px, 7vw, 96px);
  --h2: clamp(30px, 3.4vw, 44px);
  --h1-lh: 0.95;
}

/* Big Lunch Club page: the only page in the BLC brand style */
.blc,
.pv.blc {
  --bg: #F2F1E6;
  --fg: #3E3794;
  --muted: #5E58A8;
  --rule: #CFCCE4;
  --head-font: 'Fraunces', Georgia, 'Times New Roman', serif;
  --head-weight: 900;
  --head-track: -0.01em;
  --head-case: none;
  --h1: clamp(56px, 11vw, 150px);
  --h2: clamp(32px, 4.6vw, 60px);
  --h1-lh: 0.92;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body[data-page]:not(.ready) { opacity: 0; }

.pv {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- labels & headings ---------- */

.label,
.section-label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

h1, h2, h3 { margin: 0; font-family: var(--head-font); font-weight: var(--head-weight); letter-spacing: var(--head-track); text-transform: var(--head-case); }

.page-title {
  font-size: var(--h1);
  line-height: var(--h1-lh);
  margin: 56px 0 48px;
}
.page-title a { text-decoration: none; }
.page-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

h2.section-label {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ---------- nav & footer ---------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 32px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.nav-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 96px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--rule);
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- body copy ---------- */

.prose p, .intro p, .case-text p { margin: 0 0 1em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- home ---------- */

.tiles {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
}

.tile { display: block; text-decoration: none; color: inherit; }
.tile-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rule);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img.is-contain img { object-fit: contain; padding: 6%; }
.tile-title {
  font-size: var(--h2);
  line-height: 1.1;
  margin: 16px 0 6px;
}
.tile:hover .tile-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.tile-credit { margin: 0; }

/* ---------- tribe gaming ---------- */

.intro { max-width: 62ch; margin: 0 0 24px; font-size: 20px; line-height: 1.5; }
.intro p { max-width: 62ch; }

.cases { margin-top: 24px; }
.case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.case.no-media { grid-template-columns: minmax(0, 1fr); }
.case-title { font-size: var(--h2); line-height: 1.1; margin: 0 0 28px; }
.case-title a { text-decoration: none; }
.case-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.case-media img { width: 100%; }

.meta { margin: 0 0 24px; }
.meta-row { margin: 0 0 20px; }
.meta-row dt { margin: 0 0 4px; }
.meta-row dd { margin: 0; }

/* ---------- going in blind ---------- */

.gib-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
}
.gib-hero.no-media { grid-template-columns: minmax(0, 1fr); }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats li {
  font-family: var(--head-font);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  text-transform: var(--head-case);
  font-size: var(--h2);
  line-height: 1.15;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.stats li:last-child { border-bottom: 1px solid var(--rule); }

.gib-body { margin-top: 72px; max-width: 62ch; }
.gib-body .section-label { margin-bottom: 20px; }
.more-link { margin: 28px 0 0; }

/* ---------- creative journey ---------- */

.tldr, .retro { max-width: 62ch; }
.tldr .section-label, .retro .section-label { margin-bottom: 16px; }
.pair {
  list-style: none;
  margin: 56px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.eps { list-style: none; margin: 56px 0 0; padding: 0; max-width: 62ch; }
.ep { padding: 20px 0; border-top: 1px solid var(--rule); }
.ep p { margin: 0; }
.ep-label { font-weight: 600; }
.transition { padding: 20px 0; border-top: 1px solid var(--rule); }
.transition p { margin: 0; font-style: italic; color: var(--muted); }

/* ---------- about ---------- */

.about-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.about-top.no-media { grid-template-columns: minmax(0, 1fr); }
.about-top .page-title { margin: 0 0 32px; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.contact-label { margin-top: 40px; margin-bottom: 12px; }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { margin: 0 0 6px; }

.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.about-cols .section-label { margin-bottom: 20px; }
.passions { margin: 0; padding-left: 1.2em; max-width: 62ch; }
.passions li { margin: 0 0 6px; }

/* ---------- 404 ---------- */

.notfound { padding: 8px 0 0; }

/* ---------- Big Lunch Club (.blc scope) ---------- */

.blc .nav, .pv.blc .nav { border-bottom-color: var(--rule); }
.blc .nav-name { font-family: var(--head-font); font-weight: 900; font-size: 16px; letter-spacing: 0.04em; }

.blc-hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 24px;
}
.blc-logo img { width: 100%; max-width: 460px; }
.blc-h1 { font-size: var(--h1); line-height: var(--h1-lh); margin: 0 0 28px; }
.blc-intro { font-size: 20px; line-height: 1.5; }
.blc-h2 {
  font-size: var(--h2);
  line-height: 1;
  margin: 0 0 24px;
}
.blc-h2 a { text-decoration: none; }
.blc-h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

.blc-section { padding: 64px 0; border-top: 2px solid var(--fg); }
.blc-universe {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
}
.blc-peach img { width: 100%; max-width: 360px; margin-left: auto; }
.blc-aside { margin: 0 0 16px; font-style: italic; color: var(--muted); }

.blc-sub { margin: 0 0 28px; }
.blc-sublabel {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-style: italic;
}
.blc-results { margin: 0; padding-left: 1.2em; max-width: 62ch; }
.blc-results li { margin: 0 0 6px; }
.blc-results .blc-note { margin: 8px 0 0; font-style: italic; }
.blc a { text-decoration-thickness: 2px; }

/* ---------- phones & small screens ---------- */

@media (max-width: 900px) {
  .case, .gib-hero, .about-top, .blc-hero, .blc-universe { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about-photo img { max-width: 420px; }
  .blc-logo img { max-width: 280px; }
  .blc-peach img { margin-left: 0; max-width: 260px; }
}

@media (max-width: 720px) {
  body, .pv { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 24px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 40px 0; }
  .page-title { margin: 40px 0 32px; }
  .case { padding: 40px 0; }
  .nav { gap: 0 16px; }
  .nav-links { gap: 0 18px; }
  .footer { margin-top: 64px; }
  .intro { font-size: 18px; }
  .blc-section { padding: 48px 0; }
}

/* Embedded videos (YouTube, Instagram, X) */
.embed { position: relative; width: 100%; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-wide { aspect-ratio: 16 / 9; }
.embed-tall { max-width: 420px; height: 760px; max-height: 85vh; margin: 0 auto; background: transparent; }
.embed-tweet { height: 680px; }
.gib-media .more-link { margin-top: 16px; }

.blc-does-media { margin: 8px 0 32px; max-width: 760px; }
.blc-does-media img { width: 100%; display: block; }
.blc-present-media { margin: 32px 0 0; }
