/* RONDO — static site stylesheet. No frameworks, no web fonts. */
:root {
  --ink: #16181a;
  --ink-soft: #4a4f55;
  --paper: #ffffff;
  --paper-alt: #f4f4f1;
  --night: #121314;
  --night-ink: #f2f2f0;
  --accent: #29d58c;        /* the original site's green */
  --accent-ink: #062b1b;    /* dark text on the green: 9.9:1 contrast */
  --rule: #dcdcd6;
  --max: 70rem;
  --measure: 40rem;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.18em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 0.45rem 0.75rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); background: var(--paper-alt); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 30rem) {
  .site-header .wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; justify-content: center; }
  .nav a { padding: 0.4rem 0.6rem; font-size: 0.9rem; }
}

/* Hero: two photos crossfading, CSS only */
.hero { position: relative; background: var(--night); overflow: hidden; aspect-ratio: 12 / 5; max-height: 36rem; width: 100%; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero img + img { animation: crossfade 16s ease-in-out infinite; opacity: 0; }
@keyframes crossfade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero img + img { animation: none; } }

/* Sections */
section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; scroll-margin-top: 4rem; }
.alt { background: var(--paper-alt); }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p { color: var(--ink); }
.center { text-align: center; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 44rem; margin: 0 auto; }
.eyebrow-rule { width: 4rem; height: 4px; background: var(--accent); border: 0; margin: 0 auto 1.5rem; border-radius: 2px; }

.facts { margin: 2rem 0 0; padding: 1.5rem 1.5rem 0.5rem; border-left: 4px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.alt .facts { background: var(--paper); }
.facts h3 { margin-bottom: 0.75rem; }

/* Full-bleed photo band */
/* The source photos are small (900px and 580px wide), so they sit at near-native size over a blurred fill instead of being stretched. */
.photo-band { position: relative; margin: 0; background: var(--night); overflow: hidden; display: grid; place-items: center; }
.photo-band .fill { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(28px) brightness(0.55) saturate(1.2); }
.photo-band .main { position: relative; width: 100%; max-width: 56rem; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45); }
@media (min-width: 56rem) { .photo-band { padding: 2.5rem 0; } .photo-band .main { border-radius: 4px; } }

/* Members */
.members { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .members { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.members li { text-align: center; }
.members img { width: 9.5rem; height: 9.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--accent); }
@media (max-width: 30rem) { .members img { width: 7.5rem; height: 7.5rem; } }
.members h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.members p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Contact */
.contact-cards { display: grid; gap: 1rem; margin: 2.25rem auto 0; max-width: 40rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 1.4rem 1.5rem;
  border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--paper);
  transition: border-color 0.15s, transform 0.15s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .contact-card { transition: none; } .contact-card:hover { transform: none; } }
.contact-card .label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.contact-card .value { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-card svg { width: 1.6rem; height: 1.6rem; color: var(--accent-ink); background: var(--accent); padding: 0.3rem; border-radius: 6px; margin-bottom: 0.4rem; }

/* Footer */
.site-footer { background: var(--accent); color: var(--accent-ink); padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; font-weight: 600; }
.site-footer a { font-weight: 700; }

/* 404 */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.button { display: inline-block; margin-top: 1rem; padding: 0.75rem 1.4rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
