/* ==========================================================================
   Some Velvet Morning — Coming Soon
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --terracotta: #b3491e;
  --terracotta-dark: #9c3d17;
  --cream: #f6ede2;
  --ink: #2a1a10;
  --max-width: 1320px;
  --gap: clamp(2.5rem, 6vw, 5rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--cream);
  background-color: var(--terracotta);
  /* Grain overlay: layered SVG turbulence noise, tiled, blended over a subtle
     radial gradient so the terracotta reads as textured paper/linen rather
     than a flat fill. Pure CSS — no texture image to download. */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.32 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 90% at 50% 0%, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 90px 90px, 100% 100%;
}

a {
  color: var(--cream);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #fff;
}

sup {
  font-size: 0.65em;
}

/* ---- layout shell ---- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 2rem) 0;
}

section {
  margin-top: var(--gap);
}

/* ---- header / intro ---- */

.intro {
  text-align: center;
}

.logo {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.intro-line {
  max-width: 40em;
  margin: 0 auto;
  font-size: 1.05em;
}

/* ---- hero image ---- */

.hero-image {
  display: block;
  margin-top: var(--gap);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ---- brand text ---- */

.brand-text {
  text-align: center;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.brand-text p {
  margin: 0;
}

/* ---- scattered scene: images + booking text interleaved ---- */

.scatter-scene {
  position: relative;
  height: clamp(950px, 92vw, 1300px);
  margin-top: var(--gap);
  margin-bottom: 4rem;
}

.image-grid picture {
  position: absolute;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
  will-change: transform;
}

/* Asymmetric cluster: three images bunched top-left (clear gaps, no overlap), one isolated lower-right */
.image-grid picture:nth-child(1) {
  top: 0%;
  left: 2%;
  width: clamp(190px, 25vw, 330px);
  z-index: 3;
  opacity: 0;
  animation: pop-in 16s ease-in-out infinite;
}
.image-grid picture:nth-child(2) {
  top: 6%;
  left: 33%;
  width: clamp(135px, 17vw, 220px);
  z-index: 2;
  opacity: 0;
  animation: pop-in 16s ease-in-out infinite -4s;
}
.image-grid picture:nth-child(3) {
  top: 43%;
  left: 4%;
  width: clamp(110px, 14vw, 175px);
  z-index: 1;
  opacity: 0;
  animation: pop-in 16s ease-in-out infinite -8s;
}
.image-grid picture:nth-child(4) {
  top: 61%;
  left: 61%;
  width: clamp(175px, 22vw, 290px);
  z-index: 2;
  opacity: 0;
  animation: pop-in 16s ease-in-out infinite -12s;
}

/* Each image is visible for roughly a third of the cycle, staggered 4s apart,
   so at most one or two are ever on screen at once. */
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.82); }
  6%   { opacity: 1; transform: scale(1); }
  32%  { opacity: 1; transform: scale(1); }
  40%  { opacity: 0; transform: scale(0.82); }
  100% { opacity: 0; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .image-grid picture {
    animation: none;
    opacity: 1;
  }
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- booking (sits in the open space of the scattered scene) ---- */

.booking {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  width: min(80%, 30em);
}

.booking-announcement {
  font-weight: 700;
  font-size: 1.15em;
  margin: 0 0 1.5rem;
}

#booking-embed:empty {
  display: none;
}

.signup-line {
  margin: 0;
}

.signup-link {
  text-decoration: underline;
}

/* ---- MaxMara block ---- */

.maxmara-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
}

.maxmara-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.4rem, 1.5vw, 0.85rem);
}

.maxmara-images picture {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.maxmara-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maxmara-text p {
  margin: 0 0 1.5rem;
}

.maxmara-text p:last-child {
  margin-bottom: 0;
}

/* ---- footer ---- */

.site-footer {
  margin-top: calc(var(--gap) * 1.4);
  padding: 1.75rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(246, 237, 226, 0.75);
}

.site-footer a {
  color: inherit;
}

.footer-sep {
  margin: 0 0.6em;
  opacity: 0.6;
}

/* ---- responsive ---- */

@media (max-width: 640px) {
  .scatter-scene {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .image-grid {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    order: 1;
  }

  .image-grid picture {
    position: static;
    width: 100%;
    animation: none;
    opacity: 1;
    box-shadow: none;
  }

  .booking {
    position: static;
    transform: none;
    width: 100%;
    order: 2;
  }

  .maxmara-block {
    grid-template-columns: 1fr;
  }

  .maxmara-text {
    text-align: center;
  }
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
