/* cross-math-metro.appn.app: the app's enamel ground with a dark sign band, in Overpass
   (DESIGN.md tokens). One column of prose. */

@font-face { font-family: "Overpass"; src: url("/fonts/Overpass-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/fonts/Overpass-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/fonts/Overpass-900.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --page: #F4F4F0;
  --paper: #FFFFFF;
  --ink: #16181D;
  --ink2: #4A4E57;
  --rule: #D6D6CF;
  --sign: #16181D;
  --sign-ink: #FFFFFF;
  --sign-ink2: #B9BCC4;
  --link: #0A6CC2;
  --red: #D7262F;
  --blue: #0A6CC2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E1014;
    --paper: #1A1D23;
    --ink: #EEEEE9;
    --ink2: #A9ADB6;
    --rule: #2F343D;
    --sign: #000000;
    --sign-ink2: #9BA0AA;
    --link: #3B92E6;
    --red: #F0444C;
    --blue: #3B92E6;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.cover { background: var(--sign); color: var(--sign-ink); }
.cover .in { max-width: 720px; margin: 0 auto; padding: 22px 20px 28px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 900; font-size: 18px; }
.lang { color: inherit; font-weight: 800; font-size: 15px; }
.mark { width: 26px; height: 26px; flex: none; }
.cover h1 { margin: 34px 0 4px; font-size: 44px; line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; }
.cover p { margin: 0; font-size: 17px; font-weight: 800; color: var(--sign-ink2); }

main { max-width: 720px; margin: 0 auto; padding: 8px 20px 48px; }
main h2 { margin: 36px 0 8px; font-size: 23px; line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; }
main h3 { margin: 22px 0 4px; font-size: 18px; font-weight: 800; }
main ul { padding-left: 22px; }
main li { margin: 4px 0; }
strong { font-weight: 800; }
.lead { color: var(--ink2); font-size: 19px; margin-top: 26px; }
.meta { color: var(--ink2); font-size: 15px; }
.box { background: var(--paper); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.box p { margin: 6px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 800; color: var(--ink2); }
.links { list-style: none; padding: 0; margin: 20px 0; background: var(--paper); border-radius: 22px; overflow: hidden; }
.links li { margin: 0; border-bottom: 1px solid var(--rule); }
.links li:last-child { border-bottom: 0; }
.links a { display: block; padding: 14px 18px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 800; }
.links a span { display: block; color: var(--ink2); font-size: 15px; font-weight: 400; }
.links a:hover { color: var(--link); }
footer { max-width: 720px; margin: 0 auto; padding: 18px 20px 40px; border-top: 1px solid var(--rule); color: var(--ink2); font-size: 14px; }
footer a { color: var(--ink2); }
@media (max-width: 480px) {
  .cover h1 { font-size: 36px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  td:first-child { font-weight: 800; }
}
