/* =========================================================================
   Trail Life IL-2931 — Design tokens & base styles (rugged / earthy)
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Brand palette */
  --forest: #2e4034;
  --forest-600: #35513f;
  --pine: #1f2e24;
  --bark: #5c4433;
  --khaki: #c9b896;
  --khaki-200: #e3d8bf;
  --parchment: #f4eee1;
  --cream: #fbf8f1;
  --campfire: #c8622d;
  --campfire-deep: #a2451a; /* meets AA with white text on buttons */
  --ink: #241f1b;
  --muted: #6b6157;

  /* Semantic */
  --bg: var(--parchment);
  --surface: var(--cream);
  --text: var(--ink);
  --text-soft: var(--muted);
  --primary: var(--forest);
  --accent: var(--campfire-deep);
  --border: #ddd2bb;
  --border-strong: #c7b99b;

  /* Event type colors */
  --type-meeting: #2f6f4f;
  --type-campout: #a2451a;
  --type-service: #3a6ea5;
  --type-special: #7a4ea3;

  /* Type & shape */
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(31, 46, 36, 0.08), 0 1px 3px rgba(31, 46, 36, 0.06);
  --shadow: 0 4px 10px rgba(31, 46, 36, 0.10), 0 2px 4px rgba(31, 46, 36, 0.06);
  --shadow-lg: 0 16px 40px rgba(31, 46, 36, 0.18);
  --container: 1140px;
  --ease: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* Layered natural texture: faint topographic dots + warm wash */
  background-image:
    radial-gradient(rgba(92, 68, 51, 0.045) 1px, transparent 1px),
    radial-gradient(1200px 600px at 100% -5%, rgba(200, 98, 45, 0.06), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(46, 64, 52, 0.06), transparent 55%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle film grain overlay for a handmade, natural feel (decorative) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
/* Keep interactive content above the grain layer */
.page-wrap { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--pine);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--forest);
  text-decoration-color: var(--khaki);
  text-underline-offset: 3px;
}
a:hover { color: var(--campfire-deep); }

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

:focus-visible {
  outline: 3px solid var(--campfire);
  outline-offset: 2px;
  border-radius: 4px;
}

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