/* Peewee Hockey marketing site
 * Visual system matches the in-game retro-hockey-ui-style:
 *   Ice Blue background, Periwinkle panels, Crimson action borders, Press Start 2P.
 * Body text uses a system sans-serif for readability — Press Start 2P is
 * unreadable in long paragraphs. Pixel font handles every label/heading/button. */

:root {
  --ice-blue: #CBDBFC;
  --light-ice: #E5ECFC;
  --periwinkle: #5A6EE1;
  --crimson: #AE3031;
  --black: #000000;
  --white: #FFFFFF;
  --text-dim: #4A5A8A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ice-blue);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Pixel font for everything retro */
h1, h2, h3, h4, .pixel, button, .button {
  font-family: 'Press Start 2P', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

a {
  color: var(--periwinkle);
  text-decoration: none;
  border-bottom: 2px solid var(--periwinkle);
}

a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--periwinkle);
  background: var(--ice-blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: none;
  color: var(--black);
}

.brand:hover { color: var(--crimson); }

.brand-icon { width: 40px; height: 40px; }
.brand-name { font-family: 'Press Start 2P', monospace; font-size: 0.85rem; }

.nav { display: flex; gap: 1.5rem; }

.nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--black);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav a:hover, .nav a.active { color: var(--crimson); border-bottom-color: var(--crimson); }

/* Hero */
.hero { padding: 4rem 0 3rem; text-align: center; }

.hero-wordmark {
  font-size: clamp(1.75rem, 7vw, 3.5rem);
  color: var(--black);
  text-shadow: 4px 4px 0 var(--periwinkle);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  margin-bottom: 2rem;
  color: var(--text-dim);
}

.hero-image { max-width: 280px; margin: 2rem auto; }

.hero-note {
  margin-top: 1.5rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
}

/* Buttons (Periwinkle fill, Crimson border, white text, hard 3px black shadow) */
.button {
  display: inline-block;
  background: var(--periwinkle);
  color: var(--white);
  border: 3px solid var(--crimson);
  padding: 0.9rem 1.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--black);
  text-transform: uppercase;
  font-family: 'Press Start 2P', monospace;
  transition: transform 80ms ease, box-shadow 80ms ease;
  border-radius: 0;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
  color: var(--white);
  border-bottom-color: var(--crimson);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0 var(--black);
}

.button.secondary {
  background: var(--light-ice);
  color: var(--black);
  border-color: var(--periwinkle);
}

/* Sections */
section { padding: 4rem 0; border-top: 4px solid var(--periwinkle); }
section:first-of-type { border-top: none; }

.section-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.section-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* Panels */
.panel {
  background: var(--light-ice);
  border: 3px solid var(--periwinkle);
  padding: 1.5rem;
  box-shadow: 4px 4px 0 var(--black);
}

/* Features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--light-ice);
  border: 3px solid var(--periwinkle);
  padding: 1.75rem 1.5rem;
  box-shadow: 4px 4px 0 var(--black);
  text-align: center;
}

.feature-card h3 { font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--periwinkle); }
.feature-card p { font-size: 0.95rem; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* Screenshot gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: var(--light-ice);
  border: 3px solid var(--periwinkle);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--black);
}

/* Press quotes */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.press-quote {
  background: var(--light-ice);
  border: 3px solid var(--periwinkle);
  padding: 1.5rem;
  box-shadow: 4px 4px 0 var(--black);
}

.press-quote blockquote { font-style: italic; margin-bottom: 0.75rem; }
.press-quote cite {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--periwinkle);
  font-style: normal;
}

/* Trailer */
.trailer-frame {
  aspect-ratio: 16/9;
  background: var(--black);
  border: 4px solid var(--periwinkle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice-blue);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 6px 6px 0 var(--black);
}

/* CTA rows */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Form */
.form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.form label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--black);
  display: block;
  margin-bottom: 0.5rem;
}

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  background: var(--white);
  border: 3px solid var(--periwinkle);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  border-radius: 0;
}

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

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

/* Honeypot — fully hidden from real users; bots fill it */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#form-status {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  display: none;
  line-height: 1.6;
}

#form-status.success {
  display: block;
  background: var(--light-ice);
  border: 3px solid var(--periwinkle);
  color: var(--black);
}

#form-status.error {
  display: block;
  background: #FFE5E5;
  border: 3px solid var(--crimson);
  color: var(--crimson);
}

.cf-turnstile { margin: 0.5rem 0; }

/* Press kit */
.fact-sheet { max-width: 720px; margin: 0 auto; }
.fact-sheet dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0;
}
.fact-sheet dt {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--periwinkle);
  align-self: center;
}
.fact-sheet dd { font-size: 1rem; }
.fact-sheet p { margin-bottom: 1rem; }

/* 404 */
.error-page { text-align: center; padding: 6rem 0; }
.error-code {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--crimson);
  text-shadow: 4px 4px 0 var(--black);
  margin-bottom: 1rem;
}
.error-message { font-family: 'Press Start 2P', monospace; font-size: 0.9rem; margin-bottom: 2rem; }

/* Footer */
.site-footer {
  border-top: 4px solid var(--periwinkle);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--light-ice);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; align-items: center; }
  .footer-grid > div:last-child { text-align: right; }
}

.footer-logo { max-width: 120px; margin-bottom: 1rem; }

.footer-meta {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  line-height: 2;
}

.footer-meta a { font-size: inherit; }

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 720px) { .social { justify-content: flex-end; } }

.social a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  border: 2px solid var(--periwinkle);
  padding: 0.4rem 0.6rem;
  color: var(--black);
}

.social a:hover { background: var(--periwinkle); color: var(--white); }

/* Mobile tweaks */
@media (max-width: 720px) {
  .nav { gap: 0.75rem; width: 100%; justify-content: center; }
  .site-header { padding: 1rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  section { padding: 3rem 0; }
}
