/* GameShack — shared site styles
   Color tokens:
   --navy   #182B3A  header background
   --paper  #F2EFE7  page background
   --ink    #232323  body text
   --gold   #E8A93B  accent (hover/active only)
   --brick  #8B5E52  footer/muted text
*/

:root {
  --navy: #182B3A;
  --paper: #F2EFE7;
  --ink: #232323;
  --gold: #E8A93B;
  --brick: #8B5E52;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ── Header: plain top bar with wordmark only ─────────────────────────── */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(24, 43, 58, 0.12);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after  { content: ""; top: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── Nav: separate dark strip below the top bar ───────────────────────── */

.site-nav {
  background: var(--navy);
}

.site-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1.75rem;
}

.site-nav__link {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* ── Main content ───────────────────────────────────────────────────── */

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--gold);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(24, 43, 58, 0.12);
  margin-top: 3rem;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--brick);
}

.small { font-size: 0.85rem; margin: 0.25rem 0; }
.subtle { opacity: 0.8; }

/* ── Mobile ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav__inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* ── Landing page: hero ─────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero__text {
  max-width: 32rem;
}

.hero__text h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

.hero__text p {
  font-size: 1.1rem;
  color: var(--brick);
  margin: 0;
}

.hero__img {
  width: 28rem;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero__img {
    width: 20rem;
  }
}

/* ── Landing page: game grid ────────────────────────────────────────── */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.game-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(24, 43, 58, 0.12);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}

.game-card:hover {
  border-color: var(--gold);
}

.game-card:hover h2 {
  color: var(--gold);
}

.game-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.game-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brick);
}

.game-card__logo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

.game-card__wordmark--verbatile {
  font-family: 'Palatino', 'Book Antiqua', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1B4332;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 0 0.5rem;
}

.game-card__wordmark--ringlet {
  display: block;
  background: var(--navy);
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.game-card__wordmark--ringlet span {
  background: linear-gradient(180deg, #f5dfa0, #b8933f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(232, 169, 59, 0.35);
}

.game-card__tiles--wordslide {
  display: block;
  width: 65%;
  height: auto;
  margin: 0 0 0.75rem;
}

/* Shared site footer bar (copyright + contact) */
.site-footer-bar {
  background: #000;
  color: #fff;
  padding: 1rem 1.25rem;
}
.site-footer-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer-bar__copyright {
  font-size: 0.9rem;
  color: #fff;
}
.site-footer-bar__link {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: underline;
  opacity: 0.85;
}
.site-footer-bar__link:hover,
.site-footer-bar__link:focus {
  opacity: 1;
}
.site-footer-bar__contact {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: underline;
}
.site-footer-bar__contact:hover,
.site-footer-bar__contact:focus {
  text-decoration: none;
}