/* Same ground, faces and colours as the landing page and the legal pages
   (site/index.html, site/privacy.html): one readable column, single dark
   look matching the app. Headings carry ids so the app and emails can link
   straight to an answer. */
:root {
  color-scheme: dark;
  --ground: #1D1D1B; --surface: #272725; --line: rgba(242, 238, 230, 0.12);
  --ink: #F2EEE6; --body: #CFCBC2; --muted: #A8A59E;
  --accent: #F1C232;
  --brass: #F1C232; --teal: #F1C232;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--ground); }
html { scroll-padding-top: 16px; }
body { margin: 0; color: var(--body); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.wrap { max-width: 720px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 64px; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.home { font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; }
h1 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 44px; line-height: 1.1; margin: 28px 0 6px; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 32px; line-height: 1.15; margin: 56px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
h3 { font: 600 19px/1.35 var(--sans); color: var(--ink); margin: 32px 0 6px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 8px; }
.summary p { margin: 0; color: var(--ink); }
nav.contents { margin: 24px 0 0; }
nav.contents ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
nav.contents li { margin: 0; border-top: 1px solid var(--line); }
nav.contents a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
nav.contents a span { display: block; color: var(--muted); font-size: 14px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 4px; }
ol, ul { padding-left: 1.4em; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }
/* What the app shows on screen: a button, a screen or a setting. */
.ui { color: var(--ink); font-weight: 600; white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 16px 0; }
.card h3 { margin-top: 18px; }
.tip { border-left: 3px solid var(--teal); padding: 2px 0 2px 16px; margin: 16px 0; }
.address { color: var(--ink); user-select: all; }
footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 480px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .ui { white-space: normal; }
}
/* The app's look: Anton wordmark, Bodoni Moda titles. */
body { background: radial-gradient(140% 60% at 50% 0%, #1D1D1B, var(--ground) 60%) var(--ground); }
.home { font: 600 14px/1 "Anton", Impact, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.home::before { content: ""; width: 34px; height: 34px; border-radius: 5px; background: url(/img/logo-512.png) center / contain no-repeat; }
h1 { font-weight: 500; letter-spacing: -.01em; }
/* Answer pages (eras, compare, without a smart trainer). */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.cta { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: var(--teal); color: var(--ground); font-weight: 600; text-decoration: none; }
.era-img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; margin: 12px 0 4px; }

/* Guides: article images. */
figure { margin: 24px 0; }
figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
details.credits { margin-top: 40px; color: var(--muted); font-size: 14px; }
details.credits summary { cursor: pointer; }
.guides-list { list-style: none; padding: 0; }
.guides-list li { border-top: 1px solid var(--line); padding: 12px 0; margin: 0; }

/* App look (2026-11-06): the mobile app's colours, faces and square corners. */
body { background: var(--ground); }
h1, h2 { font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.home { font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: .28em; }
a { text-underline-offset: 3px; }
.summary, .card, .era-img, figure img, input, select, textarea, button { border-radius: 0; }
.cta, .button { border-radius: 0; background: var(--accent); color: var(--ground); font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.cta:hover, .button:hover { background: #F6D159; }
.label, th { letter-spacing: .1em; }
