@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --paper: #ffffff;
  --foreground: #38232b;
  --brand-pink: #b52555;
  --muted-foreground: #75606a;
  --line: color-mix(in srgb, var(--brand-pink) 30%, var(--paper));
  --font-serif: 'Bodoni Moda', serif;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: var(--paper);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a,
summary,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(6.75rem, 13vw, 8.5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-pink) 12%, var(--paper));
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .31em;
  color: #39242b;
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1;
}

.wordmark span,
.brand-name {
  letter-spacing: .12em;
}

.wordmark span {
  margin-right: -.12em;
}

.wordmark img {
  display: block;
  flex: none;
  width: .97em;
  height: .97em;
  object-fit: contain;
}

.film-shell {
  position: relative;
  width: 100%;
  height: clamp(16rem, 44vw, 32rem);
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-pink) 8%, var(--paper));
}

.chapter-film {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.film-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 3.5rem;
  padding-inline: var(--gutter);
}

.film-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .35rem .1rem .35rem .55rem;
  border: 0;
  color: var(--muted-foreground);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.scroll-cue {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted-foreground);
}

.scroll-cue:hover,
.film-toggle:hover,
.film-toggle:focus-visible {
  color: var(--brand-pink);
}

.film-toggle:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
.subscribe-button:focus-visible {
  outline: 1px solid var(--brand-pink);
  outline-offset: 3px;
}

.play-icon,
.pause-icon {
  display: none;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
}

.film-toggle[data-playing="false"] .play-icon,
.film-toggle[data-playing="true"] .pause-icon {
  display: inline-flex;
}

.play-icon::before {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  content: "";
}

.pause-icon::before {
  width: 7px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.invitation-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid color-mix(in srgb, var(--brand-pink) 12%, var(--paper));
  background: var(--paper);
}

.invitation {
  align-self: center;
  width: min(100%, 56rem);
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(1.125rem, 2.5vw, 1.75rem);
  color: var(--brand-pink);
  font-size: .6875rem;
  letter-spacing: .24em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 10.8vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
}

h1 i {
  color: var(--brand-pink);
  font-style: italic;
}

.invitation-note {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 clamp(1.5rem, 3vw, 2rem);
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.625;
}

#subscribe-form {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.signup-row {
  display: flex;
  min-height: 54px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

#subscribe-email {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: .55rem .25rem .5rem .15rem;
  border: 0;
  border-radius: 0;
  color: var(--foreground);
  background: transparent;
  font-size: 1rem;
}

#subscribe-email::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

#subscribe-email:focus {
  outline: none;
}

.signup-row:focus-within {
  border-color: var(--brand-pink);
}

.subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  flex: none;
  min-width: 106px;
  min-height: 44px;
  margin: 1px 0 0 .5rem;
  padding: .5rem .25rem;
  border: 0;
  color: var(--foreground);
  background: transparent;
  cursor: pointer;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease;
}

.subscribe-button:hover:not(:disabled) {
  color: var(--brand-pink);
}

.subscribe-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.consent-copy {
  margin: .65rem 0 0;
  color: #634654;
  font-size: 10px;
  line-height: 1.625;
}

.form-message {
  margin: .55rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
}

.form-error {
  color: var(--brand-pink);
}

.form-success {
  color: var(--foreground);
}

.privacy-details {
  width: min(100%, 28rem);
  margin: .45rem auto 0;
  color: var(--muted-foreground);
  text-align: left;
}

.privacy-details summary {
  width: fit-content;
  min-height: 34px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: .71rem;
  letter-spacing: .015em;
  list-style: none;
}

.privacy-details summary::-webkit-details-marker {
  display: none;
}

.privacy-details summary::after {
  width: 5px;
  height: 5px;
  margin: -3px 0 0 .55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.privacy-details[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.privacy-details p {
  max-width: 420px;
  margin: .25rem 0 .2rem;
  font-size: .72rem;
  line-height: 1.6;
}

.privacy-details a {
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

.privacy-details a:hover {
  color: var(--brand-pink);
}

.page-footer {
  display: flex;
  width: 100%;
  justify-content: center;
}

.instagram-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: color 180ms ease;
}

.instagram-link:hover {
  color: var(--brand-pink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

[hidden] {
  display: none !important;
}

@media (min-width: 960px) {
  .film-shell {
    height: clamp(20rem, min(76svh, 54vw), 56rem);
  }

  .film-controls {
    min-height: 4rem;
  }

  .invitation-stage {
    min-height: 88svh;
  }

  h1 {
    font-size: clamp(4.75rem, 5.7vw, 5.5rem);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: clamp(1rem, 6vw, 1.5rem);
  }

  .brand-header {
    min-height: 6.875rem;
  }

  .film-shell {
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 24rem;
  }

  h1 {
    font-size: clamp(2rem, 10.8vw, 2.75rem);
  }
}

@media (max-width: 360px) {
  .subscribe-button {
    min-width: 90px;
    margin-left: .25rem;
  }

  .film-toggle {
    letter-spacing: .08em;
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Chapter I — approved floating invitation. The film and form retain their
   original assets and behavior; normal flow permits zoom/keyboard scrolling. */
.film-stage {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.brand-header {
  flex: none;
  min-height: 7.5rem;
  background: var(--paper);
}

.film-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  place-items: center;
  height: auto;
  min-height: max(35rem, calc(100svh - 7.5rem));
  max-height: none;
  aspect-ratio: auto;
  padding: 4.5rem 1.5rem;
  isolation: isolate;
}

.invitation-stage {
  position: relative;
  z-index: 2;
  display: block;
  width: min(31.5rem, 100%);
  min-height: 0;
  padding: clamp(1.55rem, 3.2vw, 2.45rem) clamp(1.6rem, 4vw, 3.25rem) 1rem;
  border: 0;
  background: rgb(255 255 255 / 42%);
  box-shadow: 0 18px 60px rgb(47 25 34 / 12%);
  -webkit-backdrop-filter: blur(13px) saturate(.86);
  backdrop-filter: blur(13px) saturate(.86);
  animation: invitation-arrive 700ms ease-out both;
}

.invitation { width: 100%; max-width: none; }
.eyebrow { margin-bottom: 1.05rem; font-size: .65rem; letter-spacing: .25em; }
h1 {
  color: color-mix(in srgb, var(--foreground) 80%, #000);
  font-size: clamp(2.5rem, 4.9vw, 3.65rem);
  font-weight: 500;
  line-height: 1.02;
}
h1 i { color: color-mix(in srgb, var(--brand-pink) 80%, #000); }
.invitation-note { margin: 1.05rem 0 1.15rem; font-size: 1.05rem; }
#subscribe-form { width: 100%; }
.signup-row { min-height: 52px; }
#subscribe-email { min-height: 48px; font-size: 16px; }
.privacy-details { width: 100%; margin-top: .35rem; }
.privacy-details summary { min-height: 36px; }
.page-footer { margin-top: .05rem; }
.instagram-link { width: 44px; height: 44px; }

.film-controls {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: .8rem;
  display: block;
  min-height: 44px;
  padding: 0;
}

.film-toggle {
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid rgb(255 250 248 / 58%);
  color: #fffaf8;
  background: rgb(56 35 43 / 35%);
  text-shadow: 0 1px 8px rgb(32 18 24 / 25%);
}

.film-toggle:hover,
.film-toggle:focus-visible { color: #fff; }
.film-toggle:focus-visible { outline-color: #fffaf8; }

@keyframes invitation-arrive {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 640px) {
  .brand-header { min-height: 6.875rem; }
  .film-shell {
    height: auto;
    min-height: max(35rem, calc(100svh - 6.875rem));
    max-height: none;
    aspect-ratio: auto;
    padding-inline: 1rem;
  }
  .invitation-stage {
    width: min(100%, 27rem);
    padding: 1.45rem 1.35rem .65rem;
    background: rgb(255 255 255 / 46%);
    -webkit-backdrop-filter: blur(11px) saturate(.86);
    backdrop-filter: blur(11px) saturate(.86);
  }
  .eyebrow { margin-bottom: .72rem; font-size: .6rem; }
  h1 { font-size: clamp(2.05rem, 9vw, 2.75rem); }
  .invitation-note { margin: .78rem 0 .85rem; font-size: 1rem; }
  .signup-row { min-height: 50px; }
  .subscribe-button { min-width: 92px; margin-left: .25rem; font-size: .63rem; }
  .consent-copy { margin-top: .5rem; font-size: 9px; }
  .privacy-details summary { min-height: 32px; }
  .page-footer { margin-top: 0; }
  .film-controls { right: .65rem; bottom: .55rem; }
  .film-toggle { font-size: 9px; }
}

@media (max-width: 360px) {
  .invitation-stage { padding-inline: 1.05rem; }
  h1 { font-size: 1.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-stage { animation: none; }
}
