/* ---------------------------------------------------------------------------
   TILTEDLEM — site styles

   Everything you are likely to want to change is in :root below. Change a
   colour here and it changes everywhere on the site.
   --------------------------------------------------------------------------- */

:root {
  /* Colours */
  --bg:        #0c0f13;   /* page background */
  --bg-raise:  #141920;   /* cards, panels */
  --bg-sink:   #090b0e;   /* footer, wells */
  --line:      #222a34;   /* borders */
  --ink:       #e8edf2;   /* body text */
  --ink-dim:   #97a3b2;   /* secondary text */
  --accent:    #4fd6ff;   /* links, highlights */
  --accent-2:  #7ef0b2;   /* second accent, used sparingly */

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wide: 1080px;
  --gutter: 20px;
  --radius: 10px;
}

/* --------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header ------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 15, 19, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 15px;
}

.brand span { color: var(--accent); }

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

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

/* Hero --------------------------------------------------------------------- */

.hero { padding: 88px 0 64px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* Buttons ------------------------------------------------------------------ */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06212b;
  font-weight: 600;
}

.btn-primary:hover { filter: brightness(1.08); }

/* Sections ----------------------------------------------------------------- */

section { padding: 56px 0; border-top: 1px solid var(--line); }

section h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 28px;
  font-weight: 500;
}

.lede { font-size: 19px; max-width: 62ch; }
.lede + .lede { margin-top: 18px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

/* Game cards --------------------------------------------------------------- */

.games { display: grid; gap: 28px; }

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-shot { background: #000; }
.game-shot img { width: 100%; height: 100%; object-fit: cover; }

.game-body { padding: 26px 28px; display: flex; flex-direction: column; }

.game-body h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }

.tagline { color: var(--ink-dim); margin: 0 0 16px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.game-body .btn-row { margin-top: auto; }

.status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}

/* Two-column text ---------------------------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.cols h3 { font-size: 17px; margin: 0 0 10px; }
.cols p { color: var(--ink-dim); }

/* Contact ------------------------------------------------------------------ */

.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.links a { font-family: var(--font-mono); font-size: 15px; }

.links .what { color: var(--ink-dim); font-family: var(--font-body); font-size: 15px; }

/* Footer ------------------------------------------------------------------- */

footer {
  background: var(--bg-sink);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--ink-dim);
  font-size: 14px;
}

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

/* Press -------------------------------------------------------------------- */

.fact-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; }

.fact-table th, .fact-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fact-table th {
  width: 190px;
  font-weight: 500;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.shot-grid img { border: 1px solid var(--line); border-radius: 6px; }

ul.plain { padding-left: 20px; color: var(--ink-dim); }
ul.plain li { margin-bottom: 8px; }

/* Phones ------------------------------------------------------------------- */

@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; }
  .game-shot img { height: 200px; }
  .hero { padding: 56px 0 40px; }
  .nav { gap: 14px; font-size: 14px; }
  .top .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
}

/* Follow and signup --------------------------------------------------------- */

.social { display: flex; gap: 18px; flex-wrap: wrap; }
.social a { color: var(--ink-dim); font-size: 14px; }
.social a:hover { color: var(--accent); text-decoration: none; }

.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-sink);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.signup input[type="email"]::placeholder { color: var(--ink-dim); }
.signup input[type="email"]:focus { outline: none; border-color: var(--accent); }
.signup button { cursor: pointer; font-family: inherit; }

/* Visually hidden, still read aloud by a screen reader. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The lemon, beside the wordmark. */
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; margin-right: 9px; }

/* Keyboard users ------------------------------------------------------------ */

/* Off screen until it is focused, then it lands where it can be read. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #06212b;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus { left: 8px; text-decoration: none; }

/* A visible ring on whatever is focused, in the site's own colour. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

/* Anybody who has asked their system for less movement gets none. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
