:root {
  --ink: #000000;
  --paper: #ffffff;
  --field: #003300;
  --field-light: #0b5c1f;
  --rule: #dedede;
  --muted: #4a4a4a;
  --display: "Alegreya SC", Georgia, "Times New Roman", serif;
  --text: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
}

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

a { color: #0d4d17; }
a:hover { color: #062f0d; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: underline;
  transition: top 150ms ease;
}
.skip-link:focus { top: 8px; }

.extmark { margin-left: 0.35em; font-size: 0.85em; }

.sitenav-mount {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sitenav {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

.sitenav__bar { display: flex; align-items: center; gap: 14px; }

.sitenav__home {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  min-height: 48px;
  color: var(--paper);
}
.sitenav__home img { width: 64px; height: auto; }

.sitenav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 4px;
  background: none;
  border: 0;
  color: var(--paper);
  font: 600 17px/1 var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.sitenav__bars {
  width: 24px; height: 2px;
  background: var(--paper);
  box-shadow: 0 7px 0 var(--paper), 0 -7px 0 var(--paper);
}

.sitenav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: none;
}

.sitenav.is-open .sitenav__list { display: block; }

.sitenav__list a {
  display: block;
  min-height: 48px;
  padding: 13px 8px;
  color: var(--paper);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
}

.sitenav__list a:hover,
.sitenav__list a:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.sitenav__list a[aria-current="page"] { color: #ffcc00; }

.sitenav__fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 12px 15px;
  max-width: 1250px;
}
.sitenav__fallback a { color: var(--paper); text-transform: uppercase; font-size: 16px; }

.sitenav__icon-item { display: flex; align-items: center; justify-content: center; }

.sitenav__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 12px !important;
  border-bottom: 0 !important;
  margin: 6px auto;
}
.sitenav__icon svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.sitenav__follow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; }

@media (min-width: 900px) {
  .sitenav {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .sitenav__bar { flex: none; }
  .sitenav__toggle { display: none; }
  .sitenav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
    padding: 0;
  }
  .sitenav__list a { border-bottom: 0; padding: 16px 14px; }
}

.hero {
  position: relative;
  background: #111 url("images/vintage-tractor-intro.jpg") right center / cover no-repeat;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 250px 15px 0;
}

.hero__logo {
  width: 100%;
  max-width: 500px;
  margin: 20px auto 0;
}

.hero__inner { padding-bottom: 28px; }

@media (max-width: 700px) {
  .hero__inner { padding-top: 120px; }
}

.ribbon {
  background: var(--ink);
  padding: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.ribbon__track {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: ribbon-scroll 90s linear infinite;
}
.ribbon:hover .ribbon__track,
.ribbon:focus-within .ribbon__track { animation-play-state: paused; }

.ribbon__item {
  display: block;
  flex: none;
  width: 240px;
  height: 170px;
  overflow: hidden;
}
.ribbon__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms ease;
}
a.ribbon__item:hover img { opacity: 0.75; }
a.ribbon__item:focus-visible { outline: 3px solid #ffcc00; outline-offset: -3px; }

.ribbon__hint {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px 0;
  color: #c9c9c9;
  font-size: 15px;
  text-align: center;
}

@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon { overflow-x: auto; }
  .ribbon__track { animation: none; }
}

@media (max-width: 700px) {
  .ribbon__item { width: 170px; height: 125px; }
}

.intro {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 30px 24px 50px;
}

.intro h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 43px);
  line-height: 1.15;
  margin: 0 0 24px;
}

.intro p {
  max-width: 65ch;
  margin: 0 auto;
  font-size: 20px;
}

.band {
  position: relative;
  background: #111 center / cover no-repeat;
}
.band--events { background-image: url("images/Ford_861.jpg"); }
.band--name { background-image: url("images/iStock-507567260.jpeg"); }

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.band__inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
  color: var(--paper);
  text-align: center;
}

.band--name .band__inner { padding: 140px 20px; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 43px);
  letter-spacing: 0.07em;
  margin: 0 0 10px;
}

.section-note { margin: 0 0 34px; font-size: 20px; }
.section-note a { color: var(--paper); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.cards--single { max-width: 620px; }

.card--now { border-color: #7bbf82; }

.card__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  background: #ffcc00;
  color: #1a1a00;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.card {
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  text-align: center;
  transition: background-color 400ms linear;
}
.card:hover { background: #202020; }

.card__header {
  background: var(--field);
  border-bottom: 1px solid var(--rule);
  border-radius: 3px 3px 0 0;
  padding: 10px 14px;
  font-size: 20px;
  line-height: 1.3;
}

.card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 22px 20px 24px;
}

.card__title { font-size: 24px; font-weight: 700; margin: 0; }
.card__meta, .card__text { margin: 0; font-size: 19px; }
.card__meta a { color: var(--paper); text-decoration: none; }
.card__meta a:hover { text-decoration: underline; }
.card__pin { color: #c9c9c9; margin-right: 6px; }

.card__link {
  display: inline-block;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.card__link:hover { background: var(--paper); color: var(--ink); }

.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

.events-grid__social { text-align: left; }

.events-grid__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.events-grid__frame {
  border-left: 5px solid var(--paper);
  padding-left: 16px;
}
.events-grid__frame iframe { width: 100%; max-width: 400px; height: 420px; border: 0; background: transparent; }

.events-grid__note { margin: 12px 0 0; font-size: 16px; }
.events-grid__note a { color: var(--paper); }

@media (max-width: 820px) {
  .events-grid { grid-template-columns: 1fr; }
}

.social { background: var(--paper); }

.social__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 24px 60px;
}

.social__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 36px);
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.social__note { margin: 0 0 22px; color: var(--muted); font-size: 17px; }

.social__frame {
  border-left: 5px solid var(--field-light);
  padding-left: 20px;
}
.social__frame iframe { width: 100%; max-width: 500px; border: 0; }

.meetings {
  background: var(--ink);
  color: var(--paper);
}

.meetings__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 70px;
  text-align: center;
}

.meetings h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 43px);
  margin: 0 0 26px;
}

.callout {
  border-left: 5px solid var(--paper);
  padding: 4px 0 4px 20px;
  margin: 0 auto 28px;
  text-align: left;
  max-width: 62ch;
  font-size: 20px;
}
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  display: block;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 6px;
}

.callout--dark {
  border-left-color: var(--field-light);
  color: var(--ink);
}

.meetings__times {
  border-left: 5px solid var(--field-light);
  padding-left: 20px;
  margin: 0 auto;
  max-width: 62ch;
  text-align: left;
  font-size: 20px;
}
.meetings__times p { margin: 0 0 8px; }

.news {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 70px;
}

.news > h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 43px);
  letter-spacing: 0.07em;
  text-align: center;
  margin: 0 0 12px;
}

.news__intro { text-align: center; color: var(--muted); margin: 0 0 48px; }

.entry {
  border-left: 5px solid var(--field-light);
  padding-left: 24px;
  margin: 0 0 56px;
}
.entry:last-child { margin-bottom: 0; }

.entry h3 {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 12px;
}

.entry p { margin: 0 0 18px; }
.entry p:last-child { margin-bottom: 0; }

.entry__figure { margin: 20px 0 0; }
.entry__figure img { width: 100%; }
.entry__figure--narrow img { max-width: 500px; }
.entry__figure--logo img { max-width: 300px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.gallery a { display: block; }
.gallery img { width: 100%; }

.band--name .section-title { margin: 0; }

.footer {
  background: var(--ink);
  color: var(--paper);
}

.footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  text-align: center;
}

.footer h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}

.footer p, .footer ul { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.footer a { overflow-wrap: anywhere; }
.footer__legal, .footer__legal p, .footer__legal ul { overflow-wrap: anywhere; }
.footer ul { list-style: none; padding: 0; }
.footer a { color: var(--paper); text-decoration: underline; }
.footer a:hover { color: var(--paper); text-decoration: none; }

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}
.footer__social svg { width: 34px; height: 34px; fill: currentColor; }

.footer__legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 24px 40px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}
.footer__legal ul, .footer__legal p { font-size: 15px; }
.heart { color: #ff8f8f; font-size: 1.05em; }
.footer__legal hr { border: 0; border-top: 1px solid #4a4a4a; margin: 0 0 22px; }
.footer__legal ul { list-style: none; margin: 0 0 18px; padding: 0; }

.page {
  background: var(--ink);
  color: var(--paper);
}

.page__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 43px);
  margin: 0 0 28px;
}

.page p { font-size: 20px; margin: 0 0 22px; }
.page h2 { font-size: 22px; letter-spacing: 0.05em; margin: 36px 0 12px; }
.page a { color: var(--paper); }

.page--404 .page__inner { text-align: center; padding: 110px 24px 130px; }
.page--404 h1 { font-size: clamp(56px, 14vw, 110px); letter-spacing: 0.06em; }

.btn {
  display: inline-block;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid var(--paper);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.btn:hover { background: var(--paper); color: var(--ink); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--field);
  color: var(--paper);
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox__figure figcaption { color: #ddd; font-size: 15px; padding-top: 10px; }
.lightbox__btn, .lightbox__close {
  min-width: 48px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { position: absolute; top: 20px; right: 20px; }
body.has-lightbox { overflow: hidden; }
