/* Brand theme layered over Bootstrap 5.3.
   Structure/grid/navbar/cards come from Bootstrap; this file only holds colours, fonts and brand details. */

:root {
  /* Fonts: put Adobe Fonts family names first once the kit is enabled (see README) */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ember: #1c0704;
  --deep: #3a0d06;
  --red: #b3260b;
  --orange: #f26a1b;
  --amber: #ffa530;
  --gold: #ffd27a;
  --cream: #fff6ea;
  --sand: #f7e9d6;
  --ink: #2a1510;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-link-color: var(--red);
  --bs-link-hover-color: var(--orange);
  --bs-link-color-rgb: 179, 38, 11;
  --bs-link-hover-color-rgb: 242, 106, 27;
  --bs-heading-color: inherit;
  --bs-border-radius-lg: 16px;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
.skip:focus { background: #fff; padding: 8px; z-index: 99; }

/* Buttons: brand variants */
.btn { font-weight: 700; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--orange); --bs-btn-border-color: var(--orange);
  --bs-btn-hover-color: var(--ember); --bs-btn-hover-bg: var(--amber); --bs-btn-hover-border-color: var(--amber);
  --bs-btn-active-color: var(--ember); --bs-btn-active-bg: var(--amber); --bs-btn-active-border-color: var(--amber);
  box-shadow: 0 8px 22px rgba(242,106,27,.4); }
.btn-outline-brand { --bs-btn-color: var(--red); --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--red); --bs-btn-hover-border-color: var(--red);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--red); --bs-btn-active-border-color: var(--red); }

.eyebrow { display: block; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--orange); margin-bottom: .6rem; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

/* Family strip */
.family { background: #0f0402; color: #d9b9a6; font-size: .8rem; }
.family a { color: #f4cfa8; text-decoration: none; }
.family a:hover { color: #fff; text-decoration: underline; }
.family .here { color: var(--amber); font-weight: 700; }

/* Header / navbar */
.site-header { background: rgba(28, 7, 4, .96); backdrop-filter: blur(8px); border-bottom: 2px solid var(--orange); }
.site-header .navbar { --bs-navbar-padding-y: .5rem; min-height: 72px; }
.logo { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.logo-small { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.logo-big { font: 700 1.55rem var(--font-heading); }
.site-header .nav-link { color: #fbe6d2; font-weight: 600; font-size: .95rem; border-radius: 6px; padding: .6rem .9rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; background: rgba(242, 106, 27, .25); }
.site-header .nav-link.nav-store { background: var(--orange); color: #fff; }
.site-header .nav-link.nav-store:hover { background: var(--amber); color: var(--ember); }
.site-header .dropdown-menu { --bs-dropdown-bg: var(--ember); --bs-dropdown-border-color: #5a1c0c; --bs-dropdown-link-hover-bg: rgba(242,106,27,.25); }
@media (min-width: 992px) { .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); background: linear-gradient(90deg, rgba(28,7,4,.92) 0%, rgba(28,7,4,.6) 38%, rgba(28,7,4,0) 62%), url("/assets/images/tjq/hero.webp") 72% center / cover no-repeat; background-color: var(--deep); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, rgba(28,7,4,.55)); }
.hero-inner { position: relative; z-index: 1; padding-block: 3rem; }
.hero-text { max-width: 560px; }
.flag { display: inline-block; background: var(--amber); color: var(--ember); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; padding: .45rem 1.1rem .45rem .9rem; margin-bottom: 1.2rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { background: var(--gold); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-shadow: 0 3px 24px rgba(0,0,0,.6); }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--gold); margin: 0 0 1.8rem; font-weight: 300; text-shadow: 0 2px 12px rgba(0,0,0,.7); }

/* Intro + link pills */
.intro { padding: 4rem 0 3rem; }
.intro .lead { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.9rem); max-width: 920px; margin: 0 auto 1.8rem; }
.lead strong { color: var(--red); }
.buy-link { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--red); background: #fff; border: 2px solid var(--orange); border-bottom-width: 4px; border-radius: 12px; padding: .8rem 1.15rem; box-shadow: 0 4px 14px rgba(179,38,11,.12); transition: .2s; }
.buy-link::after { content: "\2192"; color: var(--orange); transition: transform .2s; }
.buy-link:hover, .buy-link:focus-visible { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.buy-link:hover::after, .buy-link:focus-visible::after { color: var(--gold); transform: translateX(4px); }
@media (min-width: 576px) { .buy-link { display: inline-flex; } }

/* Trailer */
.trailer { background: linear-gradient(var(--sand), var(--cream)); padding: 4.5rem 0; }
.trailer .eyebrow { color: var(--red); }
.video-frame { max-width: 960px; margin: 0 auto; padding: 8px; border-radius: 18px; background: linear-gradient(135deg, var(--amber), var(--red)); box-shadow: 0 24px 60px rgba(120,40,10,.25); }
.video-slot { border-radius: 12px; overflow: hidden; background: #000; }
.video-slot iframe { border: 0; }

/* Topic + episode cards */
.boxes { padding: 5rem 0; background: linear-gradient(var(--cream), var(--sand)); }
.box { border: 0; border-top: 4px solid var(--orange); border-radius: 16px; box-shadow: 0 8px 30px rgba(120, 40, 10, .1); position: relative; transition: .25s; }
.box:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(120, 40, 10, .18); }
.box .card-title { font-size: 1.5rem; color: var(--red); }
.box .card-title small { display: block; font: 600 1rem var(--font-body); color: var(--orange); margin-top: .2rem; }
.box p { font-size: .98rem; }
.more { font-weight: 700; text-decoration: none; } .more::after { content: " \2192"; transition: margin .2s; } .more:hover::after { margin-left: 6px; }
.topic { max-width: 900px; }
.topic .ico { color: var(--orange); }
.ep .card-body { padding: 0 1.8rem 1.8rem; }
.ep-img { aspect-ratio: 16/9; object-fit: cover; border-radius: 12px 12px 0 0; margin-bottom: 1.4rem; }
.ep-num { position: absolute; z-index: 2; top: 1rem; left: 1.5rem; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--red)); color: #fff; font: 700 1.3rem var(--font-heading); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(179,38,11,.4); }

/* Study guide */
.guide { background: var(--ember); color: #fff; padding: 5rem 0; overflow: hidden; }
.guide .eyebrow { color: var(--amber); }
.guide h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.guide p { color: #f2d6c2; max-width: 560px; margin: 0 auto 1.6rem; }
@media (min-width: 992px) { .guide p { margin-left: 0; } }
.cover-wrap { perspective: 1000px; display: flex; justify-content: center; }
.cover { position: relative; width: 260px; aspect-ratio: 148/210; border-radius: 3px 8px 8px 3px; overflow: hidden; transform: rotateY(-14deg) rotateZ(1deg); box-shadow: -10px 20px 50px rgba(0,0,0,.6), 0 0 80px rgba(242,106,27,.3); border-left: 6px solid rgba(0,0,0,.35); background: #000; }
.cover-art { position: absolute; inset: 0; background: url("/assets/images/tjq/hero.webp") 49% 0 / auto 100% no-repeat; }
.cover-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(28,7,4,.92) 88%); }
.cover-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1rem 1.3rem; text-align: center; display: flex; flex-direction: column; gap: .15rem; }
.cover-title span { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cover-title strong { font: 800 1.45rem/1.05 var(--font-heading); }
.cover-title em { font-style: normal; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--amber); margin-top: .5rem; border-top: 1px solid rgba(255,210,122,.5); padding-top: .4rem; }

/* Contributors */
.contributors { padding: 5rem 0; }
.contrib-text { max-width: 880px; margin: 0 auto 2rem; text-align: center; font-size: 1.05rem; }
.chips { max-width: 900px; }
.chips .badge { background: #fff; border: 1px solid #f0cfb0; color: var(--red); padding: .5rem 1rem; font-weight: 600; font-size: .9rem; }

/* Follows on */
.follows { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; padding: 4rem 0; }
.follows .eyebrow { color: var(--gold); }
.follows h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.follows-primary { color: var(--red); }
.follows-primary:hover { background: var(--ember); color: #fff; }

/* Footer */
.site-footer { background: #0f0402; color: #cfa995; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.site-footer a { color: #f4cfa8; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.feed li { margin-bottom: .8rem; }
.feed strong { display: block; color: #fff; font-weight: 600; line-height: 1.35; } .feed span { font-size: .82rem; color: #b98f7a; }
.feed .more-link { color: var(--amber); font-weight: 700; }
.footer-links { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #3a1a10; }
.footer-links ul { max-width: 640px; }
.logo-foot { font: 700 1.4rem var(--font-heading); color: #fff; margin: 0 0 .6rem; } .logo-foot span { display: block; font: 400 .7rem var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #3a1a10; font-size: .82rem; }

@media (max-width: 575.98px) {
  .hero { align-items: flex-end !important; min-height: 640px; background: linear-gradient(0deg, rgba(28,7,4,.95) 0%, rgba(28,7,4,.7) 45%, rgba(28,7,4,0) 80%), url("/assets/images/tjq/hero.webp") 52% top / cover no-repeat; background-color: var(--deep); }
  .hero-inner { padding-block: 2rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
