:root {
  color-scheme: light;
  /* Same tokens as the game page. */
  --paper: #f7eedd;
  --paper-deep: #efe2c8;
  --sheet: #fffdf8;
  --ink: #2c3a29;
  --ink-soft: #5a5a44;
  --moss: #47603f;
  --moss-deep: #364b30;
  --rule: #d3c4a3;
  --coral: #a93f38;
  --speck: rgba(122, 92, 44, .04);
  --serif: "Iowan Old Style", "New York", ui-serif, Palatino, "Palatino Linotype", Georgia, serif;
  --header: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 18px/1.6 var(--serif);
  background-color: var(--paper);
  background-image:
    radial-gradient(var(--speck) .7px, transparent 1.1px),
    radial-gradient(var(--speck) .6px, transparent 1px),
    radial-gradient(ellipse at 20% 0%, rgba(255, 250, 235, .9), transparent 60%);
  background-size: 7px 11px, 13px 5px, 100% 100%;
  background-position: 0 0, 3px 4px, 0 0;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--moss-deep); outline-offset: 2px; border-radius: 3px; }
.defs { position: absolute; width: 0; height: 0; }
.margin { display: none; }

header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--header); padding: 8px 16px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; }
.brand img { flex: none; width: 40px; height: 40px; }
.wordmark { font-size: 17px; max-width: 9.5em; line-height: 1.08; font-weight: 500; letter-spacing: -.008em; color: var(--moss-deep); }
.site-nav { display: flex; flex: none; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 7px; font-size: 16px; font-style: italic; text-decoration: none; color: var(--moss-deep); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.prose { position: relative; z-index: 1; max-width: 40rem; margin: 0 auto; padding: 12px 16px 44px; overflow-wrap: break-word; }
.prose h1 { font-size: 38px; line-height: 1.08; font-weight: 500; letter-spacing: -.012em; color: var(--moss-deep); }
.lede { margin-top: 12px; font-size: 21px; line-height: 1.35; font-style: italic; color: var(--ink-soft); }
.prose h2 { display: flex; align-items: center; gap: 12px; margin-top: 38px; font-size: 24px; line-height: 1.2; font-weight: 500; color: var(--moss-deep); }
.prose h2::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.prose h3 { margin-top: 22px; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--moss-deep); }
.prose p, .prose li { margin-top: 10px; }
.prose h3 + p { margin-top: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.updated { margin-top: 8px; font-size: 16px; font-style: italic; color: var(--ink-soft); }
.go { display: inline-flex; align-items: center; min-height: 48px; margin-top: 30px; padding: 0 20px; background: var(--moss); color: var(--sheet); border-radius: 4px; text-decoration: none; }
.go:hover { background: var(--moss-deep); }

.site-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0 20px; max-width: 40rem; margin: 0 auto; padding: 6px 16px 28px; border-top: 1px dotted var(--rule); font-size: 16px; font-style: italic; color: var(--moss-deep); }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 900px) {
  :root { --header: 88px; }
  header { max-width: 1080px; margin: 0 auto; }
  .brand { gap: 12px; }
  .brand img { width: 52px; height: 52px; }
  .wordmark { font-size: 30px; max-width: none; }
  .site-nav a { padding: 0 12px; font-size: 19px; }
  .prose { padding-top: 28px; }
  .prose h1 { font-size: 50px; }
  .lede { font-size: 23px; }
}
@media (min-width: 1240px) {
  .margin { display: block; position: fixed; top: 0; bottom: 0; width: 190px; height: 100%; pointer-events: none; }
  .margin-l { left: -72px; }
  .margin-r { right: -72px; transform: scaleX(-1); }
}
@media (prefers-reduced-motion: no-preference) {
  .go { transition: background-color .14s ease; }
}
