/* tailoutgame.com. Colours are the brand's CRT greens (Store/Listing/itch/metadata.txt). */
@font-face {
  font-family: "VT323";
  src: url("/assets/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #07110A;
  --panel: #0C1C11;
  --text: #D6F5E0;
  --muted: #8FB89C;
  --accent: #57F287;
  --border: #1E4D2B;
  --pixel: "VT323", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); }

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--pixel);
  font-weight: normal;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
h1 { font-size: 3.2rem; margin: 0 0 0.5rem; }
h2 { font-size: 2.1rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.6rem; margin: 1.8rem 0 0.3rem; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.brand img { display: block; height: 40px; width: auto; }
nav a {
  font-family: var(--pixel);
  font-size: 1.5rem;
  text-decoration: none;
  margin-left: 1.2rem;
  color: var(--text);
}
nav a[aria-current="page"], nav a:hover { color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
main.page, main.legal { max-width: 760px; }

.lede { font-size: 1.2rem; }
.legal h1 { font-size: 2.8rem; }
.legal h2 { font-size: 1.9rem; }

/* home */
.hero { text-align: center; }
.hero .logo { width: min(640px, 100%); height: auto; }
.tagline {
  font-family: var(--pixel);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}
.hero .lede { max-width: 720px; margin: 0 auto 1.8rem; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.store {
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}
a.store:hover { background: var(--accent); color: var(--bg); }
.store strong { font-family: var(--pixel); font-size: 1.7rem; font-weight: normal; line-height: 1; }
.store span { font-size: 0.85rem; }
.store.soon { border-color: var(--border); }
.store em { font-style: normal; font-size: 0.8rem; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin: 2.5rem 0 1rem;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 2.5rem;
}
.features ul { padding-left: 1.2rem; margin: 0; }
.features li { margin-bottom: 0.35rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
footer p { margin: 0.3rem 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { flex-direction: column; gap: 0.4rem; }
  nav a { margin: 0 0.6rem; }
  h1 { font-size: 2.6rem; }
  .tagline { font-size: 1.6rem; }
}

/* press kit */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 1rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.trailer { position: relative; aspect-ratio: 16 / 9; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid var(--border); }
.soon-note { color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.logos a { background: #888; padding: 0.6rem; border: 1px solid var(--border); }
.logos img { display: block; height: 90px; width: auto; }
