/* Quickest News — "liquid glass" theme
   Frosted translucent surfaces over a soft aurora background. Text-heavy areas use a denser
   glass for contrast; honours prefers-reduced-transparency / reduced-motion / dark mode. */

:root {
  --red: #ff2d3f; --red-deep: #dc1826; --navy: #0a1430;
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "SF Pro Display", "SF Pro Text",
          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --read: "Segoe UI Variable Text", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 24px; --radius-sm: 16px;
  /* light */
  --bg: #eef1f8; --ink: #0d1222; --muted: #545d73; --line: rgba(13, 18, 34, .10);
  --glass: rgba(255, 255, 255, .58); --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .75); --glass-edge: rgba(13, 18, 34, .08);
  --hi: rgba(255, 255, 255, .9); --shadow: 0 12px 40px rgba(20, 30, 70, .14);
  --aurora-1: rgba(255, 45, 63, .30); --aurora-2: rgba(70, 110, 255, .30); --aurora-3: rgba(160, 90, 255, .22);
  --link: #0d1222;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b18; --ink: #eef1f8; --muted: #a7afc4; --line: rgba(255, 255, 255, .10);
    --glass: rgba(22, 28, 48, .52); --glass-strong: rgba(18, 23, 40, .80);
    --glass-border: rgba(255, 255, 255, .14); --glass-edge: rgba(255, 255, 255, .06);
    --hi: rgba(255, 255, 255, .18); --shadow: 0 16px 50px rgba(0, 0, 0, .45);
    --aurora-1: rgba(255, 45, 63, .28); --aurora-2: rgba(60, 100, 255, .30); --aurora-3: rgba(150, 70, 255, .22);
    --link: #eef1f8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* aurora background: static radial gradients (cheap — no blur filters) */
.aurora { position: fixed; inset: -10vh -10vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 12% 8%, var(--aurora-1), transparent 70%),
    radial-gradient(45vw 45vw at 88% 18%, var(--aurora-2), transparent 70%),
    radial-gradient(50vw 40vw at 60% 95%, var(--aurora-3), transparent 70%); }

/* the glass material */
.glass { position: relative; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--glass-edge), var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%); }
@media (prefers-reduced-transparency: reduce) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-strong); }
}

/* top bar — floating glass pill */
.topbar { position: sticky; top: 10px; z-index: 20; margin-top: 10px; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 8px 10px 8px 14px; border-radius: 999px; }
.logo { display: inline-flex; font-weight: 900; letter-spacing: .4px; font-size: 18px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(220, 24, 38, .35); flex: none; }
.logo:hover { text-decoration: none; }
.logo .q { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; padding: 5px 10px; }
.logo .n { background: #fff; color: var(--navy); padding: 5px 10px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover { background: var(--glass-strong); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.yt-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(220, 24, 38, .35); }
.yt-pill:hover { text-decoration: none; filter: brightness(1.08); }
.dot, .live { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
.live { background: var(--red); margin-right: 8px; box-shadow: 0 0 0 4px rgba(255, 45, 63, .2); }

/* type */
h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin: 10px 0 12px; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 6px; }
.kicker { display: flex; align-items: center; color: var(--red); font-weight: 800; text-transform: uppercase;
  font-size: 13px; letter-spacing: .9px; margin: 0; }
.lede { font-size: 19px; max-width: 760px; }
.dek { color: var(--muted); margin: 4px 0; }
.dek.big { font-size: 21px; line-height: 1.45; }
.meta, .small, .byline { color: var(--muted); font-size: 14px; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: rgba(220, 24, 38, .88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.section-title { font-size: 26px; font-weight: 800; margin: 48px 4px 18px; }
.page-head { margin: 40px 4px 18px; }
.button { display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700;
  background: var(--ink); color: var(--bg); }
.button:hover { text-decoration: none; opacity: .9; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-right: 8px; }
.page .button { text-decoration: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin-top: 28px; }
.hero-card { display: block; overflow: hidden; padding: 0; color: #fff; min-height: 460px; }
.hero-card:hover { text-decoration: none; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  transition: transform .6s ease; }
.hero-card:hover img { transform: scale(1.03); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, rgba(5,8,20,0) 0%, rgba(5,8,20,.55) 35%, rgba(5,8,20,.85) 100%); }
.hero-text h1 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); margin: 12px 0 8px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-text p { color: rgba(255,255,255,.88); margin: 0; font-size: 18px; max-width: 640px; }
.briefing { padding: 22px 22px 24px; }
.briefing h2 { font-size: 20px; margin: 6px 0 12px; }
.mini-rundown { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: n; }
.mini-rundown li { counter-increment: n; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);
  font-weight: 600; line-height: 1.35; }
.mini-rundown li::before { content: counter(n, decimal-leading-zero); color: var(--red); font-weight: 800; font-size: 14px; padding-top: 2px; }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; margin: 6px 0 14px; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); }
.card-img { position: relative; display: block; margin: 8px 8px 0; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-img .chip { position: absolute; left: 10px; top: 10px; }
.card-body { padding: 14px 18px 18px; }
.card-body h3 a:hover { text-decoration: none; color: var(--red); }

/* daily briefing page */
.panel { padding: 24px; }
.rundown { list-style: none; padding: 0; margin: 0; }
.rundown li { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.rundown .thumb img { border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.rundown h2 { margin-top: 8px; }

/* article */
.crumbs { margin: 30px 4px 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.story { max-width: 860px; margin: 0 auto; }
.story-head { margin: 14px 4px 18px; }
.byline a { color: var(--ink); font-weight: 600; }
.story-figure { margin: 0 0 18px; }
.story-figure img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.story-figure figcaption { color: var(--muted); font-size: 13px; margin: 8px 6px 0; }
.story .body { padding: 28px clamp(20px, 4vw, 44px); background: var(--glass-strong); }
.story .body p { font-family: var(--read); font-size: 19px; line-height: 1.75; margin: 0 0 18px; }
.sources { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; }
.sources h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.sources ul { padding-left: 20px; margin: 6px 0 14px; }
.sources li { margin: 4px 0; }
.sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.correction { border-left: 4px solid var(--red); padding: 10px 14px; margin: 18px 0; background: rgba(255, 45, 63, .08); border-radius: 0 12px 12px 0; }

/* pages */
.page { max-width: 860px; padding: 28px clamp(20px, 4vw, 44px); background: var(--glass-strong); }
.page h2 { margin-top: 26px; }
.page li { margin: 8px 0; }
.page a, .small a { text-decoration: underline; text-underline-offset: 3px; }
.archive { list-style: none; padding: 8px 24px; max-width: 860px; }
.archive li { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.archive li:first-child { border-top: 0; }
.archive span { color: var(--muted); }

/* footer */
footer { margin-top: 64px; padding-bottom: 32px; }
.foot { padding: 26px 28px; }
.foot p { margin: 8px 0; }
.small-logo { font-size: 15px; margin-bottom: 4px; }
.links a { margin-right: 14px; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { min-height: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { top: 6px; margin-top: 6px; }
  .bar { flex-wrap: wrap; border-radius: 22px; gap: 8px; padding: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .yt-pill { margin-left: auto; padding: 7px 14px; }
  .hero-card { min-height: 340px; }
  .hero-text { padding: 20px; }
  .rundown li { grid-template-columns: 1fr; }
  .story .body p { font-size: 18px; }
}
