/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: "Knewave";
  src: url("/assets/fonts/knewave-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/fonts/luckiest-guy-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-italic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-italic-800.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary: #010101;
  --color-secondary: #fdd503;
  --color-accent: #02ced9;
  --color-white: #ffffff;
  --font-heading: "Knewave", "Luckiest Guy", cursive;
  --font-logo: "Luckiest Guy", Impact, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --page-pad: clamp(1rem, 5vw, 2rem);
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-primary);
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-white);
}

ul[role="list"] {
  list-style: none;
}

/* ============================================================
   BACKDROP — brush strokes and halftone dots
   ============================================================ */
body::before,
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: min(60vw, 40rem);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.55;
}

body::before {
  left: 0;
  background-image: url("/assets/icons/splash-left.svg");
}

body::after {
  right: 0;
  background-image: url("/assets/icons/splash-right.svg");
}

.coming-soon::before,
.coming-soon::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(55vw, 30rem);
  aspect-ratio: 1;
  background-image: radial-gradient(var(--color-accent) 30%, transparent 33%);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  pointer-events: none;
  opacity: 0.6;
}

.coming-soon::before {
  top: 0;
  left: 0;
}

.coming-soon::after {
  right: 0;
  bottom: 0;
}

@media (min-width: 1024px) {
  body::before,
  body::after,
  .coming-soon::before,
  .coming-soon::after {
    opacity: 1;
  }
}

/* ============================================================
   HEADER — category strip
   ============================================================ */
.site-header {
  min-height: 3.25rem;
  padding: 0.75rem var(--page-pad);
  background-color: var(--color-primary);
  border-bottom: 4px solid var(--color-secondary);
}

/* Reserves the header's space while the partial loads, to prevent layout shift */
#site-header {
  min-height: 3.25rem;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 0.25rem;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.category-strip li {
  padding-inline: 0.75rem;
  border-left: 2px solid var(--color-secondary);
  line-height: 1.1;
}

.category-strip li:first-child {
  border-left: 0;
}

@media (min-width: 768px) {
  .category-strip {
    font-size: 1rem;
  }

  .category-strip li {
    padding-inline: 1.5rem;
  }
}

/* Phones: 2 x 2 grid instead of an uneven wrap */
@media (max-width: 479px) {
  /* Two rows of categories: keep the placeholder and header the same height */
  #site-header,
  .site-header {
    min-height: 3.9375rem;
  }

  .category-strip {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .category-strip li:nth-child(odd) {
    border-left: 0;
    text-align: right;
  }

  .category-strip li:nth-child(even) {
    text-align: left;
  }
}

/* ============================================================
   COMING SOON
   ============================================================ */
.coming-soon {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem var(--page-pad);
  text-align: center;
}

/* Mascot — animated transparent WebP. The canvas is square with empty sides,
   so it is sized against viewport height to keep the title on screen */
.mascot {
  display: block;
  width: min(clamp(14rem, calc(100vh - 23rem), 32rem), 100%);
  width: min(clamp(14rem, calc(100svh - 23rem), 32rem), 100%);
  height: auto;
  aspect-ratio: 1;
}

/* Title — logo lettering followed by the brush headline */
.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

.title__brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.3em;
  font-family: var(--font-logo);
  font-size: clamp(2rem, 8.5vw, 3.5rem);
  line-height: 1.05;
  transform: rotate(-3deg);
  text-shadow: 0.07em 0.09em 0 var(--color-primary);
  -webkit-text-stroke: 0.14em var(--color-primary);
  paint-order: stroke fill;
}

.title__jam {
  color: var(--color-white);
}

.title__collectables {
  color: var(--color-secondary);
}

.title__soon {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, min(12vw, 11vh), 6rem);
  line-height: 1.15;
  color: var(--color-secondary);
  transform: rotate(-3deg);
  text-shadow: 0.06em 0.07em 0 var(--color-primary);
}

.intro {
  max-width: 34rem;
  margin-top: 0.75rem;
  font-size: clamp(1rem, 4vw, 1.25rem);
  text-wrap: balance;
  text-shadow: 0 2px 6px var(--color-primary), 0 0 2px var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  min-height: 3rem;
}

.site-footer {
  min-height: 3rem;
  padding: 0.75rem var(--page-pad);
  background-color: var(--color-secondary);
  color: var(--color-primary);
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
}

/* ============================================================
   FOCUS STYLES — do not remove
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
