/* EMR Advocate, Inc. — static site styles */
:root {
  --ink: #1d2b33;
  --muted: #55656e;
  --paper: #fbfcfc;
  --wash: #eef3f2;
  --rule: #d3dddb;
  --green: #1e6b5c;
  --green-dark: #154d42;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 0.75rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.wordmark {
  font: 600 1.5rem/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--muted); font-weight: 500; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--green); }
nav a[aria-current="page"] { border-bottom-color: var(--green); }
.menu-btn { display: none; }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-sm { padding: 3.5rem 0 2rem; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.12; margin: 0 0 1.25rem; max-width: 22ch; }
.hero-sm h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0; }

/* Lineage timeline: the signature element */
.lineage { background: var(--wash); padding: 3.5rem 0 4rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lineage h2 { max-width: 34rem; }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.35rem;
  height: 2px; background: var(--green);
}
.timeline li { position: relative; padding: 0 1rem 0 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 2.35rem; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid var(--wash);
  box-sizing: content-box; margin-left: -3px;
}
.timeline .yr { display: block; font: 600 1.35rem/1 var(--serif); color: var(--green-dark); height: 2.35rem; }
.timeline .ev { display: block; font-weight: 700; margin-top: 1.4rem; line-height: 1.3; }
.timeline .note { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.45; }
.timeline li.next::before { background: var(--wash); border: 2px dashed var(--green); width: 12px; height: 12px; margin-left: -2px; }
.timeline li.next .yr { color: var(--green); font-style: italic; }

/* Content bands */
.band { padding: 3.5rem 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band-alt { background: var(--wash); }
.band-alt p { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: start; }
.two-col p { color: var(--muted); max-width: 26rem; }
.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.plain-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); max-width: 46rem; }
.defs { margin: 0; border-top: 1px solid var(--rule); }
.defs dt { font-weight: 700; padding-top: 0.9rem; }
.defs dd { margin: 0.2rem 0 0; padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); color: var(--muted); }

/* Testimonials */
.quotes { padding: 4rem 0; border-top: 1px solid var(--rule); }
.quotes figure { margin: 2rem 0 0; max-width: 46rem; padding-left: 1.5rem; border-left: 3px solid var(--green); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font: 400 1.15rem/1.6 var(--serif); margin: 0; }
.quotes figure:first-of-type blockquote p { font-size: 1.3rem; }

/* Contact */
.hero-sm + .band:has(.person) { padding-top: 0.5rem; }
.person { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.person img { border-radius: 50%; flex: none; }
.person > div { min-width: 0; }
.person p { margin: 0.2rem 0; overflow-wrap: anywhere; }
.person-name { font: 600 1.5rem/1.2 var(--serif); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: #fff; padding: 2rem 0; font-size: 0.92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-inner p { margin: 0; }
.quiet { flex-basis: 100%; }

/* Tablet and phone */
@media (max-width: 860px) {
  .menu-btn {
    display: inline-block; font: 600 0.95rem var(--sans); color: var(--ink);
    background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.45rem 0.9rem; cursor: pointer;
  }
  .header-inner { flex-wrap: wrap; }
  nav { flex-basis: 100%; display: none; padding-bottom: 1rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0.25rem; }
  nav a { display: block; padding: 0.55rem 0; }
  nav a[aria-current="page"] { border-bottom-color: transparent; color: var(--green); }

  .two-col { grid-template-columns: 1fr; gap: 1rem; }

  .timeline { grid-template-columns: 1fr; padding-left: 1.75rem; }
  .timeline::before { left: 0.45rem; right: auto; top: 0.4rem; bottom: 0.4rem; width: 2px; height: auto; }
  .timeline li { padding: 0 0 1.75rem; }
  .timeline li::before { left: -1.75rem; top: 0.55rem; margin-left: 0.1rem; }
  .timeline li.next::before { margin-left: 0.15rem; }
  .timeline .yr { height: auto; font-size: 1.15rem; }
  .timeline .ev { margin-top: 0.3rem; }
  .hero { padding: 3rem 0 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
