/* The game's own palette: warm paper, soft brown ink instead of black, and its gold and plum. */
:root {
  --sky-top: #FEFCF7;
  --sky: #F4EDE1;
  --paper: #FFFDF6;
  --ink: #3A2E28;
  --ink-soft: #483D33;
  --ink-faint: #554737;
  --rule: rgba(58, 46, 40, 0.14);
  --gold: #FFC93C;
  --plum: #9068CC;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky) linear-gradient(var(--sky-top), var(--sky) 32rem) no-repeat;
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--plum);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--plum); }
a:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

.masthead { padding-top: 20px; }
.masthead a { font-weight: 700; text-decoration: none; }

.site-footer {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.9375rem;
  text-align: center;
}
.site-footer p { margin: 0.25em 0; }
.quiet { font-size: 0.875rem; }

/* Long-form pages: the privacy policy. */
.prose { max-width: 42rem; margin: 0 auto; padding-top: 24px; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.2; margin: 0.4em 0 0.8em; }
.prose h2 { font-size: 1.25rem; line-height: 1.3; margin: 2em 0 0.5em; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }

/* Studio home. */
.studio { padding: 72px 0 36px; text-align: center; }
.studio h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.3em; }
.studio p { margin: 0; font-size: 1.25rem; color: var(--ink-soft); }

/* A chunky card with the game's button lip under it. */
.game-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 36rem;
  margin: 0 auto;
  padding: 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.game-card:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.game-card:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.game-card img { flex: none; width: 112px; height: 112px; border-radius: 26px; }
.game-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.game-card-name { font-size: 1.625rem; font-weight: 700; line-height: 1.15; }
.game-card-line { color: var(--ink-soft); line-height: 1.4; }
.game-card-more { margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--plum); }
@media (max-width: 420px) {
  .game-card { gap: 16px; padding: 16px; }
  .game-card img { width: 84px; height: 84px; border-radius: 20px; }
  .game-card-name { font-size: 1.375rem; }
}

.contact { margin: 64px auto 0; text-align: center; }
.contact h2 { font-size: 1.25rem; margin: 0 0 0.4em; }
.contact p { margin: 0; color: var(--ink-soft); }

/* Gospel. */
.hero { padding: 40px 0 8px; text-align: center; }
.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(58, 46, 40, 0.2);
}

/* The title as the game draws it: gold, outlined in ink, with a dark lip below. */
.wordmark {
  margin: 0.12em 0 0.18em;
  font: 700 clamp(3.5rem, 15vw, 5.5rem)/1 Arial, "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gold);
  -webkit-text-stroke: 0.1em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
}

.tagline { margin: 0 0 28px; font-size: clamp(1.15rem, 4vw, 1.5rem); color: var(--ink-soft); }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 13rem;
  min-height: 3.75rem;
  padding: 8px 22px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 0 5px 0 #1F1814;
  color: #FFF;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}
.store:hover { color: #FFF; transform: translateY(2px); box-shadow: 0 3px 0 #1F1814; }
.store small { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.02em; }
.store.soon {
  align-items: center;
  background: transparent;
  border: 2px dashed rgba(58, 46, 40, 0.4);
  box-shadow: none;
  color: var(--ink-faint);
  font-size: 1rem;
}
.store.soon small { color: var(--ink-faint); }

.platforms { margin: 20px 0 0; font-size: 0.9375rem; color: var(--ink-faint); }

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 54rem;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}
.screens figure { margin: 0; }
.screens img {
  width: 100%;
  aspect-ratio: 540 / 1170;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
}
.screens figcaption { margin-top: 16px; text-align: center; font-weight: 700; color: var(--ink-soft); }

/* On a phone the screens scroll sideways inside their strip; the page itself never does. */
@media (max-width: 640px) {
  .screens {
    display: flex;
    gap: 16px;
    margin: 40px -16px 0;
    padding: 0 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens li { flex: 0 0 64%; scroll-snap-align: center; }
}

.verse {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  max-width: 54rem;
  margin: 72px auto 0;
}
.verse img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(58, 46, 40, 0.22); }
.verse h2 { font-size: clamp(1.4rem, 4.5vw, 1.75rem); line-height: 1.2; margin: 0 0 0.4em; }
.verse p { margin: 0; color: var(--ink-soft); font-size: 1.125rem; }
@media (max-width: 640px) {
  .verse { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: center; }
  .verse img { max-width: 20rem; margin: 0 auto; }
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 20px;
  max-width: 54rem;
  margin: 72px auto 0;
}
.point { padding: 20px 22px; background: var(--paper); border: 2px solid var(--rule); border-radius: 20px; }
.points h2 { margin: 0 0 0.35em; font-size: 1.125rem; line-height: 1.3; }
.points p { margin: 0; color: var(--ink-soft); }
