@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --ink: #121826;
  --soil: #1e2d4a;
  --clay: #5a6782;
  --sand: #e4dfd4;
  --mist: #f7f5f0;
  --safety: #c9a227;
  --safety-dark: #a68416;
  --track: #2d6a4f;
  --white: #fff;
  --shadow: rgba(18, 24, 38, 0.12);
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  background-image:
    linear-gradient(145deg, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 45, 74, 0.06), transparent 55%);
}

body.is-nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--safety-dark);
}

a:hover {
  color: var(--soil);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--soil);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 45, 74, 0.12);
  min-height: var(--header-h);
}

.site-header__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--soil);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--soil);
}

.nav-toggle:hover {
  background: rgba(30, 45, 74, 0.08);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--soil);
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--clay);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--safety-dark);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 65;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 45, 74, 0.12);
    box-shadow: 0 16px 32px rgba(18, 24, 38, 0.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(30, 45, 74, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .brand {
    font-size: 1rem;
  }

  .brand > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

main {
  flex: 1 0 auto;
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  padding: 2rem 0 3rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--track);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.hero__lead {
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: var(--clay);
  font-size: 1.1rem;
}

.games-section__title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.games-section__sub {
  text-align: center;
  color: var(--clay);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(30, 45, 74, 0.1);
  box-shadow: 0 12px 40px var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(18, 24, 38, 0.16);
}

.game-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.game-card__body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--clay);
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(165deg, var(--safety) 0%, var(--safety-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn--primary:hover {
  background: var(--safety-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--soil);
  border: 2px solid rgba(30, 45, 74, 0.2);
}

.btn--ghost:hover {
  border-color: var(--safety);
  color: var(--safety-dark);
}

.btn--block {
  width: 100%;
}

.features {
  margin-top: 4rem;
}

.features__heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.feature-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 45, 74, 0.08);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--clay);
  font-size: 0.98rem;
}

.faq {
  margin-top: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq details {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(30, 45, 74, 0.1);
  padding: 0.25rem 1.25rem;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-head);
  color: var(--soil);
}

.faq details[open] summary {
  border-bottom: 1px solid rgba(30, 45, 74, 0.08);
  margin-bottom: 0.75rem;
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--clay);
  font-size: 0.98rem;
}

.cta-band {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(120deg, var(--soil) 0%, #2d4566 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--sand);
}

.cta-band h2 {
  color: var(--white);
  margin-top: 0;
}

.cta-band p {
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

.cta-band .btn--primary {
  box-shadow: none;
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 2.5rem 1.25rem;
  background: var(--soil);
  color: var(--sand);
}

.site-footer a {
  color: #d4c48a;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer__base {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  text-align: center;
  opacity: 0.85;
}

.page-head {
  margin-bottom: 2rem;
}

.page-head h1 {
  margin-bottom: 0.5rem;
}

.page-head p.lead {
  font-size: 1.15rem;
  color: var(--clay);
  max-width: 60ch;
}

.content-block {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(30, 45, 74, 0.08);
}

.content-block h2 {
  margin-top: 0;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 45, 74, 0.2);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
}

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

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-visible {
  display: block;
  background: rgba(45, 106, 79, 0.12);
  color: var(--track);
  font-weight: 600;
}

.blog-grid {
  display: grid;
  gap: 2rem;
}

.blog-card {
  display: grid;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(30, 45, 74, 0.1);
}

@media (min-width: 640px) {
  .blog-card {
    grid-template-columns: 220px 1fr;
  }
}

.blog-card__img {
  min-height: 180px;
  background: var(--sand);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

@media (max-width: 639px) {
  .blog-card__body {
    padding: 0 1.25rem 1.25rem;
  }
}

.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--track);
  margin-bottom: 0.5rem;
}

.blog-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--clay);
  margin: 0.75rem 0 1rem;
}

.article-page {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
  color: var(--clay);
}

.article-content section {
  margin-bottom: 2rem;
}

.article-content h2 {
  font-size: 1.35rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 420px;
  margin-left: auto;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(18, 24, 38, 0.2);
  z-index: 100;
  border: 1px solid rgba(30, 45, 74, 0.12);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.game-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 38, 0.72);
  cursor: pointer;
}

.game-modal__panel {
  position: relative;
  width: min(960px, 100%);
  height: min(88vh, 720px);
  max-height: min(88vh, 720px);
  background: var(--soil);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.game-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #1a2336;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-modal__top h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--sand);
  font-weight: 600;
}

.game-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.game-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.game-modal__frame {
  flex: 1 1 auto;
  min-height: 200px;
  position: relative;
  background: #0f141f;
}

.game-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
