/* Derby Race Night's public pages: the app's own colours (DesignSystem/Tokens.swift), system fonts, nothing loaded
   from elsewhere. Dark like the app; a light version for readers who ask for one. */
:root {
  --bg: #121417;        /* asphalt */
  --surface: #1b1f24;   /* surface */
  --line: #3a414b;      /* line */
  --text: #f2efe8;      /* chalk */
  --muted: #a3a9b3;     /* dust */
  --accent: #ffb020;    /* startLight */
  --link: #ffb020;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --line: #d9d5cc;
    --text: #121417;
    --muted: #4f5660;
    --accent: #b36b00;
    --link: #8a5200;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header.site { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
header.site img { width: 48px; height: 48px; border-radius: 11px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--link); }
.lede { color: var(--muted); font-size: 19px; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.button {
  display: inline-block; min-height: 44px; padding: 11px 20px; border-radius: 12px;
  background: var(--accent); color: #121417; font-weight: 700; text-decoration: none;
}
nav.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
nav.links a { display: inline-block; min-height: 44px; padding: 10px 0; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

/* The front page's list of apps: one card per app. */
.app { display: flex; gap: 16px; align-items: flex-start; }
.app img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app h2 { margin: 0 0 4px; font-size: 20px; }
.app h2 a { color: var(--text); text-decoration: none; }
.app nav.links { margin-top: 4px; }
