/* Night Train's own tokens (NightTrain/Design/Tokens.swift), so the pages and the app are
   recognisably one thing. The app is always dark; so are these pages. */
:root {
  --page:   #0B1026;   /* ground */
  --card:   #141B3A;   /* surface */
  --ink:    #EEF0FF;   /* text */
  --ink-2:  #C3C8E6;
  --ink-3:  #9AA3C7;   /* dim */
  --rule:   #2A3566;   /* hairline */
  --accent: #FFB547;   /* glow */
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 34rem; margin: 0 auto; padding: 3rem 1rem 5rem; }

header { padding-bottom: 1.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }

.mark {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0.75rem 0 0.25rem;
}

.updated { color: var(--ink-3); font-size: 0.9375rem; margin: 0; }

h2 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.005em; margin: 2.75rem 0 0.5rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.375rem; }
li::marker { color: var(--ink-3); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 620; }

.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

dl { margin: 0; }
dt { font-weight: 620; margin-top: 1.75rem; }
dd { margin: 0.25rem 0 0; color: var(--ink-2); }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.9375rem;
}
footer a { color: var(--ink-2); }
