/* Heritage Ringers Colorado — redesign inspired by the Wix "Athenaeum" ensemble template.
   Burgundy + white brand, with handbell brass and warm cream as complementary tones.
   Change the variables below to restyle the whole site. */
:root {
  --burgundy: #8a1530;        /* primary brand (close to the logo red #a3142b) */
  --burgundy-deep: #5e0d20;   /* footer, hover */
  --brass: #c09a5b;           /* handbell brass — accents, badges, rules */
  --brass-light: #e9d9b8;
  --cream: #f8f3ea;           /* alternate section background */
  --white: #ffffff;
  --ink: #1f1a1b;
  --muted: #5d5557;
  --line: #e4d9c7;

  --font-display: "League Gothic", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: .92;
  letter-spacing: .01em;
  margin: 0 0 1.5rem;
}
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9rem;
}
.eyebrow-light { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  padding: .95rem 1.6rem; min-height: 44px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover, .btn-brass:focus-visible { background: var(--brass-light); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--burgundy); }
.btn-solid { background: var(--burgundy); color: #fff; }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--burgundy-deep); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; padding: .6rem 0; }
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; text-transform: uppercase; color: var(--burgundy); letter-spacing: .02em; }
.brand-sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.nav { display: flex; gap: 2rem; }
.nav a {
  font-family: var(--font-display); font-size: 1.55rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--burgundy); }

/* ---------- Hero ---------- */
.hero { padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(82vh, 760px); background: var(--burgundy); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5.5rem); color: #f4e9ea; }
.hero-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(4.5rem, 11vw, 10rem); line-height: .84; letter-spacing: .005em; margin: 0 0 1.5rem;
}
.hero-lede { font-size: 1.15rem; max-width: 30ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; position: absolute; inset: 0; }

/* Emblem beside the big title. Spins 90deg on hover: the emblem repeats every 90deg,
   so the bells finish at the same 45deg angle they started at. */
.title-lockup { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); margin: 0 0 1.5rem; }
.title-lockup .hero-title { margin: 0; }
.title-emblem {
  flex: none; width: clamp(5.5rem, 12vw, 11rem); aspect-ratio: 1; height: auto;
  color: #fff; fill: currentColor; transition: transform .9s cubic-bezier(.34, 1.3, .64, 1);
}
.title-lockup:hover .title-emblem, .hero-text:hover .title-emblem, .page-band:hover .title-emblem { transform: rotate(90deg); }
.page-band .title-emblem { width: clamp(4rem, 8vw, 6.5rem); }
@media (prefers-reduced-motion: reduce) { .title-emblem { transition: none; } }

/* Home hero: emblem to the right of the text, spanning from the eyebrow (top) to the buttons (bottom).
   The SVG fills its grid area and keeps its square shape, so it is as tall as the text block
   whenever there is room, and centred in the open space. */
.hero .hero-text { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(1.5rem, 4vw, 4rem); align-content: center; }
.hero .hero-text > :not(.hero-emblem) { grid-column: 1; }
.hero .hero-emblem { grid-column: 2; grid-row: 1 / 5; position: relative; min-width: 6rem; }
.hero .hero-emblem .title-emblem { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .eyebrow { margin-top: 0; }
.hero:hover .title-emblem { transform: rotate(90deg); }
@media (min-width: 901px) and (max-width: 2200px) {
  .hero { grid-template-columns: 1.45fr 1fr; }
}
@media (max-width: 600px) {
  .hero .hero-text { grid-template-columns: 1fr; }
  .hero .hero-emblem { grid-column: 1; grid-row: 1; height: 6.5rem; margin-bottom: 1.25rem; }
}

/* Inner pages */
.page-band { background: var(--burgundy); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-title { font-size: clamp(3.5rem, 8vw, 6.5rem); margin: 0; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; scroll-margin-top: 80px; }

/* About — larger feature section */
.about { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.about-photo { margin: 0; justify-self: center; width: 100%; max-width: 500px; }
.about-photo img { width: 100%; height: auto; box-shadow: 22px 22px 0 var(--brass-light); }
.about-text .display { font-size: clamp(3.4rem, 7.5vw, 6.2rem); margin-bottom: 2rem; }
.about-text .eyebrow { font-size: .9rem; }
.about-text p:not(.eyebrow) { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.7; color: var(--ink); max-width: 58ch; }

/* Mission band — the template's big burgundy statement */
.mission { background: var(--burgundy); padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.mission::before { content: ""; display: block; width: 72px; height: 3px; background: var(--brass); margin: 0 auto 2rem; }
.mission-text {
  font-family: var(--font-display); text-transform: uppercase; color: #fff; text-align: center;
  font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1; max-width: 22ch; margin: 0 auto;
}

/* ---------- Galleries (masonry: js/gallery.js sorts photos into .gallery-col) ---------- */
.gallery-section.alt { background: var(--cream); }
.gallery-heading { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2.2rem; }
.gallery-heading .display { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.gallery-heading::after { content: ""; flex: 1; height: 1px; background: var(--brass); opacity: .6; }
.season-badge {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: .03em;
  color: #fff; background: var(--burgundy); padding: .45rem .75rem .35rem; border-radius: var(--radius); white-space: nowrap;
}
.gallery { display: flex; gap: 10px; align-items: flex-start; }
.gallery-col { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.gallery img { width: 100%; height: auto; transition: opacity .2s, transform .3s; }
.gallery img.contain { aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.gallery button:hover img, .gallery button:focus-visible img { opacity: .88; }

/* ---------- Concerts: burgundy band with tear-off calendar cards ---------- */
.concerts { background: var(--burgundy-deep); background-image: radial-gradient(ellipse at 15% 0%, rgba(192,154,91,.18), transparent 55%); color: #f4e9ea; }
.concerts .eyebrow { color: var(--brass-light); }
.concerts .display { color: #fff; margin-bottom: 2.75rem; }
.event-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.event {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink); border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s;
}
.event:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.35); }
.event-date { margin: 0; display: flex; flex-direction: column; align-items: center; }
.event-month {
  align-self: stretch; text-align: center; background: var(--brass); color: var(--ink);
  font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: .55rem 0 .5rem;
}
.event-day { font-family: var(--font-display); font-size: 5.2rem; line-height: 1; color: var(--burgundy); padding: .9rem 0 .2rem; }
.event-weekday {
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); line-height: 1; padding: .1rem 0 .8rem;
}
.event-detail { margin: 0; padding: .4rem 1.25rem 1.4rem; text-align: center; border-top: 1px dashed var(--line); }
.event-detail sup { font-size: .68em; line-height: 0; vertical-align: super; letter-spacing: 0; }
.event-detail span { display: block; font-weight: 600; line-height: 1.4; }
.event-detail span + span { font-weight: 400; color: var(--muted); margin-top: .35rem; font-size: .95rem; }
.event.is-past { opacity: .5; box-shadow: none; }
.event.is-past .event-month { background: #d9cfc0; }
.event.is-past::after { content: "Past"; position: absolute; top: .55rem; right: .7rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.event.is-next { outline: 3px solid var(--brass); outline-offset: 4px; }
.event-flag {
  position: absolute; top: 2.35rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--burgundy); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: 2px;
}
.event.is-next .event-day { padding-top: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .event:hover { transform: none; } }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-card { border-left: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.contact-card h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 .5rem; }
.contact-card p { margin: .2rem 0; }
.contact-card a { color: var(--burgundy); font-weight: 500; }
.contact-form { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 4px solid var(--burgundy); }
.contact-form label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 1.1rem 0 .4rem; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  border: 1px solid #d8ccb9; border-radius: var(--radius); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brass); outline: 2px solid var(--brass-light); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 1.5rem; }

/* ---------- Join Us ---------- */
mark.draft { background: #fff1b8; color: var(--ink); padding: 0 .2em; border-bottom: 2px dashed #c9a227; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); }
.join-intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.join-intro-grid p:not(.eyebrow) { max-width: 60ch; }
.join-intro .btn { margin-top: 1rem; }
.join-photo { margin: 0; }
.join-photo img { width: 100%; height: auto; box-shadow: -18px 18px 0 var(--brass-light); }

.join-sessions { background: var(--burgundy-deep); background-image: radial-gradient(ellipse at 85% 0%, rgba(192,154,91,.18), transparent 55%); color: #f4e9ea; }
.join-sessions .display { color: #fff; }
.join-sessions-lede { font-size: 1.15rem; max-width: 62ch; margin: 0 0 2.75rem; }
.learn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.learn-grid li { background: rgba(255,255,255,.06); border-top: 3px solid var(--brass); padding: 1.4rem 1.4rem 1.6rem; }
.learn-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--brass); }
.learn-grid h3 { color: #fff; font-size: 1.1rem; margin: .5rem 0 .5rem; }
.learn-grid p { margin: 0; color: #e8d6da; }
.session-note { margin-top: 2.5rem; background: var(--white); color: var(--ink); padding: 1.5rem 1.75rem; border-left: 0; border-top: 4px solid var(--brass); max-width: 720px; }
.session-note h3 { margin: 0 0 .4rem; color: var(--burgundy); }
.session-note p { margin: 0; }
.session-note a, .steps a { color: var(--burgundy); font-weight: 600; }

.steps { list-style: none; counter-reset: step; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--burgundy); color: #fff; font-family: var(--font-display); font-size: 1.9rem; display: grid; place-items: center;
}
.steps h3, .join-facts h3 { color: var(--ink); margin: 0 0 .4rem; font-size: 1.15rem; }
.steps p, .join-facts p { margin: 0; }
.join-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.join-facts a { color: var(--burgundy); font-weight: 500; }

.join-cta { background: var(--cream); text-align: center; }
.join-cta-inner .display { margin-bottom: .75rem; }
.join-cta-inner > p { font-size: 1.15rem; margin: 0 0 1.75rem; }
.join-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 0; }
.join-contacts a {
  text-decoration: none; background: var(--burgundy); color: #fff; padding: .85rem 1.3rem; border-radius: var(--radius);
  font-weight: 500; min-height: 44px; display: inline-flex; align-items: center;
}
.join-contacts a:hover, .join-contacts a:focus-visible { background: var(--burgundy-deep); }
@media (max-width: 900px) {
  .join-intro-grid { grid-template-columns: 1fr; }
  .steps, .join-facts { grid-template-columns: 1fr; }
  .join-photo img { box-shadow: 12px 12px 0 var(--brass-light); }
  .join-photo { max-width: calc(100% - 14px); }
}

/* ---------- Legal pages ---------- */
.legal-body { max-width: 760px; }
.legal-body ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-deep); color: #e8d6da; padding: clamp(3rem, 7vw, 5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand { font-family: var(--font-display); text-transform: uppercase; color: var(--brass-light); font-size: clamp(3rem, 6vw, 4.8rem); line-height: .9; margin: 0 0 .8rem; }
.footer-tag { margin: 0; font-size: .9rem; }
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a { font-family: var(--font-display); text-transform: uppercase; color: #fff; text-decoration: none; font-size: 2.1rem; line-height: 1.1; }
.footer-nav a:hover { color: var(--brass-light); }
.footer-contact { display: grid; grid-template-columns: auto 1fr; gap: .3rem .6rem; font-size: .95rem; align-content: start; }
.footer-contact a { color: #fff; }
.footer-contact a:first-child { grid-column: 1 / -1; margin-bottom: .3rem; }
.footer-contact span { color: #c9b0b6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(233, 217, 184, .25); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #e8d6da; margin-left: 1.25rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 12, .93); display: none; align-items: center; justify-content: center; z-index: 50; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 1rem; min-width: 44px; min-height: 44px; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 1rem; color: var(--brass-light); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-photo { max-width: calc(100% - 14px); justify-self: start; }
  .about-photo img { box-shadow: 12px 12px 0 var(--brass-light); }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 55vw; order: -1; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .site-header { position: static; }
  .nav { gap: 1.25rem; }
  .gallery-heading { flex-wrap: wrap; }
  .gallery-heading::after { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom a { margin: 0 1rem 0 0; }
}

/* Tagline removed from content; hide the empty paragraph it leaves behind. */
.hero-lede:empty { display: none; }
