/* void-vanguard.com (T-148): the game's colours (packages/client/src/ui/theme.css) and fonts.
   Fonts are the game's own files (SIL OFL 1.1, licences in fonts/); latin + latin-ext so Turkish
   letters (ş, ğ, ı, İ) use the same face. */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-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: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/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(/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: 600;
  font-display: swap;
  src: url(/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(/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;
}

:root {
  --ground: #060a10;
  --navy: #000e2b;
  --line: #1f3446;
  --accent: #46d9c8;
  --text: #e6edf3;
  --text-dim: #b6c4d1;
  --font-label: 'Chakra Petch', 'Segoe UI', Roboto, sans-serif;
  --font-body: Inter, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover,
a:focus-visible {
  color: var(--text);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2 {
  font-family: var(--font-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* One column, about 68 characters wide. */
.wrap {
  width: 100%;
  max-width: calc(68ch + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* Landing hero: the backdrop fades into the page so the text below it sits on the plain ground. */
.hero {
  background:
    linear-gradient(
      to bottom,
      rgba(6, 10, 16, 0.35) 0%,
      rgba(6, 10, 16, 0.8) 60%,
      var(--ground) 100%
    ),
    url(/img/backdrop.webp) center 30% / cover no-repeat,
    var(--navy);
  padding: 72px 0 40px;
}
.title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}
.title img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.title h1 {
  margin: 0;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tagline {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

main {
  padding: 32px 0 48px;
}
main p {
  margin: 0 0 24px;
}

/* itch.io card: its own fixed layout is 560 × 175; never wider than the column. */
.itch {
  margin: 32px 0;
}
.itch iframe {
  display: block;
  max-width: 100%;
  border: 0;
  /* The card's own colour while it loads, instead of a white box. */
  background: var(--navy);
}
.itch-link {
  display: none;
}
/* Under 400 px the card would be squeezed (it is not responsive), so a plain link replaces it. */
@media (max-width: 399.98px) {
  .itch iframe {
    display: none;
  }
  .itch-link {
    display: inline-block;
  }
}
.btn {
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.store {
  color: var(--text-dim);
}

.facts {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text-dim);
}
.facts li {
  margin: 0 0 8px;
  padding-left: 18px;
  position: relative;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Privacy pages: the policy text, plain and readable. */
.doc-head {
  padding: 24px 0 0;
}
.doc h1 {
  font-size: 2rem;
  margin: 24px 0 8px;
}
.doc h2 {
  font-size: 1.3rem;
  margin: 40px 0 8px;
  color: var(--accent);
}
.doc p,
.doc ul {
  margin: 0 0 16px;
}
.doc ul {
  padding-left: 1.3em;
}
.doc li {
  margin: 0 0 6px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--text-dim);
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer a {
  overflow-wrap: anywhere;
}
