/* =========================================================
   Not Sure Hockey — vintage athletic program theme
   ========================================================= */

:root {
  --amber:      #f8b53c;
  --amber-deep: #e89a1c;
  --amber-soft: #fcd58a;
  --red:        #b72b39;
  --red-deep:   #8a1f2a;
  --ink:        #1d1408;   /* warm near-black */
  --ink-soft:   #3a2c16;
  --cream:      #fbefd6;
  --cream-line: #e9d9b4;

  --shadow-red:  5px 5px 0 var(--red);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--amber);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(29, 20, 8, 0.10) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film-grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--red); }
.ta-c { text-align: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0.55rem clamp(1rem, 4vw, 2.4rem);
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 4px 0 rgba(0,0,0,0.18);
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand__mark {
  width: 40px; height: 40px;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 0.04em;
  color: var(--red); text-transform: uppercase;
  line-height: 1;
}

/* Team switcher */
.team-switch {
  position: relative; display: inline-flex; align-items: center;
}
.team-switch__select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1rem; line-height: 1;
  color: var(--amber); background: transparent;
  border: 2px solid var(--red); border-radius: 2px;
  padding: 0.34rem 2.1rem 0.34rem 0.7rem; min-width: 11rem;
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease;
}
.team-switch__select:hover { border-color: var(--amber); }
.team-switch__select:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.team-switch__select option { background: var(--ink); color: var(--cream); font-family: var(--font-body); }
.team-switch__caret {
  position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
  color: var(--amber); font-size: 0.8rem; pointer-events: none;
}

.nav { display: flex; gap: clamp(0.8rem, 2vw, 1.8rem); margin-left: auto; }
.nav a {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream);
  padding: 0.3rem 0; position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:hover { color: var(--amber); }
.nav a:hover::after { transform: scaleX(1); }

.cal-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--red); color: var(--cream);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.9rem; border-radius: 2px;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.cal-btn:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.cal-btn__plus { font-family: var(--font-display); font-size: 1.1rem; line-height: 0.6; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.4rem;
}

.hero__copy { display: flex; flex-direction: column; align-items: center; }

.hero__eyebrow {
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--ink-soft);
  animation: rise 0.6s ease both 0.1s;
}
.hero__title {
  margin: 0.4rem 0 0.2rem;
  display: flex; justify-content: center;
}
.hero__logo {
  width: clamp(200px, 38vw, 380px); height: auto;
  filter: drop-shadow(0 6px 10px rgba(29, 20, 8, 0.28));
  animation: pop-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.4rem;
  animation: rise 0.6s ease both 0.35s;
}
.statblock {
  background: var(--cream); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.55rem 0.95rem; min-width: 78px; text-align: center;
}
.statblock--rank { background: var(--ink); border-color: var(--red); }
.statblock--rank .statblock__num { color: var(--amber); }
.statblock--rank .statblock__label { color: var(--cream); }
.statblock__num { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 0.9; color: var(--red); }
.statblock__label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }

/* Next-game ticket */
.ticket {
  width: 100%;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-red);
  max-width: 460px; margin-top: 1.4rem;
  position: relative;
  animation: rise 0.7s ease both 0.45s;
}
.ticket__head {
  background: var(--red); color: var(--cream);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 1.05rem; padding: 0.45rem 1rem;
}
.ticket__body { padding: 1rem 1.1rem 1.2rem; }
.ticket__empty { color: var(--ink-soft); font-weight: 500; }
.ticket__matchup { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.ticket__ha {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--amber); padding: 0.15rem 0.5rem;
}
.ticket__opp { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.ticket__when { margin-top: 0.5rem; font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; }
.ticket__where { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.ticket__count {
  margin-top: 0.7rem; display: inline-block; background: var(--amber-soft);
  border: 2px solid var(--ink); padding: 0.2rem 0.6rem;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.4rem); max-width: var(--maxw); margin: 0 auto; }

.section__head { margin-bottom: 1.8rem; }
.section__title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.9; letter-spacing: 0.01em;
}
.section__title em { font-style: normal; }
.section__sub { font-weight: 500; color: var(--ink-soft); margin-top: 0.3rem; font-size: 1.05rem; }
#schedule-sub, #standings-sub {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--red); font-size: 1.5rem; font-weight: 400;
}

/* =========================================================
   Schedule
   ========================================================= */
.sched-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.sched-col__title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.25rem; color: var(--red); margin-bottom: 0.8rem;
  border-bottom: 3px solid var(--ink); padding-bottom: 0.3rem;
}
.game-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.game {
  background: var(--cream); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(29,20,8,0.85);
  display: grid; grid-template-columns: 58px 1fr auto; gap: 0.8rem; align-items: center;
  padding: 0.7rem 0.9rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.game__date {
  text-align: center; border-right: 2px dashed var(--cream-line); padding-right: 0.6rem;
}
.game__mon { font-weight: 700; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.game__day { font-family: var(--font-display); font-size: 1.7rem; line-height: 0.9; }
.game__main { min-width: 0; }
.game__ha {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.game__opp { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.game__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.2rem; }
.game__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.game__score { font-family: var(--font-display); font-size: 1.5rem; line-height: 0.9; }
.badge {
  display: inline-block; font-weight: 900; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.15rem 0.5rem; border: 2px solid var(--ink);
}
.badge--w { background: var(--red); color: var(--cream); border-color: var(--red-deep); }
.badge--l { background: var(--cream); color: var(--ink); }
.badge--t { background: var(--amber); color: var(--ink); }
.badge--soon { background: var(--ink); color: var(--amber); border-color: var(--ink); }
.game__link { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.game__link:hover { text-decoration: underline; }
.game--next { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }

.game-list .loading { color: var(--ink-soft); font-weight: 500; padding: 0.5rem 0; }
.empty-note { color: var(--ink-soft); font-style: italic; }

/* =========================================================
   Standings
   ========================================================= */
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); box-shadow: var(--shadow-red); background: var(--cream); }
.standings { width: 100%; border-collapse: collapse; min-width: 560px; }
.standings thead th {
  background: var(--ink); color: var(--amber);
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.6rem 0.7rem; text-align: left;
}
.standings tbody td { padding: 0.55rem 0.7rem; border-bottom: 2px solid var(--cream-line); font-size: 0.92rem; }
.standings tbody tr:last-child td { border-bottom: none; }
.standings .st-rank { font-family: var(--font-display); font-size: 1.3rem; color: var(--red); }
.standings .st-team { font-weight: 700; }
.standings .st-pts { font-weight: 900; color: var(--red); }
.standings tr.is-ours td { background: var(--amber); }
.standings tr.is-ours .st-team::after {
  content: '★'; color: var(--red); margin-left: 0.4rem;
}
.standings tbody tr:hover td { background: var(--amber-soft); }
.standings tr.is-ours:hover td { background: var(--amber-deep); }

/* =========================================================
   Photo
   ========================================================= */
.photo-section { padding-top: 0; }
.photo-frame {
  margin: 0;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-red);
  padding: 8px;
  line-height: 0;
}
.photo-frame img { width: 100%; height: auto; display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--cream); border-top: 4px solid var(--red); margin-top: 2rem; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.4rem);
  display: flex; align-items: center; gap: 1.2rem;
}
.site-footer__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; color: var(--amber); letter-spacing: 0.04em; }
.site-footer__meta { font-size: 0.85rem; color: var(--amber-soft); }
.site-footer__meta a { color: var(--cream); text-decoration: underline; }

/* =========================================================
   Animations
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.8) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .ticket__matchup { justify-content: center; }
  .sched-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cal-btn { display: none; }
  .hide-sm { display: none; }
  .brand__name { font-size: 1.25rem; }
  .site-header { flex-wrap: wrap; gap: 0.45rem 0.7rem; }
  .nav { margin-left: 0; gap: 1.1rem; }
  .nav a { font-size: 0.78rem; letter-spacing: 0.1em; }
  .team-switch__select { font-size: 0.85rem; padding: 0.3rem 1.8rem 0.3rem 0.55rem; min-width: 0; }
}
