/* saradoku.app, look C, "Board" (Jay, 04/12/2026): a coloured 3×3 board on top, then each
   moment of the app in a coloured cell with a short video loop. Few words, many colours.
   Nothing from anywhere else: the system font, this file, the pages and media/. No scripts.

   Every text colour passes WCAG contrast on its background: 4.5:1 for small text, 3:1 for
   large text (24 px, or 19 px bold). The white headings on the orange cell are 3.7:1, so
   everything in that cell stays large. */

:root {
  color-scheme: light dark;
  --page: #EFE9DC;
  --ink: #0D2B2D;
  --muted: #3B5557;
  --link: #00696B;
  --frame: #0D2B2D;
  --hair: #CFC6B4;
  --tile: #FEFDFB;
  --tile-ink: #0D2B2D;

  /* The nine colours, one per digit of the board on top. */
  --c1: #14696A; /* teal: Show me */
  --c2: #E4561E; /* orange: Boom */
  --c3: #E9A800; /* gold: Dance (dark text) */
  --c4: #2F7CF6; /* blue */
  --c5: #E8456B; /* pink */
  --c6: #7A4FD0; /* violet: Every day */
  --c7: #22A06B; /* green */
  --c8: #2A1210; /* ember: Meltdown */
  --c9: #1B4D4F; /* deep teal */
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0B1718;
    --ink: #F2F5F3;
    --muted: #9DB5B3;
    --link: #7FD9D2;
    --frame: #1E3537;
    --hair: #24393B;
    --c8: #2E1411;
    --c9: #2C5E60;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 106.25%; /* 17 px, the iPhone's body size; follows the reader's own text size */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- the board on top (home) ---------- */

.hero { padding: 2.4rem .9rem 0; text-align: center; }

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(100%, 20rem);
  margin: 0 auto;
  padding: 6px;
  border-radius: 22px;
  background: var(--frame);
}
.board span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 2.75rem;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}
.board span:nth-child(1) { background: var(--c1); }
.board span:nth-child(2) { background: var(--c2); }
.board span:nth-child(3) { background: var(--c3); color: #0D2B2D; }
.board span:nth-child(4) { background: var(--c4); }
.board span:nth-child(5) { background: var(--c5); }
.board span:nth-child(6) { background: var(--c6); }
.board span:nth-child(7) { background: var(--c7); }
.board span:nth-child(8) { background: var(--c8); }
.board span:nth-child(9) { background: var(--c9); }

.hero h1 { margin: 1.5rem 0 0; font-size: 3.2rem; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.hero .sub { margin: .6rem 0 0; color: var(--muted); font-size: 1.15rem; font-weight: 650; }

/* No link and no badge until the app is on the App Store (site/README.md). */
.soon {
  display: inline-block;
  margin: 1.2rem 0 0;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  background: #C9304F;
  color: #FFFFFF;
  font-size: .85rem;
  font-weight: 750;
}

/* ---------- the moments (home) ---------- */

.cells {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  max-width: 70rem;
  margin: 2rem auto 0;
  padding: 0 .6rem;
}

.cell {
  position: relative;
  flex: 1 1 100%;
  max-width: 24rem;
  padding: 1.15rem 1.05rem 1.05rem;
  border-radius: 28px;
  color: #FFFFFF;
}
.cell h2 { margin: 0; padding-right: 3.4rem; font-size: 2rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.02; }
.cell h2 span { display: block; margin-bottom: .3rem; font-size: 1.12rem; font-weight: 750; letter-spacing: 0; }

/* The cell's number, as a placed digit on the board. */
.cell .n {
  position: absolute;
  top: .85rem;
  right: .95rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tile);
  color: var(--tile-ink);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}

.show-me { background: var(--c1); }
.boom { background: var(--c2); }
.dance { background: var(--c3); color: #0D2B2D; }
.meltdown { background: var(--c8); color: #FFB067; }
.every-day { background: var(--c6); }

/* The still is the moment at its peak; the video plays over it. Reduce Motion: the video has
   no source that matches (each <source> asks for no-preference), so only the still shows. */
.media {
  position: relative;
  margin-top: 1rem;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.media img, .media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  max-width: 50rem;
  margin: .65rem auto 0;
  padding: 0 .6rem;
  list-style: none;
}
.chips li {
  padding: .8rem .5rem;
  border-radius: 18px;
  color: #FFFFFF;
  font-weight: 800;
  text-align: center;
}
.chips li:nth-child(1) { background: #14696A; }
.chips li:nth-child(2) { background: #C2410C; }
.chips li:nth-child(3) { background: #6D44C9; }
.chips li:nth-child(4) { background: #15803D; }

/* ---------- inner pages: privacy, support, not found ---------- */

.top {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}
.top a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.01em;
  text-decoration: none;
}
.top a:hover span:last-child { text-decoration: underline; }

/* The small board beside the name: the nine colours. */
.mini {
  display: grid;
  grid-template-columns: repeat(3, 9px);
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: var(--frame);
}
.mini i { width: 9px; height: 9px; border-radius: 2px; }
.mini i:nth-child(1) { background: var(--c1); }
.mini i:nth-child(2) { background: var(--c2); }
.mini i:nth-child(3) { background: var(--c3); }
.mini i:nth-child(4) { background: var(--c4); }
.mini i:nth-child(5) { background: var(--c5); }
.mini i:nth-child(6) { background: var(--c6); }
.mini i:nth-child(7) { background: var(--c7); }
.mini i:nth-child(8) { background: var(--c8); }
.mini i:nth-child(9) { background: var(--c9); }

.page { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }
.page h1 { margin: 1.6rem 0 .25rem; font-size: 2.3rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.updated { margin: 0 0 1.5rem; color: var(--muted); font-size: .9rem; }
.page h2 { margin: 2rem 0 .5rem; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.page h3 { margin: 1.5rem 0 .25rem; font-size: 1.05rem; font-weight: 750; line-height: 1.25; }
.page h3 + p { margin-top: 0; }
.page ul { padding-left: 1.2rem; }
.page li { margin: 0 0 .6rem; }

/* The email, on a teal cell like Show me's. */
.contact {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  background: #14696A;
  color: #FFFFFF;
  font-size: 1.05rem;
}
.contact a { color: #FFFFFF; font-weight: 800; }
.contact a:focus-visible { outline-color: #FFFFFF; }

/* ---------- footer ---------- */

footer {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 2.5rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
footer p { margin: .3rem 0; }
footer a { font-weight: 700; }

/* ---------- wider screens ---------- */

@media (min-width: 46rem) {
  .cell { flex: 0 1 21rem; }
  .chips { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 64rem) {
  .hero { padding-top: 3.5rem; }
  .board { width: 17rem; }
  .board span { font-size: 2.4rem; }
  .hero h1 { font-size: 4.6rem; }
  .cells { gap: 1rem; margin-top: 3rem; }
  .chips { gap: 1rem; margin-top: 1rem; }
}
