/* ==========================================================================
   POSIE PROJECT — Core Styles
   Variables, reset, typography, layout primitives
   ========================================================================== */

/* — Self-hosted fonts (CSP: no third-party origins required) — */
@font-face {
  font-family: 'Parisienne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Parisienne-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/Lora-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/Lora-Italic.ttf') format('truetype');
}

:root {
  /* — Palette — */
  --rose-50:      #FDF5F3;
  --rose-100:     #FBE8E4;
  --rose-200:     #F7D6CF;
  --rose-300:     #F4C2C2;   /* soft rose — primary */
  --rose-400:     #E8A5A1;
  --rose-500:     #D88A88;
  --rose-600:     #B96F6D;
  --rose-700:     #8E4E4D;
  --rose-800:     #5E3332;

  --cream:        #FAF3E7;
  --cream-warm:   #F6EBDA;
  --white:        #FFFFFF;
  --off-white:    #FBF8F3;

  --sienna:       #A0522D;   /* burnt sienna accent */
  --sienna-dark:  #7A3C1F;
  --sienna-light: #C47654;

  --butter:       #F4D35E;   /* buttery yellow pop */
  --butter-soft:  #F9E39C;

  --ink:          #3D2C29;   /* warm dark text */
  --ink-soft:     #5C4744;
  --muted:        #8B7875;
  --line:         #ECDCD4;

  /* — Typography — */
  --font-script:  'Parisienne', cursive;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Lora', system-ui, -apple-system, sans-serif;

  /* — Spacing scale — */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* — Radius — */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 999px;

  /* — Shadow — */
  --shadow-soft:  0 4px 20px rgba(142, 78, 77, 0.06);
  --shadow-card:  0 8px 30px rgba(142, 78, 77, 0.08);
  --shadow-lift:  0 16px 50px rgba(142, 78, 77, 0.12);

  /* — Layout — */
  --container-max: 1240px;
  --header-height: 88px;
  --topbar-height: 38px;

  /* — Motion — */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* — Reset — */
*, *::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);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sienna);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--sienna-dark);
}

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

ul, ol {
  list-style: none;
}

/* — Typography — */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; }

.display-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rose-600);
  line-height: 1;
  letter-spacing: 0;
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: var(--space-4);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}

p + p { margin-top: var(--space-4); }

em { font-style: italic; color: var(--rose-600); }

/* — Layout — */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section-sm { padding: var(--space-7) 0; }
.section-lg { padding: var(--space-10) 0; }

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}

.section-title .display-script {
  font-size: clamp(2.25rem, 4vw, 3rem);
  display: block;
  margin-bottom: var(--space-2);
}

.section-title h2 {
  margin-bottom: var(--space-4);
}

.section-title p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* — Accessibility — */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--sienna);
  color: var(--white);
  z-index: 9999;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--butter);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.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;
}

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

/* — Decorative divider — */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) auto;
  color: var(--rose-400);
}

.divider::before,
.divider::after {
  content: '';
  flex: 0 1 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-300), transparent);
}

.divider-icon {
  width: 22px;
  height: 22px;
  color: var(--rose-500);
  flex-shrink: 0;
}

/* — Background textures — */
.bg-cream  { background: var(--cream); }
.bg-rose   { background: var(--rose-50); }
.bg-white  { background: var(--white); }

/* — Utility — */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.is-hidden { display: none; }

/* Reveal animation delay modifiers — replaces inline style="--reveal-delay" */
.delay-05 { --reveal-delay: 0.05s; }
.delay-1  { --reveal-delay: 0.1s; }
.delay-15 { --reveal-delay: 0.15s; }
.delay-2  { --reveal-delay: 0.2s; }
.delay-3  { --reveal-delay: 0.3s; }

/* Centered lede (replaces inline margin/text-align) */
.lede-center { margin: 0 auto var(--space-6); text-align: center; }
.lede-center-sm { margin: 0 auto var(--space-5); text-align: center; }

/* Inline SVG sizing for buttons */
.icon-inline {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* Social-handles horizontal row (find-us info block) */
.social-handles-row {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-3);
}

/* Section-title tight variant (smaller bottom margin) */
.section-title-tight { margin-bottom: var(--space-6); }
