/* ==========================================================================
   Top Notch Performance - "Athletic Print"
   Flat color bands. Condensed display type set huge. No gradients, no shadows.
   Colors: cobalt (the one saturated color), bone (off-white), ink (near-black).
   ========================================================================== */

/* Local stand-ins for Big Shoulders Display, shrunk so the wall-sized words
   stay close to the same width if the Google font does not load. */
@font-face {
  font-family: "Poster Fallback";
  src: local("Impact");
  size-adjust: 85%;
}
@font-face {
  font-family: "Poster Fallback Narrow";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow");
  size-adjust: 94%;
}
/* Phones have neither of those (Android ships Roboto, iPhone ships Helvetica),
   so their heavy system sans is shrunk to the same width as well. */
@font-face {
  font-family: "Poster Fallback Sans";
  src: local("Roboto Black"), local("Roboto-Black"), local("Roboto Bold"), local("Roboto-Bold"),
       local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
       local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 700 900;
  size-adjust: 60%;
}

:root {
  --cobalt: #1437c8;
  --bone:   #eeefe8;
  --ink:    #0f1319;
  --steel:  #525a66;   /* small labels on bone, 6:1 */
  --haze:   #b8c2e8;   /* small labels on ink or cobalt, 10:1 / 4.9:1 */

  --display: "Big Shoulders Display", "Poster Fallback", "Poster Fallback Narrow", "Arial Narrow", "Poster Fallback Sans", sans-serif;
  --body: Barlow, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --band-y: clamp(3rem, 8vw, 7.5rem);
  --max: 1200px;

  --hero-s:  clamp(5rem, 29vw, 17rem);    /* TOP / NOTCH */
  --price-s: clamp(7rem, 38vw, 21rem);    /* $35 */
  --join-s:  clamp(6rem, 34vw, 15rem);    /* JOIN */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4rem; /* keeps a focused or targeted element clear of the sticky header */
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bone);
}

p { margin: 0 0 1rem; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
svg { display: block; }
[hidden] { display: none !important; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background-color 150ms linear, color 150ms linear;
}
.btn--bone { background: var(--bone); color: var(--cobalt); }
.btn--bone:hover { background: var(--ink); color: var(--bone); }
.btn--bone:focus-visible { outline-color: var(--bone); }

.btn--cobalt { background: var(--cobalt); color: var(--bone); }
.btn--cobalt:hover { background: var(--ink); }
.btn--cobalt:focus-visible { outline-color: var(--ink); }

.btn--big {
  width: 100%;
  min-height: 4rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

/* ---------- Sticky header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.5rem var(--gutter);
  background: var(--ink);
  color: var(--bone);
}
.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(0.95rem, 3.9vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.top__brand:focus-visible { outline-color: var(--bone); }
.top__mark { width: 1.75rem; height: 1.75rem; fill: currentColor; flex: none; }
.top__join {
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  white-space: nowrap;
}
.top__join:hover { background: var(--cobalt); color: var(--bone); }

/* ---------- Bands ---------- */

.band {
  padding: var(--band-y) var(--gutter);
  scroll-margin-top: 4rem;
}
.band__in {
  max-width: var(--max);
  margin: 0 auto;
}
.band--cobalt { background: var(--cobalt); color: var(--bone); }
.band--bone   { background: var(--bone);   color: var(--ink); }
.band--ink    { background: var(--ink);    color: var(--bone); }

/* Section label: horizontal on phones, a rotated rack label on wide screens. */
.band__in--rail {
  display: grid;
  gap: 1.5rem;
}
.rail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}
.rail::before {
  content: "";
  inline-size: 2rem;
  block-size: 0.5rem;
  background: currentColor;
}
.rail__num { font-weight: 900; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(2rem, 5vw, 4.5rem); }
.hero__in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 1rem;
  align-items: center;
}
.kicker {
  grid-area: 1 / 1 / 2 / 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 3.6vw, 1.5rem);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  flex: none;
  inline-size: 2.5rem;
  block-size: 0.5rem;
  background: currentColor;
}
/* The Big Dipper and the North Star, flat dots in the Alaska flag's layout. */
.dipper {
  grid-area: 1 / 2 / 2 / 3;
  justify-self: end;
  width: clamp(6rem, 24vw, 7.5rem);
  height: auto;
  fill: currentColor;
}
.lockup {
  grid-area: 2 / 1 / 3 / 3;
  display: flex;
  flex-wrap: wrap;       /* the vertical word drops to its own row instead of being clipped when text spacing is enlarged */
  align-items: stretch;
  column-gap: clamp(0.5rem, 2vw, 1.25rem);
  row-gap: 0.5rem;
  font-size: var(--hero-s);
  line-height: 0.82;
}
.lockup__stack { display: grid; }
.lockup__line { display: block; }
.lockup__vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: stretch;
  font-size: calc(var(--hero-s) * 0.27);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: start;
  color: var(--haze);
}
.hero__side {
  grid-area: 3 / 1 / 4 / 3;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.lede {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Membership: the wall ---------- */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  margin: 0;
  margin-top: calc(var(--price-s) * 0.15);   /* the digits rise above their 0.8 line box and the $ hangs below it; */
  margin-bottom: calc(var(--price-s) * 0.1); /* keep them off the heading and the copy when stacked */
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.8;
}
.price__num {
  font-size: var(--price-s);
  letter-spacing: -0.02em;
}
.price__per {
  font-size: clamp(1.375rem, 5.5vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.member__side { display: grid; gap: 1.25rem; }
.member__copy {
  max-width: 44ch;
  margin: 0.5rem 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}
.join {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.5rem 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--cobalt);
  color: var(--bone);
  text-decoration: none;
  transition: background-color 150ms linear;
}
.join:hover { background: var(--ink); }
.join:focus-visible { outline-color: var(--ink); outline-offset: 4px; }
.join__word {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--join-s);
  font-size: 44cqi;
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.join__for {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.125rem, 4vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.join__arrow {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
}
.secure {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel);
}
.secure__lock { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.2rem; fill: currentColor; }

/* ---------- Statements and copy ---------- */

.statement {
  max-width: 14ch;
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}
.statement--big {
  max-width: none;
  font-size: clamp(3rem, 13vw, 7rem);
}
.statement--small {
  max-width: 16ch;
  font-size: clamp(2rem, 6vw, 3.75rem);
}
.sub {
  max-width: 48ch;
  margin: 0 0 1.5rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
}

/* How joining works: three steps on painted rules. */
.steps__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}
.steps__title::before {
  content: "";
  inline-size: 2rem;
  block-size: 0.5rem;
  background: currentColor;
}
.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 6px solid currentColor;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 6px solid currentColor;
}
.steps__num {
  grid-row: 1 / 3;
  min-width: 1.6ch;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 0.8;
  color: var(--haze);
}
.steps__head {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.steps p { max-width: 40ch; margin: 0; }

/* Facts list (address, hours, phone...) */
.facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.facts__row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 4px solid currentColor;
}
.facts dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
/* Contact links need a 44px tap target. */
.facts a {
  display: inline-block;
  padding: 0.6rem 0;
  font-weight: 600;
}

.split { display: grid; gap: 2rem; }

.contact__cta { display: grid; gap: 1rem; align-content: start; }

/* ---------- Footer ---------- */

.foot {
  padding: 2.5rem var(--gutter);
  background: var(--ink);
  color: var(--bone);
}
.foot__in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}
.foot__legal { margin: 0; font-weight: 600; }
.foot__meta { margin: 0; font-size: 1rem; color: var(--haze); }

/* ---------- 404 page ---------- */

.err {
  min-height: calc(100vh - 3.75rem);
  display: grid;
  align-content: center;
}
.err__code {
  margin: 1rem 0;
  font-size: clamp(8rem, 40vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
}
.err .lede { margin-bottom: 1.5rem; }

/* ---------- Narrow phones ---------- */

/* Under 400px the header has no room for the price next to the name. */
@media (max-width: 399px) {
  .top__price { display: none; }
}

/* ---------- Wide screens ---------- */

@media (min-width: 900px) {
  :root {
    /* Sized so the lockup, the 3rem gap and the 20rem side column always fit side by side. */
    --hero-s:  clamp(8rem, calc(33vw - 9.5rem), 17rem);
    --price-s: clamp(8rem, 22vw, 21rem);
    --join-s:  clamp(6rem, 15vw, 15rem);
  }
  .hero__in {
    grid-template-columns: auto 1fr;
    gap: 1.5rem 3rem;
    align-items: end;
  }
  .kicker { align-self: center; }
  .dipper {
    grid-area: 1 / 2 / 3 / 3;
    align-self: start;
    width: clamp(14rem, 22vw, 19rem);
  }
  .lockup { grid-area: 2 / 1 / 3 / 2; }
  .hero__side {
    grid-area: 2 / 2 / 3 / 3;
    align-self: end;
    gap: 2rem;
    padding-top: calc(0.7 * clamp(14rem, 22vw, 19rem) - 2rem); /* the dipper (0.7 x its width) sits above in the same column; this keeps the lede below it */
    padding-bottom: 0.5rem;
  }

  .band__in--rail {
    grid-template-columns: 2.5rem 1fr;
    gap: 2rem 3rem;
  }
  .rail {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    justify-self: start;
    align-self: start;
  }

  .member {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem 4rem;
    align-items: end;
  }
  .member__side { gap: 1.5rem; }
  .price {
    display: grid;
    grid-template-columns: auto auto;
    align-items: stretch;
    column-gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
  }
  .price__per {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: calc(var(--price-s) * 0.175);
    text-align: start;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5rem;
  }
  .steps li { padding: 1.5rem 0 2rem; }
  .steps__head { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }

  .split {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .statement--big { font-size: min(7rem, 11vw); } /* leaves the facts column room next to FAIRBANKS, */
  .facts { padding-top: 0.5rem; }
  .btn--big {
    width: auto;
    min-width: 20rem;
    font-size: 1.75rem;
    white-space: nowrap; /* the label fits the 20rem button on one line */
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
