/* =========================================================
   style.css — the look of every page on the site.
   Colors live in the "Theme tokens" block. Change a color there
   and it updates everywhere.
   ========================================================= */

/* ===== Theme tokens ===== */
:root {
  --bg: #F1F2F5;
  --panel: #FFFFFF;
  --ink: #1A1F2E;
  --muted: #5B6478;
  --line: #D8DCE4;
  --signal: #B86E00;      /* brand accent: tags, live badge */
  --signal-soft: #FFF1DC;
  --link: #1F5FBF;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151A26; --panel: #1E2536; --ink: #E8E6DF; --muted: #97A0B5;
    --line: #2E3750; --signal: #FFB547; --signal-soft: #3A2F1C; --link: #8CC1FF;
  }
}
:root[data-theme="dark"] {
  --bg: #151A26; --panel: #1E2536; --ink: #E8E6DF; --muted: #97A0B5;
  --line: #2E3750; --signal: #FFB547; --signal-soft: #3A2F1C; --link: #8CC1FF;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
a { color: var(--link); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.tagline { font-family: var(--display); font-weight: 500; font-size: .85rem; color: var(--signal); }
.site-nav { display: flex; gap: .25rem; font-family: var(--display); font-weight: 700; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .4rem .8rem; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ===== Shared bits ===== */
.meta { font-family: var(--display); font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.meta .tag { color: var(--signal); font-weight: 700; margin-right: .6rem; text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.extra { margin-left: .6rem; }
.extra::before { content: "/"; margin-right: .6rem; color: var(--line); }

.story-link { color: var(--ink); text-decoration: none; }
.story-link:hover h2, .story-link:hover h3, .story-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--line); margin-bottom: .7rem; }
.thumb-blank { display: flex; align-items: flex-end; padding: .9rem 1rem; background: var(--signal-soft); }
.thumb-blank span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -0.03em; color: var(--signal); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1.5rem; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0; }
.section-head a { font-family: var(--display); font-weight: 700; }

/* ===== Homepage: today's headlines ===== */
.today-bar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding: 1.5rem 0 .6rem; border-bottom: 2px solid var(--ink); font-family: var(--display); }
.today-bar h1 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.today-bar time { color: var(--muted); font-weight: 500; }

.headlines { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2.5rem; padding: 1.5rem 0 3rem; }
.lead .thumb { border-radius: 14px; margin-bottom: 1rem; }
.lead .thumb-blank { padding: 1.5rem; }
.lead .thumb-blank span { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.lead h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 .6rem; }
.lead p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.top-list li:first-child { border-top: 0; padding-top: 0; }
.top-list h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }

.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; padding-bottom: 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.5rem; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin: 0; }
.home-section { padding-bottom: 3rem; }

/* ===== Sidebar + ad ===== */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.side-block h2 { font-family: var(--display); font-size: 1.05rem; font-weight: 800; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { font-family: var(--display); font-weight: 700; line-height: 1.25; }

.fu-ad {
  --fu-tag: #FFC94A; --fu-ink: #1B2A4A; --fu-ink-soft: #3E4C6B; --fu-hole: var(--bg);
  position: relative; display: block; max-width: 320px; width: 100%;
  padding: 22px 22px 20px 54px; background: var(--fu-tag); color: var(--fu-ink);
  font-family: var(--display); text-decoration: none;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%);
  transform: rotate(-1.5deg); transition: transform .2s ease;
}
.fu-ad::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--fu-hole); box-shadow: inset 0 0 0 2px var(--fu-ink);
}
.fu-ad:hover { transform: rotate(0deg); }
.fu-ad:focus-visible { outline: 3px solid var(--fu-ink); outline-offset: 4px; }
.fu-ad__label { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--fu-ink-soft); }
.fu-ad__title { margin: 0 0 8px; font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.fu-ad__text { margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
.fu-ad__button { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--fu-ink); color: var(--fu-tag); font-size: 14px; font-weight: 800; }

/* ===== Stream ===== */
.stream { padding-bottom: 3rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; color: var(--signal); background: var(--signal-soft); padding: .25rem .75rem; border-radius: 999px; font-size: .9rem; }
.status .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 820px; }
.stage.has-schedule { grid-template-columns: minmax(0, 1fr) 280px; max-width: none; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0E121C; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1B2030; }
.schedule { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.schedule h3 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 .5rem; }
.schedule ul { list-style: none; margin: 0; padding: 0; }
.schedule li { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.schedule li:first-child { border-top: 0; }
.schedule .day { font-family: var(--display); font-weight: 700; }
.schedule .game { color: var(--muted); text-align: right; }
.schedule .today .day { color: var(--signal); }

/* ===== News + How-to list pages ===== */
.page-head { padding: 2rem 0 1rem; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1; margin: 0 0 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { font-family: var(--display); font-weight: 500; font-size: .95rem; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.rows { padding-bottom: 4rem; }
.row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .thumb { margin: 0; }
.row h2 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .4rem; }
.row p { margin: 0; color: var(--muted); max-width: 70ch; }
.empty { color: var(--muted); }

/* ===== Article page ===== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; padding: 2rem 0 4rem; }
.crumbs { font-family: var(--display); font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; margin: .2rem 0 .8rem; max-width: 22ch; }
.dek { font-size: 1.25rem; line-height: 1.5; color: var(--muted); margin: 0 0 1rem; max-width: 62ch; }
.byline { font-family: var(--display); font-size: .95rem; color: var(--muted); margin: 0 0 1rem; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.75rem; }
.article-body { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.15rem; }
.article-body img, .article-body svg { border-radius: 10px; }
.article-body .key-points { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem 1rem 2.5rem; margin: 0 0 1.75rem; font-size: 1.05rem; }
.article-body .key-points li { margin-bottom: .35rem; }
.source { font-family: var(--display); font-weight: 700; }
.article-actions { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* How-to steps */
.steps { margin: .25rem 0 1.5rem; padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: .75rem 0 .75rem 3rem; border-top: 1px dashed var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .75rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--signal-soft); color: var(--signal); font-family: var(--display); font-weight: 800; font-size: .95rem; }
.article-body code { font-size: .88em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .05rem .35rem; }
.needs strong, .tip strong { font-family: var(--display); }
.tip { background: var(--signal-soft); border-radius: 10px; padding: .85rem 1.1rem; }

/* ===== Share menu ===== */
.share { position: relative; display: inline-block; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 700; font-size: 1rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; color: var(--ink); cursor: pointer; }
.share-btn:hover, .share-btn[aria-expanded="true"] { border-color: var(--ink); }
.share-btn svg { width: 1rem; height: 1rem; }
.share-menu { position: absolute; left: 0; bottom: calc(100% + .5rem); z-index: 20; min-width: 13rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .35rem; box-shadow: 0 10px 28px rgba(15, 20, 35, .22); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: block; width: 100%; text-align: left; font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; background: none; border: 0; padding: .45rem .7rem; border-radius: 6px; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg); }
.share-menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem .2rem; }
.share-menu .copied { color: var(--signal); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 0 0 .4rem; }

/* ===== Smaller screens ===== */
@media (max-width: 900px) {
  .headlines, .home-columns, .article-layout, .stage.has-schedule { grid-template-columns: 1fr; }
  .headlines { gap: 2rem; }
  .article-layout { gap: 2.5rem; }
}
@media (max-width: 600px) {
  .row { grid-template-columns: minmax(0, 1fr) 96px; gap: 1rem; }
  .row .thumb-link { order: 2; }
  .row .thumb { aspect-ratio: 1; border-radius: 8px; }
  .row .thumb-blank span { font-size: .85rem; }
  .row h2 { font-size: 1.15rem; }
  .row p { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; }
  .filters button { flex: none; }
  .site-nav a { padding: .35rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .status .dot { animation: none; }
  .fu-ad, .fu-ad:hover { transform: none; transition: none; }
}
