/* Ninetiles — site styles.
   Colours are the app's own, from Ninetiles/Theme.swift, so the page and the
   game look like the same thing. Light and dark both, following the reader. */

:root {
  --bg:      #EFEAE0;
  --surface: #F8F5EF;
  --ink:     #191E24;
  --muted:   #6D6456;
  --line:    #D7CFC0;
  --accent:  #0B7F76;
  --amber:   #A85C15;
  --tile:    #FCFAF5;
  --tile-edge:#CDC3B0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0F141A;
    --surface: #171E26;
    --ink:     #E7EAEE;
    --muted:   #8B96A2;
    --line:    #2A3541;
    --accent:  #2ED3C4;
    --amber:   #E8A13E;
    --tile:    #424D58;
    --tile-edge:#5A6672;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 660px; margin: 0 auto; }

header { padding: 56px 0 8px; }

/* The wordmark, set the way the app sets it. */
.name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
}
.tagline { color: var(--muted); margin: 4px 0 0; font-size: 16px; }

h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 44px 0 10px;
}

h3 { font-size: 17px; margin: 28px 0 4px; }

p, li { color: var(--ink); }
p { margin: 0 0 14px; }
ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 7px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.lede { font-size: 20px; line-height: 1.5; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 12px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

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

/* A row of letter tiles, drawn in CSS — no images to upload. */
.tiles { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 4px; }
.tile {
  width: 42px; height: 42px;
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px;
  position: relative;
}
.tile sub {
  position: absolute; right: 4px; bottom: 2px;
  font-size: 9px; font-weight: 600; color: var(--muted);
}

nav { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
nav a { margin-right: 18px; }

footer {
  margin-top: 48px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

@media (max-width: 480px) {
  .name { font-size: 25px; }
  .lede { font-size: 18px; }
  .tile { width: 36px; height: 36px; font-size: 16px; }
}
