/* twoXdaily website: page layout on top of the design system.
   tokens.css and components.css are copies of the twoXdaily Design System
   (https://claude.ai/artifact/8EQfaMPQL9SFc9KhEyKWnp). Change them there first, then copy them here.
   This file only lays out pages and runs the phone rules in media queries. */

/* Brand fonts, bundled with the site (SIL Open Font License, see ../fonts), so no requests go to Google. */
@font-face { font-family: "Rubik"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/rubik-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/silkscreen-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/space-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/space-mono-latin-700-normal.woff2") format("woff2"); }

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--surface-page); color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--hive-950); }
a:hover { color: var(--honey-700); }
a:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 3px; }
.on-dark a:not(.tx-btn), a.on-dark { color: var(--wax-50); }
.on-dark a:not(.tx-btn):hover { color: var(--honey-500); }
.on-dark a:focus-visible { outline-color: var(--wax-50); }
.bold { font-weight: 700; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  padding: 10px 16px; background: var(--honey-500); color: var(--hive-950);
  font-weight: 700; border: 2px solid var(--hive-950); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* ---------- Site nav: SiteNav on wide screens, PhoneNav under 900px ---------- */
.site-nav .tx-nav__bar { display: contents; }
.site-nav .tx-nav__toggle { display: none; }
.site-nav .site-nav__links { flex-grow: 1; }

@media (max-width: 899px) {
  .site-nav { display: block; padding: 12px var(--space-4); position: sticky; top: 0; z-index: 20; }
  .site-nav .tx-nav__bar { display: flex; }
  .site-nav .tx-nav__logo img { width: 160px; }
  .site-nav .tx-nav__toggle { display: inline-flex; }
  .site-nav .site-nav__menu { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4) 0 var(--space-2); }
  .js .site-nav:not(.is-open) .site-nav__menu { display: none; }
  .site-nav .site-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .tx-nav__link {
    display: flex; align-items: center; min-height: 56px; padding: 0;
    font-size: 22px; border-bottom: 1px solid var(--hive-700);
  }
  .site-nav .tx-nav__link[aria-current="page"] { border-bottom: 4px solid var(--honey-500); }
  .site-nav .site-nav__menu .tx-btn { justify-content: center; min-height: 48px; box-sizing: border-box; }
}
@media (min-width: 900px) {
  .site-nav .site-nav__menu { display: flex; align-items: center; gap: var(--space-7); flex-grow: 1; }
}

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-7); box-sizing: content-box; }
.wrap--narrow { max-width: 784px; }
.section { padding: var(--space-9) 0 var(--space-7); }
.section--tight { padding: var(--space-7) 0; }
.section--last { padding-bottom: var(--space-9); }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-md { display: flex; flex-direction: column; gap: var(--space-4); }
.measure { max-width: 720px; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--wide-gap { gap: var(--space-7); align-items: start; }

/* Headings and copy */
.h-hero { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 80px; line-height: 0.95; letter-spacing: -0.01em; color: var(--wax-50); }
.h-hero--xl { font-size: 88px; }
.h-hero--lg { font-size: 72px; }
.h-hero .accent { color: var(--honey-500); }
.h-section { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; }
.h-section--sm { font-size: 36px; line-height: 1.05; }
.h-sub { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.15; }
.lead { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.5; color: var(--text-secondary); }
.page-hero .lead, .home-hero .lead, .on-dark .lead { color: var(--wax-300); }
.body-lg { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

/* Hero band (Honeycomb on ink) */
.page-hero { padding: var(--space-9) 0; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-7); }
.hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__copy > .h-hero { max-width: 900px; }
.hero__art { flex: 1 1 360px; max-width: 440px; width: 100%; height: auto; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero__aside { flex: 1 1 340px; max-width: 400px; align-items: stretch; border-color: var(--honey-500); }
.home-hero { padding: 120px 0 var(--space-9); }
.about-player { flex: none; }
.about-copy { flex-basis: 480px; }

/* Cards used as callouts */
.card-strong { border-color: var(--stroke-ink); box-shadow: var(--shadow-drop); }
.card-title-sm { font-size: 20px; }
.card-row { flex-direction: row; align-items: center; gap: var(--space-5); }
.card-row img { width: 120px; height: auto; flex: none; }
.tx-card__title, .tx-card__body { margin: 0; }

/* Lists of links */
.link-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 1.5; }

/* Up next fallback, shown when every listed stream has passed */
.upnext-empty { margin: 0; }
[hidden] { display: none !important; }

/* Footer: two link columns now that the site is gaming-only */
.site-footer.tx-footer { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.site-footer .tx-footer__brand img { width: 56px; height: auto; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound > .wrap { flex: 1 1 auto; min-width: 0; }

/* ---------- Phones: the design system's tx-phone rules, run under 720px ---------- */
@media (max-width: 719px) {
  .tx-btn { min-height: 48px; padding: 10px 22px; justify-content: center; box-sizing: border-box; }
  .tx-tap { display: inline-flex; align-items: center; min-height: 44px; }
  .tx-step { grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); }
  .tx-step__num { width: 48px; height: 55px; font-size: 22px; }
  .tx-step__title { font-size: 20px; }
  .tx-glossary { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .tx-quiz { padding: 20px; }
  .tx-quiz__question { font-size: 20px; }
  .tx-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); padding: var(--space-7) var(--space-5) var(--space-6); }
  .site-footer.tx-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-footer__brand { grid-column: 1 / -1; }
  .tx-footer__links { gap: 0; }
  .tx-footer__link { display: inline-flex; align-items: center; min-height: 44px; }
  .tx-footer__base { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .tx-show { padding: 20px; }
  .tx-show__name { font-size: 24px; }
  .tx-show__game { font-size: 20px; }
  .tx-upnext__row { grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: var(--space-2) var(--space-4); padding: var(--space-4); }
  .tx-upnext__date { width: 72px; height: 80px; gap: 4px; }
  .tx-upnext__day { font-size: 26px; }
  .tx-upnext__title { font-size: 18px; }
  .tx-upnext__remind { grid-column: 2; }
  .tx-season__head { display: none; }
  .tx-season__week { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); }
  .tx-season__show { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--font-pixel); font-size: 11px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
  .tx-season__title { font-size: 17px; }
  .tx-queue { padding: var(--space-4); }
  .tx-queue__list { flex-direction: column; gap: var(--space-2); }
  .tx-faq__q { padding: 12px 16px; font-size: 18px; }
  .tx-faq__a { padding: 0 16px 16px; font-size: 15px; }
  .tx-episode { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
  .tx-episode__num { width: 64px; height: 64px; gap: 4px; }
  .tx-episode__ep { font-size: 11px; }
  .tx-episode__n { font-size: 26px; }
  .tx-episode__title { font-size: 20px; }
  .tx-episode__link { grid-column: 2; align-self: start; }
  .tx-player { max-width: none; padding: var(--space-5) var(--space-4) var(--space-4); }
  .tx-player__avatar { width: 200px; height: 200px; }

  /* Phone layout from the brand book: 24px sides, 48px between sections, one column. */
  .wrap { padding: 0 var(--space-5); }
  .section { padding: var(--space-7) 0 0; }
  .section--tight { padding: var(--space-7) 0 0; }
  .section--last { padding-bottom: var(--space-7); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .grid--wide-gap { gap: var(--space-6); }
  .page-hero, .home-hero { padding: var(--space-7) 0; }
  .hero__inner { gap: var(--space-6); }
  .hero__copy, .about-copy { flex-basis: 100%; }
  .hero__aside { max-width: none; flex-basis: 100%; }
  .hero__actions { align-self: stretch; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; width: 100%; }
  .hero__actions .tx-tap { justify-content: center; }
  .hero__art { flex: none; align-self: center; width: 240px; margin: 0 auto; }
  .h-hero, .h-hero--xl, .h-hero--lg { font-size: 44px; }
  .h-section { font-size: 32px; }
  .h-section--sm { font-size: 28px; }
  .h-sub { font-size: 24px; }
  .lead { font-size: 18px; }
  .body-lg { font-size: 16px; }
  .card-row { align-items: flex-start; }
  .card-row img { width: 88px; }
  .about-player { flex: 1 1 100%; box-sizing: border-box; }
}
