:root {
  --bg: #f7f0e3;
  --text: #2a2620;
  --muted: #5e564a;
  --line: #e2d7c2;
  --link: #2a56b0;
  --accent: #b63535;
  --strip: linear-gradient(90deg,
    #8e9aaf 0 11.11%, #9fb8ad 0 22.22%, #cbaacb 0 33.33%,
    #d4a373 0 44.44%, #e9c46a 0 55.55%, #b08968 0 66.66%,
    #f4a261 0 77.77%, #e76f51 0 88.88%, #c97064 0 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181e;
    --text: #f1ece3;
    --muted: #b4ada1;
    --line: #2f333d;
    --link: #8fb0f5;
    --accent: #e06a6a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The era colours along the top, as in the app. */
body::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--strip);
}

a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 60rem; margin: 0 auto; padding-inline: 1.25rem; }

/* Intro */
.intro { text-align: center; padding-block: 3.5rem 2.5rem; }
.intro .icon {
  width: 120px;
  height: 120px;
  border-radius: 22.5%;
  display: block;
  margin: 0 auto 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 12px 28px rgba(0,0,0,.12);
}
h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.tagline { margin: 0.5rem 0 0; font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 600; }
.meaning { margin: 0.5rem 0 0; color: var(--muted); }
.coming { margin: 1.25rem 0 0; color: var(--muted); font-weight: 600; }

/* Screenshot */
.shot { margin: 0 0 3.5rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 20px 50px rgba(0,0,0,.14);
}

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0 0 3rem;
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.features li { display: flex; gap: 1rem; align-items: flex-start; }
.features svg {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features h2 { margin: 0 0 0.25rem; font-size: 1.1rem; line-height: 1.3; }
.features p { margin: 0; color: var(--muted); }

/* Support and privacy modals */
dialog {
  width: min(28rem, calc(100% - 2.5rem));
  padding: 1.75rem 1.75rem 1.25rem;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
dialog::backdrop { background: rgba(20, 18, 15, .45); }
dialog:focus-visible { outline: none; }
/* No-script fallback: show the targeted one. (With script the dialog
   handles it; :target can stick after the hash is cleared.) */
html:not(.js) dialog:target { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 1; }
dialog h2 { margin: 0 0 0.75rem; font-size: 1.3rem; }
dialog p { margin: 0 0 0.9rem; }
dialog .small { color: var(--muted); font-size: 0.9rem; }
dialog .close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}
dialog .close:hover { background: var(--line); }

/* 404 */
.prose { max-width: 42rem; padding-block: 2.5rem 2rem; }
.prose .home { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; text-decoration: none; margin-bottom: 2rem; }
.prose .home img { width: 32px; height: 32px; border-radius: 22.5%; }
.prose h1 { font-size: clamp(2rem, 7vw, 2.6rem); margin-bottom: 0.5rem; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.site-footer a { color: var(--muted); }
