/* Oregon State Football - Signing Day 2027 page styles. Fonts: ../Signing Day fonts/  Images: ../Signing Day img/ */
/* Layout: full-bleed Reser hero → class snapshot strip → position filters → 4-up signee grid of 4:5 portraits. Single dark "night game" look. */
@font-face { font-family: "Beaver Bold"; src: url("../Signing%20Day%20fonts/BeaverBold.otf") format("opentype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Forza"; src: url("../Signing%20Day%20fonts/Forza-Book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Forza"; src: url("../Signing%20Day%20fonts/Forza-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Forza"; src: url("../Signing%20Day%20fonts/Forza-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Forza"; src: url("../Signing%20Day%20fonts/Forza-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  --black: #0d0c0b;
  --panel: #171513;
  --line: #2c2824;
  --orange: #dc4405;
  --orange-hi: #ff6a2b;
  --bone: #f4efe9;
  --muted: #a69c92;
  --display: "Beaver Bold", "Arial Black", Impact, sans-serif;
  --body: "Forza", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--black); color: var(--bone); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 20; background: var(--orange); color: #000; font: 700 0.9rem/1 var(--body); padding: 12px 16px; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; outline: 2px solid var(--bone); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Hero */
.hero { position: relative; min-height: clamp(300px, 36vw, 440px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; z-index: -2; }
/* Dark scrim keeps hero text above 7:1 contrast regardless of the photo behind it */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,12,11,.55) 0%, rgba(13,12,11,.72) 45%, rgba(13,12,11,.92) 80%, var(--black) 100%); }
.hero .wrap { width: 100%; padding-block: 40px 32px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.eyebrow { font-family: var(--body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-hi); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.eyebrow .dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 8.5vw, 6.75rem); line-height: 0.88; margin: 10px 0 0; letter-spacing: 0.01em; text-wrap: balance; }
.hero h1 span { color: var(--orange-hi); display: block; }
.hero p { max-width: 58ch; color: var(--bone); font-size: clamp(1rem, 1.5vw, 1.1rem); margin: 14px 0 0; }

/* Hash-mark divider (field hash marks) */
.hash { height: 14px; margin: 0; border: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 28px); }

/* Snapshot */
.snapshot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 16px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--orange-hi); }
.stat small { display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Filters */
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-block: 32px 20px; }
.toolbar h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: 700 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); background: transparent; border: 1px solid var(--muted); padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.filters button:hover { border-color: var(--bone); }
.filters button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #000; }
.filters button:focus-visible, .card:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; }
.filters button .n { margin-left: 6px; font-variant-numeric: tabular-nums; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; padding-bottom: 72px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--black); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
/* Hover / keyboard focus: the selected card lifts toward the viewer, neighbors ease back */
.card { position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.photo { transition: box-shadow .35s ease; }
.photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover, .card:focus-visible { transform: translateY(-10px) scale(1.04); z-index: 2; }
.card:hover .photo, .card:focus-visible .photo { box-shadow: 0 24px 40px -14px rgba(0,0,0,.9), 0 0 0 1px var(--orange), 0 14px 44px -10px rgba(220,68,5,.55); }
.card:hover .photo::after, .card:focus-visible .photo::after { transform: scaleX(1); }
.card:hover .photo img, .card:focus-visible .photo img { transform: scale(1.08); }
.grid:has(.card:hover) .card:not(:hover), .grid:has(.card:focus-visible) .card:not(:focus-visible) { transform: scale(.97); }
.card:hover .bio, .card:focus-visible .bio { color: var(--bone); }
.pos { position: absolute; left: 0; top: 0; background: var(--orange); color: #000; font: 900 0.95rem/1 var(--body); letter-spacing: 0.08em; padding: 10px 12px; }
.tag { position: absolute; right: 10px; top: 10px; background: var(--black); color: var(--bone); font: 700 0.68rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 9px; border: 1px solid rgba(244,239,233,.25); }
.signed { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 12px; background: rgba(13,12,11,.9); font: 700 0.72rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); display: flex; align-items: center; gap: 8px; }
.signed i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 0 3px rgba(60,207,110,.2); }
.signed.pending i { background: var(--muted); box-shadow: none; }
.info { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.55rem; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.name span { display: block; font-size: 0.72em; color: var(--muted); }
.measure { display: flex; gap: 18px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.measure dt, .facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.measure dd, .facts dd { margin: 0; font-weight: 500; }
.measure div { display: flex; gap: 6px; align-items: baseline; }
.facts { margin: 0; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.facts dd { font-size: 0.95rem; line-height: 1.35; }
.bio { margin-top: auto; padding-top: 4px; font: 700 0.75rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-hi); display: inline-flex; gap: 8px; align-items: center; }
.bio::after { content: "→"; transition: transform .2s; }
.card:hover .bio::after, .card:focus-visible .bio::after { transform: translateX(4px); }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }

/* Class map */
.classmap-sec { padding-bottom: 72px; }
.map-sum { margin: 0; color: var(--muted); font-size: 0.95rem; }
.classmap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.map { margin: 0 auto; min-width: 0; width: 100%; max-width: 980px; position: relative; }
.pin-g { cursor: pointer; outline: none; }
.map .pin { transform-box: fill-box; transform-origin: center; transition: transform .2s ease, stroke .2s ease; }
.pin-g:hover .pin, .pin-g.active .pin, .pin-g.linked .pin { transform: scale(1.5); stroke: var(--bone); stroke-width: 3; }
.pin-g:focus-visible .pin { transform: scale(1.5); stroke: var(--bone); stroke-width: 5; }
.map-tip { position: absolute; z-index: 5; width: max-content; max-width: min(300px, 100%); background: var(--black); color: var(--bone); border: 1px solid var(--orange); padding: 12px 14px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.9); font-size: 0.9rem; line-height: 1.35; }
.map-tip strong { display: block; font: 700 0.72rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-hi); margin-bottom: 8px; }
.map-tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-tip b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; }
.map-tip span { color: var(--orange-hi); font-weight: 700; font-size: 0.8rem; margin-left: 6px; letter-spacing: 0.06em; }
.map-tip small { display: block; color: var(--muted); font-size: 0.85rem; }
.map svg { width: 100%; height: auto; display: block; }
.map .st { fill: #1f1c19; stroke: var(--black); stroke-width: 1; }
.map .st.on { fill: #5a2408; }
.map .pin { fill: var(--orange-hi); stroke: var(--black); stroke-width: 2.5; }
.map .home-pin { fill: var(--black); stroke: var(--bone); stroke-width: 3; }
.map .home-dot { fill: var(--bone); }
.map text { fill: var(--bone); font: 700 17px var(--body); letter-spacing: 0.08em; text-transform: uppercase; paint-order: stroke; stroke: var(--black); stroke-width: 4px; }
.map-key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: 8px; }
.map-key i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.map-key .k-pin { background: var(--orange-hi); }
.map-key .k-home { background: var(--black); border: 2px solid var(--bone); }
.map-key .k-state { background: #5a2408; border-radius: 2px; }
.states-list { columns: 3; column-gap: 36px; min-width: 0; }
.state { break-inside: avoid; margin-bottom: 18px; }
.state h3 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; line-height: 1; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.state h3 span { font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: var(--orange-hi); }
.state ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.state li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 6px; margin: 0 -6px; transition: background .2s ease; }
.state li.hl { background: #3a1806; box-shadow: inset 3px 0 0 var(--orange); }
.state li b { font-weight: 500; }
.state li small { color: var(--muted); font-size: 0.85rem; text-align: right; }
@media (max-width: 860px) { .states-list { columns: 2; } }
@media (max-width: 520px) { .states-list { columns: 1; } }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer strong { font-family: var(--display); font-weight: 400; color: var(--bone); font-size: 1.2rem; letter-spacing: 0.02em; }

@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .name { font-size: 1.3rem; }
}
@media (max-width: 420px) { .measure { flex-direction: column; gap: 2px; } }
@media (max-width: 360px) { .grid { grid-template-columns: minmax(0, 1fr); } }
/* Reduced motion: no movement or scaling; the orange outline and underline still mark the selected card */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card, .card:hover, .card:focus-visible, .grid .card:not(:hover), .card .photo img { transform: none !important; }
}
/* Hero: finished Signing Day graphic (title is part of the artwork), intro copy sits below on the dark page */
.hero.hero-art { display: block; min-height: 0; background: linear-gradient(180deg, rgba(13,12,11,.50) 0%, rgba(13,12,11,.62) 70%, var(--black) 100%), url(../Signing%20Day%20img/reser.jpg) 50% 38% / cover no-repeat, var(--black); }
.hero.hero-art::after { display: none; }
.hero.hero-art > img { position: static; display: block; width: min(100%, 1320px); height: auto; margin: 0 auto; z-index: auto; }
.hero-art h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro { padding-block: 28px 8px; }
.intro .eyebrow { margin-bottom: 12px; }
.intro p { max-width: 58ch; color: var(--bone); font-size: clamp(1rem, 1.5vw, 1.1rem); margin: 0; }

/* Player with no photo file yet: no picture box at all, just the labels */
.photo.nophoto { aspect-ratio: auto; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; background: none; }
.photo.nophoto .pos, .photo.nophoto .tag, .photo.nophoto .signed { position: static; }
.photo.nophoto .signed { flex: 1 1 100%; background: none; padding-left: 0; }

/* Signed time on the Signed bar */
.signed time { margin-left: auto; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
