/*
 * DimeSpeak coming-soon page. One stylesheet, no build step, no CDN.
 *
 * Everything visual is a custom property in :root. The palette and type follow
 * the main DimeSpeak project ("Pastel Satin Soirée"): cream, ink, berry and gold,
 * framed by the satin border cropped from their invitation.
 *
 * Fonts are self-hosted in ./fonts (Playfair Display + Montserrat, from Fontsource).
 */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf4ee;
  --surface: #fffcf9;
  --text: #1e2430;
  --muted: #5a5560;
  --ink: #17110f;
  --berry: #8c1d3a;
  --gold: #b07a35;
  --logo-gold: #dcab68;
  --line: #ebdccd;

  --satin: clamp(1.75rem, 9vw, 7.5rem);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

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

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 30%, var(--surface) 0%, transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--satin);
}

/* The satin border from the invitation, down both edges. */
.satin {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--satin);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 0 2rem rgb(140 29 58 / 0.12);
}
.satin-left {
  left: 0;
  background-position: 70% center;
  background-image: url("img/satin-left.webp");
}
.satin-right {
  right: 0;
  background-position: 30% center;
  background-image: url("img/satin-right.webp");
}

.soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 7vh, 5rem) 1.25rem 2rem;
  max-width: 46rem;
  margin-inline: auto;
}

.monogram {
  width: clamp(6.5rem, 14vw, 9rem);
  height: auto;
  filter: drop-shadow(0 0.5rem 1.25rem rgb(176 122 53 / 0.3));
}

.wordmark {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark .gold {
  color: var(--gold);
}

.eyebrow {
  margin: clamp(1.75rem, 4vh, 2.75rem) 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--berry);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, min(8.5vw, 11vh), 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--berry);
}

/* Sparkle divider: a gold rule with a diamond at its centre. */
.sparkle {
  position: relative;
  width: min(14rem, 60%);
  height: 1px;
  margin: clamp(1.25rem, 3vh, 2rem) auto;
  background: linear-gradient(90deg, transparent, var(--logo-gold), transparent);
}
.sparkle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--logo-gold);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px var(--bg);
}

.lede {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--muted);
  text-wrap: pretty;
}

.details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin: 2rem 0 0;
}
.details div {
  display: grid;
  gap: 0.15rem;
}
.details dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.details dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.25rem 0 0;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
}
.chip .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--berry);
}

.site-footer {
  padding: 1.25rem 1rem 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}

/* One gentle entrance, staggered. */
@media (prefers-reduced-motion: no-preference) {
  .soon > * {
    animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .soon > :nth-child(2) { animation-delay: 0.1s; }
  .soon > :nth-child(3) { animation-delay: 0.3s; }
  .soon > :nth-child(4) { animation-delay: 0.45s; }
  .soon > :nth-child(5) { animation-delay: 0.6s; }
  .soon > :nth-child(6) { animation-delay: 0.7s; }
  .soon > :nth-child(7) { animation-delay: 0.8s; }
  .soon > :nth-child(8) { animation-delay: 0.9s; }

  .chip .dot {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
