/* ===== CSS VARIABLES (GLOBAL) ===== */

:root {
  --bp-mobile: 768px;

  --container: 1100px;
  --container-wide: 1440px;
  --gutter: 16px;
}

@media (min-width: 1440px) {
  :root {
    --container: clamp(1100px, 90vw, 1440px);
  }
}

/* ===== BASE / RESET STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #111;
}

/* ---- Explicit heading styles (fixes H1UserAgentFontSizeInSection) ---- */
h1 {
  font-size: 2em;
  margin-block: 0.67em;
  font-weight: 700;
}

h2 {
  font-size: 1.5em;
  margin-block: 0.75em;
  font-weight: 600;
}

h3 {
  font-size: 1.2em;
  margin-block: 0.8em;
  font-weight: 600;
}
/* ------------------------------------------------------------------- */

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===== Default page wrapper ===== */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}

/* ===== Focus & hover accessibility ===== */
.nav-links a:focus-visible,
.btn:focus-visible,
.text-link:focus-visible {
  outline: 2px solid rgba(0,0,0,0.5);
  outline-offset: 2px;
}

.nav-links a:hover {
  background: rgba(0,0,0,0.05);
}

/* ===== Global header/nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  font-size: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

/* ===== Header Steam CTA sizing ===== */
.site-header .btn-steam {
  padding: 6px 10px;
  font-size: 13px;
}

.site-header .btn-steam .btn-icon {
  height: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-steam {
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-steam .btn-icon {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
  }

  .btn-steam {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.footer-inner {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-title {
  font-size: 14px;
  margin: 0;
}

.footer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-nav a {
  text-decoration: none;
  padding: 4px 0;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons img {
  width: 22px;
  height: 22px;
}

.footer-steam {
  margin-top: 10px;
  justify-content: center;
}

.footer-bottom {
  padding: 12px 0px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 12px;
}

/* ===== Header/Footer ultrawide enhancement ===== */
@media (min-width: 1440px) {
  .site-header .container,
  .site-footer .container {
    max-width: clamp(1440px, 90vw, 1600px);
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
