/* ClubStubs brand layer: colour tokens, self-hosted fonts, and the global nav and footer.
   Loaded on every page (after site.css on the Webflow pages). Every class is prefixed `cs-`
   so nothing here can collide with the Webflow export's class names. Colours are the brand
   guide's: ink and white are the primaries; teal, purple, red and yellow are used solid only
   (the guide allows tints and shades of the primaries, never of the accents). */
:root {
  --cs-ink: #2d2742;
  --cs-ink-deep: #221d33;
  --cs-white: #fff;
  --cs-teal: #25bac9;
  --cs-purple: #800fbf;
  --cs-red: #ff5e49;
  --cs-yellow: #facd2d;
  --cs-display: "Bebas Neue", Impact, sans-serif;
  --cs-body: Inter, system-ui, sans-serif;
  --cs-gutter: clamp(16px, 4vw, 48px);
  --cs-max: 1200px;
}

/* Inter, the app's body face, for body copy. Variable: one file covers every weight.
   size-adjust: Inter's x-height is .546em and Raleway's .521em, so 95.5% keeps copy at the
   visual size it had in Raleway. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 95.5%;
  src: url(../fonts/google/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 95.5%;
  src: url(../fonts/google/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Bebas Neue (one weight) for display type */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/google/bebasneue-JTUSjIg69CK48gW7PXoo9WlhyyTh89Y.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/google/bebasneue-JTUSjIg69CK48gW7PXoo9WdhyyTh89ZNpQ.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Buttons ---- */
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 4px 22px 0;
  border: 0;
  border-radius: 0;
  background-color: var(--cs-yellow);
  box-shadow: 5px 5px 0 var(--cs-purple);
  color: var(--cs-ink);
  font-family: var(--cs-display);
  font-size: 24px;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}

.cs-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--cs-purple);
}

.cs-btn:focus-visible, .cs-nav a:focus-visible, .cs-footer a:focus-visible {
  outline: 3px solid var(--cs-teal);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-btn {
    transition: none;
  }
}

/* ---- Global nav: logo and one button ---- */
.cs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--cs-teal);
  background-color: var(--cs-ink);
}

.cs-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 12px var(--cs-gutter);
}

.cs-nav-logo {
  display: block;
  line-height: 0;
}

.cs-nav-logo img {
  width: clamp(84px, 7.5vw, 100px);
  height: auto;
}

/* the homepage nav carries both logos and shows the one for the current theme */
.cs-logo-on-light {
  display: none;
}

/* ---- Light/dark switch (homepage only for now), as in the app ---- */
.cs-theme {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--cs-white);
}

.cs-theme svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cs-theme-sun {
  display: none;
}

.cs-theme-switch {
  position: relative;
  width: 36px;
  height: 22px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid var(--cs-teal);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

/* the knob sits right in dark mode (aria-checked = dark), left in light */
.cs-theme-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: var(--cs-white);
  transition: transform .3s ease;
}

.cs-theme-switch[aria-checked="true"] span {
  transform: translateX(14px);
}

.cs-theme-switch:focus-visible {
  outline: 3px solid var(--cs-teal);
  outline-offset: 3px;
}

[data-theme="light"] .cs-nav {
  background-color: #f8f8f8;
}

[data-theme="light"] .cs-logo-on-dark,
[data-theme="light"] .cs-theme-moon {
  display: none;
}

[data-theme="light"] .cs-logo-on-light,
[data-theme="light"] .cs-theme-sun {
  display: block;
}

[data-theme="light"] .cs-theme {
  color: var(--cs-ink);
}

[data-theme="light"] .cs-theme-switch span {
  background-color: var(--cs-ink);
}

@media (prefers-reduced-motion: reduce) {
  .cs-theme-switch span {
    transition: none;
  }
}

/* small phones: drop the sun/moon so logo, switch and button share one row */
@media screen and (max-width: 360px) {
  .cs-theme svg,
  [data-theme] .cs-theme svg {
    display: none;
  }
}

/* ---- Global footer ---- */
.cs-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--cs-ink-deep);
  color: var(--cs-white);
  font-family: var(--cs-body);
}

/* a band of white hairline hatching along the top edge, stepped at one end */
.cs-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 60%);
  height: 56px;
  background: repeating-linear-gradient(-55deg, transparent 0 9px, rgba(255, 255, 255, .5) 9px 10px);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 32% 100%, 32% 50%, 14% 50%);
}

.cs-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 88px var(--cs-gutter) 40px;
}

.cs-footer-brand img {
  width: 138px;
  height: auto;
}

.cs-footer-tagline {
  margin: 18px 0 24px;
  font-family: var(--cs-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
}

.cs-footer-tagline span {
  color: var(--cs-yellow);
}

.cs-footer-col h2 {
  margin: 0 0 14px;
  color: var(--cs-teal);
  font-family: var(--cs-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .04em;
}

.cs-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-footer-col li + li {
  margin-top: 8px;
}

.cs-footer a:not(.cs-btn) {
  color: var(--cs-white);
  font-size: 15px;
  text-decoration: none;
}

.cs-footer a:not(.cs-btn):hover {
  color: var(--cs-yellow);
}

.cs-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: min(100% - 2 * var(--cs-gutter), var(--cs-max) - 2 * var(--cs-gutter));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.cs-footer-base p {
  margin: 0;
}

@media screen and (max-width: 991px) {
  .cs-footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cs-footer-brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 559px) {
  .cs-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 72px;
  }

  .cs-btn {
    font-size: 21px;
    padding: 4px 16px 0;
  }
}
