/* ── Fonts ─────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --ivory:        #FBF9F4;
  --ivory-deep:   #F2EEE5;
  --paper:        #FFFFFF;
  --navy:         #0B1F3A;
  --navy-deep:    #061429;
  --navy-soft:    #2A4060;
  --gold:         #B8956A;
  --gold-pale:    #D9C9A8;
  --line:         #E3DDD0;
  --muted:        #8A8275;
  --success:      #2D5F3F;
  --danger:       #8B2E2E;
  --danger-soft:  #C7A6A6;
  --overlay-navy: rgba(11, 31, 58, 0.95);
  --overlay-light: rgba(251, 249, 244, 0.85);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Manrope', system-ui, sans-serif;

  --radius: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 3px rgba(11,31,58,0.08);
  --shadow-md: 0 4px 16px rgba(11,31,58,0.12);
  --shadow-lg: 0 8px 32px rgba(11,31,58,0.18);

  --touch-target: 48px;
  --gap-gallery-mobile: 8px;
  --gap-gallery-desktop: 12px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.t-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
.t-subheading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}
.t-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.t-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.t-body { font-size: 14px; line-height: 1.7; }
.t-serif-body { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; }

/* ── Monogram ─────────────────────────────────────────────────────────────── */
.monogram {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ivory);
  letter-spacing: 0.08em;
}
.monogram-gold { color: var(--gold); }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-pale);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary {
  background: var(--navy);
  color: var(--ivory);
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ivory-deep); }

.btn-danger {
  background: var(--danger);
  color: var(--ivory);
}
.btn-danger:hover { opacity: 0.88; }

.btn-icon {
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.15s;
}
.btn-icon:hover { background: var(--ivory-deep); }
.btn-icon.on-dark { color: var(--ivory); }
.btn-icon.on-dark:hover { background: rgba(255,255,255,0.1); }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.field-input {
  height: var(--touch-target);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,58,0.08);
}
.field-input.error { border-color: var(--danger); }
.field-error { font-size: 11px; color: var(--danger); }

textarea.field-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
}

.field-check { display: flex; align-items: center; gap: 10px; }
.field-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-pale);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.nav-link:hover, .nav-link.active { color: var(--ivory); background: rgba(255,255,255,0.06); }

/* ── Page shell ───────────────────────────────────────────────────────────── */
.page-shell {
  padding-top: 56px; /* nav height */
  min-height: 100dvh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 480px; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s ease;
  pointer-events: auto;
  max-width: 340px;
  text-align: center;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading spinner ──────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner.gold { border-color: var(--gold-pale); border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 48px 20px 32px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .nav-links .nav-link:not(.nav-link-icon) span { display: none; }
}
@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}
