/* ═══════════════════════════════════════════════════════════
   MAIN.CSS — Shared variables, resets, typography, utilities
   The Mortensen Wedding Experience
   ═══════════════════════════════════════════════════════════ */

/* Three families only: serif headings, readable sans-serif controls,
   and a single handwritten accent for short personal notes. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Allura&family=Jost:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --cream:          #f5f0e6;
  --cream-mid:      #ede8dc;
  --cream-dark:     #e0d8c8;
  --olive:          #4a5739;
  --olive-mid:      #5c6844;
  --olive-light:    #6b7c52;
  --sage:           #8fa888;
  --sage-light:     #b2c4ad;
  --terracotta:     #b5603a;
  --terracotta-lt:  #c47c5a;
  --maroon:         #7a3b3b;
  --warm-brown:     #8b6f5c;
  --text-dark:      #2c2416;
  --text-mid:       #5c4a38;
  --text-light:     #8c7a68;
  --border:         rgba(107,124,82,0.2);
  --border-warm:    rgba(180,160,130,0.3);
  --shadow-sm:      0 2px 12px rgba(44,36,22,0.08);
  --shadow-md:      0 4px 24px rgba(44,36,22,0.11);
  --shadow-lg:      0 8px 40px rgba(44,36,22,0.14);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --background:     #f5f0e7;
  --paper:          #fffdf8;
  --clay:           #c56e4a;
  --espresso:       #34271f;
  --taupe:          #b7aa98;
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-script:    'Allura', cursive;
  --font-sans:      'Jost', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--cream); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* ── Typography ── */
.t-serif    { font-family: var(--font-serif); }
.t-script   { font-family: var(--font-script); }
.t-sans     { font-family: var(--font-sans); }
.t-caps     { text-transform: uppercase; letter-spacing: 0.12em; }
.t-wide     { letter-spacing: 0.22em; }

/* ── Shared animation classes ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.animate-scale-in {
  opacity: 0;
  transform: scale(0.94);
  animation: scaleIn 0.6s ease forwards;
}
@keyframes scaleIn {
  to { opacity: 1; transform: scale(1); }
}

/* ── Shared card ── */
.card {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-cream {
  background: var(--cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ── Shared button styles ── */
.btn-olive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--olive);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(74,87,57,0.28);
}
.btn-olive:hover { background: var(--olive-mid); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(74,87,57,0.35); }
.btn-olive:active { transform: translateY(0); }

.btn-terra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(181,96,58,0.28);
}
.btn-terra:hover { background: var(--terracotta-lt); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(181,96,58,0.35); }
.btn-terra:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--olive);
  border: 1.5px solid var(--olive);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--olive); color: #fff; }

/* ── Divider ornament ── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}
.ornament-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-warm), transparent);
}
.ornament-divider .icon {
  color: var(--terracotta-lt);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.8;
}

/* ── Section title ── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
}
.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
}

/* ── Paper texture ── */
.paper-texture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ── Hidden / visible helpers ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
