/* ====================================================
   Pursuit Games — minimal dark site
   ==================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --bright: #ffffff;
  --muted: #c4c4c4;
  --rule: #333333;
  --tile: #141414;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: inherit; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* screen-reader-only text (SEO headings) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====================================================
   HOMEPAGE — brand blocks
   ==================================================== */
.home { padding: 5rem 0 4rem; }

.brand {
  margin-bottom: 5rem;
}
.brand:last-child { margin-bottom: 0; }

/* logo links back to the homepage — spacing lives on the link so the
   clickable area hugs the logo itself */
.logo-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
  margin: 0 auto 3rem;
  transition: opacity 0.15s ease;
}
.logo-link:hover { opacity: 0.75; }

.brand-logo {
  display: block;
  width: 100%;
  max-width: 660px;
  height: auto;
}

.brand p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 44rem;
}

/* row of game icon tiles */
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tile {
  width: 118px;
  height: 118px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--tile);
  flex: none;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile:hover { transform: translateY(-4px); }

/* ====================================================
   GAME POPUP
   ==================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}
.modal.open { display: flex; }

.modal-box {
  position: relative;
  background: #111111;
  border: 1px solid #333333;
  border-radius: 20px;
  padding: 2.4rem 2.6rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.modal-box.wide { max-width: 700px; }

.modal-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 1.2rem;
}
.modal-title {
  color: var(--bright);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.modal-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.modal-soon {
  color: var(--bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.modal-close:hover { color: var(--bright); }

.modal-steam iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
}
.modal-steam-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: underline;
}
.modal-steam-link:hover { color: var(--bright); }

/* ====================================================
   ABOUT — intro + team
   ==================================================== */
.about-page { padding: 5rem 0 4rem; }

.about-intro p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.3rem;
}
.about-intro .lede {
  color: var(--bright);
  font-weight: 600;
}

/* leadership row — larger, centered */
.team-lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 4rem 0 3.5rem;
}
.team-lead .member { width: 150px; }
.team-lead .avatar { width: 104px; height: 104px; margin-left: auto; margin-right: auto; }

/* animated logo at the top of the About page */
.about-logo-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
  margin: 0 auto 3rem;
  transition: opacity 0.15s ease;
}
.about-logo-link:hover { opacity: 0.75; }

.about-logo {
  display: block;
  width: 100%;
  max-width: 660px;
  height: auto;
  background: transparent;
}

.member { width: 96px; text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: #6e6e6e;
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bright);
  line-height: 1.35;
}
.member-role {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.1rem;
}
.member-bio {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.35rem;
  opacity: 0.85;
}

/* careers line under the team */
.about-careers {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.about-careers a {
  color: var(--bright);
  text-decoration: underline;
}
.about-careers a:hover { color: var(--muted); }

/* ====================================================
   LEGAL DOCUMENTS (Terms / Privacy)
   ==================================================== */
.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.doc h1 {
  color: var(--bright);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.doc-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.6rem;
}
.doc h2 {
  color: var(--bright);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2.4rem 0 0.9rem;
}
.doc p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.3rem;
}
.doc ul { margin: 0 0 1.3rem 1.3rem; }
.doc li {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.doc strong { color: var(--bright); }
.doc a { color: var(--bright); text-decoration: underline; }
.doc a:hover { color: var(--muted); }

/* ====================================================
   FOOTER
   ==================================================== */
/* compact single-line footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 1.3rem;
  font-size: 0.76rem;
  text-align: center;
}
.footer-about { margin-bottom: 0.5rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 720px) {
  .home, .about-page { padding: 3rem 0 2.5rem; }
  .brand { margin-bottom: 3.5rem; }
  .brand-logo { height: 84px; }
  .about-logo { max-width: 100%; margin-bottom: 2.2rem; }
  .doc { padding: 3rem 1.5rem 4rem; }
}
