/* The landing page's look (WO UJ): the game's menus, on the web. Thick ink lines and hard shadows,
   the display font Lilita One (the menus' titles), the logo's orange and the cast art's dusk.
   web/landing/build_site.py copies this file into site/. */

@font-face {
  font-family: "Lilita One";
  src: url("/site/fonts/lilita_one.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #21150f;
  --ink_soft: #3a271c;
  --sand: #f6e7c8;
  --sand_deep: #ead3a6;
  --orange: #f29a1e;
  --yellow: #ffcf3f;
  --dusk: #2b2150;
  --dusk_deep: #1c1638;
  --text: #2a1b12;
  --muted: #6b5240;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font: 17px/1.55 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .brand, .btn, .tag {
  font-family: "Lilita One", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* The bar */
.top { position: relative; }
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px;
  background: linear-gradient(rgba(28, 22, 56, 0.85), rgba(28, 22, 56, 0));
  color: #fff;
}
.brand { font-size: 26px; text-decoration: none; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 600; opacity: 0.9; }
.links a:hover { opacity: 1; text-decoration: underline; }

/* Buttons: ink outline, hard shadow, they press in */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--orange));
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.small { font-size: 17px; padding: 6px 16px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: var(--sand); }
.btn.big { font-size: 30px; padding: 16px 40px; }

/* The banner: the cast at dusk */
.hero_banner {
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: 60% 40%;
  position: relative;
}
.hero_banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28, 22, 56, 0.92) 0%, rgba(28, 22, 56, 0.6) 42%, rgba(28, 22, 56, 0) 70%),
              linear-gradient(0deg, rgba(28, 22, 56, 0.7), rgba(28, 22, 56, 0) 40%);
}
.banner_text { position: relative; z-index: 1; max-width: 620px; padding: 120px 28px 70px 6vw; color: #fff; }
.logo { width: min(460px, 82vw); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.tag {
  display: inline-block; margin: 14px 0 4px; padding: 3px 12px;
  font-size: 16px; color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 8px; transform: rotate(-2deg);
}
h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; margin: 12px 0 10px; text-shadow: 3px 3px 0 var(--ink); }
.lead { font-size: 19px; margin: 0 0 24px; color: #efe6ff; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.band { padding: 76px 0; }
.band.dark { background: linear-gradient(var(--dusk), var(--dusk_deep)); color: #f2ecff; }
.band.dark .intro { color: #cfc4ec; }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; line-height: 1.1; }
.band:not(.dark) h2 { color: var(--ink); text-shadow: 2px 2px 0 var(--sand_deep); }
.intro { max-width: 760px; margin: 0 0 34px; color: var(--muted); font-size: 18px; }
ul { list-style: none; margin: 0; padding: 0; }
h3 { font-size: 23px; margin: 0 0 6px; line-height: 1.15; }

/* A card: ink line round it, hard shadow */
.features li, .heroes li, .maps li, .modes li, .shots li {
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 6px 0 var(--ink);
  overflow: hidden;
}
.features, .modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.features li, .modes li { background: #fffaf0; padding: 22px 22px 18px; }
.features li:nth-child(4n+1) { border-top: 10px solid var(--orange); }
.features li:nth-child(4n+2) { border-top: 10px solid #d9452b; }
.features li:nth-child(4n+3) { border-top: 10px solid #3aa38d; }
.features li:nth-child(4n+4) { border-top: 10px solid #5a6fd8; }
.features p, .modes p { margin: 0; color: var(--muted); }
.modes h3 { color: #c2410c; }
.note { margin: 28px 0 0; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shots li { border-color: #0e0a1d; box-shadow: 5px 6px 0 #0e0a1d; background: #0e0a1d; }
.shots li:first-child { grid-column: 1 / -1; }

.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.heroes li { background: #fffaf0; transition: transform 0.12s; }
.heroes li:hover { transform: translateY(-4px) rotate(-0.6deg); }
.heroes img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); }
.heroes h3 { margin: 12px 14px 4px; color: var(--ink); }
.heroes p { margin: 0 14px 14px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.maps li { background: var(--sand); color: var(--text); border-color: #0e0a1d; box-shadow: 5px 6px 0 #0e0a1d; }
.maps img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 3px solid #0e0a1d; }
.maps h3 { margin: 14px 16px 2px; color: var(--ink); }
.maps p { margin: 0 16px 16px; color: var(--muted); }

.download { text-align: center; background: radial-gradient(circle at 50% 0%, #ffe39a, var(--sand) 70%); }
.download .intro { margin: 0 auto 30px; }

.foot { background: var(--ink); color: #c9b49a; padding: 26px 0; font-size: 14px; }

@media (max-width: 760px) {
  .links { display: none; }
  .bar .btn.small { margin-left: auto; }
  .hero_banner { min-height: 0; background-position: 70% 30%; }
  .hero_banner::after { background: linear-gradient(0deg, rgba(28, 22, 56, 0.95) 30%, rgba(28, 22, 56, 0.35)); }
  .banner_text { padding: 210px 20px 46px; }
  .band { padding: 54px 0; }
  .shots { grid-template-columns: 1fr; }
  .heroes { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .heroes p { display: none; }
  .btn.big { font-size: 24px; padding: 14px 28px; }
}

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