/* GTA 6 Radar: mobile-first, no framework, no build step. */

:root {
  --bg: #0d0f14;
  --bg-elev: #151922;
  --bg-elev-2: #1c212c;
  --text: #e8eaf0;
  --text-dim: #a2a9ba;
  --accent: #ff3d7f;
  --accent-soft: #ffd166;
  --border: #262c3a;
  --radius: 12px;
  --maxw: 62rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-soft); }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 15, 20, .92);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  flex: none;
}
.brand span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: .9rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;         /* 44px touch target */
  color: var(--text-dim);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero { padding: 1.25rem 0 1.25rem; }

.hero-banner {
  width: 100%;
  max-width: 40rem;          /* narrower than the text column so it reads as a mark, not a billboard */
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.hero-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: contain;       /* the logo sits in the artwork; never crop it */
}


.hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.5rem, 4.5vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ---------- video list ---------- */

.video-list {
  list-style: none;
  margin: 0;
  padding: 0 0 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .video-list { grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover, .card:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card a.card-link {
  display: grid;
  grid-template-rows: auto 1fr;   /* the body, not the thumbnail, absorbs extra height */
  height: 100%;
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.thumb {
  position: relative;
  width: 100%;              /* keeps aspect-ratio from sizing the box off a stretched height */
  aspect-ratio: 16 / 9;
  background: var(--bg-elev-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.card-body { padding: 1rem 1.1rem 1.2rem; }

.card h2 {
  margin: 0 0 .45rem;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.card:hover h2, .card:focus-within h2 { color: var(--accent-soft); }

.card p {
  margin: 0 0 .7rem;
  color: var(--text-dim);
  font-size: .95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .82rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}

@media (min-width: 40rem) {
  .card-body { padding: 1.15rem 1.35rem; }
  .card h2 { font-size: 1.2rem; }
}

/* ---------- article ---------- */

.article { padding: 1.5rem 0 3rem; }

.breadcrumb {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.breadcrumb a {
  display: inline-block;
  padding-block: .7rem;        /* 44px touch target without moving the text */
  color: var(--text-dim);
}

.article h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.article .meta { margin-bottom: 1.5rem; }

.article-body { max-width: 44rem; }

/* The direct answer sits above the player: the page leads with the answer,
   the video is the full breakdown for people who want it. */
.article-lede {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.article-lede h2 { margin-top: 1.25rem; font-size: 1.15rem; }
.article-lede > p:last-child { margin-bottom: 0; }

.article-body p { margin: 0 0 1.05rem; }

.article-body h2 {
  margin: 2rem 0 .7rem;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}

.article-body ul { margin: 0 0 1.05rem; padding-left: 1.2rem; color: var(--text-dim); }
.article-body li { margin-bottom: .4rem; }

.lead { font-size: 1.08rem; color: var(--text); }

/* ---------- YouTube facade (loads the real iframe only on click) ---------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  display: block;
}
.player-facade img { width: 100%; height: 100%; object-fit: cover; }

.player-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, .18), rgba(0, 0, 0, .45));
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 4.25rem;
  height: 3rem;
  border-radius: .75rem;
  background: rgba(20, 20, 20, .8);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: background .18s ease, scale .18s ease;
}
.player-facade:hover .play-btn { background: #ff0033; scale: 1.06; }
.play-btn svg { width: 1.5rem; height: 1.5rem; fill: #fff; }

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-elev);
}
.btn:hover { border-color: var(--accent); color: var(--text); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0f14;              /* 5.68:1 on the accent; white was 3.37:1 and failed WCAG AA */
}
.btn-primary:hover { background: #ff5a92; border-color: #ff5a92; color: #0d0f14; }

/* ---------- more videos ---------- */

.more { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.more h2 { margin: 0 0 1rem; font-size: 1.15rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-dim);
  font-size: .85rem;
}
.site-footer p { margin: 0 0 .5rem; }

/* ---------- consent banner ---------- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
}

.consent p {
  margin: 0;
  max-width: 46rem;
  font-size: .88rem;
  color: var(--text-dim);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.consent .btn { cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; }

@media (min-width: 48rem) {
  .consent {
    left: 50%;
    right: auto;
    bottom: 1rem;
    translate: -50% 0;
    width: min(var(--maxw), calc(100% - 2rem));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .consent-actions { flex: none; }
}
