/* Reset + typography + shared primitives */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--cream); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--leaf-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { color: var(--text-muted); }

/* Layout helpers */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tint { background: var(--bg-alt); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--leaf-900); color: var(--leaf-50); }
.section--dark p { color: rgba(241, 249, 245, .72); }
.section-head { max-width: 42rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.stack > * + * { margin-top: 1.15rem; }
.lead { font-size: 1.05rem; }

/* Eyebrow — script label above headings */
.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--leaf-500);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--leaf-400));
}
.section-head--center .eyebrow::after {
  content: ""; width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--leaf-400), transparent);
}
.section--dark .eyebrow { color: var(--leaf-300); }
.text-script { font-family: var(--font-script); color: var(--leaf-500); font-weight: 600; }

/* Buttons */
.btn {
  --btn-bg: var(--leaf-600);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease-in-out), box-shadow var(--dur) var(--ease-in-out),
              background-color var(--dur) var(--ease-in-out), color var(--dur) var(--ease-in-out);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--leaf-800);
  transform: translateY(101%);
  transition: transform var(--dur-slow) var(--ease-in-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn:hover::after { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--leaf-800); border-color: var(--leaf-700); }
.btn--ghost:hover { --btn-fg: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--leaf-800); }
.btn--light:hover { --btn-fg: var(--white); }
.btn--sm { padding: .7rem 1.4rem; font-size: .85rem; }
.btn__icon { transition: transform var(--dur) var(--ease-in-out); }
.btn:hover .btn__icon { transform: translateX(5px); }

/* Text link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--leaf-700); font-size: .95rem;
  padding-bottom: 2px; background-image: linear-gradient(var(--leaf-500), var(--leaf-500));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size var(--dur-slow) var(--ease-in-out), color var(--dur) var(--ease-in-out);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover .btn__icon { transform: translateX(5px); }

/* Media frames */
.frame { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--leaf-100); }
.frame--blob { border-radius: 46% 54% 40% 60% / 52% 42% 58% 48%; }
.frame--arch { border-radius: 220px 220px var(--radius) var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; } /* transition: see animations.css */
.frame:hover img { transform: scale(1.05); }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem; border-radius: var(--radius-pill);
  background: var(--leaf-100); color: var(--leaf-800);
  font-size: var(--fs-small); font-weight: 600;
}
.stars { display: inline-flex; gap: .18rem; color: var(--gold); }
.stars svg { width: 17px; height: 17px; fill: currentColor; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
