/* ==========================================================================
   Facts May Vary — landing page
   Hero: the real banner art as an interactive pinboard.
   Everything else: CSS/SVG texture, no extra image assets.
   ========================================================================== */

:root {
  --paper: #F0EBE0;
  --paper-bright: #FBF8F1;
  --ink: #141210;
  --stamp-red: #B3271D;
  --note-yellow: #F2D14B;
  --tape: #D9C9A3;
  --board: #17140F;

  --type-head: 'Special Elite', 'Courier New', monospace;
  --type-body: 'Courier Prime', 'Courier New', monospace;
  --type-hand: 'Caveat', cursive;

  /* grain tile reused on board + stamps */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --stamp-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 18 -3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23s)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--type-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--paper);
  background-color: var(--board);
  background-image:
    var(--noise),
    radial-gradient(1100px 700px at 18% 8%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(900px 650px at 85% 92%, rgba(190,130,60,0.07), transparent 60%);
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 3px dashed var(--stamp-red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5em 1em;
  font-family: var(--type-head);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Shared components: torn paper, tape, pins, notes, stamps, annotations
   -------------------------------------------------------------------------- */

.paper-wrap {
  position: relative;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.55));
}

.torn-a, .torn-b {
  background-color: var(--paper);
  background-image: var(--noise);
  color: var(--ink);
}

.torn-a {
  clip-path: polygon(0% 4%, 5% 1%, 11% 3%, 18% 0%, 26% 2%, 33% 1%, 41% 3%,
    49% 0%, 57% 2%, 64% 1%, 72% 3%, 80% 0%, 88% 2%, 95% 1%, 100% 5%,
    99% 15%, 100% 28%, 98% 41%, 100% 55%, 99% 68%, 100% 80%, 98% 92%,
    95% 99%, 84% 97%, 74% 100%, 63% 98%, 52% 100%, 41% 98%, 30% 100%,
    19% 98%, 9% 100%, 2% 97%, 0% 88%, 1% 74%, 0% 60%, 2% 46%, 0% 32%, 1% 18%);
}

.torn-b {
  clip-path: polygon(1% 6%, 7% 2%, 15% 4%, 24% 1%, 31% 3%, 40% 0%, 48% 3%,
    56% 1%, 65% 4%, 73% 1%, 81% 3%, 90% 0%, 96% 3%, 100% 8%, 98% 20%,
    100% 34%, 99% 47%, 100% 62%, 98% 74%, 100% 87%, 97% 98%, 88% 100%,
    78% 97%, 68% 100%, 57% 98%, 46% 100%, 36% 97%, 25% 100%, 15% 98%,
    6% 100%, 0% 94%, 2% 80%, 0% 66%, 1% 52%, 0% 38%, 2% 24%, 0% 12%);
}

.tape {
  position: absolute;
  width: 92px;
  height: 27px;
  background: var(--tape);
  opacity: 0.82;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.tape-l { top: -13px; left: 2.5%; transform: rotate(-38deg); }
.tape-r { top: -13px; right: 2.5%; transform: rotate(41deg); }

.pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  z-index: 5;
  background: radial-gradient(circle at 34% 30%, #E0524A, var(--stamp-red) 55%, #6E140D);
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.5);
}

.note {
  display: inline-block;
  position: relative;
  background: var(--note-yellow);
  color: var(--ink);
  font-family: var(--type-hand);
  font-weight: 600;
  padding: 0.4em 0.8em;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
}
.note::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 14px 14px;
  border-color: transparent transparent rgba(0, 0, 0, 0.18) transparent;
}

.stamp {
  display: inline-block;
  font-family: var(--type-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--stamp-red);
  border: 3px solid currentColor;
  border-radius: 4px;
  padding: 0.55em 1.15em;
  transform: rotate(-2deg);
  -webkit-mask-image: var(--stamp-mask);
  mask-image: var(--stamp-mask);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.stamp:hover {
  background-color: var(--stamp-red);
  color: var(--paper-bright);
  transform: rotate(0deg);
}
.stamp.primary {
  background-color: var(--paper);
  font-size: 1.15rem;
}
.stamp.primary:hover { background-color: var(--stamp-red); }

.annot {
  font-family: var(--type-hand);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--paper);
  opacity: 0.92;
}
.red-annot { color: #E0524A; }

.u-red {
  border-bottom: 2.5px solid var(--stamp-red);
  padding-bottom: 1px;
}

.redact {
  background: #050505;
  color: transparent;
  user-select: none;
  padding: 0 0.35em;
  box-shadow: 0 0 0 1px rgba(240, 235, 224, 0.12);
}

/* --------------------------------------------------------------------------
   §1 Hero — the interactive board: draggable notes, user-tied string
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  overflow: hidden;
}

/* yarn sits above the notes but tucks behind the title sheet,
   so strings never block the CTA buttons */
.yarn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}
.yarn .vis {
  fill: none;
  stroke: var(--stamp-red);
  stroke-width: 2.5;
  opacity: 0.9;
}
.yarn .hit {
  fill: none;
  stroke: #000;
  stroke-opacity: 0;
  stroke-width: 16;
  pointer-events: stroke;
  cursor: pointer;
}
.yarn circle { fill: #6E140D; }

.title-wrap {
  position: relative;
  z-index: 20;
  width: min(92vw, 900px);
  transform: rotate(-1deg);
}

.board-pin { top: -8px; z-index: 21; cursor: pointer; }

.title-paper {
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.2rem, 5vw, 3.25rem);
}

.wordmark {
  font-family: var(--type-head);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.may {
  position: relative;
  color: var(--stamp-red);
}
.may::before, .may::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  height: 3px;
  background: currentColor;
}
.may::before { bottom: -0.09em; transform: rotate(-0.8deg); }
.may::after { bottom: -0.22em; transform: rotate(0.6deg); }

.mascot {
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.18em;
  vertical-align: -0.08em;
  color: var(--ink);
  transform: rotate(4deg);
}

.tagline {
  margin-top: 1.2rem;
  font-size: clamp(0.95rem, 1.9vw, 1.25rem);
  letter-spacing: 0.04em;
}

.hero-ctas {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.stamp.sec { font-size: 0.95rem; }

/* draggable evidence notes */
.evd {
  position: absolute;
  z-index: 12;
  width: max-content;
  max-width: 210px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
  filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.5));
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  transition: transform 0.18s ease;
}
.evd:hover {
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(1.03);
  filter: drop-shadow(4px 9px 11px rgba(0, 0, 0, 0.55));
}
.evd.lift {
  z-index: 30;
  cursor: grabbing;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.07);
  filter: drop-shadow(6px 14px 16px rgba(0, 0, 0, 0.55));
}

/* one note rocks gently until the visitor touches the board */
.evd.nudge { animation: evd-nudge 2.4s ease-in-out 1.2s 3; }
@keyframes evd-nudge {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
  30%      { transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) + 3.5deg)) scale(1.03); }
  60%      { transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) - 2.5deg)); }
}

.evd .pin { top: -9px; z-index: 6; cursor: pointer; }

#board .pin { transition: transform 0.12s ease; }
#board .pin:hover { transform: translateX(-50%) scale(1.3); }

.evd.howto .face { font-size: 1.25rem; }
.evd.howto .u-red { border-bottom-width: 3px; }

.pin.armed {
  animation: pin-pulse 1s ease-in-out infinite;
}
@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(224, 82, 74, 0.4), 0 5px 6px rgba(0, 0, 0, 0.5); }
  50%      { box-shadow: 0 0 0 9px rgba(224, 82, 74, 0.12), 0 5px 6px rgba(0, 0, 0, 0.5); }
}

.evd .ring {
  position: absolute;
  inset: -3px -9px;
  border: 2.5px solid rgba(179, 39, 29, 0.8);
  border-radius: 50%;
  transform: rotate(-4deg);
  pointer-events: none;
}

.evd.sticky .face {
  background: var(--note-yellow);
  color: var(--ink);
  font-family: var(--type-hand);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.15;
  padding: 0.55em 0.85em;
  position: relative;
}
.evd.sticky .face::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 14px 14px;
  border-color: transparent transparent rgba(0, 0, 0, 0.18) transparent;
}

.evd.scrap .face {
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0.75em 0.95em;
}

.evd.lined .face {
  background-color: #F7F3E8;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 21px, rgba(70, 100, 165, 0.25) 21px 22px),
    linear-gradient(90deg, transparent 24px, rgba(179, 39, 29, 0.35) 24px 26px, transparent 26px);
  color: var(--ink);
  font-family: var(--type-hand);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 22px;
  padding: 0.6em 1em 0.6em 2.2em;
}
.evd.lined .face strong {
  display: block;
  font-family: var(--type-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.evd.polaroid .face {
  background: #FDFDF6;
  padding: 9px 9px 6px;
  width: 158px;
}
.evd.polaroid img {
  display: block;
  width: 100%;
  height: auto;
}
.evd.polaroid .cap {
  display: block;
  font-family: var(--type-hand);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  margin-top: 0.3em;
}

.scroll-cue {
  position: absolute;
  z-index: 26;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   §2 Merch — "The Evidence"
   -------------------------------------------------------------------------- */

.evidence {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

.string {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.string path {
  fill: none;
  stroke: var(--stamp-red);
  stroke-width: 2.5;
  opacity: 0.85;
}
.string circle { fill: #6E140D; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.strip-title {
  font-family: var(--type-head);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  letter-spacing: 0.1em;
  padding: 0.5em 1.3em;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

.section-head .red-annot { transform: rotate(-3deg); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 3.25rem 2.5rem;
  align-items: stretch;
}

.card {
  transform: rotate(var(--tilt, 0deg)) translateY(var(--shift, 0));
  transition: transform 0.2s ease;
}
.card:nth-child(1) { --tilt: -2.4deg; --shift: 0.4rem; }
.card:nth-child(2) { --tilt: 1.8deg;  --shift: -0.3rem; }
.card:nth-child(3) { --tilt: -1.3deg; --shift: 0.6rem; }
.card:nth-child(4) { --tilt: 2.3deg;  --shift: -0.2rem; }
.card:hover { transform: rotate(0deg) translateY(var(--shift, 0)) scale(1.02); }

.card-paper {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

.art { margin-bottom: 1.1rem; }
.art svg { width: 100%; height: auto; max-height: 160px; }
.art text { font-family: var(--type-head); }
.t-ink { fill: var(--ink); }
.t-red { fill: var(--stamp-red); }

.card-paper h3 {
  font-family: var(--type-head);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.card-paper p {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.card-buy {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.price {
  font-size: 1.35rem;
  transform: rotate(-4deg);
}

.stamp.buy { font-size: 0.95rem; padding: 0.45em 1.05em; }

/* --------------------------------------------------------------------------
   §3 About — "The Truth"
   -------------------------------------------------------------------------- */

.about {
  display: flex;
  justify-content: center;
  padding: 2rem 1.25rem 6rem;
}

.about-wrap { transform: rotate(1.2deg); max-width: 640px; }

.about-paper {
  padding: 2.75rem clamp(1.5rem, 5vw, 3.25rem) 2.5rem;
  text-align: center;
}

.about-paper h2 {
  font-family: var(--type-head);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.about-paper p {
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   §4 Footer — "The Fine Print"
   -------------------------------------------------------------------------- */

.fine-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  padding: 2rem 1.25rem 4.5rem;
  text-align: center;
}

.socials {
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.socials a { text-underline-offset: 4px; }
.socials span { opacity: 0.5; }

.scrap-wrap { transform: rotate(-1.6deg); }

.legal-scrap {
  padding: 1.9rem 2.75rem 1.6rem;
  font-size: 0.95rem;
}

.punchline { font-family: var(--type-head); font-size: 1.15rem; }
.asterisk { margin-top: 0.2rem; }
.legal { margin-top: 1.1rem; font-size: 0.8rem; opacity: 0.75; }

/* --------------------------------------------------------------------------
   Responsive + motion
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .wordmark { white-space: normal; }
  .evd[data-id="lied"], .evd[data-id="connected"] { display: none; }
  .evd { max-width: 150px; }
  .evd.sticky .face { font-size: 0.95rem; }
  .evd.scrap .face { font-size: 0.72rem; }
  .evd.lined .face { font-size: 0.9rem; line-height: 19px; }
  .evd.lined .face {
    background-image:
      repeating-linear-gradient(to bottom, transparent 0 18px, rgba(70, 100, 165, 0.25) 18px 19px),
      linear-gradient(90deg, transparent 18px, rgba(179, 39, 29, 0.35) 18px 20px, transparent 20px);
    padding-left: 1.8em;
  }
  .evd.polaroid .face { width: 112px; }
  .evd.polaroid .cap { font-size: 0.9rem; }
  .scroll-cue { font-size: 1.1rem; }
  .tape { width: 64px; height: 20px; }
  .tape-l, .tape-r { top: -10px; }
  .string { display: none; }
  .card-grid { gap: 2.75rem; }
  .card { --shift: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .stamp, .skip-link, .evd, #board .pin { transition: none; }
  .evd.nudge { animation: none; }
  .pin.armed { animation: none; box-shadow: 0 0 0 5px rgba(224, 82, 74, 0.35), 0 5px 6px rgba(0, 0, 0, 0.5); }
}
