/* Christian & Misty — pastel, minimal, elegant */

:root {
  --bg: #faf9f7;
  --surface: #fff;
  --text: #2c2a28;
  --text-muted: #6b6560;
  --accent: #eecc46;
  --accent-soft: #e8ddd9;
  --pastel-pink: #f5e6e4;
  --pastel-sage: #e2e8e0;
  --pastel-blush: #f0e8e6;
  --border: #e8e4e0;
  --shadow: 0 4px 20px rgba(44, 42, 40, 0.06);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
}

img {
  filter: grayscale(100%);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

/* ----- Home ----- */
.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.video-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-backdrop .background-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--pastel-blush) 0%, var(--pastel-sage) 100%);
}

.video-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250,249,247,0.75) 0%, rgba(250,249,247,0.9) 100%);
}

.home-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem);
}
.home-content-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.home-content-top h1.title {
  color: #fff;
}

.monogram {
  max-width: 140px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: none;
}

.monogram-text {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.home .title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0;
  color: var(--text);
}

.home .date {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0;
}

.code-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.code-form label {
  color: #fff;
}

.code-form input {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.5rem;
}

.code-form input::placeholder {
  color: var(--text-muted);
}

.code-form button {
  font: inherit;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.code-form button:hover {
  background: #b89895;
}

.code-form button:active {
  transform: scale(0.98);
}

.form-error {
  margin: 0;
  font-size: 0.9rem;
  color: #b85450;
}

/* ----- Program & RSVP pages ----- */
.program-page,
.rsvp-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.program-header {
  text-align: center;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.program-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.wedding-date {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.block {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.block h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--text);
}

.venue-name {
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.venue-address {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.25rem;
}

.program-list li:last-child {
  border-bottom: none;
}

.program-time {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.program-title {
  font-weight: 400;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.guest-info {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
}

.btn-primary:hover {
  background: #b89895;
}

.rsvp-status {
  margin: 0;
  font-size: 0.95rem;
}

.instagram-embed {
  min-height: 120px;
}

.instagram-embed iframe {
  max-width: 100%;
}

.placeholder-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.logout-wrap {
  text-align: center;
  margin-top: 2rem;
}

.link-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.link-muted:hover {
  color: var(--accent);
}

/* ----- RSVP form ----- */
.rsvp-form .max-guests {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field .label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.field select,
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.rsvp-form .btn-primary {
  margin-top: 0.5rem;
}

.message.success {
  background: var(--pastel-sage);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.message.success p {
  margin: 0 0 1rem;
}

.number-guests[style*="none"] {
  display: none;
}
