/* Greyhollow Studios — shared stylesheet. Fonts are self-hosted (OFL licences in /assets/fonts/). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens (dark theme only) ---------- */
:root {
  --bg: #111315;
  --panel: #1C2024;
  --card: #15181B;
  --border: #2A2E33;
  --border-strong: #3A3F45;
  --text: #ECEDEE;
  --muted: #A3A9B0;
  --copy: #C4C9CF;
  --accent: #F2A541;
  --accent-hover: #F7C47E;
  --accent-border: #5A4220;
  --on-accent: #1A1208;
  --error: #FF9B8F;
  --font-body: Inter, system-ui, sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --gutter: 40px;
  color-scheme: dark;
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }
}

/* ---------- Base ---------- */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
}

.site-header .container {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

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

/* The badge's hexagon starts 1/8 of the way into its image (transparent edge and glow), so the
   image is pulled left by that much to line the hexagon up with the text column below. */
.brand img {
  display: block;
  margin-left: -5px;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
}

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

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

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

/* The current page is underlined as well, so it is not marked by colour alone. */
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Phone menu: the same links as a dropdown that names the current page. A <details> element,
   so it opens and closes without a script. Hidden on wide screens. */
.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

/* Chevron: points down when closed, up when open. */
.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.nav-menu[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.nav-menu summary:hover,
.nav-menu[open] summary {
  border-color: var(--accent-border);
}

.nav-menu summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.nav-menu__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.nav-menu__list a:hover {
  background: var(--bg);
  color: var(--accent);
}

.nav-menu a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Phones: one header row (logo left, menu right) instead of the links wrapping under the logo. */
@media (max-width: 720px) {
  .site-header .container {
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
    margin-left: -4px;
  }

  /* On the narrowest phones the name wraps to two lines rather than running under the menu. */
  .brand__name {
    font-size: 18px;
    line-height: 1.15;
  }

  .site-nav {
    display: none;
  }

  .nav-menu {
    display: block;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand__name {
    font-size: 16px;
  }

  .nav-menu summary {
    gap: 8px;
    padding: 0 12px;
    font-size: 14px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn--secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px var(--gutter);
}

.section--panel {
  background: var(--panel);
}

.section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section__intro {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px var(--gutter) 96px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: -1.5px;
}

.hero__lead {
  margin: 28px 0 0;
  max-width: 600px;
  font-size: 20px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  z-index: 0;
}

@media (max-width: 720px) {
  .hero__title {
    font-size: 44px;
  }
}

/* ---------- Game cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1024 / 500;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}

.badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 12px;
}

.card__title {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 26px;
}

.card__text {
  margin: 0;
  color: var(--muted);
}

.card__platform {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--copy);
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.card__links li + li::before {
  content: "\00b7";
  margin-right: 10px;
  color: var(--muted);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--copy);
}

.about-copy p {
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  margin-top: 64px;
}

.pillar {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}

.pillar h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 20px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Prose (reading column for the privacy and legal pages) ---------- */
.prose {
  max-width: 720px;
  color: var(--copy);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-heading);
  color: var(--text);
}

.prose h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.prose h2 {
  margin: 48px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.prose h3 {
  margin: 32px 0 0;
  font-size: 21px;
  line-height: 1.3;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 16px 0 0;
}

.prose h1 + p {
  margin-top: 20px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose__meta {
  color: var(--muted);
  font-size: 15px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  overflow-wrap: anywhere;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
}

/* Wide tables scroll sideways inside their own box instead of widening the page. */
.prose .table-wrap {
  margin: 16px 0 0;
  overflow-x: auto;
}

.prose .table-wrap table {
  min-width: 560px;
  margin: 0;
}

.table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Buttons used as <button> ---------- */
button.btn {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button.btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

button.btn:disabled,
button.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Contact support ---------- */
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

@media (max-width: 720px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 32px;
  }
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: var(--text);
}

.field__req,
.field__opt {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.field__error {
  margin: 0;
  font-size: 15px;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.form-actions {
  display: flex;
}

.form-status {
  color: var(--error);
}

/* The role="alert" region stays rendered even when empty, so screen readers announce the text put
   into it. Empty, it has no height, and the negative margin takes back the form's 22px gap. */
.form-status:empty {
  margin-top: -22px;
}

/* Turnstile in data-size="flexible" fills the width of the form (Cloudflare's minimum is 300px). */
.cf-turnstile {
  width: 100%;
}

.form-status a {
  color: inherit;
  overflow-wrap: anywhere;
}

.form-note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.notice,
.sent-panel {
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.notice {
  margin: 0;
  color: var(--copy);
}

.sent-panel__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent);
}

.sent-panel__title:focus {
  outline: none;
}

.sent-panel p {
  margin: 0;
  color: var(--copy);
  overflow-wrap: anywhere;
}

.support-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-box {
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.side-box__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
}

.side-box p {
  margin: 0;
  color: var(--copy);
  overflow-wrap: anywhere;
}

.faq {
  margin-top: 80px;
  max-width: 720px;
}

.faq__title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
}

.faq__item {
  border-top: 1px solid var(--border);
}

.faq__item:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq__item p {
  margin: 0 0 18px;
  color: var(--copy);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--gutter);
  font-size: 15px;
  color: var(--muted);
}

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

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-company__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

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

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
