/* ============================================================
   DENIM (full) - indigo denim with stitching + metal button
   Usage: [denim]...[/denim]
============================================================ */

.ulse-denim {
  --denim-bg: url("../img/denim.webp");
  --denim-color: #ffffff;
  --denim-accent: #ffd8a8;
  --denim-stitch: #f5e3b5;
  --denim-border: rgba(0, 0, 0, 0.25);

  font-family: "Inter", Arial, sans-serif;
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 38px;
  color: var(--denim-color);
  background:
    url("../img/button.png") 14px 12px / 40px 40px no-repeat,
    url("../img/button.png") calc(100% - 14px) 12px / 40px 40px no-repeat,
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0)) top/100% 30px no-repeat,
    var(--denim-bg);
  background-size:
    40px 40px,
    40px 40px,
    auto,
    500px auto;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    repeat;
  border-radius: 18px;
  position: relative;
  box-shadow:
    0 18px 36px rgba(0,0,0,0.28),
    inset 0 0 0 1px var(--denim-border);
  overflow: hidden;
}

.ulse-denim::before,
.ulse-denim::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  pointer-events: none;
}

.ulse-denim::before {
  border: 3px dashed var(--denim-stitch);
  opacity: 0.9;
}

.ulse-denim::after {
  inset: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  mix-blend-mode: screen;
}

.ulse-denim article {
  position: relative;
  z-index: 1;
  line-height: 1.82;
}

.ulse-denim h1,
.ulse-denim h2,
.ulse-denim h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.55),
    0 0 10px rgba(255, 140, 60, 0.55);
}

.ulse-denim p {
  margin: 0 0 18px 0;
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.5),
    0 0 10px rgba(255, 140, 60, 0.35);
}

.ulse-denim a {
  color: var(--denim-accent);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(255,216,168,0.75);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.ulse-denim a:hover {
  color: #ffe8c4;
  box-shadow:
    inset 0 -2px 0 rgba(255,232,196,0.95),
    0 4px 10px rgba(0,0,0,0.2);
}

.ulse-denim strong,
.ulse-denim b {
  color: #ffe8c4 !important; /* prevent dark overrides */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.45),
    0 0 8px rgba(255,140,60,0.35);
}
