/* Shared style for the Nonograngran web pages: the app icon's navy, white cards, clue colours. */

:root {
  --navy: #262a55;
  --navy-dark: #1b1c3a;
  --ink: #23243f;
  --muted: #5d5f7a;
  --red: #f0435a;
  --orange: #ff8a3d;
  --yellow: #ffc93c;
  --green: #33b76e;
  --blue: #3f7ef0;
  --accent: #d9268c;
}

* { box-sizing: border-box; }

html { background: var(--navy-dark); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%) fixed;
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}

header {
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

header a { color: inherit; text-decoration: none; }

.icon {
  width: 128px;
  height: 128px;
  border-radius: 22.5%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto 16px;
}

header.small .icon { width: 72px; height: 72px; margin-bottom: 10px; }

h1.title {
  margin: 0;
  line-height: 0;
}

h1.title img {
  /* 97 x 9 art pixels; widths are whole multiples so every block stays square. */
  width: 485px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

header.small h1.title img { width: 291px; }

.tagline {
  margin: 8px 0 0;
  color: #c9cbe8;
  font-size: 19px;
}

.stripe {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
}

.stripe span { width: 22px; height: 8px; border-radius: 4px; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--orange); }
.stripe span:nth-child(3) { background: var(--yellow); }
.stripe span:nth-child(4) { background: var(--green); }
.stripe span:nth-child(5) { background: var(--blue); }

main {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

main h2 { font-size: 22px; margin: 1.4em 0 0.4em; }
main h2:first-child { margin-top: 0; }
main p, main ul { margin: 0 0 1em; }
main ul { padding-left: 1.3em; }
main li { margin-bottom: 0.35em; }

a { color: var(--accent); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button:hover { background: var(--accent); }

.email {
  font-size: 20px;
  font-weight: 600;
  word-break: break-all;
}

.note { color: var(--muted); font-size: 15px; }

footer {
  margin-top: 28px;
  color: #a5a8cc;
  font-size: 14px;
  text-align: center;
  max-width: 680px;
}

footer a { color: #e6e7f7; }
footer nav { margin-bottom: 8px; }
footer nav a { margin: 0 8px; }

@media (max-width: 520px) {
  body { padding: 24px 12px; }
  main { padding: 22px 20px; }
  h1.title img { width: 291px; }
}
