/* fluffyprints landing — wireframes (rough/sketchy, low-fi but sticker-energy) */

/* Self-hosted fonts (latin subset only — covers English + common punctuation).
   Fredoka and Caveat are variable fonts so a single file covers their weight range. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/fredoka.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/caveat.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-mono-700.woff2') format('woff2');
}

/* ── Metric-adjusted fallback fonts ─────────────────────────────────────────
   These declare local system fonts (Arial/Verdana/Consolas) but override
   their ascent/descent/size to match the web fonts above. When the page
   first renders with fallback (or if the web font fails to load), the
   layout occupies the *same* vertical space — so when the real font swaps
   in, nothing shrinks or shifts. Eliminates the "page shrinks on font load"
   flash on page navigations. */
@font-face {
  font-family: 'Fredoka-fallback';
  src: local('Arial');
  size-adjust: 102%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Caveat-fallback';
  src: local('Brush Script MT'), local('Comic Sans MS'), local('Arial');
  size-adjust: 105%;
  ascent-override: 105%;
  descent-override: 38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'SpaceMono-fallback';
  src: local('Consolas'), local('Courier New'), local('monospace');
  size-adjust: 96%;
  ascent-override: 90%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --cream:  #f6ecdf;
  --yellow: #ffd125;
  --navy:   #081833;
  --purple: #4e279f;
  --pink:   #e92b6f;
  --green:  #9bea83;
  --font-display: 'Fredoka', 'Fredoka-fallback', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Caveat-fallback', cursive;
  --font-mono: 'Space Mono', 'SpaceMono-fallback', monospace;
}

/* Wide-gamut (display-p3) palette — identical brand colors, declared in P3 so the
   browser color-manages them explicitly on P3 displays. Matters for a printing
   business so on-screen previews stay consistent across sRGB and wide-gamut monitors. */
@media (color-gamut: p3) {
  :root {
    --cream:  color(display-p3 0.964 0.926 0.876);
    --yellow: color(display-p3 1.000 0.819 0.146);
    --navy:   color(display-p3 0.040 0.094 0.196);
    --purple: color(display-p3 0.298 0.157 0.620);
    --pink:   color(display-p3 0.910 0.176 0.435);
    --green:  color(display-p3 0.608 0.918 0.514);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-display);
  color: var(--navy);
  background: var(--cream);
}

/* ─── shared artboard wrapper ─── */
.ab-frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════
   WIREFRAME 1 — STICKER SHEET
   ═══════════════════════════════════════════ */
.ss-root {
  position: relative; width: 100%; height: 100%;
  font-family: var(--font-display);
  overflow: hidden;
}
.ss-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(8,24,51,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8,24,51,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.ss-corner {
  position: absolute;
  font-family: var(--font-mono); font-size: 18px;
  color: var(--navy); opacity: 0.5;
  pointer-events: none;
}
.ss-corner-tl { top: 14px; left: 14px; }
.ss-corner-tr { top: 14px; right: 14px; }
.ss-corner-bl { bottom: 14px; left: 14px; }
.ss-corner-br { bottom: 14px; right: 14px; }

.ss-hero {
  position: absolute;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 60%;
  max-width: 520px;
  z-index: 1;
}
.ss-hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.ss-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.92;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.ss-blurb {
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
}

.ss-sticker {
  position: absolute;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(.34,1.56,.64,1);
  z-index: 5;
}
.ss-sticker-shadow {
  position: absolute; inset: 0;
  background: rgba(8,24,51,0.18);
  transform: translate(6px, 8px);
  filter: blur(2px);
}
.ss-sticker-body {
  position: relative; width: 100%; height: 100%;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px;
  text-align: center;
}
.ss-sticker-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ss-sticker-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
}
.ss-peel {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px dashed var(--navy);
  transform: rotate(45deg);
  transition: opacity 200ms;
}
.ss-peel-tl { top: -4px; left: -4px; }
.ss-peel-tr { top: -4px; right: -4px; }
.ss-peel-bl { bottom: -4px; left: -4px; }
.ss-peel-br { bottom: -4px; right: -4px; }

.ss-foot {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  word-spacing: 0.4em;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════
   WIREFRAME 2 — CENTER STACK
   ═══════════════════════════════════════════ */
.cs-root {
  position: relative; width: 100%; height: 100%;
  font-family: var(--font-display);
  overflow: hidden;
}
.cs-scroll {
  position: relative;
  width: 100%; height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 28px 22px 40px;
}
.cs-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot, #081833) 1.2px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.08;
  pointer-events: none;
}
.cs-mascot-wrap {
  position: relative;
  display: flex; justify-content: center;
  margin-bottom: 28px;
}
.cs-mascot {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 120ms ease-out;
  border: 3px solid var(--navy);
  overflow: visible;
}
.cs-mascot-img {
  width: 92%; height: 92%;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15));
}
.cs-mascot-tag {
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  z-index: 3;
}

.cs-h1 {
  position: relative;
  margin: 8px 0 8px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}
.cs-blurb {
  position: relative;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 auto 24px;
  max-width: 90%;
}
.cs-stack {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto;
}
.cs-pill {
  position: relative;
  display: flex; align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(.34,1.56,.64,1), box-shadow 120ms;
  text-align: left;
}
.cs-pill-label { flex: 1; }
.cs-pill-sub {
  font-family: var(--font-mono);
  font-size: 11px;
}
.cs-pill-arrow {
  font-size: 18px; font-weight: 700;
}
.cs-foot {
  position: relative;
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  word-spacing: 0.3em;
  opacity: 0.55;
}


/* ═══════════════════════════════════════════
   CURSOR TRAIL (sparkles/stickers following mouse)
   ═══════════════════════════════════════════ */
.cursor-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  user-select: none;
  animation: spark-fade 800ms ease-out forwards;
}
@keyframes spark-fade {
  0% { opacity: 1; transform: scale(0.5) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.4) rotate(180deg) translateY(-20px); }
}

/* ═══════════════════════════════════════════
   ARTBOARD LABELS / NOTES
   ═══════════════════════════════════════════ */
.ab-note {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--navy);
  opacity: 0.55;
  text-align: center;
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 100;
}
