/**
 * Base Styles - Reset, Typography, Body
 * Gold & White Elegant Theme with Refined Calligraphy
 */

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

/* Document */
html {
  scroll-behavior: smooth;
}

/* Body */
body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY - Headings
   ═══════════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-hero);
  letter-spacing: var(--tracking-wide);
  font-weight: 300;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-normal);
  font-weight: 400;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-normal);
  font-weight: 400;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 500;
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

em, i {
  font-style: italic;
}

strong, b {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CALLIGRAPHY & SCRIPT TYPOGRAPHY
   Beautiful flowing scripts for names and romantic elements
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Main calligraphy class for names */
.script-name,
.calligraphy {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: var(--shadow-text);
}

/* Large calligraphy for hero names */
.script-name-lg {
  font-family: var(--font-script);
  font-size: var(--text-script-lg);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 4px rgba(44, 36, 23, 0.12);
}

/* Medium calligraphy for section names */
.script-name-md {
  font-family: var(--font-script);
  font-size: var(--text-script);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* Small calligraphy for inline names */
.script-name-sm {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.2;
}

/* Gold gradient text for names */
.name-gold {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Alternative romantic script */
.script-romantic {
  font-family: var(--font-romantic);
  font-weight: 400;
  font-size: 2.5em;
  line-height: 1.1;
}

/* The ampersand/× symbol between names */
.name-separator,
.x {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  opacity: 0.7;
  margin: 0 0.15em;
  display: inline-block;
  vertical-align: middle;
}

/* For hero title with script names */
.hero-title.script-style {
  font-family: var(--font-script);
  font-size: var(--text-script-lg);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 2px 3px 6px rgba(44, 36, 23, 0.15);
}

.hero-title.script-style .x {
  font-family: var(--font-display);
  font-size: 0.5em;
  font-style: italic;
  vertical-align: middle;
  margin: 0 0.2em;
  opacity: 0.6;
}

/* Elegant flourish underline for names */
.name-flourish {
  position: relative;
  display: inline-block;
}

.name-flourish::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  opacity: 0.6;
}

/* Accent font for labels and small caps */
.accent-text,
.small-caps {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: 0.85em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   IMAGES - Performance & Loading States
   ═══════════════════════════════════════════════════════════════════════════════ */

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

/* Lazy-loaded images - smooth reveal */
img[data-src] {
  background: linear-gradient(
    90deg,
    var(--color-cream) 0%,
    var(--color-champagne) 50%,
    var(--color-cream) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img.loaded {
  animation: none;
  background: none;
}

img.error {
  background: var(--color-cream);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Selection */
::selection {
  background: var(--color-gold-light);
  color: var(--color-text-primary);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Screen Reader Only */
.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;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SKIP LINK - Accessibility for keyboard navigation
   ═══════════════════════════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 14px 28px;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-medium);
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOUCH TARGET ACCESSIBILITY - Minimum 44x44px for mobile
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Ensure all interactive elements meet WCAG touch target requirements */
@media (pointer: coarse) {
  a, button, input, select, textarea, [role="button"], [tabindex="0"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Allow inline links to be smaller but with adequate padding */
  p a, li a, span a {
    min-height: auto;
    min-width: auto;
    padding: 8px 4px;
    margin: -8px -4px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEXT UTILITIES
   ═══════════════════════════════════════════════════════════════════════════════ */

.text-gold {
  color: var(--color-gold-rich);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* Display Utilities */
.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ELEGANT DIVIDER
   ═══════════════════════════════════════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--gradient-gold);
  opacity: 0.5;
}

.divider-icon {
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DECORATIVE FLOURISHES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Ornamental corners */
.flourish-corner {
  position: relative;
}

.flourish-corner::before,
.flourish-corner::after {
  content: '❧';
  font-size: 1.5em;
  color: var(--color-gold);
  opacity: 0.4;
  position: absolute;
}

.flourish-corner::before {
  top: -20px;
  left: -10px;
}

.flourish-corner::after {
  bottom: -20px;
  right: -10px;
  transform: rotate(180deg);
}

/* Elegant ampersand for "Uchenna & Eniola" */
.ampersand {
  font-family: "Baskerville", "Didot", "Palatino", serif;
  font-style: italic;
  font-size: 1.2em;
  color: var(--color-gold-rich);
  margin: 0 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEXT READABILITY ON IMAGES - Global Utility Classes
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Subtle glow for text on variable backgrounds */
.text-glow {
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.3);
}

/* Stronger glow for darker backgrounds */
.text-glow-strong {
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.8),
    0 0 45px rgba(255, 255, 255, 0.5);
}

/* Dark text with light glow */
.text-readable {
  color: var(--color-charcoal);
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(255, 255, 255, 0.7);
}

/* Gold text with subtle shadow */
.text-gold-glow {
  color: var(--color-gold-dark);
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(139, 105, 20, 0.3);
}
