/* ==========================================================================
   GLOBAL DESIGN SYSTEM — Priya & Arjun Wedding
   Luxury editorial aesthetic · Mobile-first · CSS Custom Properties
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font Faces (self-hosted fallbacks — Google Fonts loaded in HTML)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Cormorant Garamond');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local('Playfair Display');
}

/* --------------------------------------------------------------------------
   Root Variables — Shared Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --text-hero: clamp(2.75rem, 2rem + 3.5vw, 5.5rem);

  /* Shared luxury palette */
  --color-gold: #c9a962;
  --color-gold-light: #e8d5a3;
  --color-gold-dark: #9a7b3c;
  --color-ivory: #faf7f2;
  --color-cream: #f5f0e8;
  --color-charcoal: #2c2825;
  --color-warm-gray: #6b635a;
  --color-muted: #9a928a;
  --color-white: #ffffff;
  --color-overlay: rgba(20, 16, 12, 0.55);
  --color-overlay-heavy: rgba(20, 16, 12, 0.72);

  /* Event theme slots (overridden per page) */
  --color-primary: var(--color-gold);
  --color-secondary: var(--color-charcoal);
  --color-accent: var(--color-gold-light);
  --color-bg: var(--color-ivory);
  --color-bg-alt: var(--color-cream);
  --color-text: var(--color-charcoal);
  --color-text-muted: var(--color-warm-gray);
  --color-hero-overlay: var(--color-overlay);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --container-max: 72rem;
  --container-narrow: 42rem;
  --header-height: 4.5rem;

  /* Borders & radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --border-subtle: 1px solid rgba(201, 169, 98, 0.25);
  --border-gold: 1px solid var(--color-gold);

  /* Shadows */
  --shadow-soft: 0 4px 24px rgba(44, 40, 37, 0.08);
  --shadow-medium: 0 8px 40px rgba(44, 40, 37, 0.12);
  --shadow-deep: 0 16px 64px rgba(44, 40, 37, 0.18);
  --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;

  /* Z-index scale */
  --z-base: 1;
  --z-overlay: 10;
  --z-header: 100;
  --z-modal: 200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* Wedding UI is light-only — prevents OS dark mode from restyling native controls */
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--color-gold-dark);
}

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

ul,
ol {
  list-style: none;
}

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

::selection {
  background-color: var(--color-gold-light);
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   Typography Utilities
   -------------------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.text-hero {
  font-size: var(--text-hero);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.text-3xl {
  font-size: var(--text-3xl);
  line-height: 1.15;
}

.text-2xl {
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.text-xl {
  font-size: var(--text-xl);
  line-height: 1.3;
}

.text-lg {
  font-size: var(--text-lg);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

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

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

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

.tracking-wider {
  letter-spacing: 0.2em;
}

.leading-tight {
  line-height: 1.2;
}

.leading-relaxed {
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--alt {
  background-color: var(--color-bg-alt);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Component: Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  transition:
    background-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    backdrop-filter var(--duration-normal) var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.site-header.is-transparent {
  background-color: transparent;
}

.site-header.is-transparent.is-scrolled {
  background-color: rgba(250, 247, 242, 0.95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  position: relative;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: calc(var(--z-header) + 2);
}

.site-header.is-hero .site-header__logo,
.site-header.is-hero .nav-toggle__bar {
  color: var(--color-white);
}

.site-header.is-hero.is-scrolled .site-header__logo {
  color: var(--color-text);
}

/* Navigation */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex-shrink: 0;
  z-index: calc(var(--z-header) + 2);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  color: var(--color-text);
  transition: transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  background-color: var(--color-ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal) var(--ease-out);
  z-index: calc(var(--z-header) + 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-3xl);
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.site-nav__item {
  margin: 0;
  width: 100%;
  text-align: center;
}

.site-nav__link {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, var(--text-2xl));
  color: var(--color-text);
  letter-spacing: 0.08em;
  position: relative;
  padding-block: var(--space-sm);
  display: inline-block;
  width: 100%;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--duration-normal) var(--ease-out),
    left var(--duration-normal) var(--ease-out);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
  left: 0;
}

.site-nav__link.is-active {
  color: var(--color-gold-dark);
}

/* --------------------------------------------------------------------------
   Component: Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-hero-overlay) 0%,
    rgba(20, 16, 12, 0.35) 50%,
    var(--color-overlay-heavy) 100%
  );
  z-index: 1;
}

.hero__floral {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background-image: url('../assets/icons/floral-overlay.svg');
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-2xl);
  max-width: 52rem;
  color: var(--color-white);
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  opacity: 0.92;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__divider {
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin-block: var(--space-md);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-gold-light);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: floatY 3s var(--ease-in-out) infinite;
}

.hero__scroll-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Component: Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.section-header__divider {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.section-header__desc {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-inline: auto;
  font-style: italic;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Component: Event Cards (Homepage)
   -------------------------------------------------------------------------- */
.event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.event-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-medium);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.event-card:hover .event-card__image {
  transform: scale(1.04);
}

.event-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 12, 0.85) 0%,
    rgba(20, 16, 12, 0.2) 55%,
    transparent 100%
  );
}

.event-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  color: var(--color-white);
}

.event-card__date {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}

.event-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.event-card__desc {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-style: italic;
  opacity: 0.85;
}

.event-card__arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 2.5rem;
  height: 2.5rem;
  border: var(--border-gold);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  font-size: var(--text-lg);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.event-card:hover .event-card__arrow {
  background-color: rgba(201, 169, 98, 0.2);
}

/* --------------------------------------------------------------------------
   Component: Details Grid
   -------------------------------------------------------------------------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.detail-item {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: var(--border-subtle);
}

.detail-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
}

.detail-item__label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.detail-item__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.detail-item__note {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Component: Location / Map
   -------------------------------------------------------------------------- */
.location-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.location-block__venue {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.location-block__address {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.location-block__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  aspect-ratio: 16 / 10;
  border: var(--border-subtle);
}

.location-block__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Component: RSVP Form Embed
   -------------------------------------------------------------------------- */
.rsvp-section {
  background-color: var(--color-bg-alt);
  position: relative;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/icons/texture-paper.svg');
  background-size: 400px;
  opacity: 0.04;
  pointer-events: none;
}

.rsvp-form-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  border: var(--border-subtle);
  overflow: hidden;
  max-width: 40rem;
  margin-inline: auto;
}

.rsvp-form-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Component: Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  border: 1px solid var(--color-gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-gold-light);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: rgba(201, 169, 98, 0.15);
  color: var(--color-gold-light);
}

.btn--dark {
  background-color: var(--color-charcoal);
  color: var(--color-ivory);
  border: 1px solid var(--color-charcoal);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

/* --------------------------------------------------------------------------
   Component: Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  padding-block: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.site-footer__floral {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url('../assets/icons/floral-overlay.svg');
  background-size: cover;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.site-footer__monogram {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.site-footer__tagline {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.site-footer__link {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--color-gold);
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Component: Decorative Elements
   -------------------------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-block: var(--space-lg);
}

.ornament__line {
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.ornament__line:last-child {
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.ornament__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-gold);
}

.textured-bg {
  position: relative;
}

.textured-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/icons/texture-paper.svg');
  background-size: 300px;
  opacity: 0.035;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Component: Story / Intro Block
   -------------------------------------------------------------------------- */
.intro-block {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.intro-block__text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.9;
  color: var(--color-text-muted);
}

.intro-block__signature {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold-dark);
  margin-top: var(--space-xl);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.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;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Lazy load blur-up */
.img-blur {
  filter: blur(8px);
  transition: filter var(--duration-slow) var(--ease-out);
}

.img-blur.is-loaded {
  filter: blur(0);
}

/* Page load fade */
.page-enter {
  opacity: 0;
}

.page-enter.is-ready {
  opacity: 1;
  transition: opacity var(--duration-slow) var(--ease-out);
}
