/* venturetheory.io. One scene, taken from the live channel banner: a flat Venture Lime wall,
   the character peeking over a table edge, the table running on below as the reading surface.
   Colours are the brand kit's (brand/venture-theory/tokens.json); the table tones are measured
   from the banner art (site/tools/build_assets.py prints them). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --lime: #c1ff72;
  --ink: #181816;
  --ink-2: #262622;
  --table: #f1f3de;
  --table-deep: #f3f4e0;
  --table-edge: #e4f4bf;
  --fg: #181816;
  --muted: #55574c;
  --on-ink: #f3f4e0;
  --on-ink-muted: #b6b8aa;
  --line: rgba(24, 24, 22, 0.12);
  --line-ink: rgba(243, 244, 224, 0.16);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* The cut-out's table edge sits 81.1% down the image (build_assets.py); the art's aspect is 1.45. */
  --art-line: 0.811;
  --art-ratio: 1.45;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--table-deep);
  color: var(--fg);
  font: 400 1rem/1.6 var(--display);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible { outline-color: var(--lime); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--ink); color: var(--lime); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 1rem/1 var(--display); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-ink:hover { box-shadow: 0 10px 24px -12px rgba(24, 24, 22, 0.55); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(24, 24, 22, 0.06); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 0 0 6px rgba(193, 255, 114, 0.16); }
.btn-line { background: transparent; color: var(--on-ink); border-color: var(--line-ink); }
.btn-line:hover { border-color: var(--on-ink-muted); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.yt {
  width: 22px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("/assets/icons/youtube-icon-white.svg") center / contain no-repeat;
  mask: url("/assets/icons/youtube-icon-white.svg") center / contain no-repeat;
}

/* ---------- hero: the lime wall ---------- */
.hero { background: var(--lime); position: relative; overflow-x: clip; }
.bar {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 20px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: block; line-height: 0; border-radius: 8px; }
.lockup {
  display: block; height: 44px; aspect-ratio: 2988 / 1236; background: var(--ink);
  -webkit-mask: url("/assets/lockup.svg") left center / contain no-repeat;
  mask: url("/assets/lockup.svg") left center / contain no-repeat;
}

.hero-inner {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
}
.hero-copy { padding-bottom: 8px; animation: rise 700ms var(--ease) both; }
h1 {
  font-weight: 800; font-size: clamp(2.6rem, 9.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.04em;
  max-width: 12ch; text-wrap: balance;
}
.sub {
  margin-top: 20px; max-width: 30ch;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.45; font-weight: 500; color: #2c2e22;
}
.ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  /* full bleed on phones; the art's table strip hangs below the lime into the table */
  margin: clamp(24px, 6vw, 40px) 0 0;
  --w: min(100vw, 620px);
  justify-self: center; width: var(--w);
  margin-bottom: calc(var(--w) / var(--art-ratio) * (var(--art-line) - 1));
  position: relative; z-index: 1;
  animation: fade 900ms 120ms var(--ease) both;
}
.mascot { width: 100%; }

/* ---------- the table ---------- */
.table {
  background: linear-gradient(var(--table-edge) 0, var(--table) 4px, var(--table) 120px, var(--table-deep) 360px);
}
.latest {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(80px, 12vw, 136px) var(--gutter) clamp(72px, 10vw, 128px);
}
.latest h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.row-head {
  margin: clamp(28px, 4vw, 40px) 0 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.row-head h3 {
  font: 400 0.8125rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.more {
  font-weight: 700; font-size: 0.9375rem; text-decoration: none; padding: 10px 0;
  background: linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 6px) / 100% 2px no-repeat;
}
.more::after { content: " \2192"; }

.row {
  display: grid; grid-auto-flow: column; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row-shorts { grid-auto-columns: 42vw; }
.row-long { grid-auto-columns: 78vw; }
.card { scroll-snap-align: start; min-width: 0; }
.card a { display: block; text-decoration: none; border-radius: 18px; }
.thumb {
  display: block; overflow: hidden; border-radius: 16px; background: #e3e6cc;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.card-short .thumb { aspect-ratio: 9 / 16; }
.card-long .thumb { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card a:hover .thumb { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(24, 24, 22, 0.5); }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 12px; font-weight: 700; font-size: 0.96875rem; line-height: 1.35; letter-spacing: -0.01em;
}
.card time { display: block; margin-top: 6px; font: 400 0.75rem/1.2 var(--mono); color: var(--muted); }

/* ---------- contact: the one ink band ---------- */
.contact { background: var(--ink); color: var(--on-ink); }
.contact-inner {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(80px, 11vw, 128px) var(--gutter) 32px;
}
.contact h2 {
  font-size: clamp(2rem, 5.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  max-width: 14ch; color: var(--lime);
}
.contact h2 + p { margin-top: 20px; max-width: 46ch; font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--on-ink-muted); }
.mail { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.socials {
  margin-top: clamp(56px, 8vw, 88px); padding-top: 24px; border-top: 1px solid var(--line-ink);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}
.socials a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; font-weight: 600; color: var(--on-ink);
}
.socials a:hover { color: var(--lime); }
.yt-white { width: 26px; height: 18px; }
.glyph { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.glyph-tiktok { --g: url("/assets/icons/tiktok.svg"); }
.glyph-instagram { --g: url("/assets/icons/instagram.svg"); }
.glyph-facebook { --g: url("/assets/icons/facebook.svg"); }
@media (min-width: 960px) {
  .contact-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .contact-inner > h2, .contact-inner > h2 + p { grid-column: 1; }
  .mail { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; align-self: end; margin-top: 0; }
  .socials, .fine { grid-column: 1 / -1; }
}
.fine { margin-top: 28px; font: 400 0.8125rem/1.4 var(--mono); color: var(--on-ink-muted); }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .row-shorts { grid-auto-columns: 30vw; }
  .row-long { grid-auto-columns: 45vw; }
}
@media (min-width: 960px) {
  .bar { padding-top: 28px; }
  .lockup { height: 52px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px;
    padding-top: 24px; min-height: 560px;
  }
  .hero-copy { align-self: center; padding-bottom: calc(var(--w-art) / var(--art-ratio) * (1 - var(--art-line)) + 24px); }
  .hero { --w-art: min(46vw, 640px); }
  .hero-art {
    --w: var(--w-art); margin: 0; justify-self: end; align-self: end;
    margin-bottom: calc(var(--w) / var(--art-ratio) * (var(--art-line) - 1));
  }
}
@media (min-width: 1100px) {
  .row { overflow: visible; margin: 0; padding: 4px 0 0; grid-auto-flow: row; gap: 24px 20px; }
  .row-shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; }
  .row-long { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; }
}
@media (max-width: 420px) {
  .btn { padding: 0 20px; }
  .bar .btn .label { display: none; }
  .bar .btn { width: 48px; padding: 0; }
  .bar .btn .yt { width: 24px; height: 17px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.hero-404 { padding-bottom: 96px; }
