/* The front page of mapbattlegames.com: a printed sheet on a dark table, in the manner of the games' title cards. */
:root {
  --ink: #2b1d10;
  --paper: #efe3c2;
  --paper2: #e4d3a6;
  --wood: #2a2018;
  --rule: #a08a5c;
  --soft: #5a4630;
  --red: #a3261d;
  --serif: "IM Fell English", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --caps: "IM Fell English SC", "IM Fell English", Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--wood); }
body { margin: 0; min-height: 100vh; padding: 28px 14px 40px; background: radial-gradient(ellipse at top, #3a2c20, #120c06 75%); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.45; }
a { color: #6d2416; }
a:hover { color: var(--red); }

.sheet { max-width: 1020px; margin: 0 auto; background: var(--paper); border: 1px solid #3b2a14; outline: 3px double var(--soft); outline-offset: -10px; padding: 34px 44px 26px; box-shadow: 0 12px 40px #000a; }

header { text-align: center; border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 26px; }
.over { margin: 0 0 2px; font-style: italic; color: var(--soft); font-size: 17px; }
h1 { font-family: var(--caps); font-weight: normal; font-size: 64px; letter-spacing: 2px; line-height: 1.05; margin: 0; }
.tag { margin: 8px 0 0; font-style: italic; font-size: 21px; color: var(--soft); }

.games { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.game { display: flex; flex-direction: column; background: linear-gradient(#f5ebcd, #e9dab0); border: 1px solid #8a744c; border-radius: 6px; padding: 18px 22px 20px; box-shadow: 0 2px 8px #0003; }
.flag { display: block; align-self: center; width: 62%; margin: 2px 0 12px; box-shadow: 0 3px 8px #0005; line-height: 0; }
.flag img { display: block; width: 100%; height: auto; }
.game h2 { font-family: var(--caps); font-weight: normal; font-size: 38px; line-height: 1.1; margin: 0; text-align: center; }
.game h2 a { color: var(--ink); text-decoration: none; }
.game h2 a:hover { color: var(--red); }
.years { margin: 2px 0 10px; text-align: center; font-style: italic; color: var(--soft); }
.game p { margin: 0 0 10px; }
.game ul { margin: 0 0 14px; padding-left: 20px; font-size: 16.5px; }
.game li { margin: 3px 0; }
.go { margin: auto 0 0; padding-top: 6px; text-align: center; }

.button { display: inline-block; font-family: var(--serif); font-size: 20px; text-decoration: none; border-radius: 4px; padding: 9px 26px; border: 1px solid #6b5230; background: linear-gradient(#f6ecd0, #dcc891); color: var(--ink); box-shadow: 0 1px 0 #fff8 inset, 0 1px 2px #0005; }
.button.primary { background: linear-gradient(#b8452f, #8a2418); color: #fff3d8; border-color: #4f120b; text-shadow: 0 1px 0 #0006; }
.button.primary:hover { background: linear-gradient(#cc5238, #9a2a1c); color: #fff; }
.button:active { transform: translateY(1px); }

.notes { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 16px; }
.notes h3 { font-family: var(--caps); font-weight: normal; font-size: 26px; margin: 0 0 6px; text-align: center; }
.notes p { margin: 0 auto 10px; max-width: 760px; }

footer { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 12px; text-align: center; font-size: 15px; font-style: italic; color: var(--soft); }
footer p { margin: 0; }

/* the page that says there is nothing here */
.lost { max-width: 560px; text-align: center; }
.lost header { border-bottom: none; margin-bottom: 6px; padding-bottom: 0; }
.lost p { margin: 0 0 14px; }

@media (max-width: 820px) {
  body { padding: 12px 8px 24px; font-size: 17px; }
  .sheet { padding: 24px 20px 20px; outline-offset: -7px; }
  h1 { font-size: 44px; letter-spacing: 1px; }
  .tag { font-size: 18px; }
  .games { grid-template-columns: 1fr; gap: 20px; }
  .game h2 { font-size: 32px; }
  .flag { width: 56%; }
}
