:root {
  --paper: #f8f7f4;
  --ink: #151515;
  --muted: #4e4d4a;
  --line: #d8d7d2;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  color-scheme: light;
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #191919; outline-offset: 3px; box-shadow: 0 0 0 3px white; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 57rem); margin-inline: auto; }
.skip { position: absolute; top: -8rem; left: 1rem; padding: .7rem 1rem; background: white; color: black; z-index: 10; }
.skip:focus { top: .5rem; }
.masthead { background: #fff; color: var(--ink); border-top: .38rem solid var(--ink); }
.brand { display: flex; align-items: center; gap: clamp(1.5rem,4vw,3.25rem); padding-block: clamp(1.3rem,3.6vw,2.4rem); }
.brand-logo { width: clamp(9rem,18vw,13.5rem); height: auto; flex: none; }
.brand-copy { max-width: 40rem; }
.overline,.section-label { font-size: .875rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.overline { color: #464541; font-weight: 750; }
h1,h2,h3 { text-wrap: balance; }
h1 { font-size: clamp(2.05rem,4.45vw,3.55rem); font-weight: 850; font-style: italic; text-transform: uppercase; letter-spacing: -.055em; line-height: .99; margin-block: .55rem .9rem; }
.lead { max-width: 36rem; font-size: 1.05rem; color: var(--muted); }
.main-nav { background: var(--ink); color: #faf9f5; }
.nav-inner { display: flex; gap: 1.8rem; }
.nav-inner a { display: flex; align-items: center; min-height: 3.1rem; text-decoration: none; font-weight: 650; font-size: .9375rem; border-block: 3px solid transparent; }
.nav-inner a:first-child { border-bottom-color: #eceae4; }
body:has(#about:target) .nav-inner a:first-child { border-bottom-color: transparent; }
body:has(#about:target) .nav-inner a:last-child { border-bottom-color: #eceae4; }
.nav-inner a:hover,.nav-inner a:focus-visible { text-decoration: underline; }
#communities { padding-top: clamp(2rem,4vw,3rem); scroll-margin-top: 1rem; }
.icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.section-label { display: flex; align-items: center; gap: .35rem; color: #53524d; }
h2 { font-size: clamp(1.9rem,3.6vw,2.6rem); font-weight: 760; letter-spacing: -.047em; line-height: 1.12; margin: .42rem 0 .6rem; }
.section-intro { max-width: 46rem; color: var(--muted); }
.community-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.community { background: #fff; border: 1px solid var(--line); border-radius: .48rem; overflow: clip; display: flex; flex-direction: column; }
.art-link { display: block; position: relative; }
.art-link:focus-visible { outline-offset: -4px; }
.community-photo { width: 100%; height: clamp(9.1rem,14vw,11.3rem); object-fit: cover; }
.rides .community-photo { object-position: 50% 53%; }
.runs .community-photo { object-position: 50% 51%; }
.badge-frame { position: absolute; left: 1.3rem; bottom: -1.5rem; display: grid; place-items: center; width: 5.1rem; height: 5.1rem; padding: 3px; box-shadow: 0 2px 6px #0003; background: #fff; border-radius: 100%; }
.badge-frame img { height: 100%; width: 100%; object-fit: contain; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 2.2rem 1.3rem 1.12rem; }
h3 { font-size: clamp(1.35rem,2.7vw,1.66rem); letter-spacing: -.048em; line-height: 1.13; font-weight: 740; color: var(--ink); }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
.card-body p { margin: .6rem 0 1rem; color: var(--muted); }
.schedule-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.15rem; border-radius: .25rem; background: var(--ink); color: white; font-size: .94rem; text-decoration: none; font-weight: 700; margin-top: auto; }
.schedule-link:hover { background: #393936; text-decoration: underline; }
.community-links { padding: .45rem 1.3rem .55rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 620; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.2rem; justify-content: space-between; }
.socials { display: flex; align-items: center; gap: .95rem; }
.community-links a { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; text-decoration: none; color: #373735; white-space: nowrap; }
.community-links a:hover { text-decoration: underline; color: var(--ink); }
.community-links .ad-link { color: var(--ink); }
.about { margin-block: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); display: grid; gap: 2.4rem; grid-template-columns: 1fr 2fr; align-items: start; scroll-margin-top: 1.3rem; }
.about h2 { font-size: clamp(1.5rem,2.6vw,1.95rem); margin: 0; }
.about-copy { color: var(--muted); }
.about-copy p+p { margin-top: .65rem; }
footer { border-top: 1px solid var(--ink); color: #efeeea; background: var(--ink); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; }
@media(max-width: 43rem) {
  .community-grid { grid-template-columns: 1fr; }
  .brand { min-height: auto; padding-block: 1.8rem; gap: 1.1rem; }
  .brand-logo { width: 8.25rem; }
  .community-photo { height: clamp(10rem,40vw,14rem); }
  .about { grid-template-columns: 1fr; gap: .75rem; margin-block: 2rem; }
}
@media(max-width: 34rem) {
  .brand { flex-direction: column; text-align: center; gap: .85rem; padding-block: 1.5rem; }
  .brand-logo { width: 8.6rem; }
  .lead { font-size: 1rem; }
  .nav-inner { justify-content: center; gap: 1.5rem; }
  .community-links { column-gap: .8rem; }
}
@media(max-width: 23rem) {
  .socials { gap: .7rem; }
  .community-links { display: block; }
  .brand h1 { font-size: 2rem; }
}
