/* ===== THORNWOVEN 2 — BASE ===== */

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

html {
  overflow-x: hidden;
  /* No scroll-behavior: smooth — Lenis handles this */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-medium) ease, color var(--dur-medium) ease;
}

/* Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

::selection {
  background: var(--rose);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--rose);
  transform-origin: left;
  transform: scaleX(var(--scroll-progress));
  z-index: 10001;
  pointer-events: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--sand);
  display: block;
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.1rem 2.8rem;
  background: var(--text);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: var(--ls-medium);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  transition: background var(--dur-fast), transform 0.2s, box-shadow var(--dur-fast);
  position: relative;
  overflow: hidden;
}

.btn-fill:hover {
  background: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155,58,58,0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--ls-tight);
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-fast);
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width 0.4s var(--ease-out-expo);
}

.btn-ghost:hover { color: var(--rose); }
.btn-ghost:hover::after { width: 100%; }
