/* Dr. Phillip A. Smith — shared styles. Mobile first, system fonts, no JavaScript. */
:root {
  --ink: #1b2733;
  --muted: #4a5a6a;
  --navy: #0b3a5b;
  --accent: #a3192e;
  --line: #d9e1e8;
  --band: #f3f6f9;
  --bg: #ffffff;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: 1.85rem; margin: 0.4em 0 0.4em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1.3em 0 0.3em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 46rem; padding-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.05rem; line-height: 1.2; }
.brand span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.site-header nav { flex: 1 1 100%; order: 3; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { text-decoration: none; font-size: 0.95rem; padding: 6px 0; display: inline-block; }
.site-header nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--accent); }
.head-call { margin-left: auto; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  padding: 11px 18px; border-radius: 6px; margin: 4px 6px 4px 0; border: 2px solid var(--accent); }
.btn:hover { background: #82101f; border-color: #82101f; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* hero */
.hero { background: var(--band); border-bottom: 1px solid var(--line); padding: 24px 0 32px; }
.hero-grid { display: grid; gap: 24px; }
.subtitle { font-size: 1.15rem; font-weight: 600; color: var(--muted); margin-top: 0; }
.headshot { border-radius: 10px; max-width: 320px; width: 100%; box-shadow: 0 2px 10px rgba(11,58,91,.15); }
.headshot-sm { max-width: 220px; margin: 0 0 1rem; }

/* sections */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0 24px; margin-top: 24px; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; background: #fff; }
.card-grid { list-style: none; padding: 0; display: grid; gap: 12px; }
.card-grid a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; }
.card-grid a:hover { border-color: var(--navy); }
.card-grid strong { display: block; color: var(--navy); margin-bottom: 4px; }
.card-grid span { color: var(--ink); font-size: 0.95rem; }
.facts li, .three-col li, .two-col li { margin-bottom: 0.6em; }
.three-col, .two-col { list-style: none; padding: 0; display: grid; gap: 16px; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.timeline span { display: block; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-top: 16px; }
.related { font-size: 0.95rem; }
.cta-box { background: var(--band); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 4px 18px 14px; margin: 2rem 0; }
.cta-box h2 { margin-top: 0.8em; }
.byline, .note { font-size: 0.9rem; color: var(--muted); }

/* footer */
.site-footer { background: var(--navy); color: #e8eef4; padding: 24px 0; margin-top: 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd9de; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.25); padding-top: 12px; }

@media (min-width: 700px) {
  h1 { font-size: 2.3rem; }
  .hero-grid { grid-template-columns: 1fr 300px; align-items: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: repeat(3, 1fr); }
  .headshot-sm { float: right; margin: 0 0 1rem 1.5rem; }
}
@media (min-width: 960px) {
  .site-header nav { flex: 0 1 auto; order: 0; margin-left: auto; }
  .head-call { margin-left: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
