/* PlaySteady demo resources — mirrors the marketing site's public palette
   (steel-blue accent on cream, ink on near-black in dark mode) and Poppins. */
:root {
  --bg: #f4f3ee;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --ink: #15181a;
  --ink-dim: #555a5b;
  --ink-mute: #6c706f;
  --line: #e1ddd2;
  --line-strong: #c8c2b3;
  --accent: #3c6485;
  --accent-hot: #517f9f;
  --accent-glow: rgba(60, 100, 133, 0.22);
  --accent-ink: #ffffff;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text: "Poppins", system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 24, 26, 0.04), 0 12px 32px -16px rgba(21, 24, 26, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0a;
    --bg-elev: #111312;
    --bg-card: #151816;
    --ink: #ecede9;
    --ink-dim: #9aa09a;
    --ink-mute: #898d89;
    --line: #232524;
    --line-strong: #353835;
    --accent: #6b9ab8;
    --accent-hot: #8fabc5;
    --accent-glow: rgba(107, 154, 184, 0.18);
    --accent-ink: #0a0b0a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hot); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -48px; padding: 8px 12px;
  background: var(--accent); color: var(--accent-ink); border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand:hover { color: inherit; }
.wordmark { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.tag { color: var(--ink-mute); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; color: var(--ink-dim); }
.nav a.ext::after { content: " \2197"; font-size: 12px; }
@media (max-width: 720px) {
  .tag { display: none; }
  .nav { gap: 14px; font-size: 13px; }
  .nav a.ext { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 5vw, 56px); max-width: 780px; }
.eyebrow { color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.025em; }
.lede { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-dim); max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn.primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: var(--accent-ink); }

/* ── Intro ──────────────────────────────────────────────────────────── */
.intro { padding: clamp(40px, 7vw, 80px) 0 clamp(8px, 2vw, 16px); }
.intro h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.intro .sub { margin-top: 8px; color: var(--ink-dim); font-size: 16px; }
.idx { color: var(--ink-mute); margin-bottom: 12px; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.section-head .sub { margin-top: 10px; color: var(--ink-dim); }
.videos { padding: clamp(40px, 6vw, 72px) 0; }
.empty { color: var(--ink-mute); font-size: 15px; }

/* ── Video grid ─────────────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.video-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.poster {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--bg-elev); aspect-ratio: 1524 / 1080; overflow: hidden;
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.poster:hover img { transform: scale(1.025); }
.poster-blank { width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-glow), transparent); }
.play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5); transition: transform 0.15s ease, background 0.15s ease;
}
.play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.poster:hover .play, .poster:focus-visible .play { transform: scale(1.06); background: var(--accent-hot); }
.poster:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chip {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px;
  background: rgba(10, 11, 10, 0.72); color: #ecede9; font-size: 11px; text-transform: none; letter-spacing: 0.02em;
}
.video-meta { padding: 16px 20px 18px; }
.video-meta h3 { font-size: 17px; font-weight: 600; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer;
}
.link-btn:hover { color: var(--accent-hot); text-decoration: underline; text-underline-offset: 3px; }
.player-links a[target="_blank"]::after { content: " \2197"; font-size: 12px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-mute); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Player dialog ──────────────────────────────────────────────────── */
.player {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--ink);
  width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: none;
}
.player::backdrop { background: rgba(10, 11, 10, 0.78); backdrop-filter: blur(6px); }
.player-inner {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.player-head h3 { font-size: 16px; font-weight: 600; }
.icon-btn {
  border: 0; background: none; color: var(--ink-dim); font-size: 26px; line-height: 1; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--line); color: var(--ink); }
#player-video { width: 100%; background: #000; aspect-ratio: 1524 / 1080; max-height: calc(100vh - 220px); }
.player-desc { padding: 14px 18px 0; color: var(--ink-dim); font-size: 14.5px; }
.player-desc:empty { display: none; }
.player-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 18px 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster img, .play, .btn { transition: none; }
}
