/* ============================================================
   TRYONME — Risograph Landing Page
   Tokens, base, and shared component styles
   ============================================================ */

:root {
  /* Riso palette */
  --cream:        #F5EFE0;
  --cream-deep:   #ECE3CC;
  --pink:         #FF4D8B;
  --pink-soft:    rgba(255, 77, 139, 0.55);
  --yellow:       #FFC83D;
  --blue:         #2D3D7A;
  --blue-muted:   rgba(45, 61, 122, 0.55);
  --ink-overlap:  #E63C3C;
  --olive:        #8B7E2E;
  --cream-shadow: rgba(45, 61, 122, 0.08);

  /* Theme variables (pink theme baked in) */
  --bg:           var(--cream);
  --primary:      var(--pink);
  --secondary:    var(--yellow);
  --ink:          var(--blue);

  /* Type */
  --font-display: "Anton", "Oswald", "AvenirNextCondensed-Heavy", "Bebas Neue", Impact, sans-serif;
  --font-body:    "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-page: clamp(20px, 4vw, 64px);

  /* Texture default */
  --grain-amount: 0.45;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   PAPER GRAIN — fixed full-screen overlay
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/></svg>");
  mix-blend-mode: multiply;
  opacity: var(--grain-amount, 0.45);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-image: radial-gradient(circle at 20% 10%, rgba(255,200,61,0.04), transparent 60%),
                    radial-gradient(circle at 80% 80%, rgba(255,77,139,0.04), transparent 50%);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: var(--ink);
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-transform: uppercase;
}

.label {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hand {
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-weight: 700;
  letter-spacing: 0;
}

/* ============================================================
   STAMPED TEXT (yellow underprint behind pink)
   ============================================================ */
.stamp {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.stamp::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  transform: translate(8px, 10px);
  color: var(--yellow);
  z-index: -1;
}

/* misregistered single-line text */
.misreg {
  position: relative;
  display: inline-block;
  color: currentColor;
  white-space: nowrap;
}
.misreg::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  color: var(--yellow);
  transform: translate(4px, 5px);
  z-index: -1;
  pointer-events: none;
}
.misreg.pink { color: var(--pink); }
.misreg.pink::before { color: var(--yellow); }

/* ============================================================
   STAMPED WORDMARK BLOCK
   ============================================================ */
.wordmark {
  position: relative;
  display: inline-block;
  padding: 0;
  isolation: isolate;
  transform: rotate(-1.5deg);
}

.wordmark__under {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border-radius: 6px;
  transform: translate(10px, 14px);
  z-index: -1;
}

.wordmark__block {
  background: var(--primary);
  color: var(--cream);
  padding: 0.05em 0.18em 0.18em;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  position: relative;
  overflow: hidden;
}

.wordmark__block::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(92deg, transparent 0 8px, rgba(245,239,224,0.06) 8px 9px),
    radial-gradient(circle at 30% 40%, rgba(245,239,224,0.18) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 80% 70%, rgba(245,239,224,0.14) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 60% 20%, rgba(245,239,224,0.10) 0 1px, transparent 1.2px);
  background-size: 100% 100%, 14px 14px, 22px 22px, 18px 18px;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  isolation: isolate;
  text-decoration: none;
  transition: transform 0.14s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--secondary);
  border-radius: 12px;
  transform: translate(5px, 7px);
  z-index: -2;
  transition: transform 0.14s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 12px;
  z-index: -1;
}
.btn:hover {
  transform: translate(2px, 2px);
}
.btn:hover::before {
  transform: translate(3px, 5px);
}
.btn:active {
  transform: translate(5px, 7px);
}
.btn:active::before {
  transform: translate(0, 0);
}

.btn--blue::after  { background: var(--blue); }
.btn--blue::before { background: var(--pink); }

.btn--ghost {
  color: var(--pink);
}
.btn--ghost::after {
  background: var(--cream);
  border: 2px solid var(--pink);
}
.btn--ghost::before { background: transparent; }

.btn .icon { width: 20px; height: 20px; flex: none; }

/* ============================================================
   CHIPS / PILLS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--pink);
  background: var(--cream);
  color: var(--blue);
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chip--filled {
  background: var(--pink);
  color: var(--cream);
}
.chip--blue {
  background: var(--blue);
  color: var(--cream);
  border-color: var(--blue);
}
.chip--yellow {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--blue);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--cream);
  border: 2px solid var(--pink);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.card--blue { border-color: var(--blue); }

.card__shadow {
  position: relative;
}
.card__shadow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border-radius: 18px;
  transform: translate(8px, 10px);
  z-index: -1;
}

/* ============================================================
   SECTION RULES
   ============================================================ */
.section {
  padding: clamp(60px, 9vw, 130px) var(--pad-page);
  position: relative;
}
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.section__head .num {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 64px;
  line-height: 0.8;
  font-weight: 900;
}

hr.rule {
  border: none;
  height: 2px;
  background: var(--blue);
  margin: 18px 0;
}

/* ============================================================
   HALFTONE BG
   ============================================================ */
.halftone {
  background-image: radial-gradient(var(--dot-color, var(--pink)) 1.6px, transparent 1.8px);
  background-size: 9px 9px;
  background-position: 0 0;
}

.halftone--gradient {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 70%, black 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 70%, black 100%);
}

/* ============================================================
   ENTRY ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }

@keyframes wobble {
  0%,100% { transform: rotate(-1.5deg); }
  50%     { transform: rotate(-0.6deg); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes drift {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(6px,-4px) rotate(2deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

/* ============================================================
   UTILITY
   ============================================================ */
.flex { display: flex; }
.col { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-sm { gap: 10px; }
.gap-md { gap: 18px; }
.gap-lg { gap: 30px; }
.wrap { flex-wrap: wrap; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 720px) {
  :root { --pad-page: 18px; }
}
