:root {
  color-scheme: dark;
  /* Sampled from the "Molten Core" 7TV paint: cream, gold, orange, crimson. */
  --bg: #150f0e;
  --panel: #1d1614;
  --panel-strong: #261c19;
  --text: #f7f1e3;
  --muted: #cbb9a4;
  --quiet: #9a8674;
  --line: #3b2a25;
  --ember: #f6911d;
  --flame: #a92438;
  --gold: #f8c04b;
  --cream: #edeab7;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(246, 145, 29, 0.14), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(169, 36, 56, 0.18), transparent 30rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a { color: var(--ember); text-underline-offset: 0.18em; }
a:hover { color: #ffbc5e; }

.site-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); font-weight: 720; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 0.95rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 15ch; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 760; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 720; }
p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 780; letter-spacing: 0.14em; margin: 0 0 16px; text-transform: uppercase; }
.lead { max-width: 58ch; margin-top: 24px; font-size: 1.16rem; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 760; text-decoration: none; cursor: pointer;
  background: linear-gradient(135deg, var(--ember), var(--flame)); color: #1c0f0b;
}
.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.section-heading { max-width: 640px; }
.section-heading p { margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.card p { margin-top: 10px; font-size: 0.96rem; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.card li { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; color: var(--ember); }
.card li span { color: var(--quiet); }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 780; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--quiet);
}
.tag.on { color: var(--gold); border-color: rgba(128, 226, 167, 0.35); }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 28px 0 46px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--quiet); font-size: 0.92rem;
}
.footer p { color: var(--quiet); }
.footer a { color: var(--muted); }

@media (max-width: 900px) {
  .grid, .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .topbar, .footer { align-items: flex-start; flex-direction: column; }
  .section { padding: 56px 0; }
}
@media (max-width: 620px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  h1 { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- alternating showcase rows ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 46px; align-items: center; padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.showcase:nth-of-type(even) .showcase-text { order: 2; }
.showcase h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.showcase p { margin-top: 14px; }
.showcase .more { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: none; }
.showcase .more:hover { text-decoration: underline; }
.showcase .kicker { color: var(--gold); font-size: .74rem; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- closing call to action ---------- */
.cta {
  margin: 56px 0 72px; padding: 46px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 145, 29, .12), rgba(169, 36, 56, .12));
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { max-width: 20ch; }
.cta p { margin-top: 12px; max-width: 46ch; }

@media (max-width: 840px) {
  .showcase { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .showcase:nth-of-type(even) .showcase-text { order: 0; }
  .cta { padding: 32px; }
}

/* ---------- chat, laid out the way Twitch actually does it ----------
   No bubbles and no avatars: Twitch puts the badges, then the name in the
   user's own colour, then a colon, then the message, all on one wrapping
   line. Names are 600 weight at 13px, messages sit on a 20px line. */
.chat {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #17171a; display: grid;
}
.chat-head {
  padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet);
}
.chat-log { padding: 8px 0; display: grid; align-content: start; }
.msg { padding: 5px 14px; font-size: 13px; line-height: 20px; color: #efeff1; overflow-wrap: anywhere; }
.msg:hover { background: rgba(255, 255, 255, .03); }
.msg .badge { width: 18px; height: 18px; border-radius: 3px; vertical-align: -4px; margin-right: 3px; }
.msg .name { font-weight: 600; }
.msg .said { color: #efeff1; }
.msg .cmd { color: #dedee3; }
.chat-foot { padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 8px; }
.chat-box {
  border: 1px solid #3a3a3d; border-radius: 6px; background: #1f1f23; color: #8a8a90;
  padding: 9px 11px; font-size: 13px;
}
.chat-send { display: flex; justify-content: flex-end; }
.chat-send span { background: #9147ff; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 5px; }

/* ---------- the wordmark, wearing its 7TV paint ----------
   "Molten Core" (7TV paint 01JK6NVC5W...) is an image paint: an animated
   layer clipped to the text, plus a #F09B2C glow. These are the paint's own
   values, read from 7TV's API, so it matches what the name looks like in
   chat. Browsers that can't clip a background to text keep plain text. */
.brand .mark { width: 56px; height: 56px; border-radius: 13px; background: none; display: block; }
.brand .wordmark { font-weight: 720; font-size: 1.5rem; letter-spacing: -.01em; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* The same paint on the name in chat, which is how it looks with the paint
     equipped: 7TV clips the layer to the name and drops the plain colour. */
  .msg .name.paint {
    background-image: url("/assets/molten-core.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 0.1px #F09B2C);
  }

  .brand .wordmark {
    background-image: url("/assets/molten-core.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 0.1px #F09B2C);
  }
}
