/* The site around the game: a thin header, the game itself as the first screen of the home page,
   and the written pages as sheets of parchment. /g/37ee700025 is replaced by the game's versioned address. */
@font-face { font-family: "Bodoni Moda"; src: url("/g/37ee700025/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Besley; src: url("/g/37ee700025/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #17120d; --ink: #3b2814; --paper: #efdfb6; --brass: #e3b04b; --brass-l: #f7dc8f; --red: #7d1a14;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --slab: Besley, Superclarendon, Rockwell, Georgia, serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: #e9dfc8; font: 17px/1.6 var(--serif);
  background-image: radial-gradient(110% 50% at 50% 0, rgba(227,176,75,.1), transparent 60%); }
a { color: inherit; }

.top { height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 700 19px/1 var(--display); color: var(--brass-l); text-decoration: none; letter-spacing: .01em; }
.top nav, .foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a, .foot nav a { font: 700 12px/1 var(--slab); letter-spacing: .12em; text-transform: uppercase; color: #cdb98c; text-decoration: none; padding: 8px 0; }
.top nav a:hover, .foot nav a:hover { color: var(--brass-l); }

/* home: the game is the first screen; the heading and the article follow it */
.home { display: flex; flex-direction: column; }
.home .game-box { order: -1; width: 100%; height: calc(100vh - 44px); height: calc(100svh - 44px); min-height: 480px; max-height: 900px; }
.home h1 { margin: 34px auto 0; padding: 0 18px; max-width: 760px; text-align: center; font: 700 clamp(26px, 5vw, 40px)/1.15 var(--display); color: var(--brass-l); }

.prose { width: min(100% - 24px, 760px); margin: 26px auto 40px; padding: clamp(18px, 4vw, 40px); border-radius: 6px; color: var(--ink);
  background: linear-gradient(175deg, #f1e2ba, #dfc996 70%, #d2b981);
  box-shadow: 0 0 0 1px #140b04, 0 0 0 7px #4a2c12, 0 0 0 8px #140b04, 0 20px 50px rgba(0,0,0,.6), inset 0 0 40px rgba(92,56,16,.35); }
.prose h1 { margin: 0 0 18px; font: 700 clamp(28px, 5.4vw, 42px)/1.12 var(--display); color: #5a100c; }
.prose h2 { margin: 34px 0 10px; font: 700 clamp(22px, 3.8vw, 28px)/1.2 var(--display); color: #5a100c; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font: 700 17px/1.3 var(--slab); color: #3b2814; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.prose code { font: 600 .92em/1 var(--slab); }
.table { overflow-x: auto; margin: 6px 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
.prose th { text-align: left; font: 700 12px/1.2 var(--slab); letter-spacing: .08em; text-transform: uppercase; color: #5a3410; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid rgba(59,40,20,.3); vertical-align: top; }
.prose tbody tr:nth-child(odd) { background: rgba(59,40,20,.06); }
/* short columns keep to one line and the last, wordy one gets the room; on a phone the table scrolls sideways inside its own box */
.prose th:not(:last-child), .prose td:not(:last-child) { white-space: nowrap; }
.prose td:last-child { min-width: 200px; }
.toc { margin: 0 0 22px; padding: 12px 16px; border-radius: 6px; background: rgba(59,40,20,.09); box-shadow: inset 0 0 0 1px rgba(59,40,20,.3); font-size: 15px; }
.toc b { font: 700 12px/1 var(--slab); letter-spacing: .12em; text-transform: uppercase; color: #5a3410; }
.toc ol { margin: 8px 0 0; gap: 3px; columns: 2; display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 8px; }
.card { display: grid; gap: 4px; padding: 14px 16px; border-radius: 8px; text-decoration: none; color: #f1dfb4 !important; background: linear-gradient(180deg, #7d1a14, #5a100c); box-shadow: 0 0 0 2px var(--brass), 0 6px 14px rgba(40,20,5,.45); }
.card b { font: 700 18px/1.1 var(--display); color: #fff3d6; }
.card span { font-size: 14.5px; line-height: 1.4; }
.back { margin: 30px 0 0 !important; text-align: center; font: 700 14px/1.3 var(--slab); }

.foot { padding: 8px 16px 34px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.foot p { margin: 0; font-size: 13px; color: #9c8c6d; }
@media (max-width: 520px) { body { font-size: 16.5px; } .toc ol { columns: 1; } }
