/* General layout */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.65;
  color: #1b1b1b;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

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

/* Page container */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  border-bottom: 2px solid #eee;
}

.hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
}

h1 {
  margin: 15px 0 5px;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem);
}

.tagline {
  color: #555;
  margin: 0 0 10px;
}

/* Navigation */
.topnav { margin-top: 10px; }
.topnav a {
  margin: 0 8px;
  text-decoration: underline; /* ensures non-color users see links */
  text-underline-offset: 2px;
  color: #0a58ca;
  font-weight: 500;
}
.topnav a:hover,
.topnav a:focus-visible {
  text-decoration: underline;
}
.topnav a:focus-visible {
  outline: 2px solid #0a58ca;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Generic link focus (for lists/press links, etc.) — NEW */
a:focus-visible {
  outline: 2px solid #0a58ca;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Sections */
section {
  margin: 40px 0;
  scroll-margin-top: 80px; /* better in-page anchor landing */
}

h2 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
}

/* Subhead for Members lists — NEW */
h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

ul {
  padding-left: 20px;
  margin: 12px 0;
}
ul li { margin: 6px 0; }

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  border-top: 1px solid #eee;
  padding: 20px;
  margin-top: 40px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #0b0b0b; color: #eee; }
  .tagline, footer { color: #aaa; }
  .topnav a { color: #9ec3ff; }
  h2 { border-color: #333; }
  header { border-bottom-color: #222; }
  /* Ensure focus ring has contrast in dark mode — NEW */
  a:focus-visible,
  .topnav a:focus-visible {
    outline-color: #9ec3ff;
  }
}

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
