/* VideoBuffet — static site. Self-contained: system fonts only, no external resources. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --text: #191c24;
  --muted: #5a6170;
  --border: #e3e6ee;
  --border-strong: #c9cedb;
  --accent: #4b52d9;
  --accent-2: #0b87e0;
  --shadow: 0 1px 2px rgba(16, 20, 30, 0.05), 0 10px 28px rgba(16, 20, 30, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f15;
    --surface: #151824;
    --text: #e9ebf1;
    --muted: #99a1b1;
    --border: #252a38;
    --border-strong: #3a4154;
    --accent: #8a90ff;
    --accent-2: #4aa8f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 22px;
  max-width: 980px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { display: block; border-radius: 6px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.15rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1rem;
}
h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}
h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: 0 0 0.4rem; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-2);
  margin: 0;
}

.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 1.6rem;
}

.muted { color: var(--muted); }

kbd {
  font: 0.82em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.15em 0.45em;
  background: var(--surface);
  white-space: nowrap;
}

/* ---------- Sections ---------- */

section { padding: 3.2rem 0; }
.hero { padding: 4.2rem 0 2.2rem; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: default;
  user-select: none;
}
.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.8;
}

.ghost-link { color: var(--muted); font-size: 0.95rem; }
.ghost-link:hover { color: var(--text); }

/* ---------- Wall motif (abstract illustration, not a screenshot) ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 48px;
  grid-auto-flow: dense;
  gap: 8px;
  margin: 2.4rem 0 0.5rem;
}
.wall span {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.wall .v { grid-row: span 2; }
.wall .w { grid-column: span 2; }

.g1 { background: linear-gradient(135deg, #5b5bd6, #8181f2); }
.g2 { background: linear-gradient(135deg, #0b6fc0, #4fb3f6); }
.g3 { background: linear-gradient(135deg, #0e8f83, #3ecfb2); }
.g4 { background: linear-gradient(135deg, #6d4fc4, #a98af0); }
.g5 { background: linear-gradient(135deg, #37415c, #5f7195); }
.g6 { background: linear-gradient(135deg, #0a92b4, #55cbe0); }

.wall .p::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.6);
}
.wall .b::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 42%;
  bottom: 11%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
  .wall span { animation: tileGlow 9s ease-in-out infinite alternate; }
  .wall span:nth-child(3n) { animation-delay: -3s; }
  .wall span:nth-child(3n + 1) { animation-delay: -6s; }
  @keyframes tileGlow {
    from { filter: brightness(0.96); }
    to { filter: brightness(1.14); }
  }
}

.wall-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

@media (max-width: 640px) {
  .wall { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 42px; }
  .wall .hide-sm { display: none; }
}

/* ---------- Profile View spotlight ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
}

.shape-demo {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}
.shape-group { text-align: center; }
.shape-row { display: flex; gap: 6px; justify-content: center; }
.cell {
  border-radius: 7px;
  display: block;
}
.cell-v { width: 34px; aspect-ratio: 2 / 3; }
.cell-w { width: 74px; aspect-ratio: 16 / 9; }
.shape-group figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-weight: 600;
}
.shape-demo figure { margin: 0; }

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.3rem 1.15rem;
}
.card h3 { display: flex; align-items: center; gap: 0.55rem; }
.card h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Requirements ---------- */

.req {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.req div {
  border-left: 3px solid var(--accent-2);
  padding: 0.15rem 0 0.15rem 1rem;
}
.req strong { display: block; margin-bottom: 0.2rem; }
.req p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Coming soon callout ---------- */

.cta-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 2.4rem 1.6rem;
  text-align: center;
}
.cta-box .soon { margin: 0.4rem 0 1rem; }
.cta-box p { max-width: 40rem; margin: 0 auto; color: var(--muted); }

/* ---------- Prose pages ---------- */

.prose { max-width: 46rem; padding-top: 2.8rem; padding-bottom: 3.5rem; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4rem; }
.prose li { margin: 0.35rem 0; }
.prose .effective { color: var(--muted); font-size: 0.95rem; margin-top: -0.4rem; }

.note-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.4rem 0;
}
.note-box p { margin: 0.3rem 0; }

/* FAQ */
details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  margin: 0.6rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
}
details summary::marker { color: var(--accent-2); }
details[open] summary { margin-bottom: 0.4rem; }
details p { margin: 0.4rem 0; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 2.6rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-links { margin-bottom: 0.7rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-sep { margin: 0 0.45rem; opacity: 0.6; }
.fineprint { font-size: 0.8rem; opacity: 0.85; max-width: 46rem; }
.site-footer p { margin: 0.35rem 0; }

/* ---------- 404 ---------- */

.err-wrap { text-align: center; padding: 5rem 0 4rem; }
.err-wrap .wall {
  max-width: 320px;
  margin: 0 auto 2rem;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 44px;
}
.err-code {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
