/* Global element defaults, typography and shared building blocks. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--green);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, serif;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.3rem;
  font-size: var(--font-h1);
  font-weight: 500;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: var(--font-h2);
  font-weight: 500;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: var(--font-h3);
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  text-wrap: pretty;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 48px), 840px);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--paper);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
  border-radius: 3px;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--warm);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-heading {
  width: min(100%, 720px);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-heading > p:last-child {
  margin-inline: auto;
  margin-bottom: 0;
  color: var(--green-soft);
  font-size: var(--font-lead);
}

/* Buttons: one primary style, one quiet secondary, one light variant for dark surfaces. */
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.15rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  will-change: transform;
  transition:
    transform var(--motion-base) var(--ease-smooth),
    background-color var(--motion-base) var(--ease-smooth),
    border-color var(--motion-base) var(--ease-smooth),
    color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--ease-smooth);
}

.button:active {
  transform: translateY(1px) scale(0.975);
  transition-duration: var(--motion-fast);
}

.button-primary {
  background: var(--green-deep);
  color: #fffdf7;
  box-shadow: 0 12px 26px rgba(37, 68, 56, 0.16);
}

.button-primary:hover {
  background: #1b382e;
  box-shadow: 0 16px 32px rgba(37, 68, 56, 0.2);
}

.button-secondary {
  border-color: rgba(47, 81, 67, 0.28);
  background: rgba(255, 255, 255, 0.5);
  color: var(--green-deep);
}

.button-secondary:hover {
  border-color: var(--green-soft);
  background: #fff;
}

.button-light {
  background: var(--cream);
  color: var(--green-deep);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.button-light:hover {
  background: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-3px) scale(1.01);
  }
}

/* Quiet inline links with a strong underline affordance. */
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--warm);
  font-size: 0.92rem;
  font-weight: 700;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  text-decoration: none;
  transition:
    color var(--motion-fast) ease,
    background-size var(--motion-base) var(--ease-smooth);
}

.text-link:hover,
.text-link:focus-visible {
  background-position: 0 100%;
  background-size: 100% 1.5px;
}

/* Same quiet-until-hover idiom as .text-link above, just recolored for a
   dark surface (final CTA). Previously always-underlined with no hover
   response at all, unlike every other link on the page. */
.text-link-light {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  text-decoration: none;
  transition:
    background-size var(--motion-base) var(--ease-smooth),
    color var(--motion-fast) ease;
}

.text-link-light:hover,
.text-link-light:focus-visible {
  color: #fff;
  background-position: 0 100%;
  background-size: 100% 1.5px;
}

/* Small reassurance line under a CTA. */
.cta-note {
  margin: 0.65rem 0 0;
  color: var(--green-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}
