/* Waco Heritage Trails — design system
   Display face: Playfair Display, SIL Open Font License, self-hosted (38 KB).
   Body stays on the system stack: zero extra requests, and system-ui is
   already tuned for screen legibility.
   Palette drawn from the land: Brazos water, limestone, bridge iron, prairie wheat. */

:root {
  --ink:        #14181C;
  --ink-soft:   #3D474F;
  --brazos:     #2F5D62;
  --brazos-lt:  #4A8189;
  --brazos-dk:  #1E4145;
  --limestone:  #F4EFE6;
  --limestone-d:#E7DFD1;
  --rust:       #B45B3E;
  --rust-dk:    #91462E;
  --gold:       #C8912F;
  --night:      #0E1A20;
  --paper:      #FBF8F2;
  --rule:       rgba(20, 24, 28, 0.14);

  --display: 'Playfair Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(20,24,28,.06), 0 8px 24px rgba(20,24,28,.08);
  --shadow-lg: 0 2px 4px rgba(20,24,28,.08), 0 18px 48px rgba(20,24,28,.16);
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;              /* deliberately large: this site is read by older eyes */
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1.1em; }

a { color: var(--brazos-dk); }
a:hover { color: var(--rust); }

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

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 14px 20px; z-index: 999;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

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

/* ---------- shared components ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;           /* comfortably over the 44px minimum target */
  min-height: 56px;
  border: 0;
  border-radius: 2px;
  background: var(--rust);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--rust-dk); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--limestone);
  border: 1px solid rgba(244,239,230,.45);
}
.btn--ghost:hover { background: rgba(244,239,230,.12); color: #fff; }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.rule {
  height: 1px; border: 0; margin: 0;
  background: var(--rule);
}

/* ---------- site footer ---------- */
.foot {
  background: var(--night);
  color: rgba(244,239,230,.72);
  padding: 56px 0 44px;
  font-size: .95rem;
  margin-top: 0;
}
.foot a { color: var(--limestone); text-decoration: underline; }
.foot a:hover { color: var(--gold); }
.foot__grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.foot h3 {
  color: var(--limestone); font-size: 1.05rem; margin-bottom: .4em;
  font-family: var(--body); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.foot p { margin-bottom: .6em; }

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