/* Leo Survivals site: the videos' own night palette (remotion/shared/tokens.ts), Inter as in the videos,
   yellow label chips like the on-screen chips, and rule cards drawn like the videos' RuleCard. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-latin-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/static/fonts/inter-latin-800.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --night: #090E1B;
  --navy: #111930;
  --slate: #1B2440;
  --steel: #2A3555;
  --mist: #8A94B0;
  --white: #F4F1EA;
  --paper: #F2ECDF;
  --ink: #1A1F2E;
  --yellow: #F6C343;
  --red: #E5484D;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--white);
  font: 400 1rem/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, p { margin: 0; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }

main { flex: 1 0 auto; }

/* masthead: the channel's name (its home) and the way back to the studio page */
.mast { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-link {
  flex: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--steel); color: var(--mist);
  font-weight: 600; font-size: 0.75rem; white-space: nowrap; text-decoration: none;
}
.studio-link:hover { color: var(--white); border-color: var(--mist); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; white-space: nowrap; }
@media (min-width: 640px) {
  .brand { gap: 12px; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 1.375rem; }
}

.bio { margin-top: 14px; font-size: 1.0625rem; color: var(--white); }
.follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.follow a {
  padding: 6px 12px; border-radius: 999px; background: var(--slate); color: var(--white);
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
}
.follow a:hover { background: var(--steel); }

/* this week's story: the one bold moment */
.now { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.now > *, .parts > *, .rules > *, .stories > * { min-width: 0; }
.now-art { display: block; border-radius: 14px; overflow: hidden; background: var(--navy); }
.now-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 50%; }
.now-label { color: var(--yellow); font-weight: 600; font-size: 0.9375rem; }
.now-title, .story-title {
  font-weight: 800; font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1; letter-spacing: -0.035em; margin-top: 6px;
}
.story-title { margin-top: 28px; font-size: clamp(2.25rem, 9vw, 3.25rem); }
.now-sub { margin-top: 10px; color: var(--mist); font-size: 1.0625rem; max-width: 38ch; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block; padding: 13px 18px; border-radius: 10px; background: var(--slate); color: var(--white);
  font-weight: 800; font-size: 1rem; text-decoration: none;
}
.btn:hover { background: var(--steel); }
.btn-go { background: var(--red); }
.btn-go:hover { background: #F0595E; }
.story-link, .more { display: inline-block; margin-top: 14px; color: var(--mist); font-weight: 600; font-size: 0.9375rem; }
.story-link:hover, .more:hover { color: var(--white); }

@media (min-width: 640px) {
  .now { grid-template-columns: 15rem 1fr; align-items: center; gap: 28px; }
}

/* sections */
.block { margin-top: 44px; }
.block > h2 { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 14px; }
.block > h2 a { text-decoration: none; }
.block > h2 a:hover { text-decoration: underline; }

/* rule card, as in the videos: paper card, red "Rule #N" badge, heavy ink text */
.rules { display: grid; gap: 14px; }
.rule { margin: 0; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 18px 18px 14px; }
.rule-n {
  display: inline-block; background: var(--red); color: var(--white); font-weight: 800; font-size: 0.875rem;
  padding: 3px 9px; border-radius: 7px;
}
.rule blockquote { margin: 12px 0 0; font-weight: 800; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.rule figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 12px;
  font-size: 0.875rem; color: #5A6072;
}
.rule-watch { color: var(--ink); font-weight: 600; }

/* earlier stories */
.stories { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px; align-items: center; padding: 8px;
  background: var(--navy); border-radius: 12px; text-decoration: none;
}
.story:hover { background: var(--slate); }
.story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.story strong { display: block; font-weight: 800; font-size: 1.125rem; }
.story em { display: block; font-style: normal; color: var(--mist); font-size: 0.9375rem; line-height: 1.35; }
.studio .story { grid-template-columns: 4rem 1fr; }
.studio .story img { aspect-ratio: 1; border-radius: 50%; }
.studio { padding-top: 20px; }
.studio .stories { margin-top: 24px; }

/* parts: covers with a yellow label chip, like the videos' chips */
.parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .parts { grid-template-columns: repeat(3, 1fr); } }
.part, .film { position: relative; display: block; text-decoration: none; }
.part img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--navy); }
.part:hover img, .film:hover img { outline: 2px solid var(--white); outline-offset: 2px; }
.chip {
  position: absolute; top: 8px; left: 8px; background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 0.8125rem; padding: 2px 8px; border-radius: 6px;
}
.part-title { display: block; margin-top: 8px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.film { margin-top: 24px; }
.film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.film-title { display: block; margin-top: 8px; font-weight: 600; color: var(--mist); }

/* support */
.support { background: var(--navy); border-radius: 14px; padding: 20px; }
.support p { color: var(--mist); max-width: 40ch; }
.support .btn { margin-top: 16px; }

/* privacy policy */
.prose h2 { font-weight: 800; font-size: 1.125rem; margin-top: 28px; }
.prose p { margin-top: 10px; max-width: 68ch; color: #D9D6CE; }
.prose .now-sub { color: var(--mist); }

/* footer */
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 56px; padding-top: 18px; padding-bottom: 32px;
  border-top: 1px solid var(--slate); color: var(--mist); font-size: 0.875rem;
}
.foot a { color: var(--mist); }
.foot a:hover { color: var(--white); }
