/* The site of Nile’s End (built by scripts/build-site.ts): the game's own look, dark panels,
   gold headings in Lalezar, a khayamiya band, a faint mashrabiya lattice. */

@font-face {
  font-family: 'Cairo';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/cairo-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cairo-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/cairo-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: 'Cairo';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cairo-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: 'Lalezar';
  font-display: swap;
  src: url('/assets/fonts/lalezar-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Lalezar';
  font-display: swap;
  src: url('/assets/fonts/lalezar-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;
}

:root {
  --bg: #16130f;
  --bg-2: #1d1914;
  --panel: #241e18;
  --rim: #6c5434;
  --rim-soft: rgba(108, 84, 52, 0.45);
  --gold: #e8b24a;
  --gold-bright: #f5cf7a;
  --orange: #d9692b;
  --ink: #efe6d3;
  --soft: #b3a68d;
  --head: 'Lalezar', 'Cairo', system-ui, sans-serif;
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8' viewBox='0 0 32 8'%3E%3Crect width='32' height='8' fill='%23191511'/%3E%3Cpath d='M0 8 8 0 16 8Z' fill='%23b5452b'/%3E%3Cpath d='M16 8 24 0 32 8Z' fill='%232c4f86'/%3E%3Cpath d='M8 1.6 10.4 4 8 6.4 5.6 4Z M24 1.6 26.4 4 24 6.4 21.6 4Z' fill='%23d9a23a'/%3E%3Cpath d='M16 0 18 2 16 4 14 2Z M0 0 2 2 0 4Z M32 0 30 2 32 4Z' fill='%23d9a23a' opacity='.8'/%3E%3C/svg%3E")
    repeat-x left center / auto 100%;
  --mashrabiya: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cg fill='none' stroke='%23e8b24a' stroke-opacity='.07' stroke-width='1.1'%3E%3Cpath d='M0 9h18M9 0v18'/%3E%3Ccircle cx='9' cy='9' r='2.6'/%3E%3Cellipse cx='0' cy='9' rx='3.2' ry='1.7'/%3E%3Cellipse cx='18' cy='9' rx='3.2' ry='1.7'/%3E%3Cellipse cx='9' cy='0' rx='1.7' ry='3.2'/%3E%3Cellipse cx='9' cy='18' rx='1.7' ry='3.2'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--gold-bright);
}
img {
  max-width: 100%;
}
.muted {
  color: var(--soft);
}
h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.25;
}

/* The first link on a page, for keyboards and screen readers: skips the bar. */
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------- the bar at the top ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(22, 19, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rim-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--head);
  font-size: 22px;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 26px);
}
.top nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--gold-bright);
}
.top nav a.lang {
  padding: 4px 14px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  color: var(--gold-bright);
}
@media (max-width: 700px) {
  .top nav a:not(.lang) {
    display: none;
  }
}

/* ---------- the opening ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: clamp(560px, 88vh, 860px);
  padding: 120px 20px 56px;
  overflow: hidden;
  text-align: center;
}
.hero .backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 19, 15, 0.1) 0%, rgba(22, 19, 15, 0.35) 40%, rgba(22, 19, 15, 0.96) 100%);
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero .icon {
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.hero h1 {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: clamp(48px, 9vw, 84px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}
/* What the page is, said once under the name, inside the h1 for search engines. */
.hero h1 .subtitle {
  display: block;
  margin: 4px 0 14px;
  color: var(--gold-bright);
  font-size: clamp(20px, 3.2vw, 28px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.tagline {
  margin: 4px 0 14px;
  color: var(--gold-bright);
  font-family: var(--head);
  font-size: clamp(20px, 3.2vw, 28px);
}
.pitch {
  margin: 0 auto 18px;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 19px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 2px 12px;
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: rgba(22, 19, 15, 0.6);
  font-size: 14px;
  font-weight: 700;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.btn.play {
  background: linear-gradient(180deg, #f0a560, var(--orange));
  border-color: #f3b77a;
  color: #fff6e6;
  box-shadow: 0 6px 20px rgba(217, 105, 43, 0.35);
}
.btn.play.soon {
  background: rgba(22, 19, 15, 0.7);
  border: 1px dashed var(--gold);
  box-shadow: none;
  color: var(--gold-bright);
  cursor: default;
}
.btn.ghost {
  border-color: var(--rim);
  background: rgba(22, 19, 15, 0.6);
  color: var(--ink);
}
.btn.ghost:hover {
  border-color: var(--gold);
}

.band {
  height: 10px;
  background: var(--band);
}

/* ---------- sections ---------- */

main {
  display: block;
}
main > section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(16px, 4vw, 32px) 0;
}
main h2 {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: clamp(30px, 4.4vw, 42px);
  text-align: center;
}
main h2::after {
  content: '';
  display: block;
  width: 120px;
  height: 7px;
  margin: 8px auto 0;
  background: var(--band);
  border-radius: 2px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery figure:first-child {
    grid-column: 1 / -1;
  }
}
.gallery figure {
  margin: 0;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rim);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--soft);
  font-size: 15px;
  text-align: center;
}

.features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 18px 20px;
  border: 1px solid var(--rim-soft);
  border-radius: 12px;
  background: var(--mashrabiya), linear-gradient(180deg, var(--panel), var(--bg-2));
}
.features h3 {
  margin: 0 0 6px;
  color: var(--gold-bright);
  font-size: 22px;
}
.features p {
  margin: 0;
  color: var(--ink);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}
.story h2 {
  text-align: start;
}
.story h2::after {
  margin-inline: 0;
}
.story img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rim);
  border-radius: 12px;
}
.family {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.family li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
}
.family img {
  width: 72px;
  height: 72px;
  border: 2px solid var(--rim);
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 480px) {
  .family {
    gap: 8px;
    justify-content: space-between;
  }
  .family img {
    width: 56px;
    height: 56px;
  }
}
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
}
.modes div {
  padding: 12px 14px;
  border: 1px solid var(--rim-soft);
  border-radius: 10px;
  background: var(--panel);
}
.modes dt {
  color: var(--gold-bright);
  font-weight: 700;
}
.modes dd {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}
@media (max-width: 820px) {
  .story {
    grid-template-columns: 1fr;
  }
  .modes {
    grid-template-columns: 1fr;
  }
}

.faq {
  max-width: 820px !important;
}
.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--rim-soft);
  border-radius: 10px;
  background: var(--panel);
}
.faq summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}
.faq details p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--soft);
}

.cta {
  text-align: center;
  padding-bottom: clamp(48px, 7vw, 84px) !important;
}

/* ---------- the foot ---------- */

footer {
  margin-top: 64px;
  padding: 0 20px 32px;
  border-top: 1px solid var(--rim-soft);
  background: var(--bg-2);
  text-align: center;
  font-size: 15px;
}
footer .band {
  margin: 0 -20px 20px;
}
footer p {
  margin: 6px 0;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

/* ---------- the privacy policy, the terms, the guide and the press kit ---------- */

.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 0;
}
.doc h1 {
  margin: 8px 0 4px;
  color: var(--gold);
  font-size: clamp(32px, 5vw, 44px);
}
.doc h2 {
  margin: 28px 0 8px;
  color: var(--gold-bright);
  font-size: 24px;
  text-align: start;
}
.doc h2::after {
  display: none;
}
.doc ul {
  padding-inline-start: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc.lost {
  text-align: center;
  padding-top: 18vh;
}
.doc.lost img {
  border-radius: 22px;
}

.doc .lead {
  font-size: 19px;
}
.doc h3 {
  margin: 18px 0 2px;
  color: var(--gold-bright);
  font-size: 19px;
}
.doc ol {
  padding-inline-start: 24px;
}

/* The guide: a list of what's in it, and what treats what. */
.toc {
  margin: 18px 0 4px;
  padding: 12px 18px;
  border: 1px solid var(--rim-soft);
  border-radius: 10px;
  background: var(--panel);
}
.toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc a {
  font-weight: 700;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}
.cards,
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.cards div,
.facts div {
  padding: 10px 14px;
  border: 1px solid var(--rim-soft);
  border-radius: 10px;
  background: var(--panel);
}
.cards dt,
.facts dt {
  color: var(--gold-bright);
  font-weight: 700;
}
.cards dd,
.facts dd {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}
.facts dd a {
  overflow-wrap: anywhere;
}
.tip {
  padding: 10px 14px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--panel);
}

/* The press kit: pictures to take, and files to download. */
.shots-list,
.downloads {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.shots-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.shots-list a {
  display: block;
}
.shots-list img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rim);
  border-radius: 10px;
}
.shots-list span {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}
.downloads li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rim-soft);
}

.faq .more {
  margin: 18px 0 0;
  text-align: center;
  font-weight: 700;
}
