/* The game's website (tools/site/build_site.py copies this to site/assets/). Colours of the game's UI (src/ui/ui_theme.gd). */
@font-face {
  font-family: "Nunito";
  src: url("nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --bg: #fffaed;
  --card: #ffffff;
  --ink: #3b3630;
  --soft: #736b61;
  --green: #5ea854;
  --green-dark: #47853f;
  --line: #ece3cf;
  --shadow: 0 10px 30px rgba(70, 55, 30, 0.16);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d211b;
    --card: #272c24;
    --ink: #efe9dc;
    --soft: #b4ac9e;
    --green: #5ea854;
    --green-dark: #93d086;
    --line: #363d31;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.6 "Nunito", "Hiragino Maru Gothic ProN", "Apple SD Gothic Neo", "Hiragino Sans",
    "Yu Gothic", "Malgun Gothic", system-ui, sans-serif;
}
a { color: var(--green-dark); font-weight: 700; }
.wrap { max-width: 940px; margin: 0 auto; padding: 0 16px; }

header.wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 900; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 10px; }
header nav { display: flex; gap: 20px; }
header nav a { color: var(--soft); font-weight: 800; text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--green-dark); }

.hero { text-align: center; padding: 24px 0 8px; }
.hero .icon { border-radius: 28px; box-shadow: var(--shadow); }
h1 { margin: 18px 0 6px; font-size: clamp(30px, 6vw, 46px); line-height: 1.15; font-weight: 900; }
.tagline { margin: 0; color: var(--soft); font-size: 21px; font-weight: 700; }
.cta {
  display: inline-block; margin-top: 22px; padding: 11px 26px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 900; text-decoration: none;
}
.cta.soon { background: transparent; color: var(--green-dark); border: 2px solid currentColor; }
img.banner { display: block; width: 100%; height: auto; margin: 36px 0 12px; border-radius: 22px; box-shadow: var(--shadow); }

.about { max-width: 720px; margin: 0 auto; padding: 16px 0; font-size: 19px; }
ul.paws { list-style: none; padding: 0; }
ul.paws li { position: relative; padding-left: 32px; margin: 8px 0; }
ul.paws li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; background: var(--green);
  -webkit-mask: url("paw.svg") center / contain no-repeat; mask: url("paw.svg") center / contain no-repeat;
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin: 24px 0 8px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 10px; color: var(--soft); font-weight: 800; text-align: center; }

.doc { max-width: 720px; margin: 0 auto; padding: 12px 0 24px; }
.doc h1 { margin-top: 12px; }
.doc h2 { margin: 34px 0 6px; font-size: 23px; font-weight: 900; color: var(--green-dark); }
.doc h3 { margin: 26px 0 4px; font-size: 19px; font-weight: 900; }
.doc p { margin: 6px 0; }
.doc .lead { font-size: 20px; }
.doc .meta { color: var(--soft); font-size: 16px; }

.press { max-width: 860px; }
table.facts { width: 100%; margin: 22px 0 14px; border-collapse: collapse; font-size: 17px; }
.facts th, .facts td { padding: 9px 0; border-bottom: 2px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 150px; padding-right: 16px; color: var(--soft); font-weight: 800; }
.press video { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #000; }
.press .shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.press .shots img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.press .icon { border-radius: 28px; box-shadow: var(--shadow); }

footer.wrap { margin-top: 48px; padding-top: 22px; padding-bottom: 36px; border-top: 2px solid var(--line); color: var(--soft); font-size: 15px; text-align: center; }
footer p { margin: 10px 0 0; }
footer a { color: var(--soft); }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.langs a { text-decoration: none; font-weight: 700; }
.langs a[aria-current] { color: var(--green-dark); font-weight: 900; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .gallery { grid-template-columns: 1fr; }
  .facts th { width: 104px; }
  .about { font-size: 17px; }
  img.banner { border-radius: 16px; margin-top: 28px; }
}
