/* ============================================================
   coltonwilliges.com — design tokens & layout
   Palette is locked. Contrast rules (WCAG AA) enforced here:
   - Charcoal #2C2C2C on cream #F4EFE6 = 12.2:1  → all body text
   - Sage    #7A8A76 on cream          =  2.2:1  → NEVER small text;
     large display headings (≥ 32px) and graphic bands only
   - Cream on sage                     =  3.2:1  → passes AA *large
     text only*: on sage bands, text must be ≥ 24px regular or
     ≥ 18.66px bold. Enforced via .band-* classes below.
   - Brass   #B8915A on cream          =  2.5:1  → decorative
     strokes/rules only, never text.
   Do not add colors. Do not move sage or brass into body copy.
   ============================================================ */

:root {
  --cream: #F4EFE6;
  --sage: #7A8A76;
  --charcoal: #2C2C2C;
  --brass: #B8915A;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 38rem;          /* ~62ch reading measure */
  --wrap-max: 64rem;
  --space-section: clamp(3.5rem, 9vw, 7rem);
}

/* ---- self-hosted fonts (drop woff2 files into /static/fonts/) ----
   Both are SIL OFL licensed; system fallbacks above keep the site
   readable if a file is missing. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---- reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

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

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;            /* 17px base */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- layout primitives ---- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap-max));
  margin-inline: auto;
}
.narrow { max-width: var(--measure); }
.section { padding-block: var(--space-section); }
.section-tight { padding-top: 0; }

/* ---- a11y ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

/* ---- type ---- */
h1, h2, .wordmark-name {
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
p + p { margin-top: 1rem; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.lede {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: 1.5rem;
}
.fineprint {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  max-width: var(--measure);
}

a { color: var(--charcoal); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }

/* ---- header ---- */
.site-header { padding-block: 1.5rem; border-bottom: 1px solid var(--brass); }
.header-inner { display: flex; flex-direction: column; gap: 1rem; }
.wordmark { text-decoration: none; }
.wordmark-name { display: block; font-size: 1.35rem; }
.wordmark-title {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.nav-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem; }
.nav-list a { text-decoration: none; font-size: 0.95rem; padding-block: 0.25rem; }
.nav-list a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.nav-list a[aria-current="page"] { border-bottom: 2px solid var(--brass); }

@media (min-width: 48rem) {
  .header-inner { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

/* ---- hero ---- */
.hero { padding-block: var(--space-section); }
.hero-headline {
  /* Sage permitted here: display size only (≥ 32px at minimum width). */
  color: var(--sage);
  font-size: clamp(2.3rem, 6.5vw, 4.25rem);
  max-width: 18ch;
}
.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.button {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream);             /* 12.2:1 */
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
}
.button:hover { background: #000; }
.text-link { font-size: 0.95rem; }

/* ---- sage bands: large text only (AA-large = 3:1, this pair = 3.2:1) ---- */
.band { background: var(--sage); padding-block: clamp(2rem, 5vw, 3.25rem); }
.band-text {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);  /* ≥ 24px: AA-large compliant */
  line-height: 1.35;
  max-width: 40ch;
}
.band-heading {
  color: var(--cream);
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  margin-top: 0;
}
.band-body {
  color: var(--cream);
  font-size: 1.5rem;                        /* 24px regular: AA-large */
  font-family: var(--font-display);
  line-height: 1.45;
  margin-top: 0.75rem;
}

/* ---- pillars (home) ---- */
.pillars { display: grid; gap: 2.5rem; }
.pillar-title { margin-top: 0; font-size: 1.3rem; }
@media (min-width: 48rem) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ---- page head ---- */
.page-head { padding-top: var(--space-section); }
.page-head h1 {
  color: var(--sage);                       /* display size only */
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
}

/* ---- about ---- */
.headshot { margin-bottom: 2rem; border: 1px solid var(--brass); }
.credential-list { padding-left: 1.1rem; }
.credential-list li { margin-bottom: 0.5rem; }

/* ---- who i work with ---- */
.populations { display: grid; gap: 2.75rem; }
.population { border-top: 1px solid var(--brass); padding-top: 1.5rem; }
.population h2 { margin-top: 0; }

/* ---- contact ---- */
.contact-details { display: grid; gap: 2rem; margin-bottom: 3rem; }
.contact-detail dt {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.contact-detail dd { max-width: var(--measure); }

/* ---- sprig signature ---- */
.sprig { margin-bottom: 1.25rem; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--brass);
  margin-top: var(--space-section);
  padding-block: 3rem;
  text-align: center;
}
.site-footer .sprig { margin-inline: auto; }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; }
.footer-credential { margin-top: 0.5rem; font-size: 0.9375rem; }
.footer-meta { margin-top: 0.75rem; font-size: 0.9375rem; }
.footer-fineprint { margin-top: 0.75rem; font-size: 0.8125rem; }

/* ---- sprig draw-on (home closing only; reduced-motion safe) ---- */
@keyframes sprig-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .sprig-draw .sprig path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: sprig-draw 0.55s ease forwards;
  }
  .sprig-draw .sprig path:nth-child(1) { animation-duration: 1.2s; animation-delay: 0s; }
  .sprig-draw .sprig path:nth-child(2) { animation-delay: 0.5s; }
  .sprig-draw .sprig path:nth-child(3) { animation-delay: 0.86s; }
  .sprig-draw .sprig path:nth-child(4) { animation-delay: 1.22s; }
  .sprig-draw .sprig path:nth-child(5) { animation-delay: 0.68s; }
  .sprig-draw .sprig path:nth-child(6) { animation-delay: 1.04s; }
  .sprig-draw .sprig path:nth-child(7) { animation-delay: 1.4s; }
}
