@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Antonio";
  src: url("fonts/antonio.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Antonio";
  src: url("fonts/antonio-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --mlac-blue: #0033a0;
  --accent-yellow: #f7cd2a;
  --ink: #101113;
  --white: #fff;
  --tier-gray: #858585;
  --display-font: "Anton", Impact, sans-serif;
  --body-font: "Antonio", "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #050505; }

body {
  margin: 0;
  background: #050505;
  color: var(--white);
  font-family: var(--body-font);
}

img { max-width: 100%; }

main { width: 100%; overflow: hidden; }

.hero {
  position: relative;
  min-height: 720px;
  padding: 10px 0 34px;
  background-color: #121212;
  background-image: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)), url("visual/game-night.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.brand-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  width: min(100%, 1366px);
  height: 210px;
  margin: 0 auto;
  padding: 0 28px;
}

.instagram-link {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
}

.instagram-link svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-link .instagram-dot { fill: currentColor; stroke: none; }
.instagram-link:hover, .instagram-link:focus-visible { color: var(--accent-yellow); }

.mlac-brand {
  grid-column: 2;
  justify-self: center;
  width: clamp(110px, 15vw, 205px);
  height: 188px;
  object-fit: contain;
}

.league-brand {
  grid-column: 3;
  justify-self: end;
  width: clamp(190px, 27vw, 365px);
  height: 145px;
  object-fit: contain;
}

.matchup-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.matchup-link:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 4px;
}

.matchup {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  align-items: center;
  width: min(96%, 1320px);
  min-height: 225px;
  margin: 0 auto;
}

.matchup::before {
  position: absolute;
  inset: 8px 0;
  content: "";
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 97.2% 100%, 2.8% 100%);
}

.matchup::after {
  position: absolute;
  inset: 14px 7px;
  content: "";
  background: #191919;
  clip-path: polygon(0 0, 100% 0, 97.1% 100%, 2.9% 100%);
}

.team-panel {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 24px 10%;
  text-align: center;
  text-transform: uppercase;
}

.team-panel-left { grid-column: 1; }
.team-panel-right { grid-column: 3; }

.team-label { width: 100%; min-width: 0; }

.team-label h1,
.team-label h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: .09em;
  line-height: 1.05;
  white-space: nowrap;
}

.team-label p {
  margin: 8px 0 0;
  font-family: var(--body-font);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.1;
}

.team-label .team-record {
  margin-top: 7px;
  color: var(--accent-yellow);
  font-family: var(--display-font);
  font-size: clamp(18px, 2.4vw, 27px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
}

.versus-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(110px, 21vw, 290px);
  aspect-ratio: 1.22 / 1;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--mlac-blue);
  border: 5px solid #050505;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.versus-badge img {
  width: 82%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
}

.game-status {
  min-height: 1.2em;
  margin: 20px 0 8px;
  color: rgba(255, 255, 255, .72);
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.game-details {
  width: min(590px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 8px 24px 12px;
  background: rgba(20, 20, 20, .96);
  text-align: center;
  font-family: var(--display-font);
}

.game-details p { margin: 0; }

.game-date,
.game-venue {
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.35;
}

.game-time {
  color: var(--accent-yellow);
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.35;
}

.game-score {
  margin-top: 2px !important;
  color: var(--accent-yellow);
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.2;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--display-font);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  text-align: center;
}

.sponsor-tier { margin: 0 0 8px; }

.tier-heading {
  margin: 0;
  padding: 4px 14px 6px;
  background: var(--tier-gray);
  color: var(--white);
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.tier-gold .tier-heading { color: var(--accent-yellow); }

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 14px 18px 18px;
  gap: clamp(10px, 2vw, 24px);
}

.sponsor-logo {
  display: grid;
  flex: 1 1 245px;
  max-width: 360px;
  min-width: 0;
  min-height: 128px;
  margin: 0;
  place-items: center;
}

.sponsor-logo img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.rosters {
  display: flex;
  flex-direction: column;
  gap: 54px;
  padding: clamp(24px, 5vw, 58px) clamp(14px, 4vw, 44px) 70px;
  background-color: #090a0b;
  background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .55)), url("visual/rink.png");
  background-position: center;
  background-size: cover;
}

.roster-column { width: min(100%, 1000px); min-width: 0; margin: 0 auto; }

.roster-heading {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 130px;
  margin-bottom: 12px;
  text-align: center;
}

.roster-logo {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(72px, 11vw, 145px);
  height: clamp(72px, 11vw, 145px);
  object-fit: contain;
  transform: translateY(-50%);
}

.roster-heading-text { width: min(100%, 600px); min-width: 0; margin: 0 auto; }

.roster-side {
  margin: 0 0 2px;
  color: var(--accent-yellow);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.roster-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(26px, 3.3vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
}

.roster-title a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.roster-title a:hover,
.roster-title a:focus-visible {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.roster-table {
  width: min(100%, 600px);
  margin: 0 auto;
  border-collapse: collapse;
  background: rgba(0, 0, 0, .43);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(12px, 1.25vw, 15px);
}

.roster-table th,
.roster-table td {
  border: 1px solid #050505;
  padding: 5px 8px;
}

.roster-table th {
  background: #202123;
  font-size: 1em;
  font-weight: 700;
  text-align: center;
}

.roster-table td { text-align: center; }
.player-stats-link { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.player-stats-link:hover, .player-stats-link:focus-visible { color: var(--accent-yellow); text-decoration: underline; }
.roster-table .player-number,
.roster-table .player-position { width: 16%; }
.roster-table .empty-roster { padding: 18px; color: rgba(255, 255, 255, .74); }
.staff-table { margin-top: 12px; }
.staff-table td:first-child { width: 55%; }

.site-footer {
  padding: 34px 18px 28px;
  background: linear-gradient(120deg, #272522, #0b0b0b);
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 400;
}

.next-game {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 20px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.next-game-matchup,
.next-game-details { display: block; }
.next-game-details { margin-top: 3px; }
.next-game-highlight { color: var(--accent-yellow); }
.next-game[hidden] { display: none; }

.site-footer a.next-game:hover,
.site-footer a.next-game:focus-visible { color: var(--white); text-decoration: underline; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.site-footer a {
  color: var(--white);
  font-size: 20px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent-yellow); }

.updated-at {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .75);
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 6px; background-size: auto 820px; }
  .brand-row { height: 145px; padding: 0 12px; }
  .mlac-brand { height: 138px; width: clamp(100px, 25vw, 150px); }
  .league-brand { width: clamp(130px, 34vw, 230px); height: 104px; }
  .matchup { grid-template-columns: 1fr 82px 1fr; min-height: 152px; width: 98%; }
  .matchup::before { inset: 8px 0; }
  .matchup::after { inset: 13px 5px; }
  .team-panel { padding: 16px 8%; }
  .team-label h1, .team-label h2 { font-size: clamp(22px, 6.2vw, 42px); letter-spacing: .035em; }
  .team-label p { margin-top: 5px; font-size: clamp(15px, 3.4vw, 21px); }
  .versus-badge { width: 102px; border-width: 4px; }
  .game-status { margin-top: 14px; font-size: 14px; }
  .game-details { margin-bottom: 24px; padding: 7px 10px 10px; }
  .game-date, .game-time, .game-venue { font-size: clamp(24px, 6vw, 32px); }
  .section-title { margin-bottom: 8px; }
  .sponsor-grid { padding: 10px 10px 14px; gap: 8px; }
  .sponsor-logo { flex-basis: 140px; max-width: 220px; min-height: 98px; }
  .sponsor-logo img { max-height: 105px; }
  .tier-heading { font-size: 22px; }
  .rosters { gap: 38px; padding: 28px 12px 44px; }
  .instagram-link { top: 10px; left: 8px; width: 36px; height: 36px; }
  .instagram-link svg { width: 28px; height: 28px; }
  .roster-heading { min-height: 88px; margin-bottom: 8px; }
  .roster-logo { width: 76px; height: 76px; }
  .roster-heading-text { padding-inline: 82px; }
  .roster-table { max-width: 540px; font-size: 13px; }
  .roster-table th, .roster-table td { padding: 5px 4px; }
  .site-footer nav { flex-direction: column; gap: 12px; }
}

@media (max-width: 400px) {
  .brand-row { height: 120px; }
  .mlac-brand { height: 116px; }
  .league-brand { width: 125px; height: 86px; }
  .matchup { grid-template-columns: 1fr 65px 1fr; min-height: 132px; }
  .versus-badge { width: 82px; }
  .team-label h1, .team-label h2 { font-size: 21px; }
  .team-label p { font-size: 14px; }
  .sponsor-logo { flex-basis: 125px; min-height: 82px; }
  .sponsor-logo img { max-height: 88px; }
}
