/* ============================================================
   THEME — change colors here and nowhere else.
   Palette sampled from the logo: cyan ground, near-black
   outlines, saturated primary fills.
   ============================================================ */
:root {
  --paper:      #35e2f3;   /* page background, the logo cyan */
  --paper-alt:  #fffdf5;   /* panels and cards stickered on top */
  --ink:        #101010;   /* text and every outline */
  --scrim:      rgba(16, 16, 16, 0.92);

  /* Fill colors, cycled across tiles, steps, and cards */
  --c1: #f01010;   /* red */
  --c2: #ffd21e;   /* yellow */
  --c3: #1090f0;   /* blue */
  --c4: #3bb54a;   /* green */
  --c5: #ff8a1f;   /* orange */
  --c6: #9b4bd8;   /* purple */

  --accent:      var(--c3);
  --accent-soft: #bff3f9;

  /* Typography roles */
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;  /* headlines only */
  --caps:    Fredoka, "Trebuchet MS", Arial, sans-serif;         /* eyebrows, nav, captions */
  --body:    Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Fluid type scale — min at 360px, max at 1280px */
  --t-caption: clamp(0.74rem, 0.68rem + 0.25vw, 0.86rem);
  --t-label:   clamp(0.78rem, 0.72rem + 0.28vw, 0.94rem);
  --t-body:    clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  --t-lead:    clamp(1.1rem, 0.98rem + 0.6vw, 1.4rem);
  --t-h3:      clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem);
  --t-h2:      clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
  --t-h1:      clamp(2.2rem, 1.4rem + 3.8vw, 4.4rem);

  /* Rhythm */
  --gap:     clamp(1rem, 0.6rem + 1.8vw, 2.25rem);
  --section: clamp(3.5rem, 2rem + 7vw, 7rem);
  --measure: 58ch;

  /* Sticker signature: outline weight, hard drop shadow, radius */
  --line:    3px;
  --line-lg: 4px;
  --pop:     6px 6px 0 var(--ink);
  --pop-sm:  4px 4px 0 var(--ink);
  --radius:  14px;
  --rule:    var(--line) solid var(--ink);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: var(--line) solid var(--ink); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap { width: min(100% - clamp(1.25rem, 5vw, 4rem), 1180px); margin-inline: auto; }
.wrap--narrow { width: min(100% - clamp(1.25rem, 5vw, 4rem), 820px); margin-inline: auto; }
.section { padding-block: var(--section); }
.stack > * + * { margin-top: var(--gap); }

/* An "alt" section is a cream panel banded onto the cyan */
.section--alt {
  background: var(--paper-alt);
  border-block: var(--line-lg) solid var(--ink);
}

/* ============================================================
   TYPE TREATMENTS
   Headlines are solid black by default. Only the page h1 gets
   the full outlined-sticker treatment, so the boldness lands
   in one place per page instead of everywhere.
   ============================================================ */
.display {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.display--lg { font-size: var(--t-h2); }
.display--md { font-size: var(--t-h3); }

.display--xl {
  font-size: var(--t-h1);
  color: var(--paper-alt);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: var(--pop-sm);
}

/* Per-word color cycling. Used on the home hero: the signature. */
.word { display: inline-block; }
.word:nth-child(6n+1) { color: var(--c1); }
.word:nth-child(6n+2) { color: var(--c2); }
.word:nth-child(6n+3) { color: var(--c3); }
.word:nth-child(6n+4) { color: var(--c4); }
.word:nth-child(6n+5) { color: var(--c5); }
.word:nth-child(6n+6) { color: var(--c6); }

.eyebrow {
  font-family: var(--caps);
  font-weight: 700;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin: 0;
}
.eyebrow--loose { letter-spacing: 0.16em; }

.lead { font-size: var(--t-lead); line-height: 1.55; max-width: var(--measure); font-weight: 600; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

.note {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--t-lead);
  line-height: 1.55;
  max-width: 46ch;
}

.caption {
  font-family: var(--caps);
  font-weight: 500;
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: 0.7rem;
}
.caption em { font-style: italic; }

.rule { border: 0; border-top: var(--rule); margin: 0; }
.rule--short { width: clamp(2.5rem, 6vw, 5rem); }
.rule--vertical {
  width: 0; height: clamp(2rem, 5vw, 3.5rem);
  border: 0; border-left: var(--rule);
  margin-inline: auto;
}
.rule--center { margin-inline: auto; }

.center { text-align: center; }

/* ============================================================
   HEADER / NAV — chunky pills, one row at every width
   ============================================================ */
.masthead { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}
.nav a {
  display: block;
  font-family: var(--caps);
  font-weight: 700;
  font-size: clamp(0.78rem, 0.66rem + 0.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.5em 1.2em;
  background: var(--paper-alt);
  border: var(--line) solid var(--ink);
  border-radius: 99px;
  box-shadow: var(--pop-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.nav a:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.nav a[aria-current="page"] { background: var(--c2); }

.masthead .rule {
  width: min(70%, 700px);
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
}

/* ============================================================
   BUTTON — presses down into the page on click
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--caps);
  font-weight: 700;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.85em 2em;
  background: var(--paper-alt);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 99px;
  box-shadow: var(--pop);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover  { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn--filled { background: var(--c2); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
}
.hero__title { margin-top: clamp(1.75rem, 4vw, 3rem); text-align: center; }
.hero__title {
  margin: clamp(1rem, 3vw, 2rem) 0 clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}

/* ============================================================
   COLLAGE
   Each child carries a --tilt. The reveal animation below
   composes with it instead of overwriting it.
   ============================================================ */
.collage {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.collage > * { transform: rotate(var(--tilt, 0deg)); }
.collage__tall  { --tilt: 1.5deg; }
.collage__block { --tilt: -1.5deg; }
.collage__wide  { --tilt: -1deg; }
.collage__copy  { --tilt: 1deg; }

.collage img {
  width: 100%;
  object-fit: cover;
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
}
.collage__tall img { aspect-ratio: 3 / 4; }
.collage__wide img { aspect-ratio: 4 / 3; }

.collage__block {
  background: var(--c3);
  color: var(--paper-alt);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.collage__block .display { color: var(--paper-alt); }
.collage__block .rule { border-top-color: var(--paper-alt); }

.collage__copy {
  background: var(--c2);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 900px) {
  .collage { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .collage__tall  { grid-column: 1 / span 4; grid-row: 1; }
  .collage__block { grid-column: 6 / span 6; grid-row: 1; margin-top: 3rem; }
  .collage__wide  { grid-column: 6 / span 7; grid-row: 1; margin-top: 21rem; }
  .collage__copy  { grid-column: 1 / span 4; grid-row: 1; margin-top: 27rem; }
}

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.feature { display: grid; gap: var(--gap); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
}
.feature__body { display: flex; flex-direction: column; gap: 1rem; align-items: start; }

@media (min-width: 820px) {
  .feature { grid-template-columns: 1.1fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); }
  .feature--flip .feature__media { order: 2; }
}

/* ============================================================
   GALLERY — the sticker sheet
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter {
  font-family: var(--caps);
  font-weight: 700;
  font-size: var(--t-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6em 1.3em;
  background: var(--paper-alt);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 99px;
  box-shadow: var(--pop-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.filter:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.filter[aria-pressed="true"] { background: var(--c1); color: var(--paper-alt); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.grid figure { margin: 0; }
.grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--accent-soft);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.grid button.tile {
  display: block; width: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
/* Alternating tilt so the grid reads as a sticker sheet, not a spreadsheet */
.grid figure:nth-child(odd)  img { transform: rotate(-1.25deg); }
.grid figure:nth-child(even) img { transform: rotate(1.25deg); }
.grid button.tile:hover img { transform: rotate(0deg) scale(1.02); box-shadow: 9px 9px 0 var(--ink); }
.grid [hidden] { display: none; }

/* ============================================================
   MERCH CARDS
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.product {
  background: var(--paper-alt);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  flex-direction: column;
}
.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--accent-soft);
}
.product__name {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-top: 0.9rem;
}
.product__price {
  font-family: var(--caps);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: var(--t-label);
  margin: 0.3rem 0 0.8rem;
}
.product__note { font-size: var(--t-caption); line-height: 1.6; margin-bottom: 1.1rem; }
.product .btn { padding: 0.7em 1.5em; align-self: start; margin-top: auto; }
.product--soon { opacity: 0.85; }

/* Each card's buy button takes the next color in the cycle */
.products .product:nth-child(4n+1) .btn { background: var(--c1); color: var(--paper-alt); }
.products .product:nth-child(4n+2) .btn { background: var(--c2); }
.products .product:nth-child(4n+3) .btn { background: var(--c4); color: var(--paper-alt); }
.products .product:nth-child(4n+4) .btn { background: var(--c5); }

/* ============================================================
   ABOUT
   ============================================================ */
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
}
.checklist li {
  position: relative;
  padding-left: 2.4em;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
}
.checklist li + li { margin-top: 0.9em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 1.1em; height: 1.1em;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
}
.checklist li:nth-child(4n+1)::before { background: var(--c1); }
.checklist li:nth-child(4n+2)::before { background: var(--c2); }
.checklist li:nth-child(4n+3)::before { background: var(--c3); }
.checklist li:nth-child(4n+4)::before { background: var(--c4); }

.contact-card {
  background: var(--c2);
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-card .btn { background: var(--paper-alt); }


/* Process — numbered because the order is real */
.process { display: grid; gap: clamp(1.75rem, 3.5vw, 2.5rem); }
@media (min-width: 760px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process__step {
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.process__step .eyebrow {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.process__step:nth-child(1) { background: var(--c2); }
.process__step:nth-child(2) { background: var(--accent-soft); }
.process__step:nth-child(3) { background: var(--c5); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer .rule { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.footer p { margin: 0.4rem 0; }
.footer a { text-decoration: none; border-bottom: 2px solid transparent; }
.footer a:hover { border-bottom-color: currentColor; }
.footer__meta {
  font-family: var(--caps);
  font-weight: 600;
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.social { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: var(--scrim);
  display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr);   /* column can't grow past the screen */
  padding: clamp(1rem, 4vw, 3rem) clamp(4.5rem, 7vw, 6rem);  /* side room for the arrows */
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(100%, 1100px);
  max-height: 76vh;
  border: var(--line-lg) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-alt);
}
.lightbox figcaption {
  color: var(--paper-alt);
  font-family: var(--caps);
  font-weight: 600;
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 1rem;
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 3rem; height: 3rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--c1); color: var(--paper-alt);
  font-family: var(--caps); font-weight: 700;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: var(--pop-sm);
}
.lightbox__close:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--c2); color: var(--ink);
  font-family: var(--caps); font-weight: 700;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  box-shadow: var(--pop-sm);
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, calc(-50% + 2px)); }
.lightbox__nav[hidden] { display: none; }
/* ============================================================
   SCROLL REVEAL — composes with any --tilt on the element
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985) rotate(var(--tilt, 0deg));
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1);
}
.reveal.is-visible { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
}

@media (max-width: 700px) {
  .lightbox {
    padding: 4.5rem 0 6rem;   /* room for close button on top, arrows on bottom */
  }
  .lightbox img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0;
    border-inline: 0;          /* full bleed, no side borders */
  }
  .lightbox figcaption { padding-inline: 1rem; }
  .lightbox__nav {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }
  .lightbox__nav--prev { left: calc(50% - 4rem); }
  .lightbox__nav--next { right: calc(50% - 4rem); }
  .lightbox__nav:hover { transform: translate(2px, 2px); }
}

/* Full-screen button, sits left of the close X */
.lightbox__full {
  position: absolute; top: 1rem; right: 4.75rem;
  width: 3rem; height: 3rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--paper-alt); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: var(--pop-sm);
}
.lightbox__full:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.lightbox img { cursor: zoom-in; }

/* Full-screen mode: just the photo on black */
.lightbox--full {
  background: #000;
  padding: 0;
}
.lightbox--full img {
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;   /* accounts for the phone's address bar */
  border: 0;
  border-radius: 0;
  cursor: zoom-out;
}
.lightbox--full figcaption { display: none; }
.lightbox--full .lightbox__nav,
.lightbox--full .lightbox__close,
.lightbox--full .lightbox__full { opacity: 0.35; }
.lightbox--full .lightbox__nav:hover,
.lightbox--full .lightbox__close:hover,
.lightbox--full .lightbox__full:hover { opacity: 1; }