/* app/page.css — the reading pages: How This Was Made, Privacy, Embed.
   Same parchment, ink and plum as the game's cards, set for reading: one
   column of about seventy characters, Atkinson Hyperlegible throughout. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #EDE0C2;
  color: #1A0D07;
  font: 1.0625rem/1.6 'Atkinson Hyperlegible', 'Calibri', system-ui, sans-serif;
}
main {
  box-sizing: border-box;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
a { color: #3D1238; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid #3D1238; outline-offset: 2px; border-radius: 2px; }

.back { margin: 0 0 1.5rem; font-size: 0.9375rem; }
h1 {
  margin: 0 0 0.5rem;
  font-family: 'Poppy 70s Continental', 'Atkinson Hyperlegible', 'Calibri', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  line-height: 1.1;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid #3D1238;
}
.lede { margin: 1rem 0 0; font-size: 1.1875rem; line-height: 1.5; }
.stamp { margin: 0.5rem 0 0; font-size: 0.875rem; color: #5C4030; }
h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.25;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #3D1238;
}
h3 { margin: 1.5rem 0 0.25rem; font-size: 1.05rem; }
p, ul, ol, dl, table { margin: 0.75rem 0; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

/* A ruled ledger, like the game's day board: name on the left, what it is
   on the right, a hairline between rows. */
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.5rem 0.5rem 0; border-bottom: 1px solid #C0A070; }
th { font-size: 0.8125rem; letter-spacing: 0.04em; color: #5C4030; }
td:first-child { font-weight: 700; padding-right: 1rem; width: 30%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.875em; overflow-wrap: anywhere; }
td code { white-space: nowrap; }

/* The author's own definitions, set apart the way a rulebook sets a rule. */
.def {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #FDF4DC;
  border: 1px solid #C0A070;
  border-radius: 0 8px 0 8px;
}
.def p { margin: 0.4rem 0; }
.def strong { color: #3D1238; }

pre { overflow-x: auto; padding: 0.75rem 1rem; background: #FDF4DC; border: 1px solid #C0A070; border-radius: 0 8px 0 8px; font-size: 0.9rem; }

.foot {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid #C0A070;
  font-size: 0.875rem;
  color: #5C4030;
}
.foot a + a::before { content: ''; display: inline-block; width: 1rem; }

@media (max-width: 30rem) {
  td:first-child { width: auto; }
  th, td { display: block; border-bottom: 0; padding: 0.15rem 0; }
  tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid #C0A070; }
  thead { display: none; }
}
