/* ==========================================================================
   BASE STYLES & FONTS — The Bees on My Bonnet
   ========================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Pinyon+Script&display=swap');

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--parchment);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── Parchment background texture (CSS-only) ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200, 164, 96, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184, 147, 88, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(232, 220, 200, 0.15) 0%, transparent 70%);
}

/* ── Typography defaults ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin-bottom: 1.2em;
  color: var(--ink);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--gold);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ── Accessibility ───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Main Layout Container ───────────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity var(--duration-med) var(--ease-gentle);
}

#app.fading-out {
  opacity: 0;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
