/* Colors are taken from the Cornerstone Vitality logo. */
:root {
  --olive: #6f7d2e;        /* "Cornerstone Vitality" wordmark */
  --olive-dark: #545f22;   /* buttons, links on hover */
  --earth: #5e5326;        /* tagline brown-olive, used for body text */
  --leaf: #8fa35a;         /* leaves */
  --gold: #eaa91d;         /* daisy center and rays, accents only */
  --gold-soft: #fbf0d2;
  --cream: #fcfaf4;
  --paper: #ffffff;
  --line: #e7e1cf;
  --text: #3d3a2a;
  --muted: #6b6650;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

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

a { color: var(--olive); text-underline-offset: 0.18em; }
a:hover { color: var(--olive-dark); }

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--olive-dark);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 44rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--olive);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--earth); font-weight: 500;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--olive-dark); border-bottom-color: var(--gold); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--olive-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
}
.button:hover { background: #434c1b; color: #fff; }
.button.secondary {
  background: transparent; color: var(--olive-dark);
  box-shadow: inset 0 0 0 2px var(--olive);
}
.button.secondary:hover { background: var(--gold-soft); color: var(--olive-dark); }

/* Hero */
.hero { padding-block: 3.5rem 3rem; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--earth);
  background: var(--gold-soft);
  padding: 0.3rem 0.75rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-logo { justify-self: center; width: min(100%, 22rem); }

/* The logo artwork is round on a square off-white background, so show it as a circle. */
.logo-round {
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--paper), 0 10px 30px rgba(84, 95, 34, 0.12);
}

/* Sections */
section { padding-block: 3rem; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 40rem; margin: -0.25rem 0 2rem; }

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--leaf);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { margin: 0; }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--olive-dark);
  border: 2px solid var(--gold);
  font-family: var(--serif); font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 1.9rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.55em;
  width: 0.85rem; height: 0.85rem; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}

.contact {
  text-align: center;
}
.contact .button { margin-top: 0.5rem; }
.contact .email { font-size: 1.15rem; font-weight: 600; }

.note {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  color: var(--earth);
}

/* About */
.about-grid {
  display: grid; grid-template-columns: 16rem 1fr; gap: 2.5rem; align-items: start;
}
.about-grid aside img { width: 100%; }
.about-grid h2 { margin-top: 2.25rem; }
.portrait {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 0 0 6px var(--paper), 0 10px 30px rgba(84, 95, 34, 0.12);
}
.photo { margin: 1.5rem 0 0; }
.photo img { width: 100%; border-radius: var(--radius); display: block; }
.photo figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; text-align: center; }
.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.95rem; }

/* Legal pages */
.legal { padding-block: 3rem; }
.legal h1 { margin-bottom: 0.25rem; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal li { margin-bottom: 0.35rem; }
.keywords { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; }
.keywords th, .keywords td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.keywords th { width: 7rem; font-family: var(--serif); color: var(--olive-dark); }

/* Footer */
.site-footer {
  background: var(--olive-dark);
  color: #eef0e2;
  padding-block: 2.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.disclaimer { margin: 1.5rem 0 0; color: #d6dabf; font-size: 0.875rem; max-width: 52rem; }

@media (max-width: 760px) {
  .hero .wrap, .about-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(70%, 16rem); }
  .about-grid aside { max-width: 14rem; }
  .hero { padding-block: 2rem; }
}
