/* Miracle Alley: coming-soon page. Hand-written CSS, no frameworks, no scripts. Photographs only. */

@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: #0b0d18;   /* the sky between the roofs */
  --ink: #12131f;
  --gold: #e7b96a;    /* string-light gold */
  --glow: #ffd893;
  --cream: #f4ead4;
  --soft: #b7ab93;
  --serif: "Seraphine", "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
  --caps: "Barlett", "Seraphine", Georgia, serif;
  --script: "Petal Quill", "Seraphine", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; color: var(--cream); background: var(--night);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.75; letter-spacing: .012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p, figure { margin: 0; }
a { color: var(--glow); text-decoration: none; border-bottom: 1px solid rgba(231, 185, 106, .55); transition: color .25s, border-color .25s; }
a:hover, a:focus-visible { color: #fff; border-color: #fff; }
::selection { background: var(--gold); color: var(--night); }

/* ---------- small tracked capitals ---------- */
.label, .soon, .towns {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .34em; margin-right: -.34em;
  font-size: .78rem; line-height: 1.6; color: var(--gold);
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 5rem 1.5rem 6.5rem; text-align: center; background: var(--night);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 52% at 50% 48%, rgba(11, 13, 24, .78) 0%, rgba(11, 13, 24, .52) 55%, rgba(11, 13, 24, .28) 100%),
    linear-gradient(180deg, rgba(11, 13, 24, .55) 0%, rgba(11, 13, 24, 0) 26%, rgba(11, 13, 24, 0) 62%, var(--night) 100%);
}
.hero__text { max-width: 46rem; display: flex; flex-direction: column; align-items: center; }
.brand {
  margin: 1.1rem 0 .2rem; font-family: var(--script); font-weight: 400; line-height: 1.02;
  font-size: clamp(3.9rem, 13.5vw, 10.5rem); color: var(--cream); letter-spacing: 0;
  text-shadow: 0 0 34px rgba(255, 205, 130, .38), 0 2px 18px rgba(0, 0, 0, .7);
}
.hero .soon { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.5rem; font-size: .92rem; color: var(--glow); }
.hero .soon::before, .hero .soon::after { content: ""; width: clamp(2rem, 8vw, 4.5rem); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero .soon::after { transform: scaleX(-1); margin-left: -.34em; }
.lede { margin-top: 1.7rem; font-style: italic; font-size: clamp(1.3rem, 2.7vw, 1.8rem); line-height: 1.4; text-shadow: 0 1px 14px rgba(0, 0, 0, .8); }
.towns { position: absolute; left: 0; right: 0; bottom: 2.2rem; margin: 0; color: var(--cream); opacity: .85; font-size: .72rem; }
.towns b { display: inline-block; width: 4px; height: 4px; margin: 0 .9em .22em .56em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 2px rgba(255, 205, 120, .7); }

/* ---------- the story ---------- */
.story { max-width: 43rem; margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) 1.6rem; text-align: center; font-size: clamp(1.2rem, 2vw, 1.42rem); line-height: 1.8; }
.story::before { content: ""; display: block; width: 1px; height: 4.5rem; margin: 0 auto 2.6rem; background: linear-gradient(180deg, transparent, var(--gold)); }

/* ---------- full-width photo bands ---------- */
.band { position: relative; height: min(82vh, 60vw); min-height: 26rem; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 24, 0) 20%, rgba(11, 13, 24, .1) 45%, rgba(11, 13, 24, .86) 100%); }
.band figcaption {
  position: relative; z-index: 1; padding: 0 1.5rem clamp(2.4rem, 6vw, 4.6rem); text-align: center;
  font-style: italic; font-size: clamp(1.45rem, 3.4vw, 2.5rem); line-height: 1.32; text-shadow: 0 2px 20px rgba(0, 0, 0, .85);
}
.band--table { align-items: center; }
.band--table img { object-position: 50% 50%; }
.band--table::after { background: linear-gradient(180deg, var(--night) 0%, rgba(11, 13, 24, .42) 24%, rgba(11, 13, 24, .42) 76%, var(--night) 100%); }
.band--table figcaption { padding-bottom: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.6vw, 1.4rem); max-width: 84rem; margin: 0 auto; padding: clamp(.6rem, 1.6vw, 1.4rem) clamp(.6rem, 3vw, 2.5rem) clamp(3rem, 7vw, 6rem); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(231, 185, 106, .16), 0 24px 60px -30px #000; }
.gallery img:nth-child(2) { margin-top: clamp(1.4rem, 4vw, 3.6rem); }

/* ---------- contact ---------- */
.contact { max-width: 40rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) 1.6rem clamp(4rem, 8vw, 6.5rem); text-align: center; }
.contact .soon { margin-bottom: 1.4rem; }
.contact a { white-space: nowrap; }

/* ---------- footer ---------- */
.foot { padding: 2rem 1.5rem 2.6rem; text-align: center; border-top: 1px solid rgba(231, 185, 106, .16); }
.foot p { font-family: var(--caps); text-transform: uppercase; letter-spacing: .24em; font-size: .64rem; line-height: 2; color: var(--soft); }
.foot span { margin: 0 .5em; color: var(--gold); }
.foot a { color: inherit; border-color: rgba(183, 171, 147, .4); }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1.5rem; text-align: center; }

@media (max-width: 640px) {
  body { font-size: 1.09rem; }
  .label, .soon { letter-spacing: .26em; margin-right: -.26em; font-size: .7rem; }
  .towns { letter-spacing: .2em; margin-right: -.2em; font-size: .62rem; }
  .towns b { margin: 0 .7em .22em .5em; }
  .hero { padding-bottom: 5.5rem; }
  .hero__photo { object-position: 50% 30%; }
  .band { height: 78vh; min-height: 24rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(2) { margin-top: 0; }
  .gallery img:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 5 / 4; object-position: 50% 30%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: .15s; }
  .hero__text > :nth-child(3) { animation-delay: .35s; }
  .hero__text > :nth-child(4) { animation-delay: .5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
