/* ════════════════════════════════════════════════════════════
   We Do — Shared styles for all pages
   Brand vars match the site (wedoweddings.pages.dev).
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #F0E6D0;
  --paper-soft: #FBF7EC;
  --ink: #15100C;
  --peach: #F4C9A2;
  --peach-soft: #F8DCC0;
  --coral: #E69466;
  --rust: #C25A37;
  --terracotta: #A8421F;
  --pink: #E8A5AB;
  --pink-deep: #D88B92;
  --text-on-ink: #F0E6D0;
  --mute: #75664B;
  --success: #5C8A4B;
  --warn: #C28A1F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
body {
  background-image: radial-gradient(circle at 1px 1px, rgba(21, 16, 12, 0.03) 1px, transparent 0);
  background-size: 8px 8px;
}

/* ── Brand mark ───────────────────────────────────────────── */
.brand-mono {
  font-family: 'Bagel Fat One', cursive;
  font-size: 36px;
  line-height: 0.85;
  color: var(--terracotta);
  letter-spacing: -2px;
}

.disp {
  font-family: 'Bagel Fat One', cursive;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -2px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary.pink { background: var(--pink-deep); }
.btn-primary.terracotta { background: var(--terracotta); }

.btn-secondary {
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  border-radius: 48px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-secondary[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── Form fields ──────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper-soft);
  border: 1.5px solid rgba(21, 16, 12, 0.2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  border-radius: 12px;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--terracotta); }
.field textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 48px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(21, 16, 12, 0.3);
  max-width: calc(100vw - 48px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(21, 16, 12, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.modal h3 {
  font-family: 'Bagel Fat One', cursive;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 8px;
  padding-right: 40px;
}
.modal-sub { color: var(--mute); font-size: 14px; margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ── Page centering for login/etc ─────────────────────────── */
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card-center {
  max-width: 440px;
  width: 100%;
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
}
