/* Waxby site. The colors are the game's own (game/scripts/ui.gd):
   BG 0e0a14, INK 120d1a, ARCH 171124, PANEL 1d1529, PANEL_EDGE 6a5a86,
   CREAM f4ead6, MUTED b8aacb, GOLD f2c75a, EMBER f7b64a, FLAME_OUT f07a2a.
   Fonts are the game's too: Cochin for titles, Avenir Next for the rest
   (system fonts on Apple devices; Georgia and the system sans elsewhere). */

:root {
  --bg: #0e0a14;
  --ink: #120d1a;
  --arch: #171124;
  --panel: #1d1529;
  --edge: rgba(106, 90, 134, 0.55);
  --cream: #f4ead6;
  --muted: #b8aacb;
  --gold: #f2c75a;
  --ember: #f7b64a;
  --flame: #f07a2a;
  --serif: Cochin, Baskerville, "Baskerville Old Face", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 420px at 50% -60px, rgba(247, 182, 74, 0.16), rgba(247, 182, 74, 0) 100%),
    linear-gradient(var(--ink), var(--bg) 900px);
  background-repeat: no-repeat;
  color: var(--cream);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
strong { color: #fff4cf; font-weight: 600; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Top bar: the icon and name home, Support and Privacy. */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
}
.home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.home img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--edge); }
.home span { font: 22px/1 var(--serif); letter-spacing: 0.5px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--gold); }

/* Landing hero. */
.hero { text-align: center; padding-top: 20px; padding-bottom: 8px; }
.hero .logo { display: block; width: min(520px, 92%); margin: 0 auto -6px; filter: drop-shadow(0 6px 24px rgba(247, 182, 74, 0.22)); }
.kicker { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 2.5px; font-size: 13px; font-weight: 600; }
.lede { margin: 10px auto 0; max-width: 560px; font: italic 26px/1.3 var(--serif); color: var(--cream); text-wrap: balance; }

.get { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin: 26px 0 0; }
.get .icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--edge), 0 8px 30px -8px rgba(247, 182, 74, 0.45); }
.soon { margin: 0; font: italic 22px/1.25 var(--serif); color: var(--gold); text-wrap: balance; }
.badge img { display: block; height: 52px; width: auto; }
.price-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 14px; }

/* A screenshot shown as a phone held sideways. */
.phone {
  margin: 0; padding: 7px; border-radius: 26px; background: #05030a;
  box-shadow: 0 0 0 1px rgba(106, 90, 134, 0.65), 0 24px 60px -24px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(247, 182, 74, 0.35);
}
.phone img { display: block; width: 100%; border-radius: 19px; }
.hero-shot { max-width: 900px; margin: 40px auto 0; }

/* The story pitch. */
.pitch { text-align: center; padding-top: 48px; padding-bottom: 8px; }
.pitch p { margin: 0 auto 14px; max-width: 600px; font: 21px/1.5 var(--serif); color: #eadfca; text-wrap: pretty; }
.pitch p:first-child::first-letter { color: var(--gold); }

/* Section titles with a little flame between two rules. */
.title { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 72px 0 6px; }
.title::before, .title::after { content: ""; flex: 1 1 40px; max-width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--edge)); }
.title::after { background: linear-gradient(90deg, var(--edge), transparent); }
.title h2 { margin: 0; font: 34px/1.15 var(--serif); color: var(--gold); text-align: center; font-weight: normal; text-wrap: balance; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 620px; text-wrap: balance; }

/* Feature rows: a screenshot beside its words, alternating sides. */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; margin: 44px 0; }
.feature:nth-of-type(even) .phone { order: 2; }
.feature h3 { margin: 0 0 8px; font: 28px/1.2 var(--serif); color: var(--cream); font-weight: normal; text-wrap: balance; }
.feature p { margin: 0 0 12px; color: #ddd2c0; }
.feature .quote { font: italic 19px/1.4 var(--serif); color: var(--ember); text-wrap: balance; }
.feature .phone { box-shadow: 0 0 0 1px rgba(106, 90, 134, 0.65), 0 18px 40px -22px rgba(0, 0, 0, 0.9); }

/* Six worlds. */
.worlds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world { background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
.world img { display: block; width: 100%; aspect-ratio: 1200 / 473; object-fit: cover; background: var(--arch); }
.world div { padding: 12px 16px 16px; }
.world .num { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent, var(--gold)); }
.world h3 { margin: 2px 0 4px; font: 23px/1.2 var(--serif); font-weight: normal; }
.world p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Small cards: after the story, your way, made in code. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font: 22px/1.2 var(--serif); color: var(--gold); font-weight: normal; }
.card p { margin: 0; color: #ddd2c0; font-size: 16px; }

.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 56px auto 0; max-width: 900px; }
.facts li { padding: 6px 14px; border: 1px solid var(--edge); border-radius: 999px; color: var(--muted); font-size: 14px; background: rgba(29, 21, 41, 0.6); }

/* Text pages (privacy, support). */
.page { padding-top: 18px; padding-bottom: 24px; }
.page h1 { margin: 10px 0 4px; font: 40px/1.15 var(--serif); color: var(--gold); font-weight: normal; text-wrap: balance; }
.page h2 { margin: 36px 0 8px; font: 26px/1.2 var(--serif); color: var(--gold); font-weight: normal; }
.page h3 { margin: 26px 0 6px; font: 600 15px/1.3 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.page p, .page li { color: #e6dccb; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.date { color: var(--muted); margin: 0 0 24px; }
.box { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 4px 20px; }
.box.glow { box-shadow: 0 0 60px -28px rgba(247, 182, 74, 0.5); }
.files { list-style: none; padding: 0 !important; }
.files li { padding: 12px 0; border-top: 1px solid rgba(106, 90, 134, 0.3); margin: 0; }
.files li:first-child { border-top: 0; }
.files b { display: block; color: var(--cream); font-weight: 600; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(106, 90, 134, 0.22); padding: 1px 5px; border-radius: 5px; color: #f3e4c6; overflow-wrap: anywhere; }
.path { color: var(--cream); white-space: nowrap; }

/* Questions and answers. */
details { background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; margin: 10px 0; }
details[open] { border-color: rgba(242, 199, 90, 0.45); }
summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative; font-weight: 600; color: var(--cream); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 18px 8px; }
details > div p, details > div li { color: #ddd2c0; }
details > div p:first-child { margin-top: 0; }
.mail { display: inline-block; margin: 4px 0 14px; padding: 10px 18px; border-radius: 10px; background: var(--gold); color: #1a1208; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { background: #ffe08a; color: #1a1208; }

footer { margin: 72px 0 0; padding: 26px 16px 40px; border-top: 1px solid rgba(106, 90, 134, 0.3); text-align: center; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 8px; }
footer p { margin: 4px 0; }

@media (max-width: 860px) {
  .worlds, .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .top { padding: 12px 16px; }
  .top nav { gap: 14px; }
  .hero { padding-top: 8px; }
  .lede { font-size: 22px; }
  .hero-shot { margin-top: 28px; }
  .phone { padding: 4px; border-radius: 16px; }
  .phone img { border-radius: 12px; }
  .pitch { padding-top: 36px; }
  .pitch p { font-size: 19px; }
  .title { margin-top: 56px; }
  .title { gap: 10px; }
  .title::before, .title::after { flex-basis: 16px; }
  .title h2 { font-size: 28px; }
  .feature { grid-template-columns: 1fr; gap: 14px; margin: 34px 0; }
  .feature:nth-of-type(even) .phone { order: 0; }
  .feature h3 { font-size: 25px; }
  .worlds, .cards { grid-template-columns: 1fr; gap: 14px; }
  .page h1 { font-size: 33px; }
  .page h2 { font-size: 23px; }
}
