/* ============================================================
   BASE — Butter is Better (Bordeaux redesign)
   ============================================================ */

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

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

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: overlay;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

em {
  font-style: italic;
  color: var(--gold);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg-darker);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  right: 0;
  top: 0;
  width: 2px;
  height: 100vh;
  background: var(--border);
  z-index: 500;
}
.scroll-progress__fill {
  background: var(--gold);
  width: 100%;
  height: 0%;
  transition: height 0.1s linear;
}

/* Visually hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* Section labels */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text);
  line-height: 1.05;
}

.section-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-soft);
  line-height: 1.75;
}

/* Split word animation */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-inner {
  display: block;
}

/* Page transition voile */
#page-voile {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  z-index: 9000;
  transform: translateY(100%);
  pointer-events: none;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sections */
.section {
  position: relative;
}

/* Selection */
::selection {
  background: var(--gold-deep);
  color: var(--cream);
}

/* Section spacing */
.section--padded {
  padding: 8rem 0;
}

/* Gold divider */
.divider-gold {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}
