/* faretable.app: the legal pages and a front door, styled like the app (paper and ink by day,
   night purple after dark; Chewy for headings, Shantell Sans for text). */

:root {
  --paper: #fff6d8;
  --card: #ffffff;
  --ink: #000000;
  --muted: #5e5545;
  --rule: #e6d9ae;
  --link: #1fa35b;
  --sticker: #ffd23f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1633;
    --card: #2d2250;
    --ink: #fff6d8;
    --muted: #c2b8d9;
    --rule: #3b2f63;
    --link: #3dd17f;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Shantell Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

header.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

header.brand a {
  color: var(--ink);
  text-decoration: none;
  font-family: "Chewy", system-ui, sans-serif;
  font-size: 28px;
}

h1,
h2 {
  font-family: "Chewy", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: 40px;
  margin: 0 0 4px;
}

h2 {
  font-size: 26px;
  margin: 36px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 4px;
}

p,
li {
  overflow-wrap: anywhere;
}

ul,
ol {
  padding-left: 22px;
}

a {
  color: var(--link);
  font-weight: 600;
}

.updated,
.muted {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  padding: 16px 20px;
  margin: 20px 0;
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  border-bottom: 2px solid var(--rule);
}

.table-scroll {
  overflow-x: auto;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}

footer a {
  margin-right: 16px;
}

.hero {
  text-align: center;
  padding-top: 40px;
}

.hero img {
  width: 140px;
  height: 140px;
  border-radius: 32px;
}

.hero h1 {
  font-size: 56px;
  margin-top: 16px;
}

.hero p {
  font-size: 20px;
}
