:root {
  --red: #c8102e;
  --black: #1a1a1a;
  --white: #ffffff;
  --muted: #6c757d;
  --max-width: 1200px;
  --radius: 12px;
  --focus-ring: 0 0 0 3px rgba(200, 16, 46, 0.2);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.2s ease-in-out;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
}
.banner-img {
  height: 56px;
}

/* Navigation */
.primary-nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  color: var(--black);
  font-weight: 600;
  transition: var(--transition);
}
.primary-nav a:hover, .primary-nav a:focus-visible {
  background: #f1f3f5;
  color: var(--red);
}
.games-btn {
  background: var(--black);
  color: var(--white);
}
.games-btn:hover, .games-btn:focus-visible {
  background: #343a40;
  color: var(--white) !important;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  margin-left: auto;
}
.hamburger {
  width: 28px;
  height: 3px;
  background: var(--black);
  position: relative;
  transition: background .2s ease-in-out;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--black);
  transition: transform .2s ease-in-out;
}
.hamburger::before { top: -9px; }
.hamburger::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(6px, 7px); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg) translate(6px, -7px); }

/* Hero Section */
.hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--white), #f8f9fa);
}
.site-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #a20c24;
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--red);
  color: var(--red);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--red);
  color: var(--white);
}

/* Sections */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Issues Grid */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.issue-card {
  background: var(--white);
  border: 1px solid #dee2e6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
}
.issue-card:hover, .issue-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.issue-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.issue-meta {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.issue-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.issue-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.issue-excerpt {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid #dee2e6;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  background: var(--white);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--red);
}

/* PDF Viewer Modal */
.pdf-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pdf-viewer.visible {
  opacity: 1;
  visibility: visible;
}
.pdf-iframe {
  width: 100%;
  max-width: 900px;
  height: 90%;
  background: var(--white);
  border: 1px solid #dee2e6;
  border-radius: var(--radius);
}
.close-pdf-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 201;
}

/* Accessibility */
.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;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Responsive */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding-top: 5rem;
  }
  .primary-nav.open {
    transform: translateX(0);
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.5rem;
  }
  .nav-toggle {
    display: block;
    z-index: 101;
  }
  .close-pdf-btn {
    top: 1rem;
    right: 1rem;
  }
}
