/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Splash page styles - punk zine aesthetic */
.punk-collage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #D8D8D0;
}

.paper-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.punk-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px 80px rgba(0, 0, 0, .3);
  pointer-events: none;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .15;
  pointer-events: none;
  z-index: 10;
}

.scanner-streak {
  position: absolute;
  width: 150%;
  height: 200px;
  top: 35%;
  left: -25%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .15) 50%, transparent);
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 9;
}

.shape {
  position: absolute;
}

.shape::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .4) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .2;
  pointer-events: none;
}

.tape {
  position: absolute;
  background: rgba(255, 245, 200, .7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2), inset 0 0 20px rgba(0, 0, 0, .05);
  z-index: 2;
}

.tape-1 {
  width: 120px;
  height: 30px;
  top: 15%;
  left: 48%;
  transform: rotate(-5deg);
}

.tape-2 {
  width: 80px;
  height: 25px;
  bottom: 25%;
  right: 20%;
  transform: rotate(12deg);
}

.tape-3 {
  width: 60px;
  height: 35px;
  top: 40%;
  left: 10%;
  transform: rotate(-15deg);
}

.collage-image {
  position: absolute;
  filter: grayscale(100%) contrast(1.4) brightness(1.15);
  opacity: 1;
  object-fit: cover;
}

.image-1,
.image-3,
.image-6 {
  mix-blend-mode: multiply;
}

.image-1 {
  width: 320px;
  height: 380px;
  top: 5%;
  left: 3%;
  transform: rotate(-8deg);
  clip-path: polygon(3% 1%, 96% 0%, 99% 2%, 100% 92%, 98% 97%, 94% 100%, 2% 99%, 0% 95%, 1% 8%);
  z-index: 1;
}

.image-2 {
  width: 280px;
  height: 320px;
  bottom: 3%;
  right: 5%;
  transform: rotate(12deg);
  clip-path: polygon(25% 0%, 50% 9%, 49% 11%, 53% 14%, 60% 25%, 99% 96%, 100% 97%, 0% 89%, 0% 47%, 1% 5%);
  z-index: 2;
}

.image-3 {
  width: 280px;
  height: 320px;
  top: 12%;
  right: 8%;
  transform: rotate(-12deg);
  clip-path: polygon(1% 2%, 97% 0%, 100% 4%, 99% 94%, 95% 99%, 3% 100%, 0% 96%, 2% 10%);
  z-index: 1;
}

.image-4 {
  width: 200px;
  height: 240px;
  top: 38%;
  left: 8%;
  transform: rotate(18deg);
  clip-path: polygon(2% 1%, 95% 0%, 100% 3%, 98% 96%, 94% 100%, 1% 99%, 0% 94%, 1% 8%);
  z-index: 2;
  opacity: .9;
}

.image-5 {
  width: 180px;
  height: 220px;
  bottom: 25%;
  left: 15%;
  transform: rotate(-22deg);
  clip-path: polygon(3% 0%, 97% 2%, 100% 5%, 99% 93%, 96% 98%, 2% 100%, 0% 96%, 1% 6%);
  z-index: 1;
}

.image-6 {
  width: 350px;
  height: 280px;
  top: 50%;
  right: 15%;
  transform: rotate(8deg);
  clip-path: polygon(2% 1%, 96% 0%, 100% 4%, 98% 95%, 95% 100%, 1% 98%, 0% 94%, 1% 7%);
  z-index: 0;
  opacity: .7;
}

.image-7 {
  width: 140px;
  height: 160px;
  top: 65%;
  right: 5%;
  transform: rotate(-10deg);
  clip-path: polygon(3% 2%, 95% 0%, 100% 5%, 97% 94%, 93% 99%, 2% 100%, 0% 93%, 2% 9%);
  z-index: 2;
}

.image-tape {
  position: absolute;
  background: linear-gradient(135deg, #E8DCC0 0%, #D4C5A0 50%, #C8B88F 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(255, 255, 255, .3), inset 0 -1px 3px rgba(0, 0, 0, .2);
  z-index: 3;
  opacity: .85;
}

.image-1-tape {
  width: 80px;
  height: 24px;
  top: 5%;
  left: 3%;
  transform: rotate(-8deg) translate(15px, -8px);
}

.image-2-tape {
  width: 70px;
  height: 22px;
  bottom: 3%;
  right: 5%;
  transform: rotate(12deg) translate(240px, 12px);
}

.image-3-tape {
  width: 65px;
  height: 26px;
  top: 12%;
  right: 8%;
  transform: rotate(-12deg) translate(200px, -10px);
}

.redaction {
  position: absolute;
  background: #0C0C0C;
  z-index: 8;
  opacity: .9;
}

.redact-1 {
  width: 180px;
  height: 18px;
  top: 23%;
  left: 18%;
  transform: rotate(-3deg);
}

.redact-2 {
  width: 220px;
  height: 20px;
  bottom: 35%;
  right: 12%;
  transform: rotate(5deg);
}

.redact-3 {
  width: 120px;
  height: 15px;
  top: 58%;
  left: 35%;
  transform: rotate(-8deg);
}

.staple {
  position: absolute;
  width: 4px;
  height: 12px;
  background: linear-gradient(to right, #666 0%, #999 50%, #666 100%);
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
  z-index: 10;
}

.staple::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 4px;
  height: 12px;
  background: linear-gradient(to right, #666 0%, #999 50%, #666 100%);
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5);
}

.staple-1 {
  top: 3%;
  left: 3%;
  transform: rotate(5deg);
}

.staple-2 {
  top: 3%;
  right: 3%;
  transform: rotate(-5deg);
}

.staple-3 {
  bottom: 3%;
  left: 3%;
  transform: rotate(-5deg);
}

.staple-4 {
  bottom: 3%;
  right: 3%;
  transform: rotate(5deg);
}

.hand-circle {
  position: absolute;
  width: calc(50vw * .9);
  height: 15vw;
  max-width: 420px;
  max-height: 140px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  border: 0;
  z-index: 1119;
  opacity: .85;
  pointer-events: none;
  filter: url(#hand-drawn-wobble);
}

.hand-circle::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 48% 52% 51% 49% / 47% 48% 52% 53%;
  border: 4px solid #0C0C0C;
  opacity: .9;
}

.hand-circle::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 51% 49% 48% 52% / 52% 51% 49% 48%;
  border: 6px solid #0C0C0C;
  opacity: .75;
  transform: rotate(1deg);
}

.hand-circle-2 {
  position: absolute;
  width: calc(50vw * .95);
  height: 13vw;
  max-width: 440px;
  max-height: 130px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(5deg);
  border: 0;
  z-index: 1118;
  opacity: .75;
  pointer-events: none;
  filter: url(#hand-drawn-wobble);
}

.hand-circle-2::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 49% 51% 53% 47% / 48% 52% 48% 52%;
  border: 5px solid #0C0C0C;
  opacity: .8;
}

.hand-circle-2::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 52% 48% 47% 53% / 51% 49% 51% 49%;
  border: 4px solid #0C0C0C;
  opacity: .7;
  transform: rotate(-2deg);
}

.shape-1 {
  width: 60%;
  height: 70%;
  background: #FFE500;
  top: -10%;
  left: -15%;
  transform: rotate(-12deg);
  clip-path: polygon(2% 0%, 98% 1%, 97% 3%, 99% 8%, 100% 92%, 98% 97%, 95% 99%, 3% 98%, 1% 95%, 0% 5%);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .4);
}

.shape-2 {
  width: 50%;
  height: 60%;
  background: #FF00A0;
  bottom: -20%;
  right: -10%;
  transform: rotate(25deg);
  clip-path: polygon(1% 2%, 95% 0%, 99% 3%, 100% 98%, 97% 100%, 4% 99%, 0% 96%, 2% 8%);
  box-shadow: -3px 3px 0 rgba(0, 0, 0, .4);
}

.shape-3 {
  width: 45%;
  height: 80%;
  background: #7C1C73;
  top: 10%;
  right: -5%;
  transform: rotate(-8deg);
  clip-path: polygon(1% 1%, 96% 0%, 100% 15%, 98% 20%, 99% 85%, 95% 98%, 85% 100%, 3% 99%, 0% 80%, 2% 25%);
  box-shadow: 2px -3px 0 rgba(0, 0, 0, .4);
}

.shape-4 {
  width: 35%;
  height: 45%;
  background: #00D4FF;
  bottom: 15%;
  left: 5%;
  transform: rotate(15deg);
  opacity: .85;
  clip-path: polygon(0% 3%, 94% 0%, 99% 2%, 100% 95%, 98% 100%, 2% 99%, 0% 97%, 1% 10%);
  box-shadow: 3px 2px 0 rgba(0, 0, 0, .3);
}

.shape-5 {
  width: 25%;
  height: 55%;
  background: #0C0C0C;
  top: 20%;
  left: 30%;
  transform: rotate(-20deg);
  opacity: .3;
  clip-path: polygon(2% 0%, 97% 1%, 100% 4%, 99% 96%, 96% 100%, 1% 98%, 0% 3%);
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Typography */
.bartr-title-manufacturing {
  font-family: "Manufacturing Consent", system-ui;
  font-weight: 400;
  font-style: normal;
}

.bartr-body {
  font-family: 'Averia Gruesa Libre', serif;
}

/* Stencil letter effects */
.stencil-letter {
  display: inline-block;
  color: rgba(255, 255, 255, .8);
  padding: 0 15px 10px;
  line-height: 6rem;
  border-radius: 2px;
  position: relative;
  pointer-events: none;
  box-shadow:
    0 0 10px 6px rgba(255, 255, 255, .38),
    0 0 26px 14px rgba(255, 255, 255, .22),
    0 0 48px 26px rgba(255, 255, 255, .1);
}

.stencil-letter:nth-of-type(2)::after {
  content: attr(data-letter);
  position: absolute;
  top: 3px;
  left: 4px;
  color: rgba(255, 255, 255, .2);
  z-index: -1;
}

.stencil-letter:first-of-type {
  padding-top: 10px;
  box-shadow:
    0 0 9px 5px rgba(255, 255, 255, .45),
    0 0 20px 10px rgba(255, 255, 255, .5),
    0 0 42px 20px rgba(255, 255, 255, .12);
}

.stencil-letter:nth-of-type(2n) {
  position: relative;
  top: -2px;
  transform: rotate(2deg);
  box-shadow:
    2px -2px 9px 6px rgba(255, 255, 255, .35),
    0 0 24px 12px rgba(255, 255, 255, .22),
    -4px 2px 42px 22px rgba(255, 255, 255, .7);
}

.stencil-letter:nth-of-type(3) {
  box-shadow:
    -1px 2px 10px 5px rgba(255, 255, 255, .4),
    0 0 22px 12px rgba(255, 255, 255, .5),
    2px 1px 44px 24px rgba(255, 255, 255, .1);
}

.stencil-letter:nth-of-type(4) {
  box-shadow:
    0 -3px 8px 4px rgba(255, 255, 255, .8),
    0 0 26px 13px rgba(255, 255, 255, .2),
    0 0 46px 26px rgba(255, 255, 255, .1);
}

.stencil-letter:last-of-type {
  position: relative;
  top: 2px;
  transform: rotate(-2deg);
  box-shadow:
    -2px 3px 8px 5px rgba(255, 255, 255, .36),
    1px -1px 20px 10px rgba(255, 255, 255, .72),
    0 0 40px 22px rgba(255, 255, 255, .1);
}

/* Circular overspray */
.stencil-letter:nth-of-type(2)::before,
.stencil-letter:nth-of-type(4)::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: -10%;
  top: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  filter: blur(5px);
  z-index: -1;
}

.stencil-letter:nth-of-type(2)::before {
  transform: translate(-3px, -5px) scale(1.05);
  opacity: .9;
}

.stencil-letter:nth-of-type(4)::before {
  transform: translate(-6px, 6px) scale(.95);
  opacity: .75;
  left: 80%;
  top: -15px;
  width: 30px;
}

/* Faint overspray dots */
.stencil-letter::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  filter: blur(4px);
  z-index: -1;
  opacity: .45;
}

.stencil-letter:first-of-type::after {
  left: -8px;
  top: 85%;
  width: 16px;
  height: 16px;
  opacity: .6;
}

.stencil-letter:nth-of-type(2)::after {
  right: -12px;
  top: 45%;
  width: 12px;
  height: 12px;
  opacity: .4;
}

.stencil-letter:nth-of-type(3)::after {
  left: -10px;
  top: 92%;
  width: 18px;
  height: 10px;
  opacity: .35;
  filter: blur(3px);
}

.stencil-letter:nth-of-type(4)::after {
  left: -8px;
  top: 22%;
  width: 9px;
  height: 9px;
  opacity: .38;
}

.stencil-letter:last-of-type::after {
  left: 88%;
  top: 98%;
  width: 14px;
  height: 14px;
  opacity: .5;
}

/* Sharpie-style "Coming Soon" */
.coming-soon {
  --ink: #0C0C0C;
  --highlight: #FFE500;
  --ink-bleed: rgba(0, 0, 0, .35);

  font-family: 'Lacquer', serif;
  font-size: clamp(28px, 5.8vw, 55px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding: .35em .5em .30em;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow:
    0 .5px 0 var(--ink-bleed),
    .3px .8px 0 var(--ink-bleed);
  z-index: 11;
}

.coming-soon::before,
.coming-soon::after {
  content: "";
  position: absolute;
  left: -.35em;
  right: -.35em;
  z-index: -1;
  background: var(--highlight);
  opacity: .8;
  height: .9em;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, .12),
    inset 0 2px 0 rgba(255, 255, 255, .2),
    0 2px 4px rgba(0, 0, 0, .25);
  mix-blend-mode: multiply;
  filter: saturate(110%);
  border-radius: 0;
  transform-origin: left center;
}

.coming-soon::before {
  left: 0;
  top: 12%;
  transform: skewX(24deg) rotate(-1.5deg);
}

.coming-soon::after {
  top: 45%;
  height: .85em;
  transform: skewX(14deg) rotate(1.2deg);
}

/* Lined notebook paper styles */
.lined-note {
  --paper: #fffdf7;
  --rule: #beddff;
  --margin: #e64a4a;
  --margin-x: 40px;

  position: relative;
  background:
    repeating-linear-gradient(#0000 0 24px, var(--rule) 24px 25px),
    linear-gradient(90deg,
      transparent var(--margin-x),
      var(--margin) calc(var(--margin-x)) calc(var(--margin-x) + 2px),
      transparent calc(var(--margin-x) + 2px)
    ),
    var(--paper);
  color: #0C0C0C;
  font-family: 'Fondamento', serif;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.5;
  padding: 1.4rem 1.5rem 1rem calc(var(--margin-x) + 1.2rem);
  max-width: 42ch;
  margin: 1rem auto 3rem;
  transform: rotate(-1.6deg);
  text-align: left;
  clip-path: polygon(
    0% 1.5%, 4% 0%, 9% 2.4%, 13% .6%, 18% 2.1%, 24% .2%, 30% 2.6%, 36% .8%,
    41% 2.0%, 47% .3%, 52% 2.2%, 58% .5%, 64% 2.8%, 69% 1.1%, 75% 2.3%, 81% .4%,
    86% 2.1%, 92% .7%, 96% 2.5%, 100% 1.2%,
    100% 98.4%, 95% 99.8%, 90% 97.6%, 85% 99.3%, 79% 97.8%, 73% 99.9%,
    67% 97.7%, 61% 99.5%, 55% 97.9%, 49% 99.7%, 43% 97.8%, 37% 99.6%,
    31% 97.9%, 25% 99.8%, 19% 97.7%, 13% 99.4%, 8% 97.6%, 4% 99.7%, 0% 98.5%
  );
}

@media (max-width: 520px) {
  .lined-note {
    --margin-x: 32px;
    background:
      repeating-linear-gradient(#0000 0 22px, var(--rule) 22px 23px),
      linear-gradient(90deg, transparent var(--margin-x), var(--margin) var(--margin-x) calc(var(--margin-x) + 2px), transparent calc(var(--margin-x) + 2px)),
      var(--paper);
    padding-left: calc(var(--margin-x) + 1rem);
  }
}
