/* Palette lifted straight from Theme.swift, so the page and the game are the
   same object: cream paper, tomato chrome, olive accents, ink text. */
:root {
  --cream: #FFF0D5;
  --sunken: #F3E2C2;
  --tomato: #B92C24;
  --ink: #181C24;
  --olive: #4C5732;
  --jade: #A5C6AF;
  --soft: #5A5F6B;
  --faint: #8A8F99;
  --radius: 18px;
  --bar: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: var(--tomato);
  color: var(--cream);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
}

.brand img { border-radius: 9px; }

.bar nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-size: 15px;
}

.bar nav a { opacity: .92; }
.bar nav a:hover { opacity: 1; }

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

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid var(--ink);
  transition: transform .15s ease;
}

.cta:hover { transform: translateY(-2px); }
.cta.small { padding: 8px 16px; background: var(--cream); color: var(--tomato); border-color: var(--cream); }
.cta.big { font-size: 19px; padding: 17px 34px; }

.ghost {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 86px) clamp(16px, 4vw, 40px);
}

.hero h1 { font-size: clamp(38px, 6.4vw, 72px); }

.lead { font-size: clamp(17px, 2vw, 21px); color: var(--soft); max-width: 46ch; }

.note { font-size: 14px; color: var(--faint); margin: 0; }
.note.center { text-align: center; margin-top: 22px; }

/* The art is a flat scene, not a photo: the table sits behind, two chairs peek
   from under it, and the two caps float where the game puts them. */
.hero-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-art .table {
  width: 86%;
  filter: drop-shadow(0 18px 30px rgba(24, 28, 36, .22));
}

.hero-art .seat {
  position: absolute;
  width: 27%;
  filter: drop-shadow(0 8px 14px rgba(24, 28, 36, .2));
}

.seat-a { top: 2%; left: 50%; transform: translateX(-50%); }
.seat-b { bottom: 1%; left: 50%; transform: translateX(-50%) rotate(180deg); }

.hero-art .cap {
  position: absolute;
  width: 16%;
  filter: drop-shadow(0 6px 10px rgba(24, 28, 36, .25));
}

.cap-t { left: 4%; top: 38%; transform: rotate(-12deg); }
.cap-d { right: 4%; top: 52%; transform: rotate(14deg); }

/* Bands ------------------------------------------------------------------- */

.band {
  padding: clamp(42px, 7vw, 92px) clamp(16px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.band.alt {
  background: var(--sunken);
  max-width: none;
  border-block: 2px solid rgba(24, 28, 36, .08);
}

.band h2 { font-size: clamp(27px, 3.6vw, 40px); text-align: center; }

.band-lead {
  text-align: center;
  color: var(--soft);
  max-width: 52ch;
  margin-inline: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
  max-width: 1100px;
  margin-inline: auto;
}

.cards article {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 6px 0 rgba(24, 28, 36, .14);
}

.cards article h3 { font-size: 21px; }
.cards article p { color: var(--soft); margin: 0; font-size: 15px; }

.cards .free { border-color: var(--olive); box-shadow: 0 6px 0 rgba(76, 87, 50, .3); }

.pill {
  display: inline-block;
  background: var(--jade);
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Languages --------------------------------------------------------------- */

.langs {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 680px;
  display: grid;
  gap: 10px;
}

.langs li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 16px;
}

.tag {
  flex: 0 0 auto;
  min-width: 92px;
  font-weight: 900;
  color: var(--tomato);
}

/* Download band ----------------------------------------------------------- */

.get { text-align: center; }
.get img { border-radius: 22px; box-shadow: 0 10px 24px rgba(24, 28, 36, .2); }
.get .cta { margin-top: 10px; }

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

footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 34px 20px;
  font-size: 14px;
}

footer a { text-decoration: underline; }
footer .faint { color: var(--faint); margin: 6px 0 0; }

/* Narrow ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  .bar nav a:not(.cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
