@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Palette: golden, rosy, warm cream — dark brown only as accent */
  --ivory:       #FAF6F0;
  --parchment:   #F2EAE0;
  --blush:       #F0DDD5;
  --rose:        #D4897A;
  --rose-deep:   #B86555;
  --gold:        #C8962A;
  --gold-light:  #E8BE6A;
  --gold-deep:   #9A7018;
  --sage:        #7A9A82;
  --bark:        #5C3D1E;   /* dark brown — limited use only */
  --charcoal:    #2E2820;
  --muted:       #6B5E55;
  --muted-light: #9E8E84;
  --border:      rgba(180,130,100,0.18);
  --border-mid:  rgba(180,130,100,0.32);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --nav-h: 60px;

  /* Spacing scale */
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1.25rem;
  --sp-lg: 2rem;
  --sp-xl: 3.5rem;
}

/* ── Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Skip link (accessibility) ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--charcoal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus styles ──────────────────────────────────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand em { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex; gap: 0.125rem;
  list-style: none;
  margin-left: auto;
  align-items: center;
}

.nav-links a, .nav-links button {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 44px;
  display: flex; align-items: center;
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--charcoal); background: var(--parchment);
}
.nav-links a.active { color: var(--charcoal); font-weight: 500; }

.nav-cta {
  background: var(--rose) !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--rose-deep) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
  margin-left: auto;
  min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(250,246,240,0.65);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: var(--sp-xl);
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ivory);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.footer-tagline { font-size: 0.8rem; opacity: 0.6; line-height: 1.55; }
.footer-col h4 {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold-light);
  margin-bottom: 0.6rem; font-weight: 500;
}
.footer-col a {
  display: block; color: rgba(250,246,240,0.55);
  text-decoration: none; margin-bottom: 0.3rem;
  transition: color 0.2s;
  padding: 0.2rem 0;
  min-height: 36px; display: flex; align-items: center;
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  max-width: 960px; margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250,246,240,0.1);
  font-size: 0.78rem; opacity: 0.45;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  border: none;
  letter-spacing: 0.01em;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary   { background: var(--rose);     color: #fff; }
.btn-primary:hover  { background: var(--rose-deep); transform: translateY(-1px); }
.btn-gold      { background: var(--gold);     color: #fff; }
.btn-gold:hover     { background: var(--gold-deep); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--rose-deep); border: 1.5px solid var(--rose); }
.btn-outline:hover  { background: var(--rose); color: #fff; }
.btn-ghost     { background: transparent; color: var(--muted); border: 1.5px solid var(--border-mid); }
.btn-ghost:hover    { background: var(--parchment); color: var(--charcoal); }
.btn-sm        { padding: 0.45rem 0.9rem; font-size: 0.82rem; min-height: 36px; }
.btn-full      { width: 100%; }

/* ── Toast ─────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--charcoal); color: var(--ivory);
  padding: 0.6rem 1.25rem; border-radius: 8px;
  font-size: 0.875rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Auth modal ─────────────────────────────────────────────────────── */
#auth-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(46,40,32,0.6);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
#auth-modal.open { display: flex; }
.auth-card {
  background: var(--ivory); border-radius: 14px;
  padding: 2.25rem; width: min(420px, 100%);
  box-shadow: 0 20px 60px rgba(46,40,32,0.25);
  position: relative;
}
.auth-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.35rem; font-weight: 400; }
.auth-card p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.auth-card input[type=email] {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border-mid);
  border-radius: 6px; font-family: var(--font-body);
  font-size: 0.95rem; background: white;
  margin-bottom: 0.875rem;
  transition: border-color 0.2s; min-height: 44px;
}
.auth-card input[type=email]:focus { outline: none; border-color: var(--gold); }
.auth-close {
  position: absolute; top: 0.875rem; right: 0.875rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.25rem; color: var(--muted);
  line-height: 1; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.auth-success { display: none; text-align: center; padding: 0.5rem 0; }
.auth-success .check { font-size: 2.5rem; margin-bottom: 0.75rem; }
.auth-success h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.4rem; font-weight: 400; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.container      { max-width: 960px;  margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-muted { color: var(--muted); }
.eyebrow {
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400; line-height: 1.15;
}

/* ── Mobile nav ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(46,40,32,0.1);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { width: 100%; justify-content: flex-start; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
