/* Forerunner base styles — shared by sites/parent and sites/field.
   Keep both copies identical (see README). Palette and type match sites/trophy. */

:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-alt: #eae6df;
  --border: #d6d0c6;
  --border-light: #e8e3db;
  --accent-warm: #8b7355;
  --accent-warm-text: #6f5a42; /* darker warm for small text on light bg (AA) */
  --text: #1a1a1a;
  --text-secondary: #5c5550;
  --text-muted: #736b66;
  --dark: #1a1a1a;
  --on-dark: #f4f1ec;
  --on-dark-secondary: rgba(244, 241, 236, 0.72);
  --on-dark-muted: rgba(244, 241, 236, 0.6);
  --max: 72rem;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Keep anchor targets clear of the sticky nav */
[id] { scroll-margin-top: 4rem; }

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-warm-text);
  margin-bottom: 1.5rem;
}
.dark .kicker { color: var(--on-dark-muted); }

.dark { background: var(--dark); color: var(--on-dark); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.brand img { width: 20px; height: 20px; }
.brand .division { font-weight: 500; color: var(--on-dark-muted); letter-spacing: 0.2em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: rgba(244, 241, 236, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
}
.nav-links a:hover { color: var(--on-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.88; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--on-dark); }

/* Sections */
.section { padding: 6rem 0; border-top: 1px solid var(--border-light); }
.section h2 { font-size: clamp(1.85rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
.lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 42rem; }
.lead + .lead { margin-top: 1.25rem; }

/* Footer */
.footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
  font-size: 0.8125rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer a { color: var(--on-dark-secondary); }
.footer a:hover { color: var(--on-dark); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.footer .brand { color: var(--on-dark-secondary); font-size: 0.7rem; }
.footer .brand img { width: 16px; height: 16px; opacity: 0.7; }

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

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .nav-links { gap: 1.25rem; }
  .nav-links .optional { display: none; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  :root { --gutter: 1rem; }
  .brand { letter-spacing: 0.18em; }
  .nav-links .optional-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
