/* Shared by the invitation (/) and the RSVP page (/rsvp/). Palette from the share card. */
@font-face {
  font-family: 'Great Vibes';
  font-display: swap;
  src: url('/fonts/great-vibes-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond Variable';
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond Variable';
  font-display: swap;
  font-style: italic;
  font-weight: 300 700;
  src: url('/fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/lato-latin-400-normal.woff2') format('woff2');
}

:root {
  --olive: #454c2f;
  --olive-deep: #3a3f2f;
  --cream: #f8f4ec;
  --card: #fcfaf7;
  --bronze: #78633c;
  --bronze-deep: #5c4318;
  --ink: #3a3835;
  --muted: #6b6a66;
  --line: #e4ded2;
  --field: #cfc7b6;
  --danger: #a3402f;
  --serif: 'Cormorant Garamond Variable', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Lato', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 26px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: transparent;
  color: var(--olive);
  font: 600 19px/1 var(--serif);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn--solid { background: var(--olive); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.script {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  line-height: 0.95;
  color: var(--olive);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 10;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--olive-deep);
  color: var(--cream);
  font: 15px/1.3 var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
