/* rhythm5.com: one stylesheet, system fonts only. */
:root {
  --red: #980000;
  --bar: #212121;
  --text: #212121;
  --slab: Rockwell, "Roboto Slab", "DejaVu Serif", Georgia, serif;
  /* no system-ui: on some Linux setups it maps to a CJK font without bold */
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; }

a { color: var(--red); }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* Header bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: var(--bar);
}
body { padding-top: 52px; }

/* Pages with a banner (front matter hero: true): the bar starts transparent
   over the photo and turns dark as the page scrolls. Pure CSS; browsers
   without scroll-driven animations keep the dark bar. */
body.has-hero { padding-top: 0; }
@supports (animation-timeline: scroll()) {
  .has-hero .topbar {
    animation: bar-fill linear both;
    animation-timeline: scroll();
    animation-range: 0 220px;
  }
  @keyframes bar-fill {
    from { background: transparent; }
    to   { background: var(--bar); }
  }
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: #fff; text-decoration: none; font-size: 16px;
}
.brand img { height: 32px; width: auto; display: block; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: #fff; text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Mobile menu: CSS-only toggle, used only when the menu is shown */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle-label { display: none; }
@media (max-width: 720px) {
  .nav-toggle-label {
    display: block; width: 32px; height: 32px; cursor: pointer; position: relative;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    position: absolute; left: 4px; width: 24px; height: 2px; background: #fff; content: "";
  }
  .nav-toggle-label span { top: 15px; }
  .nav-toggle-label span::before { top: -7px; left: 0; }
  .nav-toggle-label span::after { top: 7px; left: 0; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid #1a73e8; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bar); padding: 8px 24px 16px;
  }
  .nav ul { flex-direction: column; gap: 12px; }
  .nav-toggle:checked ~ .nav { display: block; }
}

/* Banner */
.banner {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; padding: 84px 24px 32px;
  background-size: cover; background-position: center 45%;
  text-align: center;
}
.banner h1 {
  margin: 0; max-width: 640px;
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(36px, 6vw, 56px); line-height: 1.25;
  color: #fff;
}

/* Content column */
.content { max-width: 840px; margin: 0 auto; padding: 0 24px 48px; }
.subtitle {
  margin: 28px 0 32px; text-align: center;
  color: var(--red); font-size: 21px; font-weight: 600;
}
.content h2 {
  margin: 40px 0 12px;
  color: var(--red); font-size: 24px; font-weight: 700; line-height: 1.3;
}
.content ul { padding-left: 18px; list-style: square; }
.content li { margin: 0 0 12px; }

/* Video: 16:9, centred */
.video { max-width: 720px; margin: 0 auto; aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Button */
.cta { text-align: center; margin: 40px 0; }
.button {
  display: inline-block; width: 100%; max-width: 560px;
  padding: 10px 20px; border-radius: 4px;
  background: var(--red); color: #fff; text-decoration: none; font-size: 15px;
}
.button:hover { background: #7a0000; }

/* Footer */
.footer { border-top: 1px solid #e0e0e0; text-align: center; padding: 20px 24px; color: #555; font-size: 14px; }
.footer p { margin: 0; }
.nowrap { white-space: nowrap; }

/* 404 page */
.notfound { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.notfound h1 { margin: 0 0 16px; font-family: var(--slab); font-size: 40px; color: var(--red); }
