/*
  SKN & GLO colour layer.
  Palette is taken from the formula: sea buckthorn, rosehip, chamomile, berry.
  Text gradients use the deeper tones so italic words keep at least 3:1 on cream.
*/
:root {
  --skn-buckthorn: #e9762b;
  --skn-rosehip: #d94f6a;
  --skn-chamomile: #e8b83a;
  --skn-berry: #7b2d5b;
  --skn-grad-text: linear-gradient(100deg, #cf5d1c 0%, #c93f5e 45%, #7b2d5b 80%, #cf5d1c 100%);
  --skn-grad-band: linear-gradient(100deg, #c4521b 0%, #c23c5a 50%, #6e2752 100%);
}

/* 1. Gradient italic word in the homepage headings */
body :is(
  .skn-manifesto__headline,
  .skn-our-why__formula-heading,
  .skn-ingredient-theatre__heading,
  .skn-plain-facts__heading,
  .skn-ritual__heading,
  .skn-faq__heading
) em {
  background-image: var(--skn-grad-text);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.12em 0.06em 0.02em;
  margin: 0 -0.12em -0.06em -0.02em;
  animation: skn-grad-drift 9s ease-in-out infinite alternate;
}

/* This intro slides in over the black formula block before its cream backdrop arrives. */
body .skn-ingredient-theatre__heading em,
body .skn-ingredient-theatre__eyebrow::before {
  opacity: var(--skn-ing-light, 1);
}

body .skn-our-why__formula-heading em {
  background-image: linear-gradient(100deg, #f39a5a 0%, #ef7d93 45%, #e8b83a 80%, #f39a5a 100%);
}

@keyframes skn-grad-drift {
  to {
    background-position: 100% 50%;
  }
}

/* 2. Coloured dot before each small label */
body :is(
  .skn-ingredient-theatre__eyebrow,
  .skn-our-why__eyebrow,
  .skn-formula__eyebrow,
  .skn-ritual__eyebrow,
  .skn-faq__eyebrow
)::before {
  content: '';
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.8em;
  border-radius: 50%;
  vertical-align: -0.08em;
  background: var(--skn-rosehip);
  box-shadow: 0 0 0 0 rgb(217 79 106 / 0.45);
  animation: skn-dot-pulse 2.4s ease-out infinite;
}

body .skn-ingredient-theatre__eyebrow::before {
  background: var(--skn-buckthorn);
}

body .skn-ritual__eyebrow::before {
  background: var(--skn-chamomile);
}

@keyframes skn-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(217 79 106 / 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.6em rgb(217 79 106 / 0);
  }
}

/* 3. Ingredient cards: rounded, coloured percentage pill */
body .skn-ingredient-theatre__tile {
  --skn-pill-bg: #fce6d6;
  --skn-pill-ink: #9c420c;
  --skn-pill-edge: var(--skn-buckthorn);
  border-radius: 18px;
  border-color: rgb(0 0 0 / 0.06);
  box-shadow: inset 0 3px 0 0 var(--skn-pill-edge);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

body .skn-ingredient-theatre__tile:nth-child(4n + 2) {
  --skn-pill-bg: #f9dde3;
  --skn-pill-ink: #9e2a44;
  --skn-pill-edge: var(--skn-rosehip);
}

body .skn-ingredient-theatre__tile:nth-child(4n + 3) {
  --skn-pill-bg: #faefd0;
  --skn-pill-ink: #7a5600;
  --skn-pill-edge: var(--skn-chamomile);
}

body .skn-ingredient-theatre__tile:nth-child(4n + 4) {
  --skn-pill-bg: #eedce7;
  --skn-pill-ink: #6e2752;
  --skn-pill-edge: var(--skn-berry);
}

body .skn-ingredient-theatre__tile:hover {
  background-color: rgb(255 255 255 / 0.96);
  box-shadow: inset 0 3px 0 0 var(--skn-pill-edge), 0 14px 34px rgb(60 30 20 / 0.12);
}

body .skn-ingredient-theatre__tile-pct {
  align-self: flex-start;
  padding: 0.32em 0.8em;
  border-radius: 999px;
  background: var(--skn-pill-bg);
  color: var(--skn-pill-ink);
  font-weight: 500;
}

/* 4. Ritual: big faded word behind, gradient step numbers, rounded photo */
body .skn-ritual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body .skn-ritual::before {
  content: 'ritual';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading--family, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: clamp(9rem, 30vw, 30rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgb(201 63 94 / 0.06);
  pointer-events: none;
  user-select: none;
}

body .skn-ritual__step-label {
  background-image: var(--skn-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

body .skn-ritual__media {
  border-radius: 28px;
  overflow: hidden;
}

body .skn-ritual__media-image {
  border-radius: inherit;
}

/* 5. Homepage FAQ in a warm dark panel */
body .skn-faq-section {
  background: #f3efe8;
  padding: clamp(10px, 1.5vw, 20px);
}

body .skn-faq {
  background:
    radial-gradient(85% 70% at 0% 0%, rgb(207 93 28 / 0.38), transparent 60%),
    radial-gradient(80% 75% at 100% 100%, rgb(123 45 91 / 0.6), transparent 62%),
    #151212;
  color: #ffffff;
}

body .skn-faq__eyebrow {
  color: rgb(255 255 255 / 0.6);
}

body .skn-faq__heading {
  color: #ffffff;
}

body .skn-faq__heading em {
  background-image: linear-gradient(100deg, #f39a5a 0%, #ef7d93 45%, #e8b83a 80%, #f39a5a 100%);
}

body .skn-faq__list,
body .skn-faq__item {
  border-color: rgb(255 255 255 / 0.14) !important;
}

body .skn-faq__question {
  color: #ffffff;
  transition: color 0.25s ease;
}

body .skn-faq__question:hover,
body .skn-faq__item.is-open .skn-faq__question {
  color: #f6c8a6;
}

body .skn-faq__question::after {
  color: var(--skn-chamomile);
  font-size: 1.5rem;
}

body .skn-faq__answer {
  color: rgb(255 255 255 / 0.78);
}

/* 6. Sticky CTA: gradient ring and arrow */
a.skn-sticky-buy {
  border: 2px solid transparent;
  padding: calc(0.95rem - 2px) calc(2.1rem - 2px);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--skn-grad-band) border-box;
}

a.skn-sticky-buy::after {
  content: '\2197';
  display: inline-block;
  margin-left: 0.55em;
  font-size: 1.15em;
  line-height: 0;
  transition: transform 0.22s ease;
}

a.skn-sticky-buy:hover,
a.skn-sticky-buy:focus-visible {
  background: var(--skn-grad-band) border-box;
  color: #ffffff;
}

a.skn-sticky-buy:hover::after,
a.skn-sticky-buy:focus-visible::after {
  transform: translate(2px, -2px);
}

@media screen and (max-width: 480px) {
  a.skn-sticky-buy {
    padding: calc(0.9rem - 2px) calc(1.6rem - 2px);
  }
}

/* 7. Footer: gradient top rule and coloured link hover */
body footer.shopify-section-group-footer-group {
  border-top: 0;
  background-image: var(--skn-grad-band);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: top;
}

.shopify-section-group-footer-group a:not(.skn-sticky-buy) {
  transition: color 0.2s ease;
}

.shopify-section-group-footer-group a:not(.skn-sticky-buy):hover {
  color: #c23c5a;
}

/* Inner-page bar: thin gradient underline */
body .skn-page-nav {
  background-image: var(--skn-grad-band);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom;
}

@media (prefers-reduced-motion: reduce) {
  body :is(
    .skn-manifesto__headline,
    .skn-our-why__formula-heading,
    .skn-ingredient-theatre__heading,
    .skn-plain-facts__heading,
    .skn-ritual__heading,
    .skn-faq__heading
  ) em,
  body :is(
    .skn-ingredient-theatre__eyebrow,
    .skn-our-why__eyebrow,
    .skn-formula__eyebrow,
    .skn-ritual__eyebrow,
    .skn-faq__eyebrow
  )::before {
    animation: none;
  }
}
