/* Pathogen Games site styles. Dark and orange. */

:root {
  --bg: #0b0b0e;
  --panel: #16161b;
  --panel-edge: #24242c;
  --text: #f2f2f2;
  --muted: #a0a0a8;
  --orange: #ff7a1a;
  --orange-deep: #f2451c;
  --ramp: linear-gradient(90deg, var(--orange) 0%, var(--orange-deep) 100%);
  --radius: 14px;
  --wrap: 1120px;
  --heading: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--orange);
  text-underline-offset: 3px;
}

a:hover {
  color: #ff9a4d;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--heading);
  font-size: 24px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.wordmark .w-main {
  font-weight: 800;
}

.wordmark .w-accent {
  font-weight: 500;
  color: var(--orange);
  margin-left: 0.35em;
}

.wordmark:hover {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 120px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  top: -320px;
  right: -260px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22) 0%, rgba(242, 69, 28, 0.08) 38%, rgba(11, 11, 14, 0) 68%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.15;
  margin: 0;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  max-width: 14ch;
}

.hero h1 .hl {
  background: var(--ramp);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  font-size: 21px;
  color: var(--muted);
  max-width: 38ch;
  margin: 28px 0 40px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--ramp);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--panel-edge);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--orange);
}

/* Sections */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--panel-edge);
}

.section h2 {
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section .lede {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 48px;
}

/* Game cards */

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.game {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ramp);
  z-index: 1;
}

.game-media {
  aspect-ratio: 16 / 11;
  background: #0f0f14;
  overflow: hidden;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.game-media.title-card {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 122, 26, 0.35) 0%, rgba(242, 69, 28, 0.1) 40%, rgba(15, 15, 20, 0) 70%),
    #0f0f14;
}

.title-card span {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  color: var(--text);
  padding: 0 24px;
}

.game-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.game h3 {
  font-size: 30px;
  font-weight: 800;
}

.game p {
  margin: 0;
}

.game .tagline {
  color: var(--text);
}

.game .detail {
  color: var(--muted);
}

.status {
  align-self: flex-start;
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
}

.game-links {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 500;
}

/* About + contact */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-card .email {
  font-family: var(--heading);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  word-break: break-word;
}

/* Long-form pages (support, privacy) */

.page {
  padding: 64px 0 96px;
}

.page .wrap {
  max-width: 820px;
}

.page h1 {
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  margin-bottom: 12px;
}

.page .meta {
  color: var(--muted);
  margin: 0 0 40px;
}

.page h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 56px 0 16px;
}

.page h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.page p,
.page li {
  color: #d6d6dc;
}

.page ul {
  padding-left: 1.2em;
}

.page li {
  margin-bottom: 10px;
}

.page strong {
  color: var(--text);
}

.callout {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.callout ul {
  margin: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.faq dt {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  margin-top: 32px;
}

.faq dd {
  margin: 8px 0 0;
  color: #d6d6dc;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--panel-edge);
  padding: 40px 0 56px;
  font-size: 16px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* 404 */

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.notfound h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
}

.notfound p {
  color: var(--muted);
  margin: 16px 0 32px;
}

/* Small screens */

@media (max-width: 860px) {
  .games,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 40px;
  }

  .hero {
    padding: 56px 0 80px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .wordmark {
    font-size: 20px;
  }

  .nav {
    gap: 20px;
  }

  .game-body {
    padding: 24px;
  }

  .contact-card {
    padding: 28px 24px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
