/* Introdelens kräm- och gulddesign samt kompakta mellanrum.
   Grundlayout och typografi ligger i styles.css. */
.intro {
  position: relative;
  isolation: isolate;
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: clamp(20px, 2.5vw, 28px);
  background-color: var(--surface-pink);
  background-image:
    radial-gradient(ellipse at 45% 38%, rgb(255 255 255 / 20%), transparent 70%),
    radial-gradient(ellipse at 96% 4%, rgb(211 163 75 / 12%), transparent 52%),
    linear-gradient(135deg, rgb(255 253 240 / 30%), transparent 55%, rgb(192 143 63 / 7%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%), 0 12px 36px rgb(103 67 27 / 4%);
}

/* Dekoren tar ingen plats i griden och fångar inga tryck eller klick.
   Bara dekorlagren klipps; knapparnas fokusringar får plats utanför. */
.intro::before,
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(0 round var(--radius));
  background: url('images/intro-gold-sweep.svg') left top / 280px 150px no-repeat;
}

.intro::after {
  transform: rotate(180deg);
  background-position: left top;
}
.intro-copy,
#intro-image { position: relative; z-index: 1; }

/* Samma spegelform och yttermått, nu med en tunn metallisk guldram. */
#intro-image {
  border: 2px solid transparent;
  background: var(--gold-edge-gradient) border-box;
  box-shadow:
    0 0 0 4px var(--surface-pink),
    0 0 0 5px var(--gold-edge-color),
    0 14px 28px rgb(80 48 17 / 13%);
}

html[data-customized] #intro-image {
  box-shadow:
    0 0 0 4px var(--surface-pink),
    0 0 0 5px var(--gold-edge-color),
    7px 10px 24px var(--custom-image-shadow);
}

/* Tre fördelar på en egen rad under introtexten och bilden. */
.intro-features {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  /* Frigör hörnet åt guldslingan genom en kompaktare fördelsrad. */
  padding: 0 clamp(48px, 6vw, 72px) 0 0;
  list-style: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.45;
}

.intro-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-inline: 12px;
}
.intro-features li:first-child { padding-inline-start: 0; }
.intro-features li:last-child { padding-inline-end: 0; }
.intro-features li + li { border-inline-start: 1px solid var(--brand-gold); }
.intro-features span { min-width: 0; overflow-wrap: break-word; }
.intro-feature-icon {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: #a66d20;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .intro::before,
  .intro::after { background-size: 170px 91px; opacity: .78; }
  .intro::after { background-size: 110px 59px; }
  #intro-image {
    box-shadow:
      0 0 0 3px var(--surface-pink),
      0 0 0 4px var(--gold-edge-color),
      0 10px 20px rgb(80 48 17 / 12%);
  }
  html[data-customized] #intro-image {
    box-shadow:
      0 0 0 3px var(--surface-pink),
      0 0 0 4px var(--gold-edge-color),
      5px 7px 20px var(--custom-image-shadow);
  }
  .intro-features {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
    justify-self: center;
    padding-inline-end: 24px;
    gap: 2px;
    font-size: .75rem;
    line-height: 1.2;
  }
  .intro-features li { padding: 0; gap: 8px; }
  .intro-features span br { display: none; }
  .intro-features li + li {
    border-inline-start: 0;
    border-top: 1px solid var(--pink-border);
    padding-top: 1px;
  }
  .intro-feature-icon { flex-basis: 20px; width: 20px; height: 20px; }
}

@media (forced-colors: active) {
  .intro { background: Canvas; box-shadow: none; }
  .intro::before,
  .intro::after { display: none; }
  .intro-feature-icon { color: CanvasText; }
  .intro-features li + li { border-color: CanvasText; }
  #intro-image,
  html[data-customized] #intro-image {
    background: none;
    border-color: CanvasText;
    box-shadow: none;
  }
}
