/* =============================================================================
   bostontitans.org — design tokens

   Every colour and font family used anywhere on this site is defined here.
   Nothing outside this block may contain a colour literal; see
   scripts/check-tokens.sh, and styleguide.html for what each one looks like.
   ========================================================================== */

:root {
  /* --- surfaces ------------------------------------------------------- */
  --ground:       #e7e6e3;  /* page background, warm grey                   */
  --card:         #ffffff;  /* raised card surfaces on --ground             */
  --ink:          #0d0d0d;  /* dark surfaces (join, footer, winter card)    */

  /* --- text ----------------------------------------------------------- */
  --body:         #444444;  /* body copy on light surfaces                  */
  --mute:         #979797;  /* labels and captions on light surfaces        */
  --on-ink:       #ffffff;  /* primary text on --ink surfaces               */
  --on-dark:      #c1c1c1;  /* body copy on --ink surfaces                  */
  --on-dark-mute: #9c9c9c;  /* labels and captions on --ink surfaces        */

  /* --- accent --------------------------------------------------------- */
  --mint:         #d5f2e3;  /* the club accent: pills, marquee, step numbers.
                               Used at rest. On --ink it also serves as link
                               colour.                                      */
  --teal:         #2fa088;  /* interaction only — hover and :focus-visible.
                               Never appears at rest, so it is deliberately
                               absent from the resting palette.             */

  /* --- lines ---------------------------------------------------------- */
  --hair:         #2f2f2f;  /* hairlines on --ink surfaces                  */
  --hair-strong:  #444444;  /* stronger borders on --ink (outline pills)    */
  --hair-light:   #dedbd4;  /* hairlines on --ground / --card surfaces      */

  /* --- type ----------------------------------------------------------- */
  --display: Anton, "Arial Narrow", sans-serif;                 /* headings, uppercase */
  --sans:    Archivo, ui-sans-serif, system-ui, -apple-system,
             "Segoe UI", sans-serif;                            /* body                */
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular,
             Menlo, monospace;                                  /* pills, labels       */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; }
address { font-style: normal; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: var(--on-ink); }

.shell { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- marquee ---------- */

.marquee { background: var(--ink); overflow: hidden; padding: 10px 0; }
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: btbc-marquee 22s linear infinite;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--mint); white-space: nowrap;
}
@keyframes btbc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 24px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 20px; letter-spacing: .02em; }

.site-nav {
  display: flex; align-items: center; gap: 28px;
  background: var(--card); border-radius: 48px; padding: 14px 32px;
  font-size: 15px; font-weight: 500; color: var(--body);
}
.site-nav a { color: var(--body); }
.site-nav a:hover { color: var(--teal); }
/* The current page's tab. Mint, never teal: this is a resting state. The
   negative margin keeps the pill from shifting its neighbours. */
.site-nav a[aria-current="page"] {
  background: var(--mint); color: var(--ink);
  border-radius: 48px; padding: 6px 14px; margin: -6px -14px;
}

.btn {
  display: inline-block; border-radius: 8px; font-weight: 500; text-align: center;
  padding: 16px 28px; font-size: 16px;
}
.btn-dark  { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--teal); color: var(--on-ink); }
.btn-mint  { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--card); color: var(--ink); }
.btn-ghost { border: 1.5px solid var(--body); color: var(--body); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 14px 24px; font-size: 15px; }

/* ---------- shared bits ---------- */

.pill {
  display: inline-block; background: var(--mint); color: var(--ink);
  border-radius: 64px; padding: 8px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
}
.pill-sm { padding: 6px 16px; }
.pill-outline { background: none; border: 1px solid var(--hair-strong); color: var(--mint); }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--mute); }

h1, h2, h3.big { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(52px, 10.5vw, 118px); line-height: .92; letter-spacing: -.02em; text-wrap: pretty; }
h2 { font-size: clamp(34px, 6.4vw, 56px); line-height: .95; }
h2.xl { font-size: clamp(38px, 8vw, 72px); line-height: .9; }
h2.xxl { font-size: clamp(42px, 9vw, 96px); line-height: .9; text-wrap: pretty; }
h3.big { font-size: clamp(28px, 4.6vw, 36px); }

p { margin: 0; }

/* ---------- hero ---------- */

.hero {
  max-width: 1240px; margin: 0 auto; padding: 56px 32px 88px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-lede { font-size: 18px; line-height: 1.5; color: var(--body); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark {
  background: var(--card); border-radius: 64px 64px 32px 32px; padding: 40px;
  display: flex; align-items: center; justify-content: center;
}
.hero-mark img { width: 100%; max-width: 380px; object-fit: contain; }

/* ---------- page head (every page but home) ---------- */

.page-head {
  max-width: 1240px; margin: 0 auto; padding: 40px 32px 64px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.page-head h1 { font-size: clamp(48px, 9vw, 104px); }
.page-head .hero-lede { max-width: 620px; }

/* ---------- about ---------- */

.section { max-width: 1240px; margin: 0 auto; padding: 0 32px 88px; }

.about-card {
  background: var(--card); border-radius: 32px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px;
}
.about-head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about-body { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.6; color: var(--body); }

.namebox {
  border-left: 3px solid var(--mint); padding-left: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.namebox strong { color: var(--ink); }
.about-body a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- facts: label / value rows inside a light card ---------- */

.facts { margin: 0; display: grid; grid-template-columns: minmax(140px, 200px) 1fr; }
.facts dt, .facts dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--hair-light); }
.facts dt { padding: 19px 24px 16px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--mute); }
.facts dd { font-size: 17px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { text-decoration: underline; text-underline-offset: 2px; }
.facts dd address { margin-bottom: 6px; }

/* ---------- seasons ---------- */

.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.season {
  background: var(--card); border-radius: 32px; padding: 40px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.season p { font-size: 16px; line-height: 1.55; color: var(--body); }
.season.dark { background: var(--ink); color: var(--on-ink); }
.season.dark p { color: var(--on-dark); }
.season.dark .label { color: var(--on-dark-mute); }
.season.dark p a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.season.dark p a:hover { color: var(--teal); }
.season .btn { margin-top: 8px; }

/* ---------- join ---------- */

.join { background: var(--ink); color: var(--on-ink); border-radius: 64px 64px 0 0; padding: 88px 32px; }
.join-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.join-head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.join-head p { font-size: 18px; line-height: 1.5; color: var(--on-dark); max-width: 560px; }
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.step {
  border: 1px solid var(--hair); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.step-num { font-family: var(--mono); font-size: 13px; color: var(--mint); }
.step h3 { margin: 0; font-size: 20px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.5; color: var(--on-dark-mute); }
.step a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- support ---------- */

.support-card {
  background: var(--card); border-radius: 32px; padding: 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.support-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.support-copy p.body { font-size: 17px; line-height: 1.6; color: var(--body); }
.support-actions { display: flex; flex-direction: column; gap: 12px; }
.support-actions .btn { padding: 18px 28px; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink); color: var(--on-ink);
  border-radius: 64px 64px 0 0; padding: 72px 32px 40px;
}
.foot-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 88px; object-fit: contain; }
.foot-brand .wordmark { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.foot-brand p { font-size: 14px; line-height: 1.5; color: var(--on-dark-mute); max-width: 340px; }
.foot-brand strong { color: var(--on-ink); font-weight: 500; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col .label { color: var(--on-dark-mute); }
.foot-col a { color: var(--on-ink); }
.foot-col a.mint { color: var(--mint); }
.foot-col a:hover { color: var(--teal); }
.foot-col .plain { color: var(--on-dark); line-height: 1.5; }
.foot-col address + .label { margin-top: 8px; }

.foot-legal {
  border-top: 1px solid var(--hair); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-family: var(--mono); font-size: 12px; color: var(--on-dark-mute);
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .hero-mark { order: -1; border-radius: 48px; padding: 32px; }
  .hero-mark img { max-width: 260px; }
  .about-card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .support-card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .season-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* Below 900px the nav drops to its own full-width row under the brand and
   scrolls sideways if the tabs do not fit. */
@media (max-width: 900px) {
  .site-head { flex-wrap: wrap; row-gap: 16px; }
  .site-nav {
    order: 3; width: 100%; justify-content: space-between; gap: 16px;
    padding: 12px 22px; font-size: 14px; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a[aria-current="page"] { padding: 6px 12px; margin: -6px -12px; }
}

@media (max-width: 720px) {
  .shell, .section, .hero, .page-head { padding-left: 20px; padding-right: 20px; }
  .page-head { padding-top: 24px; padding-bottom: 48px; }
  .site-head { padding: 20px; }
  .join { padding: 64px 20px; border-radius: 40px 40px 0 0; }
  .site-foot { padding: 56px 20px 32px; border-radius: 40px 40px 0 0; }
  .steps { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .about-card, .support-card { padding: 28px; border-radius: 24px; }
  .season { padding: 28px; border-radius: 24px; }
  .foot-legal { flex-direction: column; gap: 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding: 16px 0 0; }
  .facts dd { border-top: none; padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  * { transition: none !important; }
}
