/* ────────────────────────────────────────────────────────────
   Schulcast "Made at DSJ" Sticker · skeuomorph, playful
   Drop in: <link rel="stylesheet" href="/css/freq-sticker.css">
   ──────────────────────────────────────────────────────────── */

.sc-sticker {
  --sk-cream: var(--color-text-primary, #f4efe2);
  --sk-ink:   var(--color-bg-primary,   #1b1d14);
  --sk-red:   var(--fynbos-pomegranate, #C85555);
  --sk-gold:  var(--fynbos-apricot,     #d89a2b);

  position: relative;
  display: inline-block;
  width: 240px;
  padding: 22px 22px 26px;
  background: var(--sk-cream);
  color: var(--sk-ink);
  font-family: 'Syne', system-ui, sans-serif;
  text-align: center;
  user-select: none;
  cursor: default;
  border-radius: 4px;

  /* paper feel: slight off-white speckle + dual shadow for lift */
  background-image:
    radial-gradient(circle at 22% 18%, rgba(0,0,0,0.025) 0px, rgba(0,0,0,0) 1.5px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0) 1px),
    radial-gradient(circle at 40% 88%, rgba(0,0,0,0.025) 0px, rgba(0,0,0,0) 1.5px);
  background-size: 18px 18px, 22px 22px, 24px 24px;

  box-shadow:
    /* tape-like inner highlight */
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    /* lift from page */
    0 1px 1px rgba(0,0,0,0.18),
    0 14px 22px -10px rgba(0,0,0,0.45),
    0 28px 42px -18px rgba(0,0,0,0.35);

  transform: rotate(2.4deg);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1),
              box-shadow 320ms ease;
}
.sc-sticker:hover {
  transform: rotate(-0.6deg) translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 2px 2px rgba(0,0,0,0.18),
    0 22px 30px -10px rgba(0,0,0,0.5),
    0 40px 56px -22px rgba(0,0,0,0.4);
}

/* dog-eared corners — folded paper triangles */
.sc-sticker::before,
.sc-sticker::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0.04) 50%, rgba(255,255,255,0.4) 100%);
  pointer-events: none;
}
.sc-sticker::before {
  top: 0; left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
}
.sc-sticker::after {
  bottom: 0; right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(-1px -1px 1px rgba(0,0,0,0.2));
}

/* tape strip across the top */
.sc-sticker__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 84px;
  height: 22px;
  background: rgba(216, 154, 43, 0.42);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0.45) 70%, rgba(255,255,255,0) 100%);
  border-left: 1px dashed rgba(0,0,0,0.15);
  border-right: 1px dashed rgba(0,0,0,0.15);
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* inner content stack */
.sc-sticker__crest {
  width: 72px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.22));
}

.sc-sticker__caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sk-ink);
  opacity: 0.55;
  padding-left: 0.32em;
  margin-bottom: 4px;
}

.sc-sticker__brand {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  /* 64 px overflowed the 196 px content area (240 sticker − 2×22
     padding) by ~30 px because Syne 800 + letter-spacing makes
     "DSJ" ~225 px wide. text-align:center can't centre what
     doesn't fit, so the text was left-aligned inside the cream
     box and visually drifted left of true centre. 56 px fits
     comfortably with breathing room on both sides. */
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--sk-ink);
  margin: 2px 0 8px;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.6),
    0 2px 2px rgba(0,0,0,0.12);
}

.sc-sticker__location {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sk-ink);
  opacity: 0.7;
  padding-left: 0.28em;
  margin-bottom: 14px;
}

.sc-sticker__rule {
  width: 60%;
  margin: 0 auto 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sk-gold) 30%, var(--sk-gold) 70%, transparent);
  opacity: 0.85;
}

.sc-sticker__tagline {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sk-gold);
}

/* perforated edge along bottom — postage feel */
.sc-sticker__perf {
  position: absolute;
  left: 6px; right: 6px;
  bottom: -6px;
  height: 12px;
  background-image: radial-gradient(circle at 6px 6px, var(--sk-ink, #1b1d14) 3px, transparent 3.5px);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  /* mask so the holes punch the cream */
  -webkit-mask: linear-gradient(180deg, transparent 0, transparent 6px, #000 6px);
          mask: linear-gradient(180deg, transparent 0, transparent 6px, #000 6px);
  pointer-events: none;
  opacity: 0;          /* off by default — toggle .has-perf to enable */
}
.sc-sticker.has-perf .sc-sticker__perf { opacity: 1; }

/* gentle entrance idle wiggle on hover (skeuomorphic peel) */
@keyframes sc-sticker-peel {
  0%, 100% { transform: rotate(2.4deg); }
  50%      { transform: rotate(-0.4deg) translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .sc-sticker.is-idle-wiggle {
    animation: sc-sticker-peel 6s ease-in-out infinite;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sc-sticker, .sc-sticker:hover { transition: none; transform: rotate(2.4deg); }
}
