* { box-sizing: border-box; font-weight: normal; }

body {
  margin: 0;
  padding: 0 20px;
  background: #fff;
  color: #111;
  font: 18px/1.6 "Comic Sans MS", "Comic Sans", "Comic Neue", cursive;
}

main { max-width: 640px; margin: 0 auto; padding: 48px 0 80px; }

h1 { font-size: 40px; line-height: 1.1; margin: 0 0 16px; }

a { color: #111; }
a:hover { background: #ffeb3b; }

.small { font-size: 14px; color: #666; }

table { width: 100%; border-collapse: collapse; margin: 40px 0 24px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid #111; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-bottom-width: 2px; }
.no { width: 3em; }
.status { color: #666; }

.home { margin: 0 0 32px; font-size: 15px; }

dl { display: grid; grid-template-columns: 4.5em 1fr; margin: 0 0 40px; font-size: 16px; }
dt { color: #666; }
dd { margin: 0; }

article p { margin: 0 0 18px; }
blockquote { margin: 0 0 18px; padding-left: 16px; border-left: 3px solid #111; }
.pause { text-align: center; letter-spacing: 6px; }

.sign { margin: 32px 0 48px; }

.verdict { border-top: 1px solid #111; padding-top: 16px; }
.verdict p { margin: 0 0 8px; }
button { font: inherit; background: none; border: 0; padding: 0 12px 0 0; text-decoration: underline; cursor: pointer; color: #111; }
button:hover { background: #ffeb3b; }
.say { min-height: 1.6em; }

nav { display: flex; justify-content: space-between; margin-top: 48px; font-size: 15px; }

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  thead { display: none; }
  tr { display: block; border-bottom: 1px solid #111; padding: 8px 0; }
  td { display: inline; border: 0; padding: 0 6px 0 0; }
  td:nth-child(3) { display: block; }
}

/* Experiments (/try/) */
.try .home { font-size: 14px; line-height: 1.9; }
.caps { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 0 0 8px; }
.center { text-align: center; }
.red { color: #c62828; }
.blank, .blank td { color: #bbb; }
.num { text-align: right; }
.ledger { margin-top: 24px; }

.court { list-style: none; padding: 0; margin: 32px 0; }
.court li { padding: 16px 0; border-bottom: 1px solid #111; }

.receipt { max-width: 320px; margin: 24px auto; padding: 24px 20px; border: 1px dashed #111; font-size: 15px; }
.receipt p { margin: 0 0 4px; }
.receipt .rule { color: #999; margin: 12px 0; white-space: nowrap; overflow: hidden; }
.item { display: flex; align-items: baseline; gap: 6px; }
.dots { flex: 1; border-bottom: 2px dotted #999; }
.sub { margin-bottom: 10px !important; padding-left: 1em; }

.token { text-align: center; border: 2px solid #111; padding: 24px; margin: 24px 0 40px; }
.token .big { font-size: 120px; line-height: 1; margin: 8px 0 16px; }
.tokens { list-style: none; padding: 0; }
.tokens li { padding: 8px 0; border-bottom: 1px solid #111; }
.tk { display: inline-block; min-width: 2.5em; }

.card { border: 1px solid #111; padding: 20px; margin-top: 24px; }
.card td { height: 2.2em; }

/* Letter experiments (/try/letter/) */
del { color: #999; }
.note { display: none; }
.marked .note {
  display: inline-block;
  color: #c62828;
  font-size: 15px;
  line-height: 1.2;
  transform: rotate(-3deg);
  margin: 0 4px;
}
.marked p { position: relative; }
@media (min-width: 1000px) {
  .marked .note { position: absolute; right: -190px; top: 0; width: 160px; margin: 0; }
}

.mini { font-size: 14px; color: #666; padding-left: 8px; }
.say.inline { display: inline; min-height: 0; font-size: 14px; padding-left: 6px; }
.drafts { margin: -24px 0 32px; font-size: 15px; }
.receipts { font-size: 14px; color: #666; text-align: right; margin: -32px 0 40px; }
.count { margin: -24px 0 32px; }

.slip { margin-top: 48px; }
.slip p { margin: 0 0 10px; }
.cut { white-space: nowrap; overflow: hidden; color: #999; margin-bottom: 20px !important; }
.tick { padding: 2px 0; text-decoration: none; text-align: left; }
.tick:hover { text-decoration: underline; }

.right { text-align: right; }
.letter { margin-bottom: 40px; }
.letter > p { margin: 0 0 18px; }

.form { border: 2px solid #111; padding: 24px; }
.form h1 { margin-bottom: 24px; }
.fields { margin: 0 0 24px; font-size: 16px; }
.fields td:first-child { width: 55%; color: #666; }
.statement { border: 1px solid #111; padding: 16px; margin-bottom: 32px; min-height: 120px; }
.sigs { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(10, 1fr); border-top: 1px solid #111; border-left: 1px solid #111; margin: 24px 0 12px; }
.cell { aspect-ratio: 1; border-right: 1px solid #111; border-bottom: 1px solid #111; padding: 4px; font-size: 12px; line-height: 1.2; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; position: relative; }
.cell.empty { color: #ccc; }
.cell .who { font-size: 10px; margin-top: 2px; }
.cell .stamp { position: absolute; right: 4px; bottom: 2px; font-size: 16px; color: #c62828; }
.cell.gone .who { text-decoration: line-through; }
.cell .star { margin: auto; font-size: 22px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(5, 1fr); } }

/* Kit on the real page */
.formtitle { font-size: 30px; margin: 0 0 20px; }
.form { margin-bottom: 32px; }
.byline { margin-top: 32px; }
