/* Benscollectables - one stylesheet for every page. Mobile first. */

:root {
  --bg: #1b1d20;
  --bg-raised: #25282c;
  --bg-card: #2e3237;
  --line: #3b4046;
  --text: #f3f3f1;
  --muted: #b4b8bd;
  --accent: #ffc21a;
  --accent-hover: #ffd35c;
  --accent-ink: #141414;
  --ko: #14304f;
  --ko-deep: #0e2340;
  --ko-line: #25507f;
  --ko-grid: rgba(255, 255, 255, 0.07);
  --radius: 10px;
  --heading: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--heading); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 1.05; margin: 0 0 0.5em; overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.6rem, 11vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.section--raised { background: var(--bg-raised); }
.eyebrow {
  font-family: var(--heading); color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 1.05rem; margin-bottom: 0.4em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 12px;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 29, 32, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-family: var(--heading); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.brand:hover { color: var(--text); }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nav-links {
  display: none; list-style: none; margin: 0; padding: 8px 20px 20px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-links.is-open { display: block; }
.nav-links a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 28px; position: static; padding: 0; background: none; border: 0; }
  .nav-links a { padding: 8px 0; font-size: 1rem; }
}

/* Home hero */
.hero {
  background: radial-gradient(ellipse at 50% 0%, #3a3e44 0%, var(--bg) 70%);
  padding-block: 48px 56px; text-align: center; border-bottom: 1px solid var(--line);
}
.hero__logo { width: min(200px, 48vw); margin: 0 auto 20px; }
.hero h1 { text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45); margin-bottom: 0.1em; }
.hero__tagline {
  font-family: var(--heading); font-size: clamp(1.3rem, 5vw, 2rem);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.8em;
}
.hero .lead { margin: 0 auto 1.6em; }
.hero .btn-row { justify-content: center; }

/* Inner page header */
.page-hero { padding-block: 44px 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #2a2d32, var(--bg)); }
.page-hero h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
.page-hero .lead { margin-bottom: 0; }

/* Videos */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.video-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.video-card__media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-card__play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-card__play img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px;
  transform: translate(-50%, -50%); border-radius: 12px;
  background: rgba(0, 0, 0, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: background-color 0.15s;
}
.video-card__play:hover::after, .video-card__play:focus-visible::after { background-color: #e62117; }
.video-card__play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__body { padding: 14px 16px 16px; }
.video-card__title {
  font: 600 1rem/1.35 var(--body); text-transform: none; letter-spacing: 0; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card__date { color: var(--muted); font-size: 0.85rem; margin: 0; }
.video-card--skeleton .video-card__media {
  background: linear-gradient(90deg, #2e3237, #383d43, #2e3237); background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.video-card--skeleton .video-card__body { height: 72px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .video-card--skeleton .video-card__media { animation: none; } }
.video-fallback { text-align: center; padding: 32px 16px; background: var(--bg-card); border-radius: var(--radius); }

/* BensKOllectables sub-brand */
.ko {
  background-color: var(--ko);
  background-image: linear-gradient(var(--ko-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ko-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-block: 1px solid var(--ko-line);
}
.ko .eyebrow { color: #9cc6ff; }
.ko .video-card, .ko .video-fallback { background: var(--ko-deep); }
.ko__intro { display: grid; gap: 20px; align-items: center; margin-bottom: 28px; }
.ko__intro p:last-child { margin-bottom: 0; }
.ko__intro .btn { justify-self: start; }
.ko__logo { width: 120px; }
@media (min-width: 760px) {
  .ko__intro { grid-template-columns: 150px 1fr auto; }
  .ko__logo { width: 150px; }
}

/* Socials */
.social-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .social-grid { grid-template-columns: repeat(5, 1fr); } }
.social-link {
  display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 64px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.social-link:hover { border-color: var(--accent); color: var(--text); }
.social-link svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.social-link small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }

/* About */
.prose { max-width: 68ch; }
.prose p { font-size: 1.08rem; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.4fr 1fr; } }
.photo-frame { background: var(--bg-card); border-radius: var(--radius); padding: 32px; display: grid; place-items: center; }
.photo-frame img { width: min(260px, 70%); }

/* Discounts */
.notice {
  border-left: 4px solid var(--accent); background: var(--bg-raised); color: var(--muted);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 32px;
}
.deal-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .deal-grid { grid-template-columns: repeat(3, 1fr); } }
.deal { display: flex; flex-direction: column; gap: 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.deal h2 { font-size: 1.8rem; margin: 0; }
.deal p { color: var(--muted); margin: 0; flex: 1; }
.deal .btn { align-self: flex-start; }
/* Codes never break mid-word. If code + button don't fit side by side (e.g. BENSCOLLECTABLES
   on a 320px phone), the Copy button wraps onto its own full-width row underneath. */
.code { display: flex; flex-wrap: wrap; align-items: stretch; border: 2px dashed var(--line); border-radius: 8px; overflow: hidden; }
.code__value { flex: 999 0 auto; padding: 10px 12px; font: 700 0.95rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.02em; white-space: nowrap; }
.code__copy { flex: 1 0 auto; min-width: 64px; min-height: 44px; padding: 0 12px; border: 0; background: var(--bg-raised); color: var(--text); font: 600 0.95rem var(--body); cursor: pointer; }
.code__copy:hover { background: var(--line); }
.code__copy.is-copied { background: var(--accent); color: var(--accent-ink); }

/* Work with me */
/* Two across only when each card gets 150px - "Benscollectables" won't fit narrower (320px phones stack). */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 860px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
.stat--ko { background: var(--ko); }
.stat__value { display: block; font-family: var(--heading); font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1; margin-bottom: 6px; }
.stat__label { color: var(--muted); font-size: 0.9rem; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--accent); border-radius: 3px; }
.brand-wall { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; padding: 0; margin: 0; }
.brand-wall li {
  font-family: var(--heading); text-transform: uppercase; font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  padding: 6px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-card);
}
.cta-panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.cta-panel .lead { margin: 0 auto 1.4em; }
.cta-panel .btn-row, .not-found .btn-row { justify-content: center; }

/* 404 */
.not-found { text-align: center; padding-block: 72px; }
.not-found img { width: 160px; margin: 0 auto 24px; }
.not-found .lead { margin: 0 auto 1.6em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.9rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.footer-socials { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card); color: var(--text); }
.footer-socials a:hover { background: var(--accent); color: var(--accent-ink); }
.footer-socials svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
