/* ==========================================================================
   Canaille Cajun Crew — design tokens
   Palette: true collegiate Vermilion + warm ink, kept to the brand's own
   red/black/white rather than adding new accent colors.
   ========================================================================== */
:root {
  --vermilion: #CE181E;
  --vermilion-deep: #8E0F14;
  --ink: #17110F;
  --ink-soft: #241A17;
  --paper: #FFFFFF;
  --paper-warm: #F3EFE9;
  --steel: #B9B2A8;
  --steel-text: #726A63;
  --win: #1E6B3C;
  --loss: #8E0F14;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 2px;
  --max-w: 1120px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 0.98;
}

/* ---------- top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}

.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}

.brand img { height: 36px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--steel);
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--paper);
  border-color: var(--vermilion);
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a {
    display: block;
    padding: 14px 28px;
    border-top: 1px solid #2b201d;
    border-bottom: none;
  }
  .nav-toggle {
    display: block;
    background: none; border: none;
    color: var(--paper);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
  }
}

/* ---------- hero: asymmetric split, no centered default ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 560px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 6vw 64px 28px;
  max-width: 640px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--steel-text);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--vermilion); border-color: var(--vermilion); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.hero-flag {
  position: relative;
  background: var(--vermilion);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

@media (max-width: 860px) {
  .hero-flag {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    padding: 48px 40px;
  }
}

.hero-badge {
  background: var(--paper);
  padding: 28px 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  max-width: 300px;
}

.hero-badge img { width: 100%; height: auto; }

/* ---------- scoreboard strip ---------- */
.scoreboard {
  background: var(--ink);
  color: var(--paper);
}

.scoreboard .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
  .scoreboard .wrap { grid-template-columns: 1fr; }
}

.score-cell {
  padding: 26px 28px;
  border-left: 2px solid var(--vermilion);
}
.score-cell:first-child { border-left: none; }

@media (max-width: 700px) {
  .score-cell {
    border-left: none;
    border-top: 2px solid var(--vermilion);
  }
  .score-cell:first-child { border-top: none; }
}

.score-label {
  font-size: 0.88rem;
  color: var(--steel);
  margin: 0 0 6px;
}

.score-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.score-value .dim {
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* ---------- sections ---------- */
section { padding: 84px 0; }

.section-head { margin-bottom: 36px; max-width: 60ch; }

.section-head h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--steel-text);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- schedule tabs: sports-page underline style ---------- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--paper-warm);
  margin-bottom: 28px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  padding: 14px 8px;
  margin-right: 36px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--steel-text);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--vermilion);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.schedule-status {
  color: var(--steel-text);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.schedule-table-wrap { overflow-x: auto; }

table.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.schedule th {
  text-align: left;
  font-size: 0.82rem;
  color: var(--steel-text);
  font-weight: 600;
  padding: 10px 16px 10px 0;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

table.schedule td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--paper-warm);
  font-size: 0.98rem;
  vertical-align: middle;
}

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

table.schedule tr.is-next { box-shadow: inset 3px 0 0 var(--vermilion); }
table.schedule tr.is-next td:first-child { padding-left: 13px; }

.opp-cell { font-weight: 700; }
.opp-cell.is-home { color: var(--vermilion); }
.opp-cell .loc {
  font-weight: 400;
  color: var(--steel-text);
  font-size: 0.85rem;
  margin-left: 8px;
}

.tv-text { font-weight: 600; color: var(--vermilion-deep); }
.tv-text.none { font-weight: 400; color: var(--steel-text); }

.result-text { font-weight: 800; }
.result-text.win { color: var(--win); }
.result-text.loss { color: var(--loss); }
.result-text.tbd { color: var(--steel-text); font-weight: 500; }

/* ---------- gallery ---------- */
.gallery-status {
  color: var(--steel-text);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item:hover img, .gallery-item:focus-visible img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 17, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.4rem;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  padding: 12px;
}

.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
  color: var(--vermilion);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- tailgate section ---------- */
.tailgate {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.tailgate .section-head p { color: var(--steel); }

.tailgate-fleur {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
}

.tailgate-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

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

.tailgate-copy p { color: #d8d2ce; }

.info-card {
  background: var(--ink-soft);
  border-left: 3px solid var(--vermilion);
  padding: 26px 28px;
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 20px;
}

.info-card dt {
  font-family: var(--font-display);
  color: var(--vermilion);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 1px;
}

.info-card dd { margin: 0; color: var(--paper); }
.info-card dd a { color: var(--paper); text-decoration-color: var(--vermilion); }
.info-card dd a:hover { color: var(--vermilion); }

.tailgate-map {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.tailgate-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  border-top: 2px solid var(--vermilion);
  color: var(--steel);
  padding: 36px 0;
  text-align: center;
  font-size: 0.88rem;
}

footer .socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

footer .socials a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
footer .socials a:hover { color: var(--vermilion); }

footer .fine-print { color: #5d5652; margin-top: 8px; }

/* ---------- walker easter egg ---------- */
.walker-guy {
  position: fixed;
  left: 0;
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
}

.walker-guy img {
  display: block;
  height: 100px;
  width: auto;
  animation: walker-bob 0.5s ease-in-out infinite alternate;
}

@keyframes walker-bob {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-6px) rotate(2deg); }
}

/* prefers-reduced-motion global rule zeroes animation/transition durations,
   so the still fallback below can't rely on either — it just pops in and
   is removed by JS after a few seconds instead. */
.walker-guy--still img { animation: none; }

.walker-caption {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--vermilion); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }
