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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(248, 246, 243, 0.98) 0%, rgba(248, 246, 243, 0.9) 38%, rgba(239, 232, 224, 0.42) 100%),
    var(--color-bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

.site-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--color-muted);
}

.site-loading span {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--color-line);
  border-top-color: var(--color-terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(183, 118, 94, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--color-white);
  background: var(--color-brown);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-deep);
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: clamp(1rem, 2.5vw, 1.45rem);
  font-size: clamp(2.5rem, 6vw, 5.15rem);
}

h2 {
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  font-size: clamp(2rem, 4.8vw, 4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.35;
}

p {
  margin-bottom: 1rem;
}

.section-shell {
  width: min(var(--site-max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.section-heading {
  max-width: var(--content-max);
  margin-bottom: clamp(2rem, 5vw, 3.6rem);
}

.section-heading p,
.section-copy p {
  max-width: 680px;
  color: var(--color-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading-centered .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  color: var(--color-terracotta);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.88rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-brown);
  box-shadow: 0 16px 34px rgba(107, 79, 58, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-terracotta);
}

.btn-secondary {
  color: var(--color-brown);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--color-line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-line-strong);
  background: var(--color-white);
}

.btn-light {
  color: var(--color-deep);
  background: var(--color-bg);
  box-shadow: 0 14px 34px rgba(36, 25, 18, 0.18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.28em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
