:root {
  color-scheme: light;
  --paper: #f3efe4;
  --paper-2: #fffdf7;
  --ink: #111820;
  --muted: #5e6670;
  --navy: #132448;
  --blue: #006bb6;
  --orange: #f58426;
  --giants-blue: #0b4ea2;
  --giants-red: #d50a0a;
  --line: #202b36;
  --surface: #fffdf7;
  --text: #111820;
  --accent: #f58426;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body.birthday-page { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.4; }
body.birthday-page::before { display: none; }
a { color: inherit; }
a:focus-visible { outline: 4px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.team-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); color: white; font-size: 10px; font-weight: 900; letter-spacing: 2.5px; text-align: center; text-transform: uppercase; }
.team-ribbon span { padding: 7px 10px; }
.yankees-strip { background: var(--navy); }
.knicks-strip { background: var(--orange); }
.giants-strip { background: var(--giants-blue); }

.site-header { width: min(1240px, calc(100% - 44px)); min-height: 88px; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; border-bottom: 3px solid var(--ink); }
.home-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; }
.brand { color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 950; letter-spacing: -1.4px; }
.brand span { color: var(--muted); font-weight: 400; }
.mini-nav { display: flex; gap: 28px; }
.mini-nav a { position: relative; padding: 8px 0; text-decoration: none; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.mini-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 3px; height: 3px; background: var(--orange); transition: right .15s ease; }
.mini-nav a:hover::after { right: 0; }
.issue-mark { justify-self: end; padding-left: 14px; border-left: 2px solid var(--ink); font-family: Georgia, serif; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: right; text-transform: uppercase; }
.issue-mark span { float: left; margin-right: 8px; font-family: Impact, 'Arial Narrow', sans-serif; font-size: 31px; line-height: .8; }

.home-shell { width: min(1240px, calc(100% - 44px)); margin: 0 auto; }
.scoreboard-hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); border-bottom: 3px solid var(--ink); }
.hero-main { position: relative; padding: 72px 7vw 62px 0; border-right: 3px solid var(--ink); }
.hero-main::before { content: 'P'; position: absolute; z-index: 0; right: 4%; bottom: -8%; color: rgba(0, 107, 182, .07); font-family: Impact, 'Arial Narrow', sans-serif; font-size: min(42vw, 540px); line-height: .8; }
.kicker { position: relative; z-index: 1; margin: 0 0 42px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 2.2px; text-transform: uppercase; }
.hero-main h1 { position: relative; z-index: 1; margin: 0; font-family: Impact, 'Arial Narrow', sans-serif; font-size: clamp(78px, 9.8vw, 148px); font-weight: 900; line-height: .78; letter-spacing: -2px; text-transform: uppercase; }
.hero-main h1 span { color: var(--orange); }
.hero-action-row { position: relative; z-index: 2; margin-top: 52px; display: flex; align-items: center; gap: 28px; }
.hero-action-row > p { margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 14px; font-style: italic; }
.ticket-button { min-width: 280px; display: grid; grid-template-columns: 1fr auto; gap: 1px 24px; padding: 15px 17px; border: 2px solid var(--ink); background: var(--ink); color: white; text-decoration: none; box-shadow: 7px 7px 0 var(--orange); transition: transform .15s ease, box-shadow .15s ease; }
.ticket-button:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--orange); }
.ticket-button span { font-family: Georgia, serif; font-size: 9px; font-style: italic; text-transform: uppercase; }
.ticket-button strong { grid-column: 1; font-size: 14px; letter-spacing: 1px; }
.ticket-button b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 26px; }

.team-board { align-self: center; margin: 40px 0 40px 48px; border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 12px 12px 0 var(--ink); }
.board-label { padding: 10px 13px; display: flex; justify-content: space-between; background: var(--ink); color: white; font-size: 9px; font-weight: 900; letter-spacing: 2px; }
.team-row { min-height: 112px; display: grid; grid-template-columns: 47px 64px 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 13px; padding: 14px; border-bottom: 2px solid var(--ink); }
.team-row:last-of-type { border-bottom: 0; }
.team-code { grid-row: 1 / 3; align-self: stretch; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); color: white; font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.sport-ball { grid-row: 1 / 3; width: 58px; height: 58px; display: block; position: relative; }
.team-row strong { align-self: end; font-family: Impact, 'Arial Narrow', sans-serif; font-size: 28px; line-height: 1; letter-spacing: .5px; }
.team-row small { align-self: start; color: var(--muted); font-family: Georgia, serif; font-size: 11px; font-style: italic; }
.yankees-row { background: repeating-linear-gradient(90deg, #fff 0 24px, #d7dfeb 24px 25px); }
.yankees-row .team-code { background: var(--navy); }
.knicks-row { background: #edf6fc; }
.knicks-row .team-code { background: var(--orange); }
.giants-row { background: #eef3fa; }
.giants-row .team-code { background: var(--giants-blue); }
.baseball-icon { border: 2px solid var(--navy); border-radius: 50%; background: white; }
.baseball-icon::before, .baseball-icon::after { content: ''; position: absolute; top: 8px; width: 15px; height: 38px; border: 2px dashed var(--giants-red); border-top: 0; border-bottom: 0; border-radius: 50%; }
.baseball-icon::before { left: 8px; }
.baseball-icon::after { right: 8px; }
.basketball-icon { border: 2px solid #7c3900; border-radius: 50%; background: var(--orange); }
.basketball-icon::before { content: ''; position: absolute; inset: 26px 0 auto; height: 2px; background: #7c3900; transform: rotate(-14deg); }
.basketball-icon::after { content: ''; position: absolute; inset: 0 25px; border-left: 2px solid #7c3900; border-right: 2px solid #7c3900; border-radius: 50%; transform: rotate(22deg); }
.football-icon { height: 40px; margin-top: 9px; border: 2px solid #5f2b10; border-radius: 50%; background: #9b4b22; transform: rotate(-18deg); }
.football-icon::before { content: ''; position: absolute; top: 17px; left: 17px; width: 25px; height: 2px; background: white; box-shadow: 6px -5px 0 -0.5px white, 12px -5px 0 -0.5px white, 18px -5px 0 -0.5px white; }
.board-footer { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--orange); color: var(--ink); font-size: 9px; }

.playbook { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: 72px 0 76px; }
.playbook-heading p { margin: 0 0 13px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.playbook-heading h2 { max-width: 360px; margin: 0; font-family: Impact, 'Arial Narrow', sans-serif; font-size: clamp(50px, 6vw, 82px); font-weight: 900; line-height: .9; text-transform: uppercase; }
.playbook-links { border-top: 3px solid var(--ink); }
.playbook-links a { min-height: 96px; display: grid; grid-template-columns: 48px 1fr 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--ink); text-decoration: none; transition: padding .15s ease, background .15s ease; }
.playbook-links a:hover { padding: 0 14px; background: var(--paper-2); }
.link-number { color: var(--muted); font-size: 10px; font-weight: 900; }
.playbook-links strong { font-size: 24px; }
.playbook-links em { color: var(--muted); font-family: Georgia, serif; font-size: 13px; }
.playbook-links b { color: var(--orange); font-size: 28px; }

/* Interior pages */
.page-shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.site-header:not(.home-header) { justify-content: space-between; }
.edition { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.tri-badge { display: grid; grid-template-columns: repeat(3, 10px); height: 30px; border: 2px solid var(--ink); }
.tri-badge i:nth-child(1) { background: var(--navy); }
.tri-badge i:nth-child(2) { background: var(--orange); }
.tri-badge i:nth-child(3) { background: var(--giants-blue); }
.back-link { display: inline-block; margin: 24px 0; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.back-link:hover { color: var(--orange); }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.page-title { margin: 0 0 12px; font-family: Impact, 'Arial Narrow', sans-serif; font-size: clamp(56px, 9vw, 105px); font-weight: 900; line-height: .9; text-transform: uppercase; }
.page-intro { max-width: 660px; margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 17px; }
.site-footer { width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: 22px 0 30px; border-top: 3px solid var(--ink); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }

@media (max-width: 880px) {
  .home-header { grid-template-columns: 1fr auto; }
  .mini-nav { display: none; }
  .scoreboard-hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 570px; padding-right: 0; border-right: 0; border-bottom: 3px solid var(--ink); }
  .team-board { width: calc(100% - 24px); margin: 42px 12px 54px 0; }
  .playbook { grid-template-columns: 1fr; gap: 40px; }
  .playbook-heading h2 { max-width: 100%; }
}

@media (max-width: 580px) {
  .team-ribbon { font-size: 8px; letter-spacing: 1px; }
  .site-header, .home-shell, .page-shell, .site-footer { width: min(100% - 28px, 1240px); }
  .site-header { min-height: 72px; }
  .issue-mark { font-size: 9px; }
  .issue-mark span { font-size: 25px; }
  .hero-main { min-height: auto; padding: 48px 0 52px; }
  .kicker { margin-bottom: 30px; }
  .hero-main h1 { font-size: clamp(68px, 21vw, 104px); }
  .hero-action-row { align-items: stretch; flex-direction: column; }
  .ticket-button { min-width: 0; }
  .team-board { width: calc(100% - 8px); margin: 32px 8px 42px 0; box-shadow: 8px 8px 0 var(--ink); }
  .team-row { grid-template-columns: 38px 54px 1fr; column-gap: 10px; padding: 11px; }
  .sport-ball { width: 48px; height: 48px; }
  .football-icon { height: 34px; }
  .team-row strong { font-size: 23px; }
  .board-footer { align-items: flex-start; flex-direction: column; }
  .playbook { padding: 50px 0 54px; }
  .playbook-links a { min-height: 104px; grid-template-columns: 32px 1fr auto; gap: 10px; }
  .playbook-links em { grid-column: 2; margin-top: -30px; }
  .playbook-links b { grid-column: 3; grid-row: 1 / 3; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
