/* Nile Games: simple and modern. White page, dark ink, one brass accent
   from the app. Outfit is the app's own font. */
@font-face { font-family: Outfit; src: url(assets/fonts/Outfit-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(assets/fonts/Outfit-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(assets/fonts/Outfit-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #FAF6EF;
  --ink: #10242B;
  --muted: #5B6B70;
  --line: #E9E1D3;
  --soft: #F1E9DA;
  --brass: #B07A12;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif; }
img, svg { display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 30px; height: 30px; }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding: 72px 0 88px; }
.icon { width: 136px; height: 136px; border-radius: 30px; margin: 0 auto 28px;
  box-shadow: 0 18px 40px -16px rgba(16,36,43,.45); }
.hero h1 { font-size: clamp(44px, 7vw, 64px); font-weight: 700; letter-spacing: -0.02em; }
.hero p { margin: 14px auto 0; max-width: 32ch; font-size: 20px; color: var(--muted); }

/* Store badges: "coming soon" until launch */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 12px;
  background: #000; color: #fff; text-align: left; }
.store svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .8; }
.store b { font-size: 17px; font-weight: 600; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  border-top: 1px solid var(--line); padding: 56px 0 88px; }
.features h2 { font-size: 18px; font-weight: 600; }
.features p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--soft); color: var(--brass); font-size: 12px; font-weight: 600; }

/* Text pages */
main.doc { padding: 48px 0 88px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
.doc .sub { color: var(--muted); margin: 8px 0 36px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 36px 0 6px; }
.doc p, .doc li { max-width: 66ch; }
.doc a { color: var(--brass); }
.mail { margin: 24px 0; padding: 20px 24px; border-radius: 14px; background: var(--soft); }
.mail span { display: block; color: var(--muted); font-size: 15px; }
.mail a { font-size: 22px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
footer nav { gap: 20px; }
footer nav a { font-size: 14px; }

@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  nav { gap: 16px; }
  .hero { padding: 48px 0 64px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 40px 0 64px; }
}
.features h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.features .tag { margin-left: 0; vertical-align: 0; }
.hero p.free { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Studio home */
.studio { padding-bottom: 64px; }
.mark { width: 120px; height: 120px; margin: 0 auto 20px; }
.games { border-top: 1px solid var(--line); padding: 48px 0 88px; }
.games h2 { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.game { display: flex; align-items: center; gap: 22px; padding: 20px; border-radius: 20px; background: var(--soft);
  text-decoration: none; max-width: 640px; transition: transform .15s ease, box-shadow .15s ease; }
.game:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(16,36,43,.45); }
.game img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.game .info { display: flex; flex-direction: column; gap: 4px; }
.game b { font-size: 22px; font-weight: 700; }
.game .info span { color: var(--muted); font-size: 16px; line-height: 1.45; }
.game small { color: var(--brass); font-size: 13px; font-weight: 600; margin-top: 4px; }
.game .go { margin-left: auto; font-size: 24px; color: var(--muted); }
@media (max-width: 520px) { .game { align-items: flex-start; } .game img { width: 72px; height: 72px; border-radius: 17px; } .game .go { display: none; } }
.games h2 { text-align: center; }
.game { margin: 0 auto; }
.hero p.lead { max-width: 40ch; text-wrap: balance; }
.hero p.lead strong { display: block; color: var(--ink); font-weight: 600; font-size: 24px; margin-bottom: 6px; }

/* Phones: the header keeps the logo only, so the links fit on one line. */
@media (max-width: 560px) {
  header .wrap { height: 64px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
  nav { gap: 20px; }
  nav a { font-size: 15px; }
}
