/* Saturday Morning PJs — site styles */

@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("/fonts/rubik-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 400; font-display: swap; src: url("/fonts/karla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-weight: 700; font-display: swap; src: url("/fonts/karla-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "VT323"; font-weight: 400; font-display: swap; src: url("/fonts/vt323-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #1E1E1E;
  --ink-2: #2A2930;
  --ink-3: #34333B;
  --line: #45434F;
  --cream: #F6F1E7;
  --paper: #FFFDF8;
  --text-soft: #4A4640;
  --text-dim: #B8B3A8;
  --violet: #7C3AED;
  --violet-deep: #5B21B6;
  --violet-tint: #EDE9FE;
  --glow: #33FF66;
  --pink: #FF00BE;
  --yellow: #F0FF0A;
  --teal: #1CF0CC;
  --head: "Rubik", system-ui, sans-serif;
  --body: "Karla", system-ui, sans-serif;
  --pixel: "VT323", ui-monospace, monospace;
  --gutter: clamp(20px, 6vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img, svg { display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-deep); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.06; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 4px; border-radius: 6px; }
section[id], main { scroll-margin-top: 80px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--glow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--pixel); font-size: 24px; letter-spacing: 2px; text-transform: uppercase; color: var(--violet); line-height: 1.1; }
.eyebrow--glow { color: var(--glow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; box-sizing: border-box; transition: transform .12s ease, box-shadow .12s ease; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
.btn--glow { background: var(--glow); color: var(--ink); }
.btn--glow:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.btn--outline { border: 2px solid #EDEAE3; color: #EDEAE3; }
.btn--outline:hover { color: var(--ink); background: #EDEAE3; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink-3); }
.nav__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__badge { width: 44px; height: 44px; border-radius: 12px; background: var(--pink); border: 2px solid #000; box-shadow: 3px 3px 0 var(--yellow); display: grid; place-items: center; font-family: var(--head); font-size: 15px; color: #fff; }
.brand__name { font-family: var(--head); font-size: 24px; color: #EDEAE3; white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__menu a:not(.btn) { color: #EDEAE3; text-decoration: none; font-size: 17px; }
.nav__menu a:not(.btn):hover { color: var(--glow); }
.nav__toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: #EDEAE3; cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { background: var(--ink); color: #fff; }
.hero__inner { max-width: 1440px; margin: 0 auto; padding: 96px var(--gutter) 112px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.04; }
.hero__lede { font-size: 21px; color: #CFCAC0; max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__note { font-size: 16px; color: var(--text-dim); }

/* CRT TV */
.tv { display: flex; flex-direction: column; align-items: center; }
.tv__body { width: 100%; max-width: 560px; padding: 34px 34px 26px; border-radius: 40px; background: #2E2D36; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.tv__screen { width: 100%; aspect-ratio: 488 / 340; padding: 0 16px; margin: 0; border-radius: 28px; border: 6px solid #15141A; background: repeating-linear-gradient(0deg, #0C1810 0 3px, #102216 3px 6px); color: var(--glow); cursor: pointer; font: inherit; display: flex; align-items: center; justify-content: center; text-align: center; }
.tv__screen { position: relative; overflow: hidden; }
.tv__view { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tv__view[hidden], .tv__video[hidden], .tv__exit[hidden] { display: none; }
.tv__view--over { position: absolute; inset: 0; z-index: 2; justify-content: center; background: repeating-linear-gradient(0deg, #0C1810 0 3px, #102216 3px 6px); }
.tv__video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv__screen.is-playing::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 40px rgba(0,0,0,.6); }
.tv__exit { position: absolute; left: 50%; bottom: 10px; z-index: 4; transform: translateX(-50%); padding: 2px 10px; border-radius: 6px; background: rgba(0,0,0,.65); font-family: var(--pixel); font-size: 16px; letter-spacing: 2px; white-space: nowrap; color: var(--glow); }
.tv__small { font-family: var(--pixel); font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 6px; line-height: 1; }
.tv__big { font-family: var(--pixel); font-size: clamp(46px, 5.6vw, 72px); line-height: .9; }
.tv__start { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 3px; }
.tv__start--sm { margin-top: 14px; font-size: clamp(18px, 1.8vw, 22px); }
.tv__msg { margin-top: 14px; max-width: 400px; font-family: var(--pixel); font-size: clamp(19px, 2vw, 24px); line-height: 1.15; }
.tv__panel { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.tv__grille { display: flex; flex-direction: column; gap: 6px; }
.tv__grille span { width: 150px; max-width: 28vw; height: 4px; border-radius: 2px; background: var(--line); }
.tv__knobs { display: flex; align-items: center; gap: 12px; }
.tv__knob { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); border: 3px solid #55535F; }
.tv__power { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.tv__power span { width: 12px; height: 12px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.tv__stand { width: 220px; height: 26px; background: #2E2D36; border: 2px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }

@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.blink { animation: blink 1.3s steps(1) infinite; }
@keyframes flicker { 0% { filter: brightness(1); } 15% { filter: brightness(2.4); } 35% { filter: brightness(.35); } 55% { filter: brightness(1.9); } 75% { filter: brightness(.7); } 100% { filter: brightness(1); } }
.flicker { animation: flicker .55s ease-out; }

/* Tagline band */
.band { background: var(--violet); padding: 44px var(--gutter); text-align: center; }
.band p { font-family: var(--head); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: #fff; }

/* Sections */
.section { padding: 112px 0; }
.section--violet { background: var(--violet); color: #fff; }
.section--paper { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; margin-bottom: 56px; }
.section__head--split { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section__head--split > div { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section h2 { font-size: clamp(34px, 4vw, 56px); }
.section__lede { font-size: 20px; color: var(--text-soft); }
.section--violet .section__lede { color: var(--violet-tint); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.card__art { aspect-ratio: 16 / 10; border-bottom: 2px solid var(--ink); background: #CDB4E6; overflow: hidden; }
.card__art img, .tile__art img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body p { font-size: 17px; color: var(--text-soft); flex: 1; }
.card h3 { font-size: 30px; }
.card__link { font-weight: 700; font-size: 17px; }
.tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--violet-tint); color: var(--violet); font-size: 14px; font-weight: 700; }

/* Memphis-patterned art panels */
.art--pink, .art--yellow, .art--teal, .art--violet { background-image: radial-gradient(rgba(30,30,30,.22) 2px, transparent 2.5px); background-size: 18px 18px; }
.art--pink { background-color: var(--pink); }
.art--yellow { background-color: var(--yellow); }
.art--teal { background-color: var(--teal); }
.art--violet { background-color: #A78BFA; }

/* Anime tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tile { background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .12s ease; }
.tile:hover { color: var(--ink); transform: translateY(-3px); }
.tile__art { aspect-ratio: 16 / 10; border-bottom: 2px solid var(--ink); background: #CDB4E6; overflow: hidden; }
.tile__label { padding: 18px 22px; font-family: var(--head); font-size: 24px; display: flex; justify-content: space-between; align-items: center; }
.tile__label::after { content: "→"; color: var(--violet); font-family: var(--body); font-weight: 700; }

/* Events */
.events { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.events__copy { display: flex; flex-direction: column; gap: 16px; }
.event-note { margin-top: 20px; display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; }
.event-note__icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center; }
.event-note__title { font-weight: 700; font-size: 19px; }
.event-note__text { color: var(--text-soft); font-size: 17px; margin-top: 4px; }
.event-note__links { margin-top: 10px; display: flex; gap: 20px; }
.event-note__links a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.shop-panel { padding: 36px; background: var(--ink); border-radius: 24px; display: flex; flex-direction: column; gap: 18px; }
.shop-panel__title { font-family: var(--head); font-size: 30px; line-height: 1.15; color: #fff; }
.shop-link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 22px; border-radius: 16px; border: 2px solid #55535F; color: #EDEAE3; text-decoration: none; }
.shop-link:hover { color: var(--ink); background: #EDEAE3; border-color: #EDEAE3; }
.shop-link span { display: flex; flex-direction: column; }
.shop-link strong { font-size: 18px; }
.shop-link small { font-size: 14px; }
.shop-link--main { background: var(--glow); border-color: var(--glow); color: var(--ink); min-height: 66px; }
.shop-link--main:hover { background: #7DFF9E; border-color: #7DFF9E; }

/* About */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.about__art { border-radius: 24px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--violet); background: #2E2D36; padding: 28px; }
.about__screen { aspect-ratio: 4 / 3; border-radius: 18px; border: 6px solid #15141A; background: repeating-linear-gradient(0deg, #0C1810 0 3px, #102216 3px 6px); color: var(--glow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.about__copy { display: flex; flex-direction: column; gap: 22px; }
.promises { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promises li { display: flex; flex-direction: column; gap: 8px; }
.promises svg { color: var(--violet); }
.promises strong { font-size: 17px; }
.promises span { font-size: 15px; color: var(--text-soft); line-height: 1.5; }

/* Contact */
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--violet); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.contact__copy { display: flex; flex-direction: column; gap: 18px; }
.contact__email { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.contact__address { font-weight: 700; font-size: 18px; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.contact__ways { display: grid; gap: 16px; }
.way { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); color: var(--ink); text-decoration: none; transition: transform .12s ease; }
.way:hover { color: var(--ink); transform: translateY(-2px); }
.way::after { content: "→"; margin-left: auto; color: var(--violet); font-weight: 700; font-size: 20px; }
.way__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-items: center; color: var(--ink); }
.way__icon--glow { background: var(--glow); }
.way__icon--pink { background: var(--pink); color: #fff; }
.way__icon--violet { background: var(--violet); color: #fff; }
.way__icon--yellow { background: var(--yellow); }
.way__text { display: flex; flex-direction: column; gap: 2px; }
.way__text strong { font-size: 19px; }
.way__text small { font-size: 15px; color: var(--text-soft); }

/* Footer */
.footer { background: var(--ink); color: var(--text-dim); padding: 72px 0 48px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 6fr 2fr 2fr 3fr; gap: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer__name { font-family: var(--head); font-size: 28px; color: #fff; margin-bottom: 6px; }
.footer__head { font-family: var(--pixel); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--glow); }
.footer a { color: #EDEAE3; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.footer a:hover { color: var(--glow); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-3); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.ph-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 8px; border-radius: 999px; background: linear-gradient(135deg, #1E1B4B, #4A1D92); border: 1px solid var(--violet); color: #C4B5FD; }
.ph-badge__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.ph-badge__purple { color: #A78BFA; }
.ph-badge__horizon { background: linear-gradient(90deg, #F87D13, #FAB635, #F070B9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav__menu { gap: 22px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .tv { max-width: 560px; width: 100%; margin: 0 auto; }
  .events { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
}

/* ---------- Collapsed menu (tablets and phones) ---------- */
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--ink-3); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid #2E2D36; font-size: 19px; }
  .nav__menu .btn { margin-top: 16px; min-height: 52px; }
}

/* ---------- Phone ---------- */
@media (max-width: 780px) {
  body { font-size: 17px; }
  .nav__inner { height: 64px; }
  .brand__badge { width: 38px; height: 38px; font-size: 13px; }
  .brand__name { font-size: 19px; }
  section[id], main { scroll-margin-top: 64px; }

  .hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero__lede { font-size: 18px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .tv__body { padding: 20px 20px 14px; border-radius: 28px; gap: 14px; }
  .tv__screen { border-radius: 20px; border-width: 5px; }
  .tv__start { margin-top: 18px; }
  .tv__knob { width: 30px; height: 30px; }
  .tv__stand { width: 140px; height: 18px; }

  .band { padding: 36px 24px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__lede { font-size: 17px; }
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .card { box-shadow: 5px 5px 0 var(--ink); }
  .card h3 { font-size: 26px; }
  .tiles { gap: 16px; }
  .tile { border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .tile__label { padding: 12px 14px; font-size: 18px; }
  .section__head--split .btn { width: 100%; }
  .event-note { flex-direction: column; padding: 20px; }
  .shop-panel { padding: 26px 22px; }
  .shop-panel__title { font-size: 24px; }
  .promises { grid-template-columns: 1fr; }
  .contact__email .btn { width: 100%; }
  .way { padding: 14px 16px; gap: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .way__icon { width: 44px; height: 44px; }
  .way__text strong { font-size: 17px; }
  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink, .flicker { animation: none; }
  .btn, .tile, .way { transition: none; }
}
