/* SKY RUN's own styling. Deliberately NOT ../style.css: a player arriving
   from the App Store listing should land on something that looks like the game
   they just tapped.

   The game is printed, not rendered: four inks on oat stock, no black. The
   palette is lifted from the app (tool/icon.html INK, the same table the press
   uses), not approximated:
     paper   #EFE3D0   the stock
     mid     #1B2A57   midnight, the only "dark" ink — body text
     orange  #FF5A2B   the fluoro — reserved for links and the one stop per heading
     pink    #F0447E
     violet  #5C4A93   plates: callouts, the table head
   Light only, on purpose: the game has no dark sheet, and every colour is set
   explicitly so a dark-mode browser still gets paper.

   No web fonts, no build step, no external requests. These pages have to keep
   loading for an App Store reviewer years from now. */

:root {
  --paper:  #efe3d0;
  --mid:    #1b2a57;
  --dim:    #56607f;
  --orange: #ff5a2b;
  --link:   #c23a10;   /* orange darkened to pass 4.5:1 on paper for body links */
  --pink:   #f0447e;
  --violet: #5c4a93;
  --rule:   #d7c7ae;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  padding: 2.5rem 1rem 4rem;
  background: var(--paper);
  color: var(--mid);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

/* A halftone screen at the threshold of visible — the game's dot plate. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(92,74,147,0.10) 1px, transparent 1.2px);
  background-size: 7px 7px;
}

main { position: relative; max-width: 42rem; margin: 0 auto; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--orange); }

.back {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  margin-bottom: 2rem;
}

h1 {
  font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
/* The fluoro stop after the title, as on the title screen. */
h1::after {
  content: "";
  display: inline-block;
  width: 0.18em; height: 0.18em;
  margin-left: 0.08em;
  background: var(--orange);
}

.sub {
  margin: 0 0 2rem;
  padding-bottom: 0.9rem;
  border-bottom: 3px solid var(--mid);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

h2 {
  font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2.6rem 0 0.6rem;
}
h3 { font-size: 1rem; margin: 1.8rem 0 0.4rem; }

/* A violet plate with the words knocked out to paper. */
.call {
  background: var(--violet);
  color: var(--paper);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  border-left: 7px solid var(--orange);
}
.call p { margin: 0.4rem 0; }
.call a { color: var(--paper); }

.q { font-weight: 700; margin: 1.6rem 0 0.2rem; }

.inks { display: flex; gap: 6px; margin: 0 0 1.5rem; }
.inks span { width: 14px; height: 14px; display: block; }

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.hint { font-size: 0.8rem; color: var(--dim); margin: 0; }
table { border-collapse: collapse; min-width: 34rem; font-size: 0.9rem; line-height: 1.45; }
th { background: var(--mid); color: var(--paper); text-align: left; padding: 0.5rem 0.6rem;
     font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
td { border-bottom: 1px solid var(--rule); padding: 0.55rem 0.6rem; vertical-align: top; }

code { font-family: var(--mono); font-size: 0.88em; }

.updated {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--dim);
}

@media (min-width: 40rem) { body { padding: 4rem 1.5rem 5rem; } }
