/* Blood at Sundown – website. Colours and fonts come from the game itself. */
@font-face { font-family: "Rye"; src: url("/fonts/Rye-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/fonts/RobotoSlab.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #170d08;      /* the dark wood of the menu bar */
  --wood: #2a1a12;     /* planks */
  --wood-line: #5a3a22;
  --paper: #ead3a6;    /* wanted poster */
  --paper-ink: #3a2414;
  --blood: #a3221a;
  --gold: #e0a845;
  --cream: #f3e3c3;
  --muted: #c9b38c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 17px/1.65 "Roboto Slab", Georgia, serif;
}
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* language: both texts are in the page, the html lang decides */
html[lang="de"] [lang="en"]:not(html), html[lang="en"] [lang="de"]:not(html) { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .rye { font-family: "Rye", Georgia, serif; font-weight: 400; letter-spacing: .5px; line-height: 1.15; }
h2 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 14px; color: var(--cream); }
h3 { font-size: 22px; margin: 0 0 4px; }

/* top bar */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 14px 18px; }
.langswitch { display: flex; border: 2px solid rgba(243,227,195,.55); border-radius: 4px; overflow: hidden; }
.langswitch button {
  font: 600 13px "Roboto Slab", serif; letter-spacing: 1px; color: var(--cream);
  background: rgba(23,13,8,.55); border: 0; padding: 6px 11px; cursor: pointer;
}
.langswitch button[aria-pressed="true"] { background: var(--blood); }

/* buttons: the game's planks */
.plank {
  display: inline-block; font: 22px "Rye", Georgia, serif; color: #fff; text-decoration: none;
  background: var(--blood); padding: 15px 30px; border-radius: 4px;
  border: 3px solid var(--gold); box-shadow: 0 4px 0 #5e120c;
}
.plank:hover { background: #b52a20; }
.plank.soon { background: var(--wood); border-color: var(--wood-line); box-shadow: 0 4px 0 #120a06; color: var(--muted); cursor: default; }
.plank small { display: block; font: 600 12px "Roboto Slab", serif; letter-spacing: 1px; margin-top: 4px; color: inherit; opacity: .85; }

/* footer */
footer { border-top: 4px solid var(--wood-line); background: var(--wood); padding: 34px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--cream); }

/* text pages (privacy, delete) */
.page { padding: 70px 0 70px; }
.page .brand { display: inline-block; margin-bottom: 22px; }
.page .brand img { width: 180px; }
.sheet {
  background: var(--wood); border: 4px solid #7a3a1a; border-radius: 6px; padding: 30px 26px 26px;
}
.sheet h1 { font-size: clamp(23px, 6.4vw, 38px); margin: 0 0 6px; overflow-wrap: anywhere; hyphens: auto; }
.sheet h2 { font-family: "Roboto Slab", serif; font-weight: 700; font-size: 19px; color: var(--gold); margin: 30px 0 6px; letter-spacing: 0; }
.sheet p, .sheet li { margin: 0 0 12px; }
.sheet .meta { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.sheet hr { border: 0; border-top: 2px solid #7a3a1a; margin: 40px 0; }
.sheet strong { color: #fff; }
.sheet a { overflow-wrap: anywhere; }
@media (max-width: 480px) { .sheet { padding: 24px 18px 20px; } }
