/* ============================================
   VELEGRAD ESTATE — Base / Reset / Typography
   (Dark Theme)
   ============================================ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

@media (min-width: 1280px) {
  body {
    font-size: var(--text-body-lg);
  }
}

/* ── Headings ── */

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  font-weight: 400;
}

h1, h2 {
  font-family: var(--font-serif);
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 300;
}

h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: 400;
}

h3 {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  font-weight: 500;
  color: var(--color-text-primary);
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: 500;
}

/* ── Body text ── */

p {
  margin-block-end: 1em;
  color: var(--color-text-secondary);
}

p:last-child {
  margin-block-end: 0;
}

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

a:hover {
  color: var(--color-warm-ivory);
}

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

/* ── Lists ── */

ul, ol {
  padding-inline-start: 1.25em;
}

li {
  margin-block-end: 0.5em;
}

/* ── Images ── */

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

/* ── Selection ── */

::selection {
  background-color: var(--color-champagne-muted);
  color: var(--color-warm-ivory);
}

/* ── Focus ── */

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

/* ── Eyebrow / Kicker ── */

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-champagne);
}

/* ── Separator ── */

.separator {
  width: 60px;
  height: 1px;
  background-color: var(--color-champagne);
  border: none;
  margin-block: var(--space-md);
}

/* ── Scroll fade-in (JS adds .is-visible) ── */

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Body scroll lock (lightbox) ── */

body.scroll-locked {
  overflow: hidden;
}
