/* ============================================================
   THE SKIN TREE — BASE STYLES
   Reset, Typography, Global Defaults
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500;1,600&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text-primary);
  background-color: var(--c-off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY SCALE ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-text-primary);
  font-weight: var(--fw-medium);
}

h1 { font-size: clamp(var(--fs-4xl), 6vw, var(--fs-7xl)); }
h2 { font-size: clamp(var(--fs-3xl), 4.5vw, var(--fs-5xl)); }
h3 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); }
h4 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }
h5 { font-size: clamp(var(--fs-lg), 2vw, var(--fs-2xl)); }
h6 { font-size: clamp(var(--fs-md), 1.5vw, var(--fs-xl)); }

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

.display-text {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-5xl), 7vw, var(--fs-7xl));
  font-weight: var(--fw-medium);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: var(--fw-light);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-terracotta);
}

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

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

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

/* ── SELECTION ──────────────────────────────────────────── */
::selection {
  background: var(--c-terracotta-muted);
  color: var(--c-umber);
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-cream); }
::-webkit-scrollbar-thumb { background: var(--c-sand); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-terracotta-light); }

/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-terracotta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── UTILITY CLASSES ────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

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

.highlight {
  color: var(--c-terracotta);
  font-style: italic;
}

.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-text-muted); }
.text-on-dark { color: var(--c-text-on-dark); }

/* Background utilities */
.bg-cream     { background-color: var(--c-cream); }
.bg-off-white { background-color: var(--c-off-white); }
.bg-umber     { background-color: var(--c-umber); color: var(--c-text-on-dark); }
.bg-terracotta { background-color: var(--c-terracotta); color: white; }

/* Divider */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-terracotta), var(--c-gold));
  border-radius: var(--radius-full);
  margin: var(--space-6) auto;
}
.divider--left { margin-inline-start: 0; }

/* Reveal animation base state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
}
.reveal.is-visible {
  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; }
.reveal--delay-5 { transition-delay: 500ms; }
