/* Base — local Butler + Google Karla */
@font-face {
  font-family: "Butler";
  src: url("../assets/fonts/Butler-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../assets/fonts/Butler-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Butler";
  src: url("../assets/fonts/Butler-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--warm-sand) 35%, transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--dusty-sage) 18%, transparent), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Display type: Butler. Prefer auto smoothing so hairlines don’t wash out. */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  margin: 0;
  color: var(--text);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-wrap: balance;
}

/* Large headlines use Butler Medium */
h1,
.h1 {
  font-size: var(--fs-headline);
  font-weight: var(--fw-display-strong);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
}

h2,
.h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: var(--fw-display-strong);
  line-height: 1.1;
  letter-spacing: var(--ls-headline);
}

h3,
.h3 {
  font-size: var(--fs-subhead);
  font-weight: var(--fw-display);
  line-height: var(--lh-subhead);
  letter-spacing: var(--ls-subhead);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.85rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 38rem;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--sand {
  background: var(--bg-sand);
}

.section--ink {
  background: #212120;
  color: var(--ivory);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 {
  color: var(--ivory);
}

.section--ink .eyebrow {
  color: color-mix(in srgb, var(--warm-sand) 80%, white);
}

.section--ink .lede,
.section--ink p {
  color: color-mix(in srgb, var(--ivory) 78%, transparent);
}

.section--teal {
  background: linear-gradient(160deg, var(--deep-teal), var(--dark-teal));
  color: var(--text-on-teal);
}

.section--teal h1,
.section--teal h2,
.section--teal h3,
.section--teal .eyebrow {
  color: var(--text-on-teal);
}

.section--teal .eyebrow {
  color: color-mix(in srgb, var(--warm-sand) 75%, white);
}

.section--teal .lede,
.section--teal p {
  color: color-mix(in srgb, var(--ivory) 82%, transparent);
}

.pattern-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, transparent 40%, color-mix(in srgb, var(--dusty-sage) 40%, transparent) 41%, transparent 42%),
    radial-gradient(ellipse 70% 50% at 15% 90%, transparent 45%, color-mix(in srgb, var(--deep-teal) 25%, transparent) 46%, transparent 47%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
