/* TX Concepts · styles.css · plain CSS, no build step
   Brand: official TX Brand Guideline v1.0 + Superledger Media / TX Concepts Brand Kit v1.0
   Lime is an accent and a field colour only. Never lime text on white or mint. */

@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/funnel-display-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2"); }

:root {
  --lime: #B1FC03;
  --dark: #0F1B07;
  --near-black: #0D0D0C;
  --sage: #BECCB3;
  --mint: #DFEFD3;
  --white: #FFFFFF;
  --black: #000000;

  --rule: rgba(190, 204, 179, .18);
  --rule-strong: rgba(190, 204, 179, .32);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
  --display: "Funnel Display", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--white); background: var(--near-black);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(36px, 5.4vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 14px; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--lime); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.hl { color: var(--lime); }            /* one lime word per headline, at most */
.muted { color: var(--sage); }
.small { font-size: 14px; line-height: 1.55; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--near-black); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; flex: none; padding: 6px; border-radius: 8px; }
.brand img { width: 120px; height: auto; }      /* kit minimum: 120 px wide */
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; color: var(--white);
  text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.3;
}
.nav a:hover { background: rgba(190, 204, 179, .1); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--body); text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--lime); color: var(--dark); }
.btn-primary:hover { background: #c4fd3f; }
.btn-ghost { color: var(--white); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--sage); background: rgba(190, 204, 179, .08); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #1b2e0e; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Labels */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--sage);
}
.tag-lime { background: var(--lime); color: var(--dark); border-color: var(--lime); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--sage); font-size: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--sage); margin-top: 20px; max-width: 640px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-logo { background: var(--black); border-radius: var(--radius); border: 1px solid var(--rule); padding: clamp(28px, 4vw, 48px); }
.hero-logo img { width: 100%; max-width: 340px; margin: 0 auto; }
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); max-width: 820px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--dark); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card p { color: var(--sage); }
.card .card-link { margin-top: auto; padding-top: 6px; font-weight: 600; }
.card-mint { background: var(--mint); color: var(--near-black); border-color: var(--mint); }
.card-mint p { color: var(--near-black); }
.card-mint a { color: var(--dark); }
.card-mint .eyebrow { color: var(--dark); }

/* Feature strip (TX Talk) */
.strip {
  background: var(--lime); color: var(--dark); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.strip h2 { color: var(--dark); }
.strip p { color: var(--dark); margin-top: 10px; font-size: 18px; }
.strip .eyebrow { color: var(--dark); }
.strip a:not(.btn) { color: var(--dark); }

/* Schedule */
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.schedule div { padding: 22px 24px; background: var(--dark); }
.schedule div + div { border-left: 1px solid var(--rule); }
.schedule dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.schedule dd { margin: 6px 0 0; font-family: var(--display); font-size: 22px; font-weight: 500; }
.schedule dl { margin: 0; }

/* Episodes */
.episodes { list-style: none; display: grid; gap: 16px; }
.episode { background: var(--dark); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 28px; }
.episode-meta { font-size: 14px; color: var(--sage); margin-top: 6px; font-variant-numeric: tabular-nums; }
.episode-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.episode .card-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.empty {
  border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px);
  text-align: center; background: rgba(15, 27, 7, .5);
}
.empty h3 { font-size: 26px; }
.empty p { color: var(--sage); margin-top: 10px; }

/* Referral */
.referral { border: 1px solid var(--lime); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); background: var(--dark); }
.referral .disclosure { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--sage); }
.referral .disclosure strong { color: var(--white); }

/* Notices */
.notice { border-left: 3px solid var(--lime); padding: 14px 18px; background: rgba(15, 27, 7, .7); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--sage); font-size: 15px; }
.notice strong { color: var(--white); }

/* Lists */
.check { list-style: none; display: grid; gap: 12px; }
.check li { padding-left: 28px; position: relative; color: var(--sage); }
.check li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--lime); }
.check strong { color: var(--white); font-weight: 600; }

/* Prose (legal) */
.prose h2 { font-size: 28px; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 19px; }
.prose p, .prose li { color: var(--sage); }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--white); }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; background: var(--black); }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px 64px; align-items: start; }
.footer-grid img { width: 120px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { color: var(--white); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: var(--lime); text-decoration: underline; }
.footer-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--sage); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-note a { color: var(--sage); }

/* YouTube (Media page and Home) */
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 32px; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row .btn-row { margin-top: 20px; }
.embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--rule); background: var(--black);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-note { margin-top: 12px; }
.embed-note a { color: var(--sage); }
.video-heading { margin-top: 56px; margin-bottom: 20px; font-size: 24px; }
.video-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.video { display: flex; flex-direction: column; gap: 10px; }
.video-title { font-size: 17px; line-height: 1.35; }
.video-title a { color: var(--white); text-decoration: none; }
.video-title a:hover { color: var(--lime); text-decoration: underline; }
.video-meta { font-size: 14px; color: var(--sage); font-variant-numeric: tabular-nums; }
.yt-lite {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--rule); background: var(--black);
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease, opacity .2s ease; opacity: .92; }
.yt-lite:hover img, .yt-lite:focus-visible img { transform: scale(1.03); opacity: 1; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}
.yt-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px;
  border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent var(--dark);
}
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { transform: scale(1.08); }
.yt-lite.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.latest {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--dark); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px);
}
.latest-title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.latest-title a { color: var(--white); text-decoration: none; }
.latest-title a:hover { color: var(--lime); text-decoration: underline; }
.latest .btn-row { margin-top: 22px; }
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .strip, .footer-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 360px; }
  .schedule { grid-template-columns: 1fr; }
  .schedule div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand img { width: 120px; }
  .nav ul { justify-content: flex-start; }
  .hero-logo { display: none; }
  .nav a { padding: 8px 12px; font-size: 15px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Small helpers (no inline styles; the CSP blocks them) */
[data-gap] { margin-top: 16px; }
[data-center] { justify-content: center; }
.footer-note p + p, .strip p + p { margin-top: 0; }
