/* =========================================================
   dreck — design tokens & base
   ========================================================= */
:root {
  --color-bg: #ffffff;
  --color-bg-cream: #fbfaf3;
  --color-text: #000000;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: rgba(255, 255, 255, 0.8);
  --color-footer: #000000;
  --color-sticker-red: #b6342f;

  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-headline: 'Circular Std', 'Manrope', 'Poppins', system-ui, sans-serif;

  --max-w: 1920px;
  --nav-h: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* The whole page is capped at the 1920 artboard width and centred.
   At 1440 (or any width below) the artboard simply scales down — every
   image is width:100% of this box and every overlay is positioned in %,
   so the composition stays pixel-faithful at any width. */
.site {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* =========================================================
   Navbar (shared) — logo left, links centred, toggle right
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 40px);
}

/* logo + links sit together as one centred group (col 2) */
.nav__nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 56px);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  width: 30px;
  height: 30px;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 56px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
}

.nav__links a:hover {
  opacity: 0.6;
}

.nav__toggle {
  display: none;
  grid-column: 3;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  padding: 18px 20px;
  display: none;
  flex-direction: column;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__close svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.mobile-nav__list {
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-nav__list a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
}

/* =========================================================
   SHOP — full-bleed parts stacked seamlessly
   Each <section.part> holds one part JPG plus button overlays.
   ========================================================= */
.shop {
  font-size: 0; /* kill whitespace gaps between stacked images */
}

/* Desktop/1440 vs mobile shop swap (mobile parts split differently) */
.shop--mobile {
  display: none;
}

.part {
  position: relative;
  width: 100%;
  display: block;
}

.part__img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* Hero intro copy — overlaid to the right of the (baked-in) Hello sticker */
.intro {
  position: absolute;
  top: 13.5%;
  left: 48.5%;
  width: 24%;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(12px, 1.1vw, 22px);
  line-height: 1.4;
  color: #000;
  z-index: 2;
}

/* -----------------------------------------------------------
   Sticker buttons — torn-paper label PNGs used as anchors.
   Position with inline --x / --y (centre point) and --w (width,
   % of the part). Text sits centred on top of the label.
   ----------------------------------------------------------- */
.sticker {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  width: var(--w, 14%);
  z-index: 2;
  display: grid;
  place-items: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 33px, 48px);
  letter-spacing: 0.01em;
  color: #111;
  text-align: center;
  line-height: 1;
  padding: 0.55em 1em 0.7em;
  transition: transform 0.18s ease;
  will-change: transform;
}

/* flat (no tilt) by default; tilt + lift only on hover */
.sticker:not(.sticker--board):hover {
  transform: translate(-50%, -50%) rotate(-3deg) scale(1.04);
}

.sticker--green  { background-image: url('assets/button green.png');  aspect-ratio: 587 / 282; }
.sticker--orange { background-image: url('assets/button orange.png'); aspect-ratio: 445 / 218; }
.sticker--white  { background-image: url('assets/button white.png');  aspect-ratio: 380 / 186; }
.sticker--yellow { background-image: url('assets/button yellow.png'); aspect-ratio: 307 / 130; }

/* Board buttons — flat CSS label (cream fill, red border), not a sticker image */
.sticker--board {
  width: auto;
  white-space: nowrap;
  background: #f5efe0;
  border: 10px solid #F01919;
  border-radius: 2px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5em 1.1em 0.55em;
}

.sticker--board:hover {
  opacity: 0.6;
}

/* -----------------------------------------------------------
   Product overlays — transparent PNGs (boards, shirt) layered
   on top of a background JPG so they can be resized/repositioned
   independently of the baked-in background.
   ----------------------------------------------------------- */
.part__overlay {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 50%);
  transform: translate(-50%, -50%);
  width: var(--ow, 20%);
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Both boards sit on the LEFT half, side-by-side (moon board left,
   figure board right). Shirt sits on the right half of part 6-2. */
.overlay--board2 { --ox: 25%; --oy: 50%; --ow: 20%; }  /* moon — left */
.overlay--board1 { --ox: 50%; --oy: 50%; --ow: 20%; }  /* figure — right */
.overlay--shirt  { --ox: 64%; --oy: 63%; --ow: 40%; }
.overlay--burnt  { --ox: 72%; --oy: 55%; --ow: 24%; }  /* BURNT poster (part 5) */

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: var(--color-footer);
  color: var(--color-text-inverse);
  padding: 100px 7.5% 80px;
}

.footer__inner {
  position: relative;
  max-width: 1742px;
  margin: 0 auto;
}

.footer__headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(32px, 2.4vw, 46px);
  text-align: center;
  margin: 0;
  line-height: 1.15;
}

.footer__tagline {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(13px, 0.95vw, 18px);
  text-align: center;
  opacity: 0.8;
  margin: 28px auto 0;
  max-width: 660px;
}

.footer__brands {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 50px;
}

.footer__brands img {
  height: 56px;
  width: auto;
  opacity: 0.95;
}

.footer__brands img.brand--klinika {
  height: 30px;
}

.footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 60px 0 0;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 30px;
  min-height: 90px;
}

.footer__logo {
  width: 56px;
  height: auto;
}

.footer__logo svg,
.footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer__copy {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.footer__social a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.footer__social img,
.footer__social svg {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

/* =========================================================
   CONTACT PAGE — single composed image + body text overlay
   contact image is 1920x1345; big empty white area centre/right
   ========================================================= */
.contact {
  position: relative;
  background: var(--color-bg);
}

.contact__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.contact__img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.contact__body {
  position: absolute;
  top: 13%;
  left: 35%;
  width: 40%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(12px, 0.92vw, 17px);
  line-height: 1.6;
  color: #000;
  white-space: pre-line;
  z-index: 2;
}

.contact__body strong {
  font-weight: 700;
}

.contact__body a {
  color: inherit;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE — 1440
   Below 1920 the artboard scales down, but the buttons' fixed px
   font-sizes don't, so they read too large. These overrides retune
   button size/position for the 1440 range. Inline `style` wins over
   the stylesheet, so the values need !important; bounded at 769px so
   they never reach the mobile layout.
   ========================================================= */
@media (max-width: 1440px) {
  .nav {
    padding: 0 clamp(14px, 1.5vw, 28px);
  }
}

@media (min-width: 769px) and (max-width: 1440px) {
  /* part 1 — Buy Poster */
  .shop--desktop .part:nth-of-type(1) .sticker {
    --w: 31% !important;
    font-size: 28px !important;
  }
  /* part 2 — Get This */
  .shop--desktop .part:nth-of-type(2) .sticker {
    --w: 31% !important;
    font-size: 30px !important;
  }
  /* part 3 — Get Board (CSS button) */
  .shop--desktop .part:nth-of-type(3) .sticker {
    --x: 70.5% !important;
    --y: 83% !important;
    font-size: 24px !important;
  }
  /* part 4 — Get Board (CSS button) */
  .shop--desktop .part:nth-of-type(4) .sticker {
    --x: 46% !important;
    --y: 79% !important;
    font-size: 24px !important;
  }
  /* part 5 — Buy Poster */
  .shop--desktop .part:nth-of-type(5) .sticker {
    --w: 24% !important;
    font-size: 22px !important;
  }
  /* part 6 — left board / right board (top half) */
  .shop--desktop .part:nth-of-type(6) .sticker--yellow {
    --w: 21% !important;
    font-size: 25px !important;
  }
  .shop--desktop .part:nth-of-type(6) .sticker--green {
    --w: 23% !important;
    font-size: 27px !important;
  }
  /* part 6-2 — Shoshana shirt (bottom half) */
  .shop--desktop .part:nth-of-type(7) .sticker--white {
    --w: 25% !important;
    font-size: 30px !important;
  }
  /* part 7 — Buy Poster */
  .shop--desktop .part:nth-of-type(8) .sticker {
    --w: 25% !important;
    font-size: clamp(12px, 22px, 48px) !important;
  }
  /* part 8 — Must Have */
  .shop--desktop .part:nth-of-type(9) .sticker {
    --w: 36% !important;
    font-size: 32px !important;
  }
}

/* =========================================================
   MOBILE (<= 768)
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* swap shop: hide the desktop split, show the 9-part mobile split */
  .shop--desktop {
    display: none;
  }

  .shop--mobile {
    display: block;
  }

  /* navbar: logo left, hamburger right (per mobile design) */
  .nav__nav {
    grid-column: 1;
    justify-self: start;
  }

  .nav__logo img {
    width: 46px;
    height: 46px;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* sticker text sized for the 375 viewport */
  .sticker {
    font-size: clamp(13px, 5vw, 26px);
  }

  /* board buttons: thinner border at mobile scale */
  .sticker--board {
    border-width: 4px;
    letter-spacing: 0.04em;
  }

  /* Mobile overlays — boards/shirt/poster centred and sized for the 375 viewport */
  .overlay--board1 { --ox: 50%; --oy: 50%; --ow: 80%; }
  .overlay--board2 { --ox: 50%; --oy: 50%; --ow: 80%; }
  .overlay--shirt  { --ox: 50%; --oy: 35%; --ow: 100%; }
  .overlay--burnt  { --ox: 50%; --oy: 40%; --ow: 85%; }

  /* hero intro copy — full width below the (baked-in) Hello sticker */
  .intro {
    top: 16.5%;
    left: 14.5%;
    width: 80%;
    font-size: 18px;
    line-height: 1.45;
  }

  /* Footer mobile — single centred column */
  .footer {
    padding: 60px 24px 44px;
    text-align: center;
  }

  /* headline wraps to two lines (Be Brave. / Clench Fists) */
  .footer__headline {
    font-size: 32px;
    max-width: 7em;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__brands {
    gap: 40px;
    margin-top: 40px;
  }

  .footer__brands img {
    height: 44px;
  }

  .footer__brands img.brand--klinika {
    height: 24px;
  }

  /* no divider on mobile; stack logo → social → copy, centred */
  .footer__divider {
    display: none;
  }

  .footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 44px;
  }

  .footer__logo {
    order: 1;
    width: 74px;
  }

  .footer__social {
    order: 2;
    justify-content: center;
    gap: 26px;
  }

  .footer__copy {
    order: 3;
    margin-top: 0;
  }

  /* Contact mobile — overlay text in the white gap of the mobile image */
  .contact__body {
    top: 27%;
    left: 6%;
    width: 88%;
    font-size: 13px;
    line-height: 1.5;
  }
}
