/* Taxi Islands website: the game's look on the web. Rounded cards with a chunky
   lip, the Fredoka font, taxi yellow and island blues. Everything is served
   from this site; there are no outside fonts, scripts or trackers. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #2b334a;
  --ink-soft: #737a91;
  --card: #fffdf5;
  --lip: #ccc9d6;
  --yellow: #ffc726;
  --yellow-dark: #c99a12;
  --green: #2ea854;
  --sky-top: #8cc7f7;
  --sky-bottom: #d6ebfd;
  --sea: #1f7fe0;
  --radius: 22px;
  --shadow: 0 6px 18px rgba(20, 40, 80, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  font-weight: 450;
  color: var(--ink);
  background: linear-gradient(var(--sky-top), var(--sky-bottom) 520px, #eef6fe 900px);
  line-height: 1.55;
  font-size: 18px;
}

a { color: #1b62b8; }
a:hover { color: var(--ink); }

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

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

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

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  white-space: nowrap;
  font-weight: 700; font-size: 30px; text-decoration: none; color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 253, 245, 0.75);
}
.nav a:hover { background: var(--card); }

/* Cards and buttons ---------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  border-bottom: 5px solid var(--lip);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.button {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 19px; text-decoration: none; color: var(--ink);
  background: var(--yellow); border: 0; border-bottom: 5px solid var(--yellow-dark);
  border-radius: 18px; padding: 14px 24px; box-shadow: var(--shadow);
}
.button.light { background: var(--card); border-bottom-color: var(--lip); }
.button[aria-disabled="true"] { cursor: default; }
.button small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.1; }
.button span { line-height: 1.15; text-align: left; }

/* Landing page -------------------------------------------------------------- */

.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
/* Grid children may shrink below their images' natural width. */
.hero .wrap > *, .split > *, .features > *, .gallery > * { min-width: 0; }
.hero h1 {
  font-size: clamp(54px, 7vw, 88px); line-height: 1; margin: 0 0 14px; font-weight: 700;
  color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}
.hero .tagline { font-size: 26px; font-weight: 600; margin: 0 0 12px; }
.hero p { margin: 0 0 24px; color: var(--ink); max-width: 30em; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-note { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

.screen {
  border-radius: 26px; overflow: hidden; background: #1c2333;
  border: 10px solid #1c2333; box-shadow: 0 18px 40px rgba(20, 40, 80, 0.3);
  transform: rotate(-1.5deg);
}
.screen img { border-radius: 14px; }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 10px; line-height: 1.15; }
.section .lead { color: var(--ink-soft); margin: 0 0 28px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature h3 { margin: 10px 0 6px; font-size: 23px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--yellow); border-bottom: 4px solid var(--yellow-dark);
}
.feature .icon svg { width: 30px; height: 30px; fill: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split.flip .split-text { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text h2 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 34px; position: relative; margin: 8px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='white'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.parents { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.parents .badge {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  background: var(--green); border-bottom: 5px solid #1f7a3c;
}
.parents .badge svg { width: 40px; height: 40px; fill: white; }

/* Policy pages -------------------------------------------------------------- */

.doc { padding: 8px 0 64px; }
.doc .card { max-width: 860px; margin: 0 auto; padding: 40px 48px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 4px; line-height: 1.1; }
.doc .updated { color: var(--ink-soft); margin: 0 0 28px; }
.doc h2 { font-size: 27px; margin: 36px 0 8px; }
.doc h3 { font-size: 21px; margin: 22px 0 6px; }
.doc p, .doc li { color: #3c4560; }
.doc ul { padding-left: 1.2em; }
.summary {
  background: #fff6d6; border-radius: 18px; border-bottom: 4px solid #f0d98a;
  padding: 18px 24px; margin: 0 0 8px;
}
.summary h2 { margin-top: 0; font-size: 22px; }
.summary ul { margin: 0; }
.toc { columns: 2; gap: 32px; padding-left: 1.2em; }

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

.site-footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--ink-soft); }
.credits { max-width: 46em; }

/* Small screens ------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero .wrap, .split, .features { grid-template-columns: 1fr; }
  .split.flip .split-text { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .screen { transform: none; }
  .doc .card { padding: 28px 22px; }
  .toc { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .store-row .button { flex: 1 1 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .parents { grid-template-columns: 1fr; }
}
