@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --ink: #171329;
  --paper: #f7f2df;
  --cream: #fffbea;
  --acid: #d7ff32;
  --pink: #ff4e9b;
  --cyan: #48e9e2;
  --violet: #7257ff;
  --orange: #ff7a24;
  --red: #ef3e35;
  --line: #171329;
  --shadow: 7px 8px 0 var(--ink);
  --radius: 2px;
  --display: 'Syne', Impact, sans-serif;
  --body: 'Space Grotesk', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(114,87,255,.15) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(255,78,155,.14) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(23,19,41,.035) 25%, transparent 25% 50%, rgba(23,19,41,.035) 50% 75%, transparent 75%);
  background-size: 31px 31px, 47px 47px, 13px 13px;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(23,19,41,.18) 6px 7px);
  mix-blend-mode: multiply;
}

[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--violet); outline-offset: 4px; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: .6rem .85rem; color: var(--cream); background: var(--ink);
  transform: translateY(-150%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 3px solid var(--ink);
  background: rgba(247,242,223,.94);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  width: min(1240px, calc(100% - 40px)); min-height: 82px; margin: auto;
}
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand__mark {
  color: var(--ink); font: 800 clamp(1.7rem, 4vw, 2.65rem)/.9 var(--display);
  letter-spacing: -.08em; transform: rotate(-3deg);
}
.brand__mark::after { content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 5px; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; }
.brand__tagline { max-width: 145px; font: .63rem/1.1 var(--mono); text-transform: uppercase; }
.nav-list, .sidebar__nav, .footer-nav { display: flex; align-items: center; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.nav-list a, .footer-nav a { font: 500 .72rem var(--mono); text-decoration: none; text-transform: uppercase; }
.nav-list a:hover, .footer-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.menu-toggle { display: none; border: 2px solid var(--ink); padding: .65rem .8rem; background: var(--acid); font: 500 .7rem var(--mono); text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.sidebar, .sidebar-backdrop { display: none; }

main { position: relative; }
.hero, .section, .site-footer { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); align-items: center;
  min-height: 650px; padding: 8rem 5vw 8rem 0;
}
.hero::before {
  position: absolute; z-index: -1; top: 8%; right: -12vw; width: 60vw; height: 78%; content: '';
  background: linear-gradient(125deg, var(--cyan), var(--violet) 44%, var(--pink) 78%, var(--orange));
  clip-path: polygon(8% 3%, 96% 0, 90% 19%, 100% 42%, 88% 57%, 96% 97%, 38% 91%, 4% 100%, 10% 63%, 0 42%, 15% 24%);
  transform: rotate(3deg);
}
.hero__content { max-width: 780px; }
.eyebrow { margin: 0 0 1.1rem; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 30px; height: 7px; margin: 0 10px 2px 0; background: var(--pink); content: ''; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: .95; letter-spacing: -.055em; }
h1 { max-width: 900px; margin-bottom: 1.5rem; font-size: clamp(4rem, 10vw, 8.5rem); text-wrap: balance; }
h2 { margin-bottom: 1rem; font-size: clamp(2.7rem, 6vw, 5.3rem); }
h3 { font-size: 1.35rem; }
.hero__body { max-width: 520px; margin-bottom: 2rem; font-size: 1.15rem; font-weight: 500; }
.hero__stamp {
  justify-self: center; align-self: center; display: grid; place-items: center; width: 190px; height: 190px;
  padding: 2rem; border: 4px solid var(--ink); border-radius: 50%; background: var(--acid);
  box-shadow: var(--shadow); font: 800 1.15rem/1 var(--display); text-align: center; text-transform: uppercase; transform: rotate(13deg);
}
.hero__stamp::before { position: absolute; inset: 10px; border: 2px dashed var(--ink); border-radius: inherit; content: ''; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.button {
  display: inline-block; border: 2px solid var(--ink); padding: .85rem 1.05rem; background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink); font: 500 .73rem var(--mono); text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.button:hover { background: var(--pink); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button--primary { background: var(--acid); }
.button--secondary { background: var(--cyan); }

.section { padding: 7rem 0; scroll-margin-top: 80px; }
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading > p:last-child { max-width: 650px; font-size: 1.1rem; }
.catalog { position: relative; }
.catalog::before { position: absolute; top: 4rem; right: -5vw; z-index: -1; width: 160px; height: 160px; content: ''; background: var(--orange); clip-path: polygon(50% 0, 100% 38%, 72% 100%, 0 82%, 15% 25%); }
.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; padding: .8rem 1rem; border: 2px solid var(--ink); background: var(--pink); box-shadow: 5px 5px 0 var(--ink); }
.catalog__toolbar label { font: 500 .75rem var(--mono); text-transform: uppercase; }
.category-filter { min-width: 220px; border: 2px solid var(--ink); padding: .65rem .8rem; background: var(--cream); font-weight: 600; }
.catalog__status { min-height: 1.5rem; margin-bottom: 1rem; }
.loading-state, .no-results-state { font: .8rem var(--mono); }
.error-state, .empty-state { max-width: 620px; padding: 2rem; border: 2px solid var(--ink); background: var(--acid); box-shadow: var(--shadow); }
.error-state h3, .empty-state h3 { margin-bottom: .5rem; }
.product-group { margin: 3.5rem 0; }
.product-group__heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 3px solid var(--ink); margin-bottom: 1.25rem; }
.product-group__heading h3 { margin-bottom: .55rem; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.product-grid--all { margin-top: 2rem; }
.product-card { min-width: 0; }
.product-card__button { display: block; width: 100%; height: 100%; padding: 0; border: 2px solid var(--ink); background: var(--cream); box-shadow: 5px 5px 0 var(--ink); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.product-card:nth-child(3n+2) .product-card__button { transform: rotate(1.2deg); }
.product-card:nth-child(3n) .product-card__button { background: var(--cyan); transform: rotate(-1deg); }
.product-card__button:hover { transform: translateY(-7px) rotate(0); box-shadow: 8px 12px 0 var(--ink); }
.product-card__media, .product-modal__media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.product-card__media { aspect-ratio: 1.2; }
.image-placeholder { width: 100%; height: 100%; min-height: 130px; background-color: var(--violet); background-image: repeating-conic-gradient(from 15deg, var(--acid) 0 8deg, transparent 8deg 18deg), linear-gradient(45deg, rgba(255,255,255,.3), transparent); background-size: 52px 52px, auto; }
.image-placeholder::after { position: absolute; right: 12px; bottom: 10px; width: 35px; height: 35px; border: 3px solid var(--ink); background: var(--orange); content: ''; transform: rotate(16deg); }
.product-card__image, .product-modal__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 1.15rem; }
.product-card__badge, .product-card__status, .product-card__tag { display: inline-block; margin: 0 0 .7rem; padding: .3rem .45rem; border: 1.5px solid var(--ink); font: 500 .62rem var(--mono); text-transform: uppercase; }
.product-card__badge { background: var(--acid); }
.product-card__status { background: var(--cream); }
.product-card__name { margin-bottom: .55rem; font-size: 1.75rem; }
.product-card__description { min-height: 3em; margin: 0 0 1rem; }
.product-card__price { margin: 0; font-weight: 700; }
.product-card__availability, .product-card__intention { margin: .35rem 0 0; font: .72rem var(--mono); }
.product-card__tag { background: var(--orange); }

.brief { padding-top: 8rem; }
.brief__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.brief__point { min-height: 200px; padding: 1.5rem; border: 2px solid var(--ink); background: var(--acid); box-shadow: 5px 5px 0 var(--ink); }
.brief__point:nth-child(2) { background: var(--pink); transform: translateY(22px); }
.brief__point:nth-child(3) { background: var(--cyan); transform: rotate(-2deg); }
.brief__point h3 { font-size: 1.8rem; }
.rules { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; padding-top: 10rem; }
.rules .section-heading { margin-bottom: 0; }
.rules__list { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; counter-reset: rules; }
.rules__list li { counter-increment: rules; position: relative; padding: 1rem 1rem 1rem 4rem; border: 2px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--ink); }
.rules__list li::before { position: absolute; top: .8rem; left: 1rem; content: counter(rules, decimal-leading-zero); font: 700 1.3rem var(--mono); color: var(--red); }
.signup { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; margin-top: 4rem; padding: 3rem; border: 3px solid var(--ink); background: var(--violet); color: var(--cream); box-shadow: 9px 9px 0 var(--ink); }
.signup .section-heading { margin: 0; }
.signup h2 { color: var(--acid); }
.signup-form label, .inquiry-form label { display: block; margin-bottom: .45rem; font: 500 .7rem var(--mono); text-transform: uppercase; }
.signup-form__row { display: flex; gap: .6rem; }
.signup-form input, .inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; border: 2px solid var(--ink); padding: .85rem; border-radius: 0; background: var(--cream); }
.signup-form input { min-width: 0; }
.signup-form .button { flex: 0 0 auto; }
.form-note, .form-message { margin: .75rem 0 0; font: .7rem/1.4 var(--mono); }
.contact { padding-bottom: 8rem; }
.contact__email { display: inline-block; margin-bottom: 1rem; font-weight: 700; }
.inquiry-form { max-width: 600px; display: grid; gap: .7rem; padding: 1.5rem; border: 2px solid var(--ink); background: var(--orange); }
.inquiry-form textarea { resize: vertical; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 2.5rem 0 3rem; border-top: 3px solid var(--ink); }
.site-footer__content > p { max-width: 620px; margin: 0 0 .8rem; font-weight: 600; }
.footer-disclaimer { font: .7rem/1.4 var(--mono) !important; font-weight: 400 !important; }
.footer-nav { gap: 1rem; flex-wrap: wrap; }
.back-to-top { font: .7rem var(--mono); text-transform: uppercase; }

.product-modal { width: min(900px, calc(100% - 2rem)); padding: 0; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.product-modal::backdrop { background: rgba(23,19,41,.75); }
.product-modal__inner { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.product-modal__media { min-height: 420px; }
.product-modal__content { padding: 3rem 2.25rem 2.25rem; }
.product-modal__content h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.product-modal__close { position: absolute; z-index: 2; top: .7rem; right: .7rem; width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--pink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.product-modal__content .button { margin: 1rem .5rem 0 0; }

@media (max-width: 820px) {
  .site-header__inner { min-height: 68px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .sidebar { display: block; position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(340px, 88vw); padding: 1.2rem; border-right: 3px solid var(--ink); background: var(--acid); box-shadow: 10px 0 0 var(--ink); }
  .sidebar-backdrop { display: block; position: fixed; z-index: 25; inset: 0; background: rgba(23,19,41,.55); }
  .sidebar__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; font: 700 1.25rem var(--display); }
  .sidebar__close { border: 2px solid var(--ink); background: var(--pink); width: 40px; height: 40px; font-size: 1.5rem; cursor: pointer; }
  .sidebar__nav { display: grid; gap: 1.2rem; align-items: start; }
  .sidebar__nav a { font: 700 1.3rem var(--display); text-decoration: none; }
  .hero { grid-template-columns: 1fr; min-height: 650px; padding: 7rem 0; }
  .hero::before { right: -25vw; width: 95vw; height: 65%; opacity: .8; }
  .hero__stamp { position: absolute; right: 5%; bottom: 4%; width: 140px; height: 140px; font-size: .9rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; gap: 2rem; }
  .signup { grid-template-columns: 1fr; padding: 2rem; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hero, .section, .site-footer { width: min(100% - 28px, 1240px); }
  .hero { min-height: 620px; padding-top: 5rem; }
  h1 { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .hero__body { font-size: 1rem; }
  .catalog__toolbar { display: block; }
  .category-filter { display: block; width: 100%; margin-top: .6rem; }
  .product-grid, .brief__points { grid-template-columns: 1fr; }
  .brief__point:nth-child(2), .brief__point:nth-child(3) { transform: none; }
  .signup-form__row { display: grid; }
  .product-modal__inner { grid-template-columns: 1fr; }
  .product-modal__media { min-height: 240px; max-height: 300px; }
  .product-modal__content { padding: 2rem 1.25rem 1.5rem; }
  .site-footer { padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
