@font-face {
  font-family: Geist;
  src: url("/assets/Geist-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Geist, system-ui, sans-serif;
  --text: #eff5ff;
  --muted: #acb9ce;
  --line: #26364c;
  --cyan: #79e5ff;
  --gain: #88eec8;
  --loss: #ff9eaa;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 64rem 36rem at 70% 0, #182744 0%, #0b101a 78%);
}

button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--cyan); text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.top { border-bottom: 1px solid #26364caa; background: #0b101ad9; }
.top-inner, main { width: min(100% - 36px, 1100px); margin-inline: auto; }
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { border: 1px solid #425674; border-radius: 12px; }
.brand strong, .brand span { display: block; }
.brand strong { font-weight: 760; font-size: 1rem; letter-spacing: -.025em; }
.brand span { color: var(--muted); font-size: .75rem; }
.access {
  color: #bee8f7;
  background: #112638;
  border: 1px solid #2c4961;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .72rem;
  white-space: nowrap;
  text-decoration: none;
}
a.access:hover { color: var(--text); background: #1c364b; }

main { margin-block: 28px 60px; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { letter-spacing: -.025em; }
h1 { font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(3rem, 8vw, 5.25rem); line-height: .94; }
h2 { font-weight: 760; font-size: clamp(1.16rem, 4vw, 1.55rem); line-height: 1.12; }
.eyebrow { font-size: .67rem; text-transform: uppercase; letter-spacing: .19em; color: var(--cyan); font-weight: 720; }
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, #151f30, #101724 55%);
  box-shadow: 0 14px 46px #04070f45;
}
.entry { margin: 52px auto; max-width: 530px; padding: clamp(22px, 6vw, 44px); }
.entry h1 { margin-block: 10px 14px; }
.entry p:not(.eyebrow) { color: var(--muted); max-width: 34ch; line-height: 1.5; }
.entry .primary { margin-top: 22px; }
.entry-link { display: block; width: fit-content; margin-top: 18px; font-size: .84rem; }

.primary, .quiet {
  padding: 10px 13px;
  border-radius: 9px;
  min-height: 42px;
  font-size: .82rem;
  font-weight: 690;
}
.primary { border: 1px solid #87ecff; color: #09202d; background: #83eaff; }
.primary:hover { background: #b2f3ff; }
.quiet { border: 1px solid #394b66; color: var(--text); background: #192539; }
.quiet:hover { background: #253650; }

.hero {
  overflow: hidden;
  position: relative;
  min-height: clamp(224px, 27vw, 300px);
  display: flex;
  align-items: center;
  padding: clamp(22px, 5vw, 50px);
  background:
    linear-gradient(90deg, #0d1726 4%, #0c1626f0 31%, #0b142485 60%, #0b142422),
    url("/assets/madara-cinematic.webp") 68% center / cover;
  border: 1px solid #31445f;
  border-radius: 20px;
  box-shadow: 0 20px 64px #02060cb3;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #70dfff, #39598b 44%, #ce536e 96%);
}
.hero-content { position: relative; }
.hero h1 { margin-block: 9px 17px; }
.hero-value {
  font-size: clamp(2.15rem, 7vw, 3.6rem);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.056em;
}
.hero-label { margin-top: 5px; color: #c8e8f5; font-size: .84rem; }

.networks, .history, .videos { margin-top: 23px; }
.history, .videos { padding: clamp(14px, 3.4vw, 28px); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-bottom: 13px; }
.section-head p, .status { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.status { margin-bottom: 10px; }
.network-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(7px, 1.6vw, 14px); }
[data-network="youtube"] { --network: #ff929b; }
[data-network="instagram"] { --network: #edacf2; }
[data-network="facebook"] { --network: #91c8ff; }
.network-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: clamp(9px, 2.5vw, 20px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--network);
  border-radius: 12px;
  background: linear-gradient(148deg, #172437, #111a29);
}
.network-name { color: var(--network); font-size: clamp(.69rem, 2.6vw, .89rem); font-weight: 690; }
.network-value { font-size: clamp(1.15rem, 4.9vw, 2.15rem); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.network-note { color: var(--muted); font-size: .7rem; line-height: 1.32; overflow-wrap: anywhere; }

.range { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #31435a; border-radius: 9px; background: #0c1421; }
.range button { border: 0; border-radius: 6px; background: none; padding: 8px 11px; min-height: 34px; color: var(--muted); font-size: .77rem; font-weight: 640; }
.range button[aria-pressed="true"] { color: var(--cyan); background: #20384d; }
.range button:hover { color: var(--text); }
.latest {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 7px 20px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: linear-gradient(115deg, #122d3c, #122030);
  border: 1px solid #2c4c62;
  border-radius: 12px;
}
.latest p { color: var(--muted); font-size: .76rem; }
.latest .latest-value { font-family: "Barlow Condensed", Impact, sans-serif; color: var(--text); font-size: 2.25rem; line-height: 1.1; }
[data-tone="gain"] { color: var(--gain) !important; }
[data-tone="loss"] { color: var(--loss) !important; }
.trend { border-bottom: 1px solid var(--line); margin: 16px 0; padding-bottom: 12px; }
.trend p, .chart-axis { color: var(--muted); font-size: .72rem; }
#chart { width: 100%; height: 84px; display: block; margin-block: 5px; }
.chart-axis { display: flex; justify-content: space-between; gap: 10px; }
.day-list { display: grid; gap: 8px; }
.day-row { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #0c1523; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.day-title { font-weight: 720; text-transform: capitalize; font-size: .91rem; }
.day-stamp, .day-note { color: var(--muted); font-size: .72rem; }
.day-total { font-weight: 740; font-variant-numeric: tabular-nums; }
.day-delta { margin-left: .45em; font-size: .77rem; white-space: nowrap; }
.day-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding-top: 9px; margin-top: 9px; border-top: 1px solid #233148; }
.day-counters dt { color: var(--network); font-size: .68rem; font-weight: 630; }
.day-counters dd { margin-top: 3px; font-size: .83rem; font-variant-numeric: tabular-nums; }
.day-counters small { color: var(--muted); font-size: .66rem; white-space: nowrap; margin-left: .35em; }
.empty { color: var(--muted); font-size: .8rem; padding-block: 7px; }

#video-list { display: grid; gap: 7px; }
.video { background: #0c1523; border: 1px solid var(--line); border-radius: 10px; padding-inline: 12px; }
.video summary { padding-block: 12px; cursor: pointer; line-height: 1.35; font-weight: 610; font-size: .84rem; }
.video summary:hover { color: var(--cyan); }
.video .day-counters { margin: 0 0 10px; }
.video a { display: inline-block; padding-bottom: 12px; font-size: .79rem; }

@media (min-width: 700px) {
  .day-row { display: grid; grid-template-columns: minmax(250px, 1.3fr) 1fr; align-items: center; column-gap: 24px; }
  .day-counters { padding-top: 0; margin-top: 0; border: 0; }
  .video .day-counters { border-top: 1px solid #233148; padding-top: 10px; }
}

@media (max-width: 500px) {
  .top-inner, main { width: calc(100% - 26px); }
  .top-inner { min-height: 61px; }
  main { margin-top: 15px; }
  .hero {
    min-height: 218px;
    background-image: linear-gradient(90deg, #0d1726f5 0%, #0d1726c4 42%, #0b14245e 83%),
      url("/assets/madara-cinematic.webp");
    background-position: 54% center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button, summary { transition: color .16s, background .16s; }
}
