:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --paper-deep: #f2e9dc;
  --sage: #8ba79d;
  --sage-light: #e6edea;
  --deep-green: #143d34;
  --emerald: #0e3029;
  --olive: #465037;
  --gold: #b58c49;
  --gold-light: #dfc78d;
  --gold-dark: #8c672d;
  --ink: #1c352c;
  --muted: #647369;
  --shadow: 0 24px 75px rgba(18, 48, 40, 0.25);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --script: "Italianno", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: #183b34;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(210, 184, 120, 0.17), transparent 38%),
    #183b34;
  font-family: var(--serif);
  overflow-x: clip;
}

body.invitation-locked {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noscript-message {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 35vh 2rem 2rem;
  color: var(--paper);
  text-align: center;
  font-size: 1.15rem;
}

/* Chrome's CLI has a 500px minimum layout width on Windows. This local-only
   class lets the QA preview reproduce the exact requested phone width. */
.qa-preview .wedding-invitation,
.qa-preview .opening-stage {
  width: var(--qa-preview-width);
  margin-left: 0;
  margin-right: auto;
}

.qa-preview .opening-stage {
  right: auto;
}

.qa-preview .invitation-dialog {
  width: calc(var(--qa-preview-width) - 1.2rem);
  margin-left: 0.6rem;
  margin-right: auto;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
