/* pixkanal.com – one stylesheet, no framework, no external requests */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0F1115;
  --bg-raised: #161920;
  --line: #262A33;
  --grey: #4A4F5A;
  --text: #F4F1EA;
  --text-soft: rgba(244, 241, 234, 0.72);
  --accent: #FFC933;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  /* Inter per branding; uses a local install if present, else the system UI font (no third-party font request) */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.wordmark {
  display: inline-flex; align-items: flex-end; gap: 3px;
  font: 700 1.45rem/1 var(--font-head); letter-spacing: -0.03em; text-decoration: none;
}
.wordmark::after { content: ""; width: 0.24em; height: 0.24em; background: var(--accent); margin-bottom: 0.08em; }

.head-nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 24px); font-size: 0.95rem; }
.head-nav a { text-decoration: none; color: var(--text-soft); }
.head-nav a:hover { color: var(--text); }
.head-nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 560px) { .head-nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem/1 var(--font-head); letter-spacing: -0.01em;
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #ffd65c; }
.btn-ghost { border: 1px solid var(--grey); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-logo { width: clamp(84px, 16vw, 188px); }
.hero .wrap > div { min-width: 0; }
.eyebrow { font: 600 0.8rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.75rem); letter-spacing: -0.035em; max-width: 14ch; }
.hero .lede { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { width: 72px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.section-head p { color: var(--text-soft); max-width: 52ch; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }
.format {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.format .num { font: 700 0.85rem/1 var(--font-head); color: var(--accent); display: flex; align-items: center; gap: 8px; }
.format .num::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.format p { color: var(--text-soft); font-size: 0.97rem; }
.tag { align-self: flex-start; margin-top: auto; font: 600 0.75rem/1 var(--font-head); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--grey); color: var(--text-soft); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
.video { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.video .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); border: 1px solid var(--line); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video:hover .thumb img { transform: scale(1.03); }
.video h3 { font-size: 1.05rem; line-height: 1.3; }
.video time { font-size: 0.85rem; color: var(--text-soft); }

.video.placeholder .thumb { display: grid; place-items: center; border-style: dashed; border-color: var(--grey); }
.video.placeholder .thumb span { width: 14px; height: 14px; background: var(--accent); }
.video.placeholder h3 { color: var(--text-soft); }

/* Family / sub-channels */
.family { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .family { grid-template-columns: 1fr; } }
.channel { border: 1px dashed var(--grey); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.channel .name { font: 700 1.6rem/1 var(--font-head); letter-spacing: -0.03em; }
.channel p { color: var(--text-soft); }
.by-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: #000; color: var(--text); border-radius: 999px; padding: 6px 12px;
  font: 600 0.78rem/1 var(--font-head);
}
.by-badge::after { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* Subscribe band */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin: 0 auto; }
.cta p { color: var(--text-soft); margin: 16px auto 28px; max-width: 48ch; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.9rem; color: var(--text-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Legal / text pages ---------- */
.prose { padding: clamp(40px, 7vw, 80px) 0; }
.prose .wrap { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose address { margin: 0 0 14px; color: var(--text-soft); font-style: normal; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose .note { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--bg-raised); border-radius: 0 8px 8px 0; color: var(--text); }
.fill { background: rgba(255, 201, 51, 0.16); color: var(--accent); padding: 0 4px; border-radius: 3px; font-family: var(--font-head); font-weight: 600; }

/* "New video" notice in the hero (filled by site.js for 14 days after upload) */
.new-video {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin-bottom: 22px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--bg-raised); border: 1px solid var(--line);
  font-size: 0.92rem; text-decoration: none;
}
.new-video[hidden] { display: none; }
.new-video:hover { border-color: var(--accent); }
.new-video b { font: 700 0.75rem/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 4px 8px; border-radius: 999px; flex: none; }
.new-video span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
