/* ==========================================================================
   Base — design tokens, reset, typography, and shared controls.
   Loaded first on every page, before layout.css and any page stylesheet.
   ========================================================================== */

/* Design tokens ----------------------------------------------------------- */

:root {
  color-scheme: light;
  scroll-behavior: smooth;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f5ed;
  color: #183b1c;

  --green: #204f27;
  --green-dark: #153819;
  --cream: #f8f5ed;

  /* Accent used for the current-page underline. Darkened from #c89d40 to clear
     the 3:1 contrast floor for state indicators (WCAG 1.4.11). */
  --gold: #a47f2f;

  /* Focus rings. Dark on light surfaces, cream on dark ones — both far above
     the 3:1 minimum (WCAG 1.4.11). */
  --focus-on-light: var(--green-dark);
  --focus-on-dark: var(--cream);
}

/* Reset ------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

/* Typography -------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

/* Small uppercase label that sits above a section heading. */
.eyebrow {
  margin: 0 0 16px;
  color: #546c55;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Lead paragraph under a page heading. */
.intro {
  max-width: 630px;
  margin: 30px 0 22px;
  color: #506151;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

/* Buttons and links ------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: #326c38;
  transform: translateY(-2px);
}

/* Inverted button, for use on the dark green "Visit us" panel. */
.button-light {
  background: var(--cream);
  color: var(--green-dark);
}

.button-light:hover {
  background: #dfe8d9;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
  text-underline-offset: 5px;
}

/* Focus rings ------------------------------------------------------------- */

.button:focus-visible,
nav a:focus-visible,
.brand:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 4px;
}

/* The footer sits on dark green, so its ring flips to cream. */
footer a:focus-visible {
  outline-color: var(--focus-on-dark);
}

/* Visible only once it receives focus: lets keyboard and screen-reader users
   jump past the header navigation (WCAG 2.4.1). */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  background: var(--green-dark);
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--focus-on-light);
  outline-offset: 2px;
}

/* Reduced motion ---------------------------------------------------------- */
/* Each stylesheet neutralises its own transitions, so that the override
   always comes after the rule it is cancelling. */

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
