/* ==========================================================================
   Black & Blue Hockey — core stylesheet
   Palette is fixed to the four colors in the show mark: black, blue, gold,
   white. Tints/shades of these (via opacity) are used for depth, but no
   fifth hue is introduced anywhere in this file.
   ========================================================================== */

:root {
  --c-black: #000000;
  --c-blue: #003b93;
  --c-gold: #f2a900;
  --c-white: #ffffff;

  --ink: rgba(0, 0, 0, 0.66);
  --ink-soft: rgba(0, 0, 0, 0.46);
  --hairline: rgba(0, 0, 0, 0.12);
  --hairline-on-dark: rgba(255, 255, 255, 0.18);

  --sidebar-w: 264px;
  --content-max: 760px;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Reset -------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-black);
  background: var(--c-white);
  line-height: 1.55;
  font-size: 17px;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.02em; }

p {
  margin: 0 0 1.1em;
  max-width: 62ch;
}

ul, ol {
  padding-left: 1.2em;
  max-width: 62ch;
}

li {
  margin-bottom: 0.4em;
}

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility ------------------------------------------------------ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Divider motif -------------------------------------------------------
   The thin gold rule that splits BLACK from BLUE in the wordmark is reused
   site-wide as the one recurring structural device, instead of card
   shadows or boxed sections. */

.rule-gold {
  border: 0;
  height: 3px;
  width: 56px;
  background: var(--c-gold);
  margin: 0 0 1.6em;
}

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6em;
}

.eyebrow-mark .dot {
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- App shell ------------------------------------------------------- */

.app {
  display: flex;
  min-height: 100vh;
}

#site-shell-sidebar {
  display: contents;
}

/* ---- Sidebar ----------------------------------------------------------- */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--c-black);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--hairline-on-dark);
  text-decoration: none;
  color: var(--c-white);
}

.sidebar__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar__brand-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.sidebar__brand-text span {
  color: var(--c-gold);
}

.sidebar nav {
  padding: 14px 0 20px;
  flex: 1;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 11px 20px;
  border-left: 3px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.sidebar nav a:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar nav a.is-active {
  color: var(--c-white);
  border-left-color: var(--c-gold);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar__social {
  display: flex;
  gap: 14px;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--hairline-on-dark);
}

.sidebar__social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s var(--ease);
}

.sidebar__social a:hover {
  color: var(--c-gold);
}

.sidebar__social svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Mobile top bar + drawer ----------------------------------------------- */

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--c-black);
  color: var(--c-white);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.topbar__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.menu-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--c-white);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
}

@media (max-width: 880px) {
  .topbar {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.22s var(--ease);
    width: min(var(--sidebar-w), 82vw);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .scrim {
    display: block;
  }
}

/* ---- Main content ------------------------------------------------------ */

.main {
  flex: 1;
  min-width: 0;
}

.page {
  max-width: var(--content-max);
  padding: 64px 32px 96px;
  margin: 0 auto;
}

.page--wide {
  max-width: 980px;
}

@media (max-width: 560px) {
  .page {
    padding: 40px 20px 72px;
  }
}

.page-header {
  margin-bottom: 2.2em;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 60ch;
}

/* ---- Hero (home page) --------------------------------------------------- */

.hero {
  position: relative;
  background: var(--c-black) url("../assets/img/hero-bg.jpg") center / cover no-repeat;
  color: var(--c-white);
  padding: 96px 40px;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: 640px;
}

.hero h1 {
  color: var(--c-white);
  margin-bottom: 0.35em;
}

.hero__tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin-bottom: 1.8em;
}

@media (max-width: 620px) {
  .hero {
    padding: 64px 24px;
    min-height: 340px;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), border-color .15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-black);
}

.btn--gold:hover {
  background: #ffb90f;
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--c-white);
}

.btn--outline:hover {
  border-color: var(--c-white);
}

.btn--outline-dark {
  border-color: rgba(0, 0, 0, 0.35);
  color: var(--c-black);
}

.btn--outline-dark:hover {
  border-color: var(--c-black);
}

/* ---- Section blocks ------------------------------------------------------ */

.section {
  padding: 64px 40px;
}

.section--tight {
  padding: 48px 40px;
}

@media (max-width: 620px) {
  .section, .section--tight {
    padding: 44px 22px;
  }
}

.section--dark {
  background: var(--c-black);
  color: var(--c-white);
}

.section--dark h2 {
  color: var(--c-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section__inner {
  max-width: 980px;
  margin: 0 auto;
}

/* ---- Social row --------------------------------------------------------- */

.social-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 1.6em 0;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  text-decoration: none;
  color: var(--c-black);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.social-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-pill:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.social-pill--dark {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--c-white);
}

.social-pill--dark:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* ---- Tables (schedules) --------------------------------------------------- */

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 2em;
  font-size: 0.98rem;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.schedule-table th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--c-black);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-note {
  border-left: 3px solid var(--c-gold);
  padding: 4px 0 4px 16px;
  color: var(--ink);
  font-size: 0.95rem;
  margin: 1.6em 0;
}

/* ---- Supply lists ---------------------------------------------------- */

.supply-list {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 2.2em;
  max-width: none;
  border-top: 1px solid var(--hairline);
}

.supply-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  margin: 0;
}

.supply-list .item-name {
  font-weight: 600;
}

.supply-list .item-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: right;
  max-width: 32ch;
}

/* ---- Two column layout (about page) ------------------------------------ */

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 1.8em 0 2em;
}

@media (max-width: 640px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.person h3 {
  margin-bottom: 0.15em;
}

.person .role {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--c-blue);
  display: block;
  margin-bottom: 0.7em;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .site-footer {
    padding: 28px 22px;
    flex-direction: column;
  }
}

/* ---- Utility -------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
