/* The privacy and terms pages (public/privacy.html, public/terms.html): plain
   reading pages in the game's paper and ink. They are static files, so they
   carry their own copy of the few colours they need. */

:root {
  --paper: #f6f1e4;
  --paper-edge: #e2dac6;
  --ink: #1f3a2b;
  --ink-soft: #55695c;
  --green: #2f7a4c;
  --gold: #b8892f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  margin: 4px 0 8px;
  font-size: 36px;
  line-height: 1.15;
}

h1[id] {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-edge);
}

h2 {
  margin: 32px 0 8px;
  font-size: 22px;
}

p,
ul {
  margin: 10px 0;
}

ul {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

a {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.eyebrow {
  margin: 24px 0 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
}

.draft {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(184, 137, 47, 0.12);
  font-size: 14px;
}

mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(184, 137, 47, 0.28);
  color: inherit;
}

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

th,
td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--paper-edge);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.foot {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-edge);
  font-size: 14px;
}

/* On a phone the three-column table becomes one block per row. */
@media (max-width: 560px) {
  thead {
    display: none;
  }

  tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--paper-edge);
  }

  td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  td:first-child {
    font-weight: 600;
  }

  td:last-child {
    font-size: 13px;
    color: var(--ink-soft);
  }
}
