/* ============================================================
   WEDDING-12 | main.css
   "CINEMATIC" — A Love Story in Acts
   Full-bleed scrollytelling, film-premiere metaphor.
   Global Variables, Reset & Typography
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Space+Grotesk:wght@300;400;500;600&display=swap");

:root {
  /* ── Act palette — each "act" of the film has its own hue ── */
  --act-1: #0d1229; /* I   — Now Showing (midnight indigo) */
  --act-2: #2a0f18; /* II  — The Leads (deep burgundy) */
  --act-3: #0f1f19; /* IV  — The Event (forest emerald-black) */
  --act-4: #0a0a0c; /* V   — Behind the Scenes (cinema black) */
  --act-5: #241407; /* VI  — Intermission (amber-brown) */

  --accent-1: #e8c988; /* champagne gold */
  --accent-2: #e3a7ac; /* blush rose */
  --accent-3: #a8c9a0; /* sage */
  --accent-4: #f2ede4; /* film-light warm white */
  --accent-5: #e0a04a; /* intermission amber */

  /* ── Universal text (consistent across every act) ── */
  --text-100: #f6f3ee;
  --text-70: rgba(246, 243, 238, 0.72);
  --text-45: rgba(246, 243, 238, 0.45);
  --text-25: rgba(246, 243, 238, 0.25);

  --hairline: rgba(246, 243, 238, 0.16);
  --hairline-strong: rgba(246, 243, 238, 0.32);

  /* ── Typography ── */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 5rem;
  --text-6xl: 7rem;

  /* ── Spacing ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;
  --duration-xslow: 1100ms;

  --z-rail: 100;
  --z-player: 110;
  --z-gate: 300;
  --z-lightbox: 320;
  --z-toast: 400;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-70);
  background: var(--act-1);
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-100);
}

p {
  font-size: var(--text-base);
  color: var(--text-45);
}

.italic {
  font-style: italic;
}

/* ── Scene label — "ACT I", "ACT II" ... ── */
.scene-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-45);
}
.scene-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.scene-title {
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  font-style: italic;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.scene-desc {
  max-width: 480px;
  font-size: var(--text-base);
  color: var(--text-45);
  line-height: 1.8;
}

/* ── Buttons ── */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all var(--duration-base) var(--ease-out-expo);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-current, var(--accent-1));
  color: #14100a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-100);
  border: 1px solid var(--hairline-strong);
}
.btn-outline:hover {
  border-color: var(--accent-current, var(--accent-1));
  color: var(--accent-current, var(--accent-1));
  transform: translateY(-2px);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--space-8);
}

/* ── Form Controls — underline style, no glass cards ── */
.form-group {
  margin-bottom: var(--space-6);
}
.form-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-45);
  margin-bottom: var(--space-2);
}
.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 10px 2px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-100);
  outline: none;
  transition: border-color var(--duration-fast);
  resize: vertical;
}
.form-control::placeholder {
  color: var(--text-25);
}
.form-control:focus {
  border-color: var(--accent-current, var(--accent-1));
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-70);
}
.radio-label input[type="radio"] {
  display: none;
}
.radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.radio-custom::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-current, var(--accent-1));
  opacity: 0;
  transform: scale(0);
  transition: all var(--duration-fast) var(--ease-out-expo);
}
.radio-label input:checked ~ .radio-custom {
  border-color: var(--accent-current, var(--accent-1));
}
.radio-label input:checked ~ .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-5);
  }
}
