/* ============================================
   MLB Baseball Schedule 2026 — Design System
   Signature: literal box-score grid as hero
   ============================================ */

:root {
  --field: #14432A;
  --field-2: #0E2E1C;
  --dirt: #B0764F;
  --cream: #F3EAD6;
  --amber: #FF8C1A;
  --ink: #10201A;
  --chalk: #FBF8F1;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--chalk);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--field);
  border-bottom: 3px solid var(--amber);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--chalk);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.nav-links a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--amber);
  color: var(--chalk);
}

.nav-links a.current {
  border-color: var(--amber);
  color: var(--chalk);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(251, 248, 241, 0.4);
  color: var(--chalk);
}

.btn-ghost:hover {
  border-color: var(--chalk);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(255,140,26,0.14), transparent 55%),
    linear-gradient(180deg, var(--field) 0%, var(--field-2) 100%);
  color: var(--chalk);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255,140,26,0.2);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--amber);
}

.hero p.lead {
  font-size: 1.08rem;
  color: rgba(251,248,241,0.82);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(251,248,241,0.65);
  flex-wrap: wrap;
}

/* ---------- Box-score signature element ---------- */
.boxscore {
  background: var(--ink);
  border: 1px solid rgba(255,140,26,0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.boxscore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,140,26,0.08);
  border-bottom: 1px solid rgba(255,140,26,0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.boxscore-head .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4d;
  display: inline-block;
  margin-right: 6px;
  animation: pulse 1.4s ease-in-out infinite;
}

.boxscore table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}

.boxscore th, .boxscore td {
  padding: 10px 8px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--chalk);
}

.boxscore thead th {
  color: rgba(251,248,241,0.5);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(251,248,241,0.12);
  padding-bottom: 8px;
}

.boxscore tbody th {
  text-align: left;
  padding-left: 16px;
  font-weight: 700;
  color: var(--chalk);
}

.boxscore tbody td.tot {
  font-weight: 700;
  color: var(--amber);
  border-left: 1px solid rgba(251,248,241,0.12);
}

.boxscore tbody tr + tr td,
.boxscore tbody tr + tr th {
  border-top: 1px solid rgba(251,248,241,0.08);
}

.boxscore-foot {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(251,248,241,0.55);
  border-top: 1px solid rgba(255,140,26,0.15);
  display: flex;
  justify-content: space-between;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-cream { background: var(--cream); }
.section-chalk { background: var(--chalk); }

.section-head {
  max-width: 60ch;
  margin-bottom: 52px;
}

.section-head .eyebrow { color: var(--dirt); }

.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  color: var(--field);
}

.section-head p {
  color: rgba(16,32,26,0.68);
  font-size: 1.02rem;
}

/* ---------- Feature grid (inning-style numbering) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(16,32,26,0.12);
  border: 1px solid rgba(16,32,26,0.12);
  border-radius: 10px;
  overflow: hidden;
}

.feature {
  background: var(--chalk);
  padding: 32px 24px;
  position: relative;
}

.feature .inning {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--dirt);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}

.feature .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--field);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}

.feature p {
  font-size: 0.92rem;
  color: rgba(16,32,26,0.66);
}

/* ---------- Stripe / stats band ---------- */
.stripe {
  background: var(--field);
  color: var(--chalk);
  padding: 56px 0;
}

.stripe .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--amber);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(251,248,241,0.65);
  margin-top: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(180deg, var(--field-2) 0%, var(--ink) 100%);
  color: var(--chalk);
  padding: 88px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(251,248,241,0.72);
  max-width: 50ch;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251,248,241,0.6);
  padding: 44px 0 28px;
  font-size: 0.86rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(251,248,241,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(251,248,241,0.4);
}

/* ---------- Content pages (policy / contact) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--field) 0%, var(--field-2) 100%);
  color: var(--chalk);
  padding: 56px 0 44px;
}

.page-header .eyebrow { color: var(--amber); }

.page-header h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-header .updated {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(251,248,241,0.6);
  margin-top: 10px;
}

.policy-body {
  padding: 56px 0 96px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  border-left: 2px solid rgba(16,32,26,0.12);
  padding-left: 18px;
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dirt);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}

.toc a {
  font-size: 0.86rem;
  color: rgba(16,32,26,0.65);
  transition: color 0.15s ease;
  display: block;
}

.toc a:hover { color: var(--field); }

.policy-content h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  color: var(--field);
  margin: 44px 0 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(16,32,26,0.1);
}

.policy-content section:first-child h2 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.policy-content p {
  margin-bottom: 14px;
  color: rgba(16,32,26,0.78);
  font-size: 0.98rem;
}

.policy-content ul {
  margin: 0 0 16px 20px;
  color: rgba(16,32,26,0.78);
  font-size: 0.98rem;
}

.policy-content li { margin-bottom: 8px; }

.policy-content strong { color: var(--ink); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(16,32,26,0.12);
}

.data-table th {
  background: var(--field);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tr:nth-child(even) td { background: rgba(16,32,26,0.03); }

.callout {
  background: var(--cream);
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 20px 0 24px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--field);
  color: var(--chalk);
  border-radius: 10px;
  padding: 32px;
}

.contact-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: rgba(251,248,241,0.72);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber);
  padding: 12px 16px;
  border: 1px solid rgba(255,140,26,0.4);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.contact-email:hover { background: rgba(255,140,26,0.1); }

.contact-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(251,248,241,0.15);
  font-size: 0.86rem;
  color: rgba(251,248,241,0.6);
}

.contact-meta div { margin-bottom: 8px; }

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(16,32,26,0.18);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--chalk);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--field);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: rgba(16,32,26,0.55);
  margin-top: 4px;
}

#form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

#form-status.ok { color: var(--field); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stripe .wrap { grid-template-columns: repeat(2, 1fr); }
  .policy-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-left: none; padding-left: 0; border-top: 2px solid rgba(16,32,26,0.12); padding-top: 16px; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .stripe .wrap { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 60px 0; }
}
