/* ---------- Tokens ---------- */

@font-face {
  font-family: 'Sour Gummy';
  src: url('assets/fonts/SourGummy-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Color */
  --wc-black: #0D0D0D;
  --wc-white: #FFFFFF;
  --accent: #E69A33;
  --amber: #FFB84D;
  --accent-press: #B4530A;
  --wc-orange-deep: #B4530A;
  --surface-page: #FAF3E6;
  --surface-card: #FFFFFF;
  --wc-gray-500: #8A8178;
  --wc-gray-700: #5C554D;
  --text-inverse: rgba(255, 255, 255, .82);

  /* Type */
  --font-display: 'Sour Gummy', 'Mystery Quest', cursive;
  --font-body: 'Nunito', system-ui, sans-serif;
  --tracking-display: 0.02em;
  --tracking-caps: 0.08em;

  /* Shape & effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sticker: 3px 3px 0 var(--wc-black);
  --shadow-sticker-lg: 6px 6px 0 var(--wc-black);
  --ease-pounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--wc-black);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--wc-gray-500);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  color: var(--wc-black);
  background: var(--accent);
  border: 2px solid var(--wc-black);
  border-radius: 999px;
  padding: 12px 26px;
  text-decoration: none;
  box-shadow: var(--shadow-sticker);
  transition: transform 160ms var(--ease-pounce), box-shadow 160ms var(--ease-pounce);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--wc-black);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--wc-black);
}

.btn--small {
  font-size: 15px;
  padding: 9px 20px;
}

/* Hero primary: ember shadow instead of black */
.btn--ember {
  box-shadow: 3px 3px 0 var(--wc-orange-deep);
}

.btn--ember:hover {
  box-shadow: 5px 5px 0 var(--wc-orange-deep);
}

.btn--ember:active {
  box-shadow: 0 0 0 var(--wc-orange-deep);
}

/* Hero secondary: outlined ghost on black */
.btn--ghost {
  color: var(--wc-white);
  background: transparent;
  border-color: var(--wc-white);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn--ghost:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-page);
  border-bottom: 2px solid var(--wc-black);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--wc-black);
}

.site-header__brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: block;
}

.site-header__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: var(--tracking-display);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--wc-black);
  color: var(--text-inverse);
  overflow: hidden;
}

.hero__inner {
  padding: 48px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: 240px;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  color: var(--wc-white);
  text-wrap: pretty;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-inverse);
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Collections ---------- */

.collections {
  padding: 96px 0;
  overflow: hidden;
}

.collections__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collections h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--wc-black);
}

.collections__rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 32px max(24px, calc((100vw - 1120px) / 2 + 24px)) 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.collection-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 2px solid var(--wc-black);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sticker);
  overflow: hidden;
  transition: transform 160ms var(--ease-pounce), box-shadow 160ms var(--ease-pounce);
}

.collection-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--wc-black);
}

.collection-card__band {
  height: 220px;
  border-bottom: 2px solid var(--wc-black);
  background: var(--wc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.collection-card__band--night {
  background: var(--wc-black);
}

.collection-card__img {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 10px 0;
}

.collection-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}

.collection-card h3 {
  font-size: 26px;
  color: var(--wc-black);
}

.collection-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--wc-gray-700);
  flex: 1;
  text-wrap: pretty;
}

.collection-card__link {
  align-self: flex-start;
  font-weight: 800;
  font-size: 14px;
  color: var(--wc-black);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.collection-card__link:hover {
  color: var(--accent-press);
}

/* ---------- Store ---------- */

.store {
  background: var(--surface-card);
  border-top: 2px solid var(--wc-black);
  border-bottom: 2px solid var(--wc-black);
  padding: 96px 24px;
}

.store__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.store__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}

.store h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--wc-black);
}

.store__heading p {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--wc-gray-700);
}

.design-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.design-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 2px solid var(--wc-black);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker);
  overflow: hidden;
  text-decoration: none;
  transition: transform 160ms var(--ease-pounce), box-shadow 160ms var(--ease-pounce);
}

.design-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--wc-black);
}

.design-tile:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--wc-black);
}

.design-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  background: var(--wc-black);
  border-bottom: 2px solid var(--wc-black);
}

.design-tile__title {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--wc-black);
}

.store__fallback {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
}

.store__fallback a {
  color: var(--accent-press);
  font-weight: 800;
}

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

.site-footer {
  background: var(--wc-black);
  color: rgba(255, 255, 255, .72);
}

.site-footer__inner {
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__logo {
  width: 96px;
  height: auto;
  display: block;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .collection-card,
  .design-tile {
    transition: none;
  }
}
