/* Miracle Alley: coming-soon page. Hand-written CSS, no frameworks, no scripts. */

@font-face { font-family: "Petal Quill"; src: url("../fonts/petal-quill.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlett"; src: url("../fonts/barlett.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Seraphine"; src: url("../fonts/seraphine.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Seraphine"; src: url("../fonts/seraphine-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --night: #0b0e1c;
  --ink: #10142a;
  --navy: #1a2142;
  --gold: #e2b260;
  --glow: #ffd58a;
  --cream: #f3e8ce;
  --soft: #b9ad94;
  --serif: "Seraphine", "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
  --caps: "Barlett", "Seraphine", Georgia, serif;
  --script: "Petal Quill", "Seraphine", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; position: relative; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center;
  color: var(--cream); font-family: var(--serif); font-size: 1.125rem; line-height: 1.75; letter-spacing: .012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 60rem 34rem at 50% 15rem, rgba(255, 190, 96, .17), transparent 70%),
    radial-gradient(ellipse 90rem 30rem at 50% 100%, rgba(226, 150, 70, .10), transparent 70%),
    linear-gradient(180deg, #080a16 0%, var(--ink) 38%, var(--navy) 100%);
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--night); }

/* ---------- sky ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 46rem; pointer-events: none; }
.moon {
  position: absolute; top: clamp(7.5rem, 13vw, 10rem); right: clamp(1rem, 9vw, 9rem); width: clamp(4.2rem, 9.5vw, 8rem);
  opacity: .9; transform: rotate(-8deg); filter: drop-shadow(0 0 26px rgba(243, 232, 206, .32));
}
.star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--cream);
  box-shadow: 0 0 6px 1px rgba(243, 232, 206, .55); opacity: .7; animation: twinkle 5s ease-in-out infinite;
}
.s1 { top: 11rem; left: 9%; } .s2 { top: 17rem; left: 21%; animation-delay: -1.4s; width: 2px; height: 2px; }
.s3 { top: 23rem; left: 6%; animation-delay: -3s; } .s4 { top: 13rem; left: 33%; animation-delay: -2.2s; width: 2px; height: 2px; }
.s5 { top: 21rem; right: 7%; animation-delay: -.8s; } .s6 { top: 28rem; right: 19%; animation-delay: -3.6s; width: 2px; height: 2px; }
.s7 { top: 31rem; left: 15%; animation-delay: -4.2s; width: 2px; height: 2px; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* ---------- string lights ---------- */
.lights { position: absolute; top: 0; left: 0; right: 0; height: clamp(5rem, 11vw, 8.5rem); pointer-events: none; z-index: 2; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire path { fill: none; stroke: #3a3327; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lights span {
  position: absolute; left: var(--x); top: var(--y); width: .62rem; height: .86rem; margin: 0 0 0 -.31rem;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 50% 38%, #fffaf0 0%, var(--glow) 42%, #f0a94e 100%);
  box-shadow: 0 0 10px 2px rgba(255, 205, 120, .85), 0 0 34px 12px rgba(255, 180, 90, .28);
  animation: bulb 6s ease-in-out infinite;
}
.lights span::before { content: ""; position: absolute; left: 50%; top: -.22rem; width: .3rem; height: .26rem; margin-left: -.15rem; background: #2b261d; border-radius: 1px; }
.lights span:nth-of-type(3n) { animation-delay: -2s; }
.lights span:nth-of-type(3n+1) { animation-delay: -4.1s; }
.lights span:nth-of-type(5n) { animation-duration: 7.5s; }
@keyframes bulb { 0%, 100% { opacity: 1; } 46% { opacity: .78; } 52% { opacity: .95; } 60% { opacity: .82; } }

/* ---------- the alley ---------- */
.alley {
  position: relative; z-index: 3; width: 100%; max-width: 46rem; padding: 0 1.6rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; flex: 1 0 auto;
}
.lantern { position: relative; margin-top: clamp(1.4rem, 3.6vw, 2.8rem); padding-top: clamp(1.2rem, 3vw, 2.2rem); }
.lantern::before { content: ""; position: absolute; left: 50%; top: -3rem; bottom: calc(100% - clamp(1.2rem, 3vw, 2.2rem) - 4px); width: 1.5px; background: #3a3327; }
.lantern::after {
  content: ""; position: absolute; left: 50%; top: 56%; width: 30rem; height: 30rem; max-width: 130vw; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 196, 104, .34) 0%, rgba(255, 180, 90, .12) 34%, transparent 66%);
  animation: lamp 7s ease-in-out infinite; z-index: -1;
}
.lantern img { width: clamp(4.6rem, 9vw, 6.4rem); filter: drop-shadow(0 0 16px rgba(255, 190, 96, .6)); }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }

.label, .soon, .towns, .foot { font-family: var(--caps); text-transform: uppercase; }
.label { margin-top: clamp(1.6rem, 3.5vw, 2.4rem); font-size: .625rem; letter-spacing: .34em; margin-right: -.34em; color: var(--soft); }
.brand {
  margin: .5rem 0 0; font-family: var(--script); font-weight: 400; line-height: 1.12;
  font-size: clamp(2.9rem, 15.5vw, 7.2rem); letter-spacing: .005em; white-space: nowrap; color: var(--cream);
  text-shadow: 0 0 22px rgba(255, 200, 120, .42), 0 0 70px rgba(255, 170, 80, .26);
}
.divider { width: min(22rem, 78%); margin: clamp(.9rem, 2vw, 1.4rem) auto 0; opacity: .9; }
.soon { margin-top: clamp(1.1rem, 2.4vw, 1.6rem); font-size: clamp(.8rem, 1.5vw, .95rem); letter-spacing: .42em; margin-right: -.42em; color: var(--gold); }

.lede { margin-top: clamp(2.2rem, 5vw, 3.4rem); font-style: italic; font-size: clamp(1.45rem, 3.1vw, 2.1rem); line-height: 1.3; color: var(--cream); max-width: 17em; }
.copy { margin-top: 1.5rem; max-width: 33em; color: #ddd2ba; }
.copy + .copy { margin-top: 1.1rem; }

.towns { margin-top: clamp(2.4rem, 5vw, 3.4rem); font-size: .7rem; letter-spacing: .34em; margin-right: -.34em; color: var(--gold); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9em 1.3em; }
.towns b { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); opacity: .8; margin-right: .34em; }

/* ---------- figures on the cobbles ---------- */
.street {
  position: relative; z-index: 1; width: 100%; max-width: 78rem; height: 0; pointer-events: none;
}
.fig { position: absolute; bottom: 0; height: clamp(11rem, 23vw, 19rem); width: auto; filter: drop-shadow(0 0 30px rgba(255, 190, 96, .16)); }
.fig--host { left: clamp(.5rem, 3vw, 3rem); }
.fig--dancers { right: clamp(.5rem, 2vw, 2rem); }

.foot {
  position: relative; z-index: 3; width: 100%; margin-top: clamp(2.6rem, 6vw, 4.2rem); padding: 1.5rem 1.6rem 1.7rem; text-align: center;
  font-size: .5625rem; letter-spacing: .3em; color: var(--soft);
  border-top: 1px solid rgba(226, 178, 96, .28); background: linear-gradient(180deg, rgba(8, 10, 22, .0), rgba(8, 10, 22, .55));
}
.foot span { color: var(--gold); margin: 0 .5em; }
.foot a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(226, 178, 96, .5); padding-bottom: .2em; text-transform: none; font-family: var(--serif); font-size: .95rem; letter-spacing: .03em; }
.foot a:hover { color: var(--glow); }
.foot .contact { margin-bottom: 1rem; font-family: var(--serif); text-transform: none; font-size: .95rem; letter-spacing: .02em; font-style: italic; color: #ddd2ba; }

/* ---------- small screens: the figures step into the page ---------- */
@media (max-width: 1200px) {
  .street { height: auto; display: flex; justify-content: center; align-items: flex-end; gap: clamp(1.5rem, 9vw, 4rem); margin-top: 2.6rem; padding: 0 1rem; }
  .fig { position: static; height: clamp(9rem, 34vw, 14rem); }
  .foot { margin-top: 0; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .lights span:nth-of-type(even) { display: none; }
  .moon { top: 6.2rem; right: 1.1rem; }
  .towns { font-size: .6rem; letter-spacing: .2em; margin-right: -.2em; gap: .9em .8em; }
  .foot span { display: block; height: .5em; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .star, .lights span, .lantern::after { animation: none; }
}
