/* Centred head of a pack page: the .aurora, .grain, .container, .intro, .eyebrow and h1.title rules of the Unisson
   « Tarifs » model, selectors moved into the shadow tree, colours read from the --pack-* tokens. The aurora and the
   grain are fixed behind the page (z-index -1 inside the stacking context of bythium-pack-page), as on the docs
   layout; this page keeps the model's .85 opacity. The masks only read alpha, so any opaque token stands in for the
   model's black. Gradients blend in sRGB, as the model's hex colours do. Motion only under no-preference. */
:host {
  display: block;
  color: var(--pack-ink);
  font:
    16px / 1.6 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-feature-settings: normal;
  letter-spacing: normal;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
}
:host([hidden]) {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
h1,
p {
  margin: 0;
}

/* Aurora and dotted grain: fixed behind the whole page. */
.aurora,
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.aurora {
  overflow: hidden;
  opacity: 0.85;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.aurora i:nth-child(1) {
  inline-size: 70vmax;
  block-size: 70vmax;
  inset-inline-start: -20vmax;
  inset-block-start: -30vmax;
  background: radial-gradient(closest-side, var(--pack-a1), transparent 70%);
}
.aurora i:nth-child(2) {
  inline-size: 80vmax;
  block-size: 80vmax;
  inset-inline-end: -30vmax;
  inset-block-start: -10vmax;
  background: radial-gradient(closest-side, var(--pack-a2), transparent 70%);
}
.aurora i:nth-child(3) {
  inline-size: 70vmax;
  block-size: 70vmax;
  inset-inline-start: 20vmax;
  inset-block-end: -45vmax;
  background: radial-gradient(closest-side, var(--pack-a3), transparent 70%);
}
@keyframes drift1 {
  to {
    transform: translate3d(8vmax, 6vmax, 0) scale(1.1);
  }
}
@keyframes drift2 {
  to {
    transform: translate3d(-9vmax, 8vmax, 0) scale(0.92);
  }
}
.grain {
  opacity: 0.5;
  background-image: radial-gradient(var(--pack-line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, var(--pack-ink), transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 20%, var(--pack-ink), transparent 70%);
}

/* The centred head. */
[part="root"] {
  inline-size: min(1200px, 100% - 32px);
  margin-inline: auto;
  padding-block-start: 56px;
  text-align: center;
}
[part="eyebrow"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--pack-line2);
  border-radius: 99px;
  background: var(--pack-panel2);
  font:
    600 12px ui-monospace,
    "JetBrains Mono",
    Menlo,
    Consolas,
    monospace;
  color: var(--pack-mut);
}
[part="dot"] {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--pack-c3);
  box-shadow: 0 0 10px var(--pack-c3);
}
[part="heading"] {
  margin: 16px auto 0;
  inline-size: fit-content;
  max-inline-size: 100%;
  font:
    800 clamp(44px, 6.6vw, 88px) / 1.02 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: -0.05em;
  padding-block-end: 0.08em;
  background: linear-gradient(in srgb 100deg, var(--pack-wm1) 5%, var(--pack-wm2) 45%, var(--pack-wm3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[part="lead"] {
  margin: 14px auto 0;
  max-inline-size: 60ch;
  color: var(--pack-mut);
  font-size: 18px;
}

@media (max-width: 700px) {
  [part="root"] {
    padding-block-start: 40px;
  }
  [part="lead"] {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) {
    animation: drift1 26s ease-in-out infinite alternate;
  }
  .aurora i:nth-child(2) {
    animation: drift2 32s ease-in-out infinite alternate;
  }
  .aurora i:nth-child(3) {
    animation: drift1 38s ease-in-out infinite alternate-reverse;
  }
}
/* Forced colours: no decorative light; the heading is drawn in plain text colour. */
@media (forced-colors: active) {
  .aurora,
  .grain {
    display: none;
  }
  [part="heading"] {
    background: none;
    color: CanvasText;
  }
}
