/* ============================================================
   Crownridge Group — base.css
   Reset · tokens · typography · utilities
   Palette: forest green · ivory · brass
   ============================================================ */

:root {
  --ivory:   #f5f2e9;   /* warm off-white bg */
  --ivory-2: #ece7d8;   /* tinted section */
  --ink:     #1c1e19;   /* near-black text */
  --ink-70:  rgba(28, 30, 25, 0.72);
  --ink-55:  rgba(28, 30, 25, 0.60);
  --line:    rgba(28, 30, 25, 0.14);
  --line-soft: rgba(28, 30, 25, 0.08);

  --green:   #163a2e;   /* deep forest — dark sections, header, footer */
  --green-2: #0f2a20;   /* darker */
  --on-green:      #f3f0e6;
  --on-green-70:   rgba(243, 240, 230, 0.74);
  --on-green-55:   rgba(243, 240, 230, 0.58);
  --on-green-line: rgba(243, 240, 230, 0.16);

  --brass:      #b0894a;   /* decorative accent */
  --brass-ink:  #856223;   /* brass text on ivory (AA) */
  --brass-dark: #cdb072;   /* brass eyebrow on green */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 22px;
  --maxw: 1220px;
  --radius: 4px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 400; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 1.1rem;
}
.eyebrow-brass { color: var(--brass-dark); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only { 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; left: 50%; top: -60px; transform: translateX(-50%); background: var(--green); color: var(--on-green); padding: 0.6rem 1.1rem; border-radius: var(--radius); z-index: 200; transition: top 0.2s ease; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: var(--on-green); }

::selection { background: var(--green); color: var(--ivory); }
