@font-face {
  font-family: "Bebas Neue";
  src: url("bebas-neue.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #18191a;
  --red: #be1832;
  --muted: #555960;
  --paper: #fafaf8;
  --line: #d8d9d6;
  --headline: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.45 "DM Sans", Arial, sans-serif; }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button[hidden], [hidden] { display: none; }
:focus-visible { outline: 3px solid #0a6dc2; outline-offset: 4px; }
.wrap { width: min(82rem, 90%); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; z-index: 4; padding: .7rem 1rem; background: white; transform: translateY(-130%); }
.skip:focus { transform: translateY(0); }
.masthead { background: var(--ink); color: #fff; }
.masthead-inner, .brands, nav, footer { display: flex; align-items: center; }
.masthead-inner { min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.brands { gap: 1rem; }
.brands a, footer a, nav a { padding-block: .6rem; }
.brands img { object-fit: contain; }
.masthead .solo { filter: invert(1); }
.cross { color: #a5a5a6; }
nav { gap: clamp(1rem, 3vw, 2.5rem); }
nav a, footer a, .print { font-weight: 650; font-size: .9375rem; }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: #f3f2ee; border-bottom: 5px solid var(--red); }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 44%; background: var(--red); clip-path: polygon(12% 0,100% 0,100% 100%,0 100%); }
.hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 46%; clip-path: polygon(calc(12% + 7px) 0,100% 0,100% 100%,7px 100%); }
.hero-inner { min-height: clamp(22rem, 31vw, 29rem); display: flex; align-items: center; }
.hero-copy { padding: 2.6rem 0; }
.eyebrow, .year { font-size: .8125rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .6rem; }
.eyebrow > span { display: inline-block; width: 1.75rem; height: .2rem; background: var(--red); }
h1, h2, h3, .jersey { font-family: var(--headline); font-weight: 400; }
h1 { margin: 1.05rem 0 .7rem; font-size: clamp(5.75rem, 8.65vw, 8.25rem); letter-spacing: -.023em; line-height: .80; }
h1 em { color: var(--red); display: block; font-style: normal; }
.league { font-size: clamp(1rem,1.65vw,1.3rem); font-weight: 650; }
.league b { color: var(--red); margin: 0 .2em; }
.roster-button { display: inline-flex; align-items: center; min-height: 2.8rem; margin-top: 1.35rem; padding: .65rem 1.25rem; background: var(--ink); color: white; border-radius: .18rem; font-size: .94rem; font-weight: 700; text-decoration: none; }
.roster-button:hover { background: var(--red); }
.roster { padding: clamp(2.4rem, 5vw, 4.5rem) 0; }
.section-title, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-title h2, .coach h2 { font-size: clamp(3rem,5.2vw,4.4rem); line-height: 1; letter-spacing: -.01em; margin-top: .5rem; }
.print { border: 1px solid #b2b4b1; background: transparent; border-radius: .2rem; padding: .6rem 1rem; }
.print:hover { background: white; border-color: var(--ink); }
.toolbar { padding: 1.3rem 0 1rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters[hidden] { display: none; }
.filters button { border: 1px solid var(--line); border-radius: .18rem; padding: .55rem .875rem; background: transparent; font-size: .9375rem; font-weight: 600; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
#player-count { font-size: .875rem; color: var(--muted); }
.cards { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(.7rem,1.4vw,1.25rem); }
.card { min-width: 0; border: 1px solid var(--line); background: white; border-radius: .25rem; overflow: hidden; }
.portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 1.47; border-bottom: 1px solid var(--line); background: linear-gradient(122deg,#f7f7f4 16%,#e6e7e3 100%); }
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.jersey { position: absolute; bottom: -1px; left: 0; min-width: 2.8rem; padding: .32rem .8rem .2rem .5rem; clip-path: polygon(0 0,100% 0,calc(100% - .3rem) 100%,0 100%); background: var(--red); color: white; line-height: 1; font-size: 1.5rem; }
.jersey span { font-size: .82em; }
.details { padding: .85rem .9rem 1rem; }
.year { font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
h3 { margin: .25rem 0 .08rem; font-size: clamp(1.65rem,2.15vw,2.15rem); line-height: 1.05; }
.position { color: #404348; font-size: .9375rem; }
.coach { background: var(--ink); color: white; border-top: 5px solid var(--red); }
.coach-inner { display: flex; align-items: center; gap: clamp(1.4rem,3.8vw,3.25rem); padding-block: 2.75rem; }
.coach-photo { width: clamp(6.5rem,11vw,10rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .2rem; }
.coach .eyebrow > span { background: #ff4e65; }
.coach h2 { margin-bottom: .3rem; }
.coach-info > p:last-child { color: #dedede; }
address { font-style: normal; display: grid; gap: .75rem; padding-left: 3rem; margin-left: auto; border-left: 1px solid #545557; }
address a { text-decoration: none; font-weight: 600; }
address a:hover { text-decoration: underline; }
address span { display: block; color: #cdced0; font-weight: 400; font-size: .875rem; }
footer { justify-content: space-between; min-height: 5.4rem; }
@media (max-width: 68rem) {
  .cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 52rem) {
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .coach-inner { flex-wrap: wrap; }
  address { margin-left: 0; padding-left: 1.2rem; }
  .hero-photo { left: 48%; }
}
@media (max-width: 40rem) {
  .masthead-inner { min-height: 3.8rem; }
  .brands { gap: .5rem; }
  .masthead .solo { width: 5.4rem; height: auto; }
  .brands img:not(.solo) { width: 1.55rem; height: auto; }
  nav { gap: .9rem; }
  nav a { font-size: .875rem; }
  .hero-inner { min-height: auto; }
  .hero-copy { padding: 1.75rem 0; width: 60%; }
  h1 { font-size: clamp(3.9rem,13vw,5rem); }
  .hero-photo { left: 53%; }
  .hero-photo img { object-position: 51% center; }
  .hero .eyebrow { letter-spacing: .06em; font-size: .75rem; }
  .eyebrow > span { width: 1.1rem; }
  .league { font-size: .94rem; max-width: 12rem; }
  .roster-button { margin-top: .85rem; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .details { padding: .7rem; }
  .toolbar { gap: .65rem; padding: 1rem 0 .75rem; }
  .filters { gap: .32rem; }
  .filters button { font-size: .875rem; padding: .5rem .65rem; }
  .print { font-size: .875rem; padding: .55rem .7rem; }
  .coach-inner { gap: 1rem; padding-block: 2rem; }
  .coach-photo { width: 5.6rem; }
  .coach-info { flex: 1; }
  .coach-info > p:last-child { font-size: .9rem; }
  address { width: 100%; border: 0; border-top: 1px solid #545557; margin-top: .5rem; padding: 1.1rem 0 0; }
}
@media print {
  @page { size: landscape; margin: 8mm; }
  body { font: 9pt/1.2 Arial,sans-serif; background: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { width: 100%; }
  .masthead { color: var(--ink); background: white; }
  .masthead-inner { min-height: 0; justify-content: flex-end; }
  .masthead .solo { width: 59pt; height: auto; filter: none; }
  .brands { gap: 4pt; }
  .brands a { padding: 0; }
  .brands img:not(.solo) { width: 18pt; height: auto; }
  .masthead nav, .hero-photo, .roster-button, .skip, .toolbar, .print, footer, .coach-photo { display: none; }
  .hero { background: white; border-bottom-width: 2px; }
  .hero-inner { min-height: 0; }
  .hero-copy { width: auto; padding: 0 0 4pt; }
  .hero-copy .eyebrow { font-size: 8pt; }
  h1 { font-size: 26pt; margin: 3pt 0; }
  h1 em { display: inline; }
  .league { max-width: none; font-size: 9pt; }
  .section-title .eyebrow { margin-bottom: 4pt; font-size: 8pt; }
  .section-title h2 { display: none; }
  .roster { padding: 5pt 0; }
  .cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4pt; }
  .card, .card[hidden] { display: flex; align-items: center; break-inside: avoid; }
  .portrait { flex: 0 0 46pt; height: 46pt; border: 0; }
  .jersey { font-size: 10pt; min-width: 0; padding: 2pt 4pt; }
  .details { padding: 4pt; }
  h3 { font-size: 13pt; margin: 2pt 0; }
  .year, .position { font-size: 8pt; }
  .coach { color: var(--ink); background: white; border-width: 2px; }
  .coach-inner { padding: 5pt 0; gap: 12pt; }
  .coach .eyebrow, .coach-info > p:last-child, address span { display: none; }
  .coach h2 { font-size: 12pt; margin: 0; }
  .coach h2::before { content: "Head coach · "; }
  address { width: auto; margin: 0; padding: 0; border: 0; display: flex; font-size: 9pt; }
}

.card { position: relative; }
.view-player { border: 0; background: transparent; color: #9b1531; font-size: .875rem; font-weight: 700; padding: .4rem 0 0; text-decoration: underline; text-underline-offset: .18em; }
.view-player::after { content: ""; position: absolute; inset: 0; }
.card:has(.view-player:hover) { border-color: var(--red); }
.card:has(:focus-visible) { outline: 3px solid #0a6dc2; outline-offset: 2px; }
body:has(dialog[open]) { overflow: hidden; }
dialog { margin: auto; width: min(33rem, 93%); max-height: 90dvh; padding: 0; border: 0; border-radius: .4rem; color: var(--ink); background: white; box-shadow: 0 1.25rem 4rem #0004; }
dialog::backdrop { background: #11141aba; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem 1.3rem; background: var(--ink); border-bottom: 3px solid var(--red); color: white; font-weight: 650; }
.dialog-header span { font-size: .875rem; }
.dialog-header button, #retry-contacts { border-radius: .2rem; padding: .45rem .8rem; background: transparent; border: 1px solid #939498; color: inherit; font-size: .9rem; }
.player-body { padding: clamp(1rem, 4vw, 1.6rem); }
.player-heading { display: flex; align-items: center; gap: 1.1rem; }
.dialog-portrait { position: relative; flex: 0 0 27%; background: #efefec; }
.dialog-portrait img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.player-heading h2 { font-size: clamp(2.55rem, 7vw, 3.4rem); line-height: .97; margin-top: .5rem; }
.player-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 1.25rem 0; padding-block: 1rem; gap: .7rem 1rem; border-block: 1px solid var(--line); }
dialog dt { font-size: .8125rem; color: var(--muted); }
dialog dd { margin: .1rem 0 0; font-weight: 650; }
dialog h3 { font-size: 1.8rem; }
.player-contacts { margin: 0; }
.player-contacts > div { margin-top: .65rem; }
.player-contacts a { color: #9b1531; text-underline-offset: .18em; overflow-wrap: anywhere; }
#contact-status:not(:empty) { margin: .55rem 0; }
#retry-contacts { margin-top: .75rem; }
@media print {
  .view-player, #player-dialog, #player-dialog::backdrop { display: none; }
  body:has(dialog[open]) { overflow: visible; }
}
