/* Scribble underline for headings */
.scribble-underline {
  position: relative;
}

.scribble-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8'%3E%3Cpath d='M0 5 Q25 0 50 5 Q75 8 100 4 Q125 1 150 5 Q175 8 200 4' stroke='%231a2fd4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 200px 8px;
  background-repeat: repeat-x;
}

/* Sketch border for cards */
.sketch-border {
  position: relative;
}

.sketch-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect x='2' y='2' width='96' height='96' rx='4' fill='none' stroke='%231a2040' stroke-width='1.5' stroke-dasharray='8 4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.6;
}

/* Paper texture overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Section divider */
.section-divider {
  width: 100%;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 24'%3E%3Cpath d='M0 12 Q100 4 200 14 Q300 20 400 10 Q500 2 600 14 Q700 22 800 12' stroke='%231a2040' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 800px 24px;
  background-repeat: repeat-x;
  background-position: center;
  margin: var(--space-lg) 0;
}

/* Phthalo blue gradient glow used behind sections */
.glow-accent {
  position: relative;
}

.glow-accent::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
