/* ==========================================================================
   MBH — base.css
   Design tokens, reset, typography, buttons
   Palette taken directly from the supplied brand SVGs.
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #06271C;   /* brand deep green  */
  --green-800: #0A3325;   /* raised surface on dark */
  --green-700: #114430;   /* hairline / hover on dark */
  --green-light: #E4EED8; /* light brand green surface */
  --accent:    #598D29;   /* brand accent green */
  --accent-hi: #6BA733;   /* accent hover */
  --ink:       #1E1A16;   /* brand black */
  --paper:     #FEFEFE;   /* brand white */

  /* Neutrals derived from the brand */
  --bone:      #F1F1EE;   /* alternating light band */
  --bone-deep: #E6E7E2;
  --muted:     #566259;   /* body copy on light */
  --muted-dk:  rgba(254, 254, 254, 0.68); /* body copy on dark */
  --line:      rgba(6, 39, 28, 0.12);
  --line-dk:   rgba(254, 254, 254, 0.14);

  /* Type */
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.35rem, 4.6vw, 4rem);
  --fs-h2:      clamp(1.85rem, 3.2vw, 2.9rem);
  --fs-h3:      clamp(1.15rem, 1.5vw, 1.35rem);
  --fs-lead:    clamp(1rem, 1.1vw, 1.0625rem);
  --fs-body:    0.9375rem;
  --fs-small:   0.8125rem;
  --fs-eyebrow: 0.6875rem;

  /* Layout */
  --container: 1240px;
  --container-wide: 1560px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 8.5vw, 132px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  /* Chrome */
  --header-h: 84px;
  --header-h-sm: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------- type */
h1, h2, h3, h4 {
  color: var(--green-900);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.07;
  letter-spacing: -0.028em;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.13;
  max-width: 18ch;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  max-width: 54ch;
}

.small { font-size: var(--fs-small); line-height: 1.6; }

/* Eyebrow — small caps label with the brand rule beneath the heading */
.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.rule {
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--accent);
}

/* Dark surfaces */
.on-dark { color: var(--muted-dk); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .arrow { transform: translateX(5px); }

.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-hi); }

.btn--dark { background: var(--green-900); color: var(--paper); }
.btn--dark:hover { background: var(--accent); }

.btn--ghost {
  border-color: var(--line-dk);
  color: var(--paper);
}
.btn--ghost:hover { background: var(--paper); color: var(--green-900); border-color: var(--paper); }

.btn--outline {
  border-color: var(--line);
  color: var(--green-900);
}
.btn--outline:hover { border-color: var(--green-900); background: var(--green-900); color: var(--paper); }

/* Text link with arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
}
.link .arrow { transition: transform var(--dur) var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

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