/* Solstice Bloom design system */

@import url('https://fonts.googleapis.com/css2?family=Hedvig+Letters+Serif:opsz@12..24&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --coral: #ff6b6b;
  --mango: #ffb347;
  --pink: #ff4d94;
  --mint: #98fb98;
  --azure: #1e90ff;

  --surface: #faf9f5;
  --surface-dim: #dbdad6;
  --surface-lowest: #ffffff;
  --surface-low: #f4f4f0;

  --ink: #33312c;
  --ink-soft: #6f6c64;

  --font-display: 'Bloom Winter', 'Playfair Display', Georgia, serif;
  --font-body: 'Hedvig Letters Serif', Georgia, serif;

  --radius-lg: 20px;
  --radius-full: 999px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
}

[x-cloak] { display: none !important; }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
}
@media (min-width: 900px) { .page { padding: 48px 80px; max-width: 840px; } }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(108px, 24vw, 144px);
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
}
h1, .headline-lg { font-family: var(--font-display); font-size: 96px; line-height: 1.2; font-weight: 500; }
h2, .headline-md { font-family: var(--font-display); font-size: 84px; line-height: 1.2; font-weight: 500; }
.title-lg { font-size: 22px; line-height: 1.4; }
.body-md { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.label {
  font-size: 12px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* Bloom Winter/display type is half-size on phones and small tablets. */
@media (max-width: 899px) {
  .display { font-size: clamp(54px, 12vw, 72px); }
  h1, .headline-lg { font-size: 48px; }
  h2, .headline-md { font-size: 42px; }
  h2[style*="font-size: 66px"] { font-size: 33px !important; }
}

.section { margin-top: 48px; }
@media (min-width: 900px) { .section { margin-top: 64px; } }

.ornament {
  text-align: center;
  color: var(--coral);
  font-size: 20px;
  letter-spacing: 0.4em;
  margin: 16px 0;
}

.masthead-compact {
  margin-top: 10px !important;
}
.masthead-compact .display {
  font-size: clamp(30px, 5vw, 48px);
}
.masthead-compact .ornament {
  margin: 6px 0;
  font-size: 16px;
}
@media (max-width: 899px) {
  .masthead-compact .display { font-size: 24px; }
}

/* ---------- welcome video ---------- */
.welcome-video {
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff0f0, #fff8ee);
  border: 1px solid var(--surface-low);
  box-shadow: 0 12px 32px rgba(51, 49, 44, 0.08);
}
.welcome-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-video video { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--coral); color: var(--surface-lowest); }
.btn-primary:not(:disabled):hover { background: #f75c5c; }

.btn-outline {
  background: var(--surface-lowest);
  color: var(--ink);
  border-color: var(--surface-dim);
}
.btn-outline:not(:disabled):hover { border-color: var(--coral); color: var(--coral); }

.btn-ghost { background: transparent; color: var(--ink-soft); padding: 12px 16px; }
.btn-ghost:hover { color: var(--ink); }

.btn-block { width: 100%; }

/* ---------- inputs ---------- */
.input, .textarea, select.input {
  font-family: var(--font-body);
  font-size: 16px;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--surface-dim);
  border-radius: 12px;
  background: var(--surface-lowest);
  color: var(--ink);
  transition: border-color 200ms ease;
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--coral);
}
.textarea { min-height: 110px; resize: vertical; }

.field { margin-bottom: 20px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-low);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

/* ---------- language toggle & switcher ---------- */
.lang-choice { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 24px 0;
  max-width: 840px;
  margin: 0 auto;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--surface-dim);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface-lowest);
}
.lang-switch button {
  font-family: var(--font-body);
  font-size: 14px;
  border: none;
  background: transparent;
  padding: 8px 16px;
  min-height: 36px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background-color 200ms ease, color 200ms ease;
}
.lang-switch button.active { background: var(--coral); color: #fff; }

/* ---------- RSVP status toggles ---------- */
.status-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.status-toggle button {
  font-family: var(--font-body);
  font-size: 15px;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-dim);
  background: var(--surface-low);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 200ms ease;
}
.status-toggle button.on-coming { background: var(--coral); border-color: var(--coral); color: #fff; }
.status-toggle button.on-not-coming { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }

/* ---------- menu options ---------- */
.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  background: var(--surface-lowest);
  border: 1px solid var(--surface-dim);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.option:hover { border-color: var(--mango); }
.option.selected { border-color: var(--coral); background: #fff4f4; }
.option .dot {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid var(--surface-dim);
  transition: all 200ms ease;
}
.option.selected .dot { border-color: var(--coral); background: var(--coral); box-shadow: inset 0 0 0 3px #fff; }
.option .t { font-size: 16px; }
.option .d { font-size: 14px; color: var(--ink-soft); }

/* ---------- status pills (summary/admin) ---------- */
.pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.pill-coming { background: #eafbea; color: #1d7a3d; border: 1px solid var(--mint); }
.pill-not-coming { background: #fff0f0; color: #b03434; border: 1px solid #f3c1c1; }
.pill-pending { background: var(--surface-low); color: var(--ink-soft); border: 1px solid var(--surface-dim); }

/* ---------- misc ---------- */
.notice {
  background: #fff8ee;
  border: 1px solid var(--mango);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.error-text { color: #b03434; margin-top: 8px; }

.actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 160px; }

.fade-enter { animation: fadein 200ms ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-low);
}
.summary-row > div { min-width: 0; }
.summary-row:last-child { border-bottom: none; }

hr.soft { border: none; border-top: 1px solid var(--surface-low); margin: 24px 0; }

footer.site {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-soft);
  font-size: 14px;
}
