/* Donkeywork Games - one stylesheet for every page.
   Colours match the game's UI theme (assets/ui/theme.tres in the game): dark panels,
   gold headings, parchment-coloured text. */

:root {
  --bg: #13100c;
  --panel: #1e1913;
  --panel-edge: #3a2f22;
  --text: #dcd6c7;
  --muted: #a39b8a;
  --gold: #f2c759;
  --gold-dark: #b8892b;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --heading: Georgia, "Palatino Linotype", "Book Antiqua", serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
}

img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; }

a { color: var(--gold); }
a:hover { color: #ffe29a; }

h1, h2, h3 { font-family: var(--heading); color: var(--gold); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* --- Header and footer --- */
.site-header {
  border-bottom: 1px solid var(--panel-edge);
  background: rgba(19, 16, 12, .92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--heading); font-size: 1.3rem; font-weight: 700; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

.site-footer { border-top: 1px solid var(--panel-edge); margin-top: 80px; padding-block: 32px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* --- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(70px, 14vw, 150px);
  background: linear-gradient(180deg, rgba(19,16,12,.55), var(--bg)), url("images/bg_world_map_dim.png") center / cover;
  image-rendering: pixelated;
  text-align: center;
}
.hero p.lead { font-size: 1.25rem; max-width: 640px; margin: 0 auto 1.6em; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--muted); margin-bottom: .8em; }

/* --- Buttons --- */
.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  background: var(--gold);
  color: #1b140a;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
}
.button:hover { background: #ffe29a; border-color: #ffe29a; color: #1b140a; }
.button.ghost { background: transparent; color: var(--gold); }
.button.ghost:hover { background: rgba(242, 199, 89, .12); color: #ffe29a; }
.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Panels and layouts --- */
.panel { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 10px; padding: clamp(20px, 4vw, 36px); }

.feature-game { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; margin-top: -40px; position: relative; }
.feature-game img { border-radius: 6px; border: 1px solid var(--panel-edge); }
@media (max-width: 720px) { .feature-game { grid-template-columns: 1fr; } .feature-game img { max-width: 300px; margin: 0 auto; } }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 6px; border: 1px solid var(--panel-edge); }
.shots figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

ul.ticks { padding-left: 1.2em; }
ul.ticks li { margin-bottom: .4em; }
ul.ticks li::marker { color: var(--gold); }

blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 3px solid var(--gold-dark); color: var(--muted); font-style: italic; }

.note { color: var(--muted); font-size: .92rem; }

/* --- News --- */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--panel-edge); }
.post-list .date { color: var(--muted); font-size: .9rem; }
.post-list a.title { font-family: var(--heading); font-size: 1.35rem; text-decoration: none; }
article.post { max-width: 760px; margin: 0 auto; }
article.post .date { color: var(--muted); }
