/* ═══════════════════════════════════════════════════════
   Leo Bîrcu Weddings — Base Styles
   Reset + Typography + Global Rules
   ═══════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-leading);
  letter-spacing: var(--body-tracking);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Prevent layout shift from scrollbar */
body {
  scrollbar-gutter: stable;
}

/* ── SELECTION ── */
::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ── IMAGES ── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  letter-spacing: var(--h1-tracking);
  line-height: var(--h1-leading);
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  letter-spacing: var(--h2-tracking);
  line-height: var(--h2-leading);
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  letter-spacing: var(--h3-tracking);
  line-height: var(--h3-leading);
}

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

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

/* ── LINKS ── */
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
}

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

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

/* ── BUTTONS ── */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── INPUTS ── */
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ── LABEL / MICRO TEXT ── */
.label {
  font-family: var(--font-heading);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
  border: none;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

/* ── SECTION ── */
.section {
  padding-block: var(--space-2xl);
}

.section--lg {
  padding-block: var(--space-3xl);
}

/* ── SR ONLY (accessibility) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ── IMAGE REVEAL ── */
.img-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.02);
  transition: opacity var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.img-reveal.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* ── LINE EXPAND ── */
.line-expand {
  width: 0;
  height: 1px;
  background: var(--glass-border);
  transition: width 1s var(--ease-out);
}

.line-expand.in-view {
  width: 100%;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
