/* BurningSageTech
   Council Room palette. One stylesheet for every page.
   Colors are defined once here and reused by name. */

:root {
  --cream:      #faf6ef;  /* page background */
  --cream-deep: #f2ebdf;  /* alternating band background */
  --sage:       #2c4034;  /* headings and dark sections */
  --sage-mid:   #4a6353;  /* rules and quiet borders */
  --charcoal:   #2e2e2b;  /* body text */
  --muted:      #5a5a54;  /* secondary text */
  --ember:      #c2410c;  /* buttons and key numbers only */
  --ember-dark: #9a3412;  /* button hover */

  --measure: 34rem;       /* comfortable reading width */
  --page:    64rem;       /* max page width */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 40em) {
  body { font-size: 1.125rem; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--sage);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.375rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.1875rem, 2.4vw, 1.5rem); }
h4 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

p { max-width: var(--measure); }
p + p { margin-top: 1.1em; }

a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--sage);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: 2px;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 48em) {
  .wrap { padding: 0 2.5rem; }
}

.band { padding: 3.5rem 0; }
.band-tight { padding: 2.5rem 0; }

@media (min-width: 48em) {
  .band { padding: 5.5rem 0; }
  .band-tight { padding: 3.5rem 0; }
}

.band-alt { background: var(--cream-deep); }

.band-dark {
  background: var(--sage);
  color: var(--cream);
}
.band-dark h1,
.band-dark h2,
.band-dark h3 { color: var(--cream); }
.band-dark h4 { color: #c3d2c8; }
.band-dark a { color: var(--cream); }
.band-dark .lead { color: #e6ded1; }

/* Header */
.site-head {
  border-bottom: 1px solid #ded4c4;
  padding: 1.125rem 0;
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
}

.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--sage); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ember); }
.site-nav a[aria-current="page"] {
  color: var(--sage);
  font-weight: 600;
  border-bottom-color: var(--ember);
}

/* Hero */
.hero { padding: 3.5rem 0 3rem; }

@media (min-width: 48em) {
  .hero { padding: 6rem 0 5rem; }
}

.hero h1 { max-width: 20ch; }

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: var(--measure);
  margin-top: 1.5rem;
}

@media (min-width: 48em) {
  .lead { font-size: 1.3125rem; }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.9375rem 1.75rem;
  border-radius: 2px;
  margin-top: 2rem;
}
.btn:hover { background: var(--ember-dark); color: #fff; }

.btn-note {
  display: block;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 0.875rem;
}
.band-dark .btn-note { color: #c3d2c8; }
.band-dark .btn { background: var(--ember); }
.band-dark .btn:hover { background: #d4560f; }

/* Section heading */
.sec-head { margin-bottom: 2.5rem; }
.sec-head h2 { max-width: 24ch; }
.sec-head p { margin-top: 1rem; color: var(--muted); }

/* Split layout: heading left, prose right on wide screens.
   Below 64em it stacks, so phones get one column. */
.split { display: grid; gap: 1.5rem; }

@media (min-width: 64em) {
  .split { grid-template-columns: 20rem 1fr; gap: 3rem; align-items: start; }
  .split > .sec-head { margin-bottom: 0; }
  .split > .sec-head h2 { max-width: 16ch; }
}

.split-body > p { max-width: 38rem; }
.split-body > .btn { margin-top: 1.5rem; }

/* Keep the three service labels on a common baseline even when one wraps */
.service-grid h4 { min-height: 2.6em; line-height: 1.3; }

@media (max-width: 55.99em) {
  .service-grid h4 { min-height: 0; }
}

/* Numbered process */
.steps {
  display: grid;
  gap: 2.25rem;
  counter-reset: step;
}

@media (min-width: 40em) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.75rem 3rem; }
}
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

.step { border-top: 2px solid var(--sage-mid); padding-top: 1.25rem; }

.step-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--ember);
  line-height: 1;
  display: block;
  margin-bottom: 0.625rem;
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { font-size: 1rem; color: var(--charcoal); max-width: 32ch; }

/* Card grid */
.cards { display: grid; gap: 1.75rem; }

@media (min-width: 48em) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.card {
  background: var(--cream);
  border: 1px solid #ded4c4;
  border-top: 3px solid var(--sage);
  padding: 1.75rem 1.5rem;
}
.band-alt .card { background: var(--cream); }
.card h3 { margin-bottom: 0.625rem; font-size: 1.1875rem; }
.card p { font-size: 1rem; max-width: none; }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Long-form service blocks */
.service { padding: 3rem 0; border-top: 1px solid #ded4c4; }
.service:first-of-type { border-top: 0; padding-top: 0; }

@media (min-width: 48em) {
  .service { padding: 4rem 0; }
}

.service > h2 { max-width: 22ch; }

.service-grid { display: grid; gap: 2rem; margin-top: 2rem; }

@media (min-width: 56em) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.service-grid h4 { margin-bottom: 0.75rem; }
.service-grid p { font-size: 1rem; max-width: none; }

/* Numbered commitment list */
.commit { display: grid; gap: 2.5rem; }

.commit > li { border-top: 2px solid var(--sage-mid); padding-top: 1.5rem; }
.commit h3 { margin-bottom: 0.75rem; }
.commit p { max-width: 46rem; }

.commit-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ember);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

/* Plain list */
.plain-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.plain-list > li { border-left: 3px solid var(--ember); padding-left: 1.25rem; }
.plain-list h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.plain-list p { font-size: 1rem; }

/* Bio */
.bio { border-top: 2px solid var(--sage-mid); padding-top: 1.75rem; }
.bio h3 { font-size: 1.5rem; }
.bio .bio-cred {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0.5rem 0 1rem;
}

/* Big email link */
.email-big {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.375rem, 4vw, 2.125rem);
  font-weight: 600;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 2px solid var(--ember);
  display: inline-block;
  word-break: break-word;
  line-height: 1.2;
}
.email-big:hover { color: var(--ember-dark); border-bottom-color: var(--ember-dark); }

/* Footer */
.site-foot {
  background: var(--sage);
  color: #d8e0da;
  padding: 3rem 0 2.5rem;
  margin-top: 0;
  font-size: 0.9375rem;
}

.foot-inner { display: grid; gap: 1.5rem; }

@media (min-width: 48em) {
  .foot-inner { grid-template-columns: 1fr auto; align-items: start; gap: 2rem 3rem; }
}

.site-foot a { color: var(--cream); }
.site-foot p { max-width: 40rem; }

.foot-mark {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--cream);
  display: block;
  margin-bottom: 0.625rem;
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

.foot-legal {
  border-top: 1px solid var(--sage-mid);
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: #b9c6bd;
}
.foot-legal p { font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
