/* ============================================================
   BELFRY BASKETBALL — Base: reset, type, chrome, controls
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-synthesis: none;   /* only Bicyclette Bold is licensed — never fake another weight */
  min-height: 100dvh;
  background: var(--black);
  color: var(--on-dark-mid);
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A display value on a component must never beat the hidden attribute */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
/* No blanket placeholder tint — it shows through transparent logos.
   Photo containers carry their own background instead. */
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: 6rem; }

/* ---- Focus ------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.on-light :focus-visible { outline-color: var(--red-deep); }

.skip {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: var(--z-toast);
  background: var(--red); color: #fff;
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: top var(--dur-2) var(--ease-out);
}
.skip:focus-visible { top: var(--sp-4); }

/* ---- Type -------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--on-dark);
}
h1 { font-size: var(--t-3xl); letter-spacing: 0; }
h2 { font-size: var(--t-2xl); letter-spacing: 0; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
h5 { font-size: var(--t-md); letter-spacing: 0.01em; }
p { text-wrap: pretty; }
p + p { margin-top: 0.9em; }
strong { font-weight: 700; color: var(--on-dark); }
.on-light strong { color: var(--on-light); }

.lede { font-size: var(--t-md); line-height: 1.6; max-width: 58ch; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }

/* Numbers that must read as scoreboard, not prose */
.num {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0; line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---- Layout ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.band { padding-block: var(--band); }
.band--tight { padding-block: var(--band-t); }

.on-light { background: var(--paper); color: var(--on-light-mid); }
.on-light h1, .on-light h2, .on-light h3, .on-light h4, .on-light h5 { color: var(--on-light); }
.on-dark-2 { background: var(--surface-1); }

/* Section heading: the title itself, with a struck rule beneath.
   No kicker scaffolding above it. */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.sec-title { position: relative; padding-bottom: var(--sp-3); }
.sec-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3.25rem; height: 4px; background: var(--red);
}
.sec-title--gold::after { background: var(--gold); }
.sec-title--center { text-align: center; }
.sec-title--center::after { left: 50%; transform: translateX(-50%); }

/* ---- Links & buttons --------------------------------------- */
.link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--t-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-bright);
  padding-block: 0.7rem;
  min-height: 44px;
  transition: color var(--dur-1) var(--ease-out), gap var(--dur-2) var(--ease-out);
}
.on-light .link { color: var(--red-deep); }
.link:hover { gap: 0.85em; color: var(--on-dark); }
.on-light .link:hover { color: var(--on-light); }
.link svg { width: 0.85em; height: 0.85em; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--t-sm);
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--red); color: #fff;
  border-radius: var(--r-sm);
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:hover { background: var(--red-bright); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 2px var(--on-dark); }
.btn--ghost:hover { background: var(--on-dark); color: var(--black); }
.on-light .btn--ghost { color: var(--on-light); box-shadow: inset 0 0 0 2px var(--on-light); }
.on-light .btn--ghost:hover { background: var(--on-light); color: var(--paper); }

/* Watch Live — the Hudl stream link. The dot only pulses while a game is
   actually being tracked live (data-live="true", set from the schedule). */
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; flex: none; opacity: 0.85; }
.btn--live[data-live="true"] .live-dot { opacity: 1; animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.btn--dark { background: var(--surface-2); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn--dark:hover { background: var(--surface-3); }

.btn--gold { background: var(--gold); color: oklch(0.20 0.04 80); }
.btn--gold:hover { background: oklch(0.86 0.13 84); }

.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: var(--t-xs); }
.btn--wide { width: 100%; }

/* ---- Chips / meta ------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: var(--r-xs);
  background: var(--surface-2); color: var(--on-dark-mid);
  white-space: nowrap;
}
.chip--home   { background: var(--red); color: #fff; }
.chip--away   { background: var(--surface-3); color: var(--on-dark-mid); }
.chip--neutral{ background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.chip--win    { background: oklch(0.70 0.15 152 / 0.16); color: var(--win); }
.chip--loss   { background: oklch(0.64 0.18 25 / 0.18); color: var(--loss); }
.chip--off    { background: transparent; color: var(--on-dark-mid); box-shadow: inset 0 0 0 1px var(--hairline); }
.on-light .chip { background: var(--paper-2); color: var(--on-light-mid); }
.on-light .chip--home { background: var(--red); color: #fff; }
.on-light .chip--neutral { color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--t-xs);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-bright);
}

/* ============================================================
   HEADER
   ============================================================ */
/* Everything in the utility bar also lives in the mobile drawer, so it
   is hidden on phones rather than squeezed into 34px rows. */
@media (max-width: 699px) { .util { display: none; } }

.util {
  background: var(--black);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  color: var(--on-dark-dim);
}
.util__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 36px; }
.util__where { display: none; }
@media (min-width: 900px) { .util__where { display: block; } }
.util__right { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
.util__links { display: flex; gap: var(--sp-4); }
.util__links a { padding-block: 0.5rem; transition: color var(--dur-1) var(--ease-out); }
.util__links a:hover { color: var(--on-dark); }
.social { display: flex; gap: 0.15rem; margin-inline: -0.4rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--on-dark-dim);
  transition: color var(--dur-1) var(--ease-out);
}
.social a:hover { color: var(--red-bright); }
.social svg { width: 15px; height: 15px; }

.masthead {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(0.112 0.008 25 / 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.masthead[data-stuck="true"] { box-shadow: 0 8px 26px oklch(0 0 0 / 0.55); }
/* Primary links split evenly either side of a centred crest. Both side
   columns are 1fr so the crest sits dead centre no matter how wide the
   Team Shop button gets — the button is pushed to the far edge of its
   own column rather than growing it. */
.masthead__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  min-height: 72px;
}
@media (min-width: 1100px) { .masthead__in { min-height: 92px; } }

/* The crest sits proud of the bar and hangs below it, the way a shield
   does on a college athletics header. */
.crestlink {
  grid-area: 1 / 2;
  display: block; line-height: 0;
  align-self: start;
  position: relative; z-index: 2;
  margin-top: 6px;
}
.crestlink__mark {
  width: auto;
  height: 62px;
  transition: transform var(--dur-2) var(--ease-out);
}
@media (min-width: 700px)  { .crestlink { margin-bottom: -18px; } .crestlink__mark { height: 84px; } }
@media (min-width: 1100px) { .crestlink { margin-bottom: -30px; } .crestlink__mark { height: 116px; } }
.crestlink:hover .crestlink__mark { transform: scale(1.04); }

.masthead__right { grid-area: 1 / 3; display: none; align-items: center; gap: var(--sp-3); min-width: 0; }
@media (min-width: 1100px) { .masthead__right { display: flex; } }

.nav { display: none; }
.nav--left  { grid-area: 1 / 1; justify-content: flex-end; }
.nav--right { justify-content: flex-start; }
@media (min-width: 1100px) { .nav { display: flex; align-items: center; gap: 0.1rem; } }
.nav a {
  position: relative;
  padding: 0.55rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--on-dark-mid);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out);
}
@media (min-width: 1280px) { .nav a { padding: 0.55rem 0.85rem; font-size: 0.9375rem; } }
.nav a::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.05rem;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.masthead__cta { margin-left: auto; flex: none; }

/* Hamburger */
.burger {
  grid-area: 1 / 3;
  display: grid; place-items: center; width: 48px; height: 48px;
  justify-self: end; margin-right: calc(var(--sp-2) * -1);
  color: var(--on-dark);
}
@media (min-width: 1100px) { .burger { display: none; } }
.burger__box { display: grid; gap: 5px; width: 22px; }
.burger__box i { display: block; height: 2px; background: currentColor; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out); }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-drawer-scrim);
  background: oklch(0 0 0 / 0.66);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; inset-block: 0; right: 0; z-index: var(--z-drawer);
  width: min(360px, 88vw);
  background: var(--surface-1);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-out);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-4) var(--sp-5) var(--sp-8);
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer__top { display: flex; justify-content: flex-end; margin-bottom: var(--sp-4); }
.drawer__close { display: grid; place-items: center; width: 48px; height: 48px; color: var(--on-dark); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer nav { display: grid; }
.drawer nav a {
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-dark-mid);
  transition: color var(--dur-1) var(--ease-out), padding-left var(--dur-2) var(--ease-out);
}
.drawer nav a:hover { color: var(--on-dark); padding-left: 0.6rem; }
.drawer nav a[aria-current="page"] { color: var(--red-bright); }
.drawer__foot { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); }

/* ============================================================
   FOOTER
   ============================================================ */
.creed {
  position: relative; overflow: hidden;
  background: var(--black);
  border-top: 1px solid var(--hairline);
  padding-block: var(--band-t);
  text-align: center;
}
.creed__in { position: relative; z-index: 2; }
.creed__line {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); letter-spacing: 0; text-transform: uppercase;
  color: var(--on-dark); font-style: italic;
}
.creed__line em { font-style: italic; color: var(--red-bright); }
.creed__sub {
  margin-top: var(--sp-3);
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--gold);
}
.creed__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.16; filter: grayscale(1); }
.creed__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--black) 4%, transparent 42%, transparent 58%, var(--black) 96%); }

.foot { background: var(--surface-1); border-top: 1px solid var(--hairline); padding-block: var(--sp-8) var(--sp-6); }
.foot__grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--sp-6); } }
.foot h5 { color: var(--on-dark); margin-bottom: var(--sp-4); letter-spacing: 0.14em; font-size: var(--t-sm); }
.foot ul { display: grid; gap: 0.1rem; }
.foot ul a, .foot address a { display: inline-block; padding-block: 0.62rem; font-size: 0.9375rem; transition: color var(--dur-1) var(--ease-out); }
.foot ul a:hover, .foot address a:hover { color: var(--red-bright); }
.foot address { font-style: normal; display: grid; gap: 0.35rem; font-size: 0.9375rem; }
.foot__row { display: flex; align-items: flex-start; gap: 0.65rem; }
.foot__row svg { width: 15px; height: 15px; margin-top: 0.42rem; flex: none; color: var(--red-bright); }
/* A row that is one link (Facebook, Instagram…): the link carries its own
   tap-target padding, so centre the icon on it instead of top-aligning. */
.foot__row--link { align-items: center; }
.foot__row--link svg { margin-top: 0; }
/* "X" is one letter — keep the link a comfortable tap target anyway. */
.foot__row--link a { min-width: 44px; }
/* Footer lists sit tight, nearly stacked (Preston's call). Each link stays
   at least 24px tall, the WCAG 2.2 minimum target size. */
.foot ul { gap: 0; }
.foot ul a, .foot address a { padding-block: 0.1rem; }
.foot address { gap: 0.2rem; }
.foot__brand p { margin-top: var(--sp-4); font-size: 0.9375rem; max-width: 34ch; }
.lockup { display: inline-flex; align-items: center; gap: var(--sp-3); }
.lockup__mark { height: 54px; width: auto; flex: none; }
.lockup__text { display: grid; line-height: 0.92; }
.lockup__a, .lockup__b { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.01em; }
.lockup__a { color: var(--red-bright); }
.lockup__b { color: var(--on-dark); }
.foot__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: var(--on-dark-dim);
}
.foot__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__bottom a:hover { color: var(--red-bright); }
.foot__by a { gap: 0.6ch; color: var(--on-dark-dim); }
.foot__by img { height: 22px; width: auto; opacity: 0.8; transition: opacity var(--dur-2) var(--ease-out); }
.foot__by a:hover { color: var(--on-dark); }
.foot__by a:hover img { opacity: 1; }

/* Draft-data notice — flip draftData to false in js/data/site.js */
.draftflag {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold-line); border-radius: var(--r-pill);
  padding: 0.35rem 0.8rem;
}
.draftflag svg { width: 13px; height: 13px; flex: none; }

/* ---- Utilities --------------------------------------------- */
.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack { display: grid; gap: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.scroll-x { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

/* Reveal: content is visible by default; the animation only enhances it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }
  .js .reveal[data-shown="true"] { opacity: 1; transform: none; }
}
