/* ============================================================
   BASE — palette, type, paper, page shell
   ============================================================ */

:root {
  --newsprint: #F7F2E7;
  --pink: #FF4F8B;
  --blue: #1B4DFF;
  --yellow: #FFB800;
  --green: #1A8A5A;
  --char: #23201E;

  --paper-2: #EFE7D6;
  --paper-3: #E3D9C4;
  --ink-soft: #5B554D;

  --sans: system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --gap: clamp(1rem, 2.4vw, 2.25rem);
  --pad: clamp(1.1rem, 4vw, 4.5rem);
  --hair: 1px solid rgba(35, 32, 30, 0.28);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--newsprint);
  color: var(--char);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  overflow-x: hidden;
}

/* paper grain: two fine dot fields, one warm, one cool */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(35, 32, 30, 0.10) 0.5px, transparent 0.6px),
    radial-gradient(rgba(255, 79, 139, 0.07) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}

/* soft paper mottling behind everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(255, 184, 0, 0.07), transparent 70%),
    radial-gradient(50% 40% at 92% 22%, rgba(27, 77, 255, 0.05), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(255, 79, 139, 0.06), transparent 70%);
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--char);
  color: var(--newsprint);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

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

/* the four radios live off-canvas but stay focusable for keyboard users */
.state {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

/* ---------- collection ---------- */
.collection {
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--pad) clamp(3rem, 7vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
  outline: none;
}

.collection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--char);
  padding-bottom: 0.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.section-title {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}

.section-note { color: var(--ink-soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) var(--gap);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
