@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Bricolage, system-ui, sans-serif;
  --encre: #2a2030;
  --creme: #fff1d6;
  background: #241c2d;
  color: var(--creme);
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(1.6rem, 4vh, 3.5rem) 1rem;
  overflow: hidden;
  text-align: center;
  background-image: radial-gradient(ellipse at 50% 38%, #563b50 0, #322537 36%, transparent 68%),
                    radial-gradient(#bda4b42c 1px, transparent 1px);
  background-size: auto, 17px 17px;
}
.illustration {
  display: grid;
  place-items: center;
  position: relative;
  width: min(94vw, 760px);
  height: clamp(239px, min(47vw, 53svh), 405px);
  isolation: isolate;
  user-select: none;
}
.paquet {
  position: relative;
  width: clamp(119px, min(26vw, 34svh), 213px);
  aspect-ratio: .7;
  filter: drop-shadow(0 17px 12px #140d1e75);
  font-weight: 800;
}
.carte {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--encre);
  border-radius: 9%;
  color: var(--encre);
  box-shadow: inset 0 0 0 3px #fff0d1, 3px 5px 0 #211828;
  overflow: hidden;
}
.carte::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid currentColor;
  border-radius: 6%;
  opacity: .72;
}
.secondaire { padding: 10%; justify-content: space-between; transform-origin: 50% 82%; }
.secondaire span { align-self: start; font-size: clamp(1.35rem, 3.6vw, 2.3rem); line-height: .85; letter-spacing: -.08em; }
.secondaire span:last-child { align-self: end; transform: rotate(180deg); }
.secondaire b { font-size: clamp(3.6rem, 8.6vw, 6.2rem); line-height: .85; letter-spacing: -.1em; }
.gauche { background: #caa9e5; transform: translate(-42%, 5%) rotate(-24deg); }
.droite { background: #f59780; transform: translate(42%, 5%) rotate(23deg); }
.vedette {
  background: radial-gradient(#a27d582a .8px, transparent 1px) 0 0 / 5px 5px, #ffe1a2;
  transform: translateY(-4%) rotate(-4deg);
  align-items: center;
  justify-content: center;
}
.vedette img { height: 51%; width: 82%; object-fit: contain; z-index: 1; }
.vedette strong { font-size: clamp(1.73rem, min(5.8vw, 7.7svh), 3.4rem); letter-spacing: -.085em; line-height: .85; transform: rotate(-4deg); }
.vedette strong:last-of-type { color: #a43e37; }
.coin { position: absolute; line-height: 1; font-size: clamp(.72rem, 2vw, 1.1rem); }
.coin.haut { top: 9%; left: 9%; }
.coin.bas { bottom: 9%; right: 9%; }
.orbite { position: absolute; z-index: -1; width: 82%; height: 59%; border: 1px dashed #af8d9f68; border-radius: 50%; transform: rotate(-13deg); }
.orbite.seconde { width: 76%; height: 68%; border-style: solid; opacity: .36; transform: rotate(18deg); }
.etoile { position: absolute; color: #f7c977; line-height: 1; font-family: Georgia, serif; }
.etoile.a { left: 8%; top: 28%; font-size: clamp(1.6rem, 5vw, 3.4rem); }
.etoile.b { right: 7%; bottom: 27%; color: #d4b7ec; font-size: clamp(1.5rem, 4vw, 2.8rem); }
.etoile.c { top: 6%; right: 22%; font-size: 1.5rem; }
.annonce { max-width: 41rem; margin-top: clamp(.4rem, 2vh, 1.5rem); }
h1 { margin: 0; font-size: clamp(2.8rem, 7.5vw, 5.3rem); letter-spacing: -.075em; line-height: .96; font-weight: 800; }
.point { color: #fcac8b; }
p { margin: .95rem auto 0; max-width: 34em; color: #e2d0de; font: 450 clamp(1rem, 1.8vw, 1.17rem)/1.45 Bricolage, system-ui, sans-serif; }
p strong { font-weight: 650; }
.lecteur { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .gauche { animation: etaler-gauche .8s ease-out both; }
  .droite { animation: etaler-droite .8s ease-out both; }
  @keyframes etaler-gauche { from { transform: translate(-8%, 1%) rotate(-7deg); } }
  @keyframes etaler-droite { from { transform: translate(8%, 1%) rotate(5deg); } }
}
@media (max-height: 470px) and (min-width: 600px) {
  main { grid-template-columns: 1fr 1fr; align-items: center; gap: .5rem; }
  .illustration { width: 100%; height: 76svh; }
  .annonce { margin: 0; }
}
