/*
 * Shared skeleton for every landing theme.
 *
 * Only structure lives here: reset, layout containers, the header and footer
 * frames, form scaffolding and accessibility affordances. Every colour,
 * typeface and section treatment comes from the theme stylesheet loaded after
 * this one, so themes can differ completely without fighting a base style.
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap, 1180px);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 140ms ease, color 140ms ease;
}

.nav a:hover {
  text-decoration: none;
}

/*
 * The header call to action sits outside <nav> on purpose. Inside it, the
 * `.nav a` colour rule outranked `.button` and made the label unreadable in
 * every theme.
 */
.site-header__cta {
  padding: 9px 16px;
  font-size: 14px;
  flex: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  margin-left: auto;
  color: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  cursor: pointer;
  font: inherit;
  border: 1px solid transparent;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease,
    transform 90ms ease;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button--block {
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* Reachable by bots, invisible and skipped by people. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid;
  border-radius: 4px;
}

.site-footer {
  padding-bottom: 30px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 38px;
  margin-bottom: 36px;
}

.site-footer h4 {
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer__base {
  border-top: 1px solid;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
    order: 2;
  }

  .site-header__cta {
    order: 3;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 22px 20px;
    display: none;
    background: inherit;
  }

  .nav[data-open='true'] {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
  }
}

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

/*
 * Brand mark. Each theme recolours the plates from its own palette so the
 * logo belongs to the page rather than being imported from another one.
 */
.gymfit-mark__collar {
  fill: currentColor;
  opacity: 0.55;
}

.gymfit-mark__plate {
  fill: currentColor;
}

.gymfit-mark__bar {
  fill: currentColor;
  opacity: 0.4;
}
