/*
 * The ChainSpell site. The app's "Paper & Play" palette: a pale periwinkle
 * ground, navy ink, white cards and the four tile gradients.
 *
 * No web fonts and nothing loaded from anywhere else. The privacy page says the
 * game shares nothing it does not need to; the site that page lives on should
 * not hand every visitor's IP address to a font host either.
 */
:root {
  --ground: #F4F5FC;
  --surface: #FFFFFF;
  --ink: #1E2340;
  --dim: #5D6384;
  --line: #E3E6F3;
  --well: #ECEEF8;
  --link: #2B7FE0;
  --todo: #FFE7A8;
  --ocean: linear-gradient(135deg, #35C3F3, #2B7FE0);
  --berry: linear-gradient(135deg, #FF5D7E, #F0345B);
  --sunset: linear-gradient(135deg, #FFB020, #F97316);
  --jade: linear-gradient(135deg, #3ED598, #10A97C);
  --link-a: #F97316;
  --link-b: #10A97C;
  --shadow: 0 1px 2px rgba(30, 35, 64, .05), 0 12px 32px -18px rgba(30, 35, 64, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12152A;
    --surface: #1B1F38;
    --ink: #ECEEFA;
    --dim: #A4A9C9;
    --line: #2A2F52;
    --well: #252A4A;
    --link: #6AB0FF;
    --todo: #5A4712;
    --link-a: #FFB347;
    --link-b: #2FD39A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; }

.top, main, .foot { max-width: 760px; margin-inline: auto; padding-inline: 20px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
}
/* The icon has no alpha (App Review requires that), so its corners are cut
   here, at the 22.37% radius that approximates iOS's own mask. */
.brand img, .hero-icon { border-radius: 22.37%; }
.top nav { display: flex; gap: 4px; }
.top nav a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 999px;
}
.top nav a[aria-current="page"] { color: var(--ink); background: var(--well); }

main { padding-block: 8px 56px; }

/* Home */
.hero { text-align: center; padding-block: 28px 12px; }
.hero-icon { width: 112px; height: 112px; box-shadow: var(--shadow); }
.hero h1 {
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 22px 0 12px;
}
.hero .pitch { font-size: 20px; color: var(--dim); max-width: 32ch; margin: 0 auto; }
.chain {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 26px auto 0;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
}
.chain .word { background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; }
/* Three words and two arrows must stay on one line at phone width, or the
   last word drops alone under a dangling arrow. */
@media (max-width: 430px) {
  .chain { font-size: 18px; gap: 6px; }
  .chain .word { padding: 6px 9px; border-radius: 10px; }
}
.chain .arrow { color: var(--dim); align-self: center; font-weight: 400; }
.chain .a { color: var(--link-a); }
.chain .b { color: var(--link-b); }
.store {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
a.store:hover { opacity: .9; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 44px; }
.tile { border-radius: 20px; padding: 20px; color: #FFFFFF; box-shadow: var(--shadow); }
.tile h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tile p { margin: 0; font-size: 15.5px; line-height: 1.5; opacity: .95; }
.tile.ocean { background: var(--ocean); }
.tile.berry { background: var(--berry); }
.tile.jade { background: var(--jade); }

/* Support and privacy */
.prose h1 { font-size: clamp(32px, 7vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 20px 0 12px; }
.prose h2 { font-size: 23px; letter-spacing: -.01em; font-weight: 800; margin: 40px 0 8px; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 26px 0 4px; }
.prose p, .prose li { max-width: 66ch; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--dim); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin: 22px 0;
}
.card .email { font-size: 21px; font-weight: 800; word-break: break-all; }
.card p { margin: 8px 0 0; }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  min-height: 44px;
  list-style-position: outside;
}
details p { margin: 0 0 16px; color: var(--dim); }
kbd {
  font: 600 .88em/1 system-ui, -apple-system, sans-serif;
  background: var(--well);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}

/* Press kit */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--dim); font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 430px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
}
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }

/* An unfilled placeholder in the policy, so it cannot go live unnoticed. */
mark.todo { background: var(--todo); color: inherit; padding: 0 3px; border-radius: 4px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
.foot a { color: var(--dim); }
