/* The site's own pages (/releases, /support, /privacy, /terms) dressed like the game: the night palette, the
   Shrikhand logo, tilted typewriter headings as on the game's sheets, the body face for reading, all straight on the
   tropical wallpaper, faded right back. Copied to the site root by host/deploy.sh. */
:root {
  --night: #0b0910; --sheet: rgba(22, 17, 27, .9); --cream: #f4e7cf; --muted: #bcab93;
  --line: rgba(244, 231, 207, .14);
  --font-display: Shrikhand, Georgia, serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-head: "Special Elite", "Courier New", monospace;
  color-scheme: dark;
}
html { background: var(--night); }
body { margin: 0; min-height: 100vh; color: var(--cream); font: 17px/1.6 var(--font-body); }   /* no background of its own, so the wallpaper below shows through */
/* the wallpaper, faded right back, darker towards the edges */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(11, 9, 16, .55) 30%, rgba(11, 9, 16, .55) 70%, transparent),
              radial-gradient(120% 90% at 50% 30%, rgba(11, 9, 16, .4), rgba(11, 9, 16, .8) 80%),
              url("/ambient/bg-leaves.webp") center / cover;
  opacity: .55;   /* darker down the middle, where the words are */
}

/* the logo, as at the top of the game */
.site-head { display: block; text-align: center; padding: max(26px, env(safe-area-inset-top, 0px)) 16px 0; text-decoration: none; }
.logo { font: 400 34px/1 var(--font-display); color: var(--cream); letter-spacing: .01em; }

/* the words sit straight on the wallpaper, in a comfortable column */
main {
  max-width: 640px; margin: 0 auto; box-sizing: border-box;
  padding: 26px max(20px, env(safe-area-inset-left, 0px)) 56px max(20px, env(safe-area-inset-right, 0px));
}

/* typewriter headings, each at its own small angle, as on the game's sheets */
h1 { margin: 0 0 10px; font: 400 34px/1.1 var(--font-head); color: var(--cream); transform: rotate(-1deg); transform-origin: 0 60%; text-wrap: balance; }
h2 { margin: 30px 0 6px; font: 400 22px/1.2 var(--font-head); color: var(--cream); transform-origin: 0 60%; text-wrap: balance; }
h2:nth-of-type(4n + 1) { transform: rotate(-.8deg); }
h2:nth-of-type(4n + 2) { transform: rotate(.5deg); }
h2:nth-of-type(4n + 3) { transform: rotate(-.4deg); }
h2:nth-of-type(4n + 4) { transform: rotate(.9deg); }

p, ul { color: var(--muted); }
p b, li b { color: var(--cream); }
ul { padding-left: 20px; } li { margin: 6px 0; }
a { color: var(--cream); text-decoration-color: rgba(244, 231, 207, .5); text-underline-offset: 3px; }   /* no yellow: links are cream and underlined */
a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-radius: 4px; }
.updated { font-size: 14px; }

.back { display: inline-block; margin-top: 30px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(#efe3c8, #e3d4b2);
  color: #2a1606; font-weight: 700; text-decoration: none; }
.legal { margin-top: 26px; font-size: 14px; color: var(--muted); }
.legal a { display: inline-block; padding: 10px 2px; }   /* tall enough to tap */
@media (prefers-reduced-motion: reduce) { h1, h2 { transform: none !important; } }
