/* Shared look for the RSVP site and tracker */
:root {
  --ink: #2b2a28;
  --ink-soft: #55534f;
  --muted: #6f6c67;
  --paper: #fbfaf8;
  --card: #ffffff;
  --line: #e7e3dd;
  --blue: #a7cae6;          /* Azazie Powder Blue: details only */
  --blue-deep: #6f9cc3;     /* for thin lines and focus rings where #a7cae6 is too faint */
  --blue-tint: #edf4fa;
  --danger: #a33a2f;
  --radius: 18px;
  --script: 'Mrs Saint Delafield', 'Snell Roundhand', 'Apple Chancery', cursive;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.is-done { background: #e6e6e6; border-color: #e6e6e6; color: var(--ink); }
.btn.is-done:hover { background: #dcdcdc; border-color: #dcdcdc; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--blue-tint); }
.btn.block { width: 100%; }
.btn .spin { display: none; }
.btn.loading .spin { display: inline-block; }
.btn.loading .label-idle { display: none; }
.btn:not(.loading) .label-busy { display: none; }

.spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn.ghost .spin { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inputs */
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.input {
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 1px solid #cfcac2; border-radius: 14px; background: #fff;
  font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
textarea.input { padding: 14px 18px; min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px var(--blue-tint); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.error { color: var(--danger); font-size: 15px; margin-top: 10px; min-height: 0; }
.error:empty { display: none; }

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