/* ============================================================
   Discussing Live — streaming news
   Dark-first (the audience lives in dark UIs), vivid accent,
   platform-aware color coding, heavy editorial typography.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* dark is the default theme */
  --bg: #0a0a0e;
  --surface: #131319;
  --surface-2: #1b1b23;
  --ink: #f4f4f7;
  --muted: #8e8e9c;
  --line: #24242e;
  --accent: #ff2d55;
  --accent-ink: #fff;

  --twitch: #9146ff;
  --kick: #53fc18;
  --youtube: #ff0033;
  --drama: #ff2d55;
  --esports: #22d3ee;
  --business: #fbbf24;

  --maxw: 1240px;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f7f7fa;
    --surface-2: #eeeef3;
    --ink: #0c0c11;
    --muted: #64646f;
    --line: #e4e4ec;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, .wordmark {
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

/* ============================ header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 24px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark.small { font-size: 19px; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: pulse 2.2s infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

.header-right { display: flex; align-items: center; gap: 14px; }
.tagline { color: var(--muted); font-size: 12.5px; letter-spacing: .01em; }
.search-link {
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  color: var(--muted);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.search-link:hover { color: var(--ink); border-color: var(--ink); background: var(--surface); }

/* social icons */
.socials { display: flex; align-items: center; gap: 6px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.social svg { width: 15px; height: 15px; }
.social:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  transform: translateY(-1px);
}
.footer-socials { margin-top: 14px; margin-left: -7px; }
.footer-socials .social { width: 34px; height: 34px; }
.footer-socials .social svg { width: 16px; height: 16px; }

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 11px;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  padding-bottom: 5px;
  transition: color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }

main { max-width: var(--maxw); margin: 0 auto; padding: 34px 24px 72px; }

/* ============================ chips / meta ============================ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Inter, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--chip, var(--accent));
  margin-bottom: 9px;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: currentColor;
}
a.kicker:hover { filter: brightness(1.25); }

/* platform accents */
[data-cat="twitch"]   { --chip: var(--twitch); }
[data-cat="kick"]     { --chip: var(--kick); }
[data-cat="youtube"]  { --chip: var(--youtube); }
[data-cat="drama"]    { --chip: var(--drama); }
[data-cat="esports"]  { --chip: var(--esports); }
[data-cat="business"] { --chip: var(--business); }

.meta { color: var(--muted); font-size: 12.5px; }
.dot-sep::before { content: "·"; margin: 0 6px; opacity: .6; }

.section { margin-top: 58px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--chip, var(--accent));
}
.more-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s var(--ease), gap .18s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.more-link::after { content: "→"; transition: transform .18s var(--ease); }
.more-link:hover { color: var(--ink); }
.more-link:hover::after { transform: translateX(3px); }

/* ============================ homepage ============================ */
.home-top {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* lead: text sits over the image */
.lead {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.lead-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.lead-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.lead:hover .lead-img img { transform: scale(1.04); }
.lead-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,0) 78%);
  pointer-events: none;
}
.lead-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 32px 28px;
  color: #fff;
}
.lead-text .meta { color: rgba(255,255,255,.78); }
.lead h1 {
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 900;
  margin: 0 0 10px;
  text-wrap: balance;
}
/* lead with no image falls back to a solid card */
.lead.no-img { background: var(--surface); }
.lead.no-img .lead-text { position: static; color: var(--ink); padding: 30px 32px; }
.lead.no-img .lead-text .meta { color: var(--muted); }

.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 6px;
  background: var(--surface);
}
.sidebar .section-head { margin-bottom: 6px; }
.row {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .18s var(--ease);
}
.row:last-child { border-bottom: 0; }
.row .kicker { margin-bottom: 5px; }
.row h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.32;
  text-wrap: balance;
}
.row:hover h3 { color: var(--chip, var(--accent)); }

/* ============================ cards ============================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 36px 28px;
}
.card { display: block; }
.card-img {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-text { padding-top: 13px; }
.card h2 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 7px;
  line-height: 1.3;
  text-wrap: balance;
  transition: color .18s var(--ease);
}
.card:hover h2 { color: var(--chip, var(--accent)); }
.card.no-img .card-text {
  border-top: 2px solid var(--chip, var(--accent));
  padding-top: 14px;
}

/* ============================ article ============================ */
.post { max-width: 730px; margin: 0 auto; }
.post-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 900;
  margin: 0 0 14px;
  text-wrap: balance;
}
.post-standfirst {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.hero { margin: 26px 0; }
.hero img { width: 100%; border-radius: var(--radius); }
.hero figcaption { color: var(--muted); font-size: 12px; padding-top: 9px; }

.post-body { font-size: 18.5px; line-height: 1.72; }
.post-body p { margin: 0 0 22px; }
.post-body p:first-of-type { font-size: 20px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.share {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 30px 0;
}
.share span { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.share a {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--muted);
  transition: all .18s var(--ease);
}
.share a:hover { color: var(--ink); border-color: var(--ink); background: var(--surface); }

.related { max-width: var(--maxw); margin: 62px auto 0; }

.draft-banner {
  background: color-mix(in srgb, var(--business) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--business) 45%, transparent);
  color: var(--business);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 10px;
  margin: 0 auto 26px;
  max-width: 730px;
  text-align: center;
}

/* ============================ byline / authors ============================ */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.byline .avatar { flex: 0 0 auto; border-radius: 50%; }
.byline-text { display: flex; flex-direction: column; line-height: 1.4; }
.byline-name { font-weight: 600; font-size: 14px; }
.author-link { transition: color .18s var(--ease); }
.author-link:hover { color: var(--accent); }
.avatar-link { display: block; line-height: 0; }

.author-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 38px;
  padding: 20px 22px;
}
.author-note .avatar { flex: 0 0 auto; border-radius: 50%; }
.author-note p { margin: 5px 0 0; color: var(--muted); font-size: 14.5px; }

.author-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  margin-bottom: 32px;
}
.author-hero .avatar { flex: 0 0 auto; border-radius: 50%; }
.author-hero h1 { margin: 0 0 6px; font-size: 31px; font-weight: 800; }
.author-bio { margin: 11px 0 0; color: var(--muted); max-width: 62ch; }

/* ============================ pages ============================ */
.page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 30px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-head h1::before {
  content: "";
  width: 5px; height: 26px;
  border-radius: 3px;
  background: var(--chip, var(--accent));
}

.prose { max-width: 700px; margin: 0 auto; font-size: 17.5px; }
.prose.center { text-align: center; padding: 60px 0; }
.prose h1 { font-size: 34px; font-weight: 900; margin: 0 0 18px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter .18s var(--ease), transform .18s var(--ease);
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.search-box {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 30px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .18s var(--ease);
}
.search-box::placeholder { color: var(--muted); }
.search-box:focus { outline: none; border-color: var(--accent); }

/* ============================ embeds ============================ */
.embeds { margin: 30px 0 10px; display: grid; gap: 22px; }
.embed-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-x { display: flex; justify-content: center; }
.embed-x .twitter-tweet { margin: 0 auto !important; }

.empty { text-align: center; padding: 90px 0; color: var(--muted); }

/* ============================ footer ============================ */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; background: var(--surface); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 42px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col strong {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.footer-col a { color: var(--muted); transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.copyright {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 30px;
  color: var(--muted);
  font-size: 12px;
}

/* ============================ responsive ============================ */
@media (max-width: 900px) {
  .home-top { grid-template-columns: 1fr; gap: 34px; }
  .lead-text { padding: 22px 20px 20px; }
}
@media (max-width: 620px) {
  main { padding: 24px 18px 56px; }
  .header-inner { padding: 13px 18px 11px; }
  .nav { padding: 0 18px 10px; gap: 20px; }
  .tagline { display: none; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .post-body { font-size: 17.5px; }
  .footer-links { gap: 34px; }
}
