/* Thornwick's web pages: the walled garden's soft greens, cream card and honey wood, and the game's Lilita One lettering
   (as Rocket Gnome's and Fernhollow's pages) */
@font-face { font-family: 'Lilita One'; font-display: swap; src: url(fonts/lilita.ttf) format('truetype'); }

:root {
  --bg: #dfe9cf;
  --card: #fffaf0;
  --ink: #2f2418;
  --muted: #6a5a44;
  --wood: #9a6418;
  --link: #3e7a2c;
  --line: #e2cfa8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18211a;
    --card: #262016;
    --ink: #f4ead8;
    --muted: #c9b79c;
    --wood: #f0b46a;
    --link: #9fd48a;
    --line: #4d3a2a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
}
main { max-width: 680px; margin: 0 auto; }
header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
header img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
header a { color: inherit; text-decoration: none; }
.name { font: 30px/1.1 'Lilita One', 'Arial Rounded MT Bold', sans-serif; }
.tag { color: var(--muted); font-size: 15px; }
.card { background: var(--card); border: 3px solid var(--line); border-radius: 20px; padding: 8px 24px 20px; }
h1, h2 { font-family: 'Lilita One', 'Arial Rounded MT Bold', sans-serif; font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 34px; margin: 18px 0 4px; }
h2 { font-size: 24px; margin: 28px 0 6px; color: var(--wood); }
.updated { color: var(--muted); font-size: 15px; margin-top: 0; }
a { color: var(--link); font-weight: 700; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.short { border-left: 4px solid var(--wood); padding: 2px 0 2px 16px; }
footer { color: var(--muted); font-size: 14px; text-align: center; margin-top: 28px; }
footer a { color: var(--muted); }

/* the open-source licences page: the notices word for word, laid out as their authors wrote them (on a phone the
   block slides sideways by itself; the page doesn't) */
pre.licences { font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; color: var(--muted); margin: 12px 0 0; padding-bottom: 8px; }
