/* The app's Sand palette, so the site and the phone look like one thing. */
:root {
  --paper: #f5f2ea;
  --ink: #2b2a26;
  --muted: #6a6558;
  --line: #e2dccc;
  --amber: #e0a22b;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
}

header {
  padding: 64px 0 8px;
}

/* The mark, drawn the same way the app draws it: pages fanning up from a
   spine that dips, and a star that touches them. */
.mark {
  display: block;
  width: 72px;
  height: 72px;
}

h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 8px;
}

p,
li {
  color: var(--muted);
}

p.lead {
  font-size: 1.2rem;
  color: var(--ink);
}

strong {
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.stamp {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}

th {
  color: var(--ink);
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 24px 0;
}

.card p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Wide enough for two hands rather than one: the tables have somewhere to
   breathe and the measure stays readable. */
@media (max-width: 480px) {
  body {
    padding: 0 20px 64px;
  }
  header {
    padding-top: 40px;
  }
}
