/*
 * The site stylesheet. Structure first, then the decoration that makes it the
 * Editorial direction. Previously split across an @import; folded together so the
 * browser does not pay for a second round-trip before it can paint.
 */

/* Layout and structure. Decoration follows below. */

:root {
  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --measure: 66ch;
  --wrap: 74rem;
}

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

body {
  margin: 0;
  font-family: var(--font);
}

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

/* Video embeds keep their own aspect ratio but never exceed the column. */
main iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  margin-block: 1.5rem;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40em) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 64px;
  padding-block: 0;
}

/* Below the breakpoint the header is just: menu, brand, search — the call to
   action lives at the bottom of the slide-out menu instead. */
.site-header__cta {
  display: none;
}
@media (min-width: 62em) {
  .site-header__cta {
    display: inline-block;
    flex: none;
  }
}

.site-header .site-header__menu,
.site-header .site-header__search-toggle {
  flex: none;
}
.site-header__brand {
  margin-right: auto;
}
@media (min-width: 62em) {
  .site-header__brand {
    margin-right: 0;
  }
}
.site-nav {
  display: none;
}
.site-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  display: none;
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-search.is-open {
  display: block;
}
.site-search input {
  width: 100%;
}

@media (min-width: 62em) {
  .site-header .wrap {
    gap: 1.5rem;
  }
  .site-header .site-header__menu,
  .site-header .site-header__search-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    /* Sits beside the logo; the gap after it pushes search to the far edge. */
    margin-right: auto;
  }
  .site-search {
    position: relative;
    top: auto;
    display: block;
    padding: 0;
    background: none;
    border: 0;
  }
  .site-search input {
    width: auto;
  }
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

/* Long words, pasted URLs and stray table cells must not widen the page. */
main {
  overflow-wrap: break-word;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
}
.icon-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Slide-out menu ---------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(20 35 45 / 0.5);
}
.mobile-menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(20rem, 84vw);
  height: 100%;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--bg);
  overflow-y: auto;
  animation: menu-in 0.18s ease-out;
}
@keyframes menu-in {
  from {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__panel {
    animation: none;
  }
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.mobile-menu ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.mobile-menu li a {
  display: block;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.mobile-menu li a:hover {
  color: var(--brand);
}
.mobile-menu__cta {
  display: block;
  margin-top: auto;
  padding: 1rem;
  background: var(--brand);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.mobile-menu__cta:hover {
  background: var(--brand-deep);
}

/* The panel is fixed, so the page behind it must not scroll. */
html.is-locked,
html.is-locked body {
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-block: 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  min-width: max-content;
  border-collapse: collapse;
}

.site-nav ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  /* The call to action is taller than the plain links; without this they
     top-align against it rather than sitting on the same centre line. */
  align-items: center;
  gap: 1.25rem;
}

.site-search__results {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
}

.site-search__results li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

main > article,
main > .page-shell {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40em) {
  main > article,
  main > .page-shell {
    padding-inline: 1.5rem;
  }
}

/* Content with a sibling sidebar beside it. Single column until there is room
   for both without squeezing the prose measure. */
.page-shell {
  display: grid;
  gap: 2.5rem;
}
.page-shell > article {
  max-width: none;
  padding-inline: 0;
}
@media (min-width: 62em) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 4rem;
  }
}

.siblings ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The whole row is the target, not just the words in it. The link still supplies
   the accessible name; this only grows its hit area to fill the row. */
.card-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
@media (min-width: 40em) {
  .card-list li {
    padding-inline: 1.5rem;
    margin-inline: -1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
.card-list__text a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-list__cta {
  flex: none;
}

main p,
main ul:not(.card-list):not(.post__tags):not(.carousel__tabs),
main ol,
main blockquote {
  max-width: var(--measure);
}

.card-list {
  list-style: none;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.post__meta,
.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.recipe__facts,
.workout__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.recipe__facts > div,
.workout__facts > div {
  min-width: 6rem;
}

.recipe__facts dd,
.workout__facts dd {
  margin: 0;
}

.site-search input {
  font: inherit;
}

.site-footer__cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer__base p {
  margin: 0;
}

.site-social {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/*
 * Decoration. Type hierarchy and white space carry the page; blue appears only on
 * interactive things. Nothing is underlined; links carry the brand blue and extra
 * weight instead, and change to the deeper blue on hover.
 */

:root {
  --ink: #14232d;
  --ink-soft: #5c6b76;
  --rule: #dfe4e8;
  --rule-strong: #cfd6db;
  --bg: #fff;
  --bg-soft: #f7f9fa;
  /* One blue for everything: links, buttons, banner, footer headings, focus
     rings. A touch darker than the WordPress theme's #37abe2 so white text on it
     clears 3:1, which is the bar for the display sizes it carries. */
  --brand: #209eda;
  --brand-deep: #1b86ba;
  --footer-bg: #f0f0f0;
  --radius: 8px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-block: 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.45rem;
  margin-top: 2.4em;
}

/* Content links carry the brand blue and extra weight instead of an underline. */
main p a,
main li a,
main blockquote a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
main p a:hover,
main li a:hover,
main blockquote a:hover {
  color: var(--brand-deep);
}

/* Navigation, cards and lists are self-evidently links. */
.site-nav a,
.site-footer a,
.card-list a,
.site-header__brand,
.post__meta a,
.post__tags a,
.site-search__results a {
  text-decoration: none;
  color: inherit;
}

.site-nav a:hover,
.site-footer a:hover,
.card-list a:hover {
  color: var(--brand);
}

.site-header {
  border-bottom: 1px solid var(--rule);
  /* The mobile search panel is absolutely positioned against this. */
  position: relative;
}
/* Logo only, so it carries the header on its own. */
.site-header__brand img {
  width: 52px;
  height: 52px;
}
.site-nav {
  font-size: 0.95rem;
  font-weight: 700;
}

/*
 * Buttons. One shape and one size across the site; only the emphasis changes.
 * Filled for a primary action, outlined for a secondary one.
 */
.site-header__cta,
.signup__btn,
.card-list__cta {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.site-header__cta,
.signup__btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.site-header__cta:hover,
.signup__btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.card-list__cta {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--brand);
}
.card-list li:hover .card-list__cta {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.site-header__cta:focus-visible,
.signup__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.site-search input {
  min-width: 15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.site-search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  background: var(--bg);
}
.site-search__results {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(20 35 45 / 0.1);
}
.site-search__results li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.site-search__results li:last-child {
  border-bottom: 0;
}
.site-search__type {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

main {
  display: block;
  padding-block: 2.25rem 5rem;
}

/*
 * Home page carousel. One slide per call to action, with the three named in tabs
 * underneath so none is ever hidden behind the rotation. The photos run the full
 * width of the window; the words and tabs stay on the page's column. Embla moves
 * the track; until it loads (or without JavaScript) the viewport is a scroll-snap
 * strip.
 */
main:has(> .carousel) {
  padding-top: 0;
}
.carousel {
  position: relative;
  margin-bottom: 2.75rem;
}
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: var(--ink);
  scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar {
  display: none;
}
.carousel.is-ready .carousel__viewport {
  overflow: hidden;
  scroll-snap-type: none;
}
.carousel__track {
  display: flex;
  touch-action: pan-y pinch-zoom;
}
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  overflow: hidden;
  color: #fff;
}
@media (min-width: 40em) {
  .carousel__slide {
    aspect-ratio: auto;
    height: clamp(24rem, 45vw, 36rem);
  }
}

/* Photos fill a box whose shape the stylesheet owns, so the crop can change per
   breakpoint. Each photo's focal point is set inline from src/_data/photos.js. */
.carousel__slide img,
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A scrim under the words, darkest where they sit. */
.carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(10 22 30 / 0.82),
    rgb(10 22 30 / 0.35) 55%,
    transparent 80%
  );
}
@media (min-width: 56em) {
  .carousel__slide::after {
    background:
      linear-gradient(to right, rgb(10 22 30 / 0.7), rgb(10 22 30 / 0.2) 50%, transparent 70%),
      linear-gradient(to top, rgb(10 22 30 / 0.55), transparent 60%);
  }
}
.carousel__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 1.75rem;
}
@media (min-width: 40em) {
  .carousel__body {
    padding-block: 3rem;
  }
}
.carousel__body p {
  margin: 0;
  max-width: 34rem;
}
.carousel__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
p.carousel__title {
  margin: 0.4rem 0 0.35rem;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p.carousel__note {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.5;
}
.carousel__btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}
.carousel__btn:hover {
  background: var(--brand-deep);
}
.carousel__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}
.carousel__tabs a {
  position: relative;
  display: block;
  padding-top: 0.7rem;
  border-top: 3px solid var(--rule);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

/* On a phone the labels do not fit three across, and the slide already names
   its action, so the tabs become bars. The labels stay for screen readers, and
   each bar keeps a full-size tap target below it. */
@media (max-width: 39.99em) {
  .carousel {
    margin-bottom: 1rem;
  }
  .carousel__tabs {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .carousel__tabs a {
    height: 2.75rem;
    padding: 0;
  }
  .carousel__tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.carousel__tabs a:hover,
.carousel__tabs a[aria-current] {
  color: var(--ink);
}
.carousel__tabs a[aria-current] {
  border-top-color: var(--brand);
}
.carousel__tabs a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* While a countdown runs, the active tab's rule fills in over it instead of
   being solid. */
.carousel.is-timing .carousel__tabs a[aria-current] {
  border-top-color: var(--rule);
}
.carousel.is-timing .carousel__tabs a[aria-current]::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  animation: carousel-progress var(--carousel-interval) linear;
}
@keyframes carousel-progress {
  from {
    transform: scaleX(0);
  }
}

/*
 * Home page links beside the introduction: where to go next once the carousel
 * has made its pitch.
 */
.home-lead {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56em) {
  .home-lead {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3.5rem;
    align-items: start;
  }
}
.home-lead__text > :first-child {
  margin-top: 0;
}

.ctas {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.ctas__title {
  margin: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--brand);
}
.ctas ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.ctas li + li {
  border-top: 1px solid var(--rule);
}
.ctas a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.15rem 1rem;
  padding: 1.05rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.ctas a:hover {
  background: var(--bg-soft);
  color: var(--brand);
}
.ctas a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.ctas__label {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.ctas__note {
  grid-column: 1;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.ctas a:hover .ctas__note {
  color: inherit;
}
.ctas__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--brand);
}

/* A wide photo under the title of a section's landing page. */
.banner {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 2.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
@media (min-width: 40em) {
  .banner {
    aspect-ratio: 3 / 1;
  }
}

.siblings {
  align-self: start;
  font-size: 0.94rem;
}
@media (min-width: 62em) {
  .siblings {
    position: sticky;
    top: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--rule);
  }
}
.siblings h2 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  border-bottom: 2px solid var(--rule-strong);
}
.siblings li a {
  display: block;
  padding: 0.7em 0.1em;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.siblings li a:hover {
  color: var(--brand);
}
.siblings__all {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
}
.siblings__all a {
  color: var(--brand);
  font-weight: 600;
}

.post__meta,
.event__meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: -0.4em;
}

/* Hairline dividers rather than boxes. */
.card-list {
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}
.card-list li {
  padding: 1.1rem 0.75rem;
  margin-inline: -0.75rem;
  border-bottom: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.card-list li:hover {
  background: var(--bg-soft);
}
.card-list li:hover .card-list__text a {
  color: var(--brand);
}

.card-list li:has(a:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.card-list li a:focus-visible {
  outline: none;
}
.card-list li a {
  font-weight: 600;
  font-size: 1.08rem;
}
.card-list p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.recipe__blurb {
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.recipe__facts,
.workout__facts {
  margin: 2rem 0;
  padding: 1.1rem 0;
  border-block: 1px solid var(--rule);
}
.recipe__facts dt,
.workout__facts dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}
.recipe__facts dd,
.workout__facts dd {
  font-weight: 600;
  font-size: 1.05rem;
}

.recipe__ingredients li,
.recipe__method li {
  margin-bottom: 0.4rem;
}

blockquote {
  margin-inline: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brand);
  font-size: 1.1rem;
}

.post__tags a {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--rule);
}

.signup {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.signup h2 {
  margin-top: 0;
}

/*
 * Join banner — the WordPress theme's treatment: white on the brand blue with an
 * outlined button that inverts on hover. Same button shape, size and weight as
 * the rest of the site; only the colours change because the field is blue.
 */
.join-banner {
  background: var(--brand);
  color: #fff;
  padding-block: 1.5rem;
}
.join-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
@media (max-width: 34em) {
  .join-banner__btn {
    display: block;
    text-align: center;
    width: 100%;
  }
}
.join-banner h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: #fff;
}
.join-banner__btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  border: 1px solid #fff;
  border-radius: var(--radius);
  white-space: nowrap;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.join-banner__btn:hover {
  background: #fff;
  color: var(--brand);
}
.join-banner__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-footer {
  margin-top: 0;
  padding-block: 3rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  /* Carried over from the WordPress theme: a faint logo watermark on flat grey. */
  background-color: var(--footer-bg);
  position: relative;
  overflow: hidden;
}

/* The logo mark, oversized and knocked back — the old site's footer treatment,
   redrawn from our own artwork. A pseudo-element so opacity is tunable here. */
.site-footer::before {
  content: '';
  position: absolute;
  top: -6%;
  right: -3%;
  width: 23rem;
  height: 23rem;
  max-width: 35%;
  background: url('/img/footer-watermark.png') no-repeat center / contain;
  opacity: 0.025;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
}
.site-footer h2 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  border-bottom: 2px solid var(--rule-strong);
}
/* Generous hit areas with a rule between, matching the old site — these were
   noticeably easier to tap than a tight list of text links. */
.site-footer li {
  margin: 0;
}
.site-footer li a {
  display: block;
  padding: 0.85em 0.25em;
  border-bottom: 1px solid var(--rule);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.site-footer li a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.site-footer__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}
.site-social li a {
  padding: 0;
  border-bottom: 0;
  color: var(--ink-soft);
}
.site-social a:hover {
  color: var(--brand);
}
