/* Buikko Games site, Blue look (policies/brand.yaml). Colours and type come
   from the brand file; change them there first. */
@font-face { font-family: "Jost"; src: url("fonts/Jost.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --brand-blue: #1D3CB0;
  --panel: #2446C0;
  --line: rgb(244 244 241 / 0.18);
  --paper: #F4F4F1;
  --paper-soft: rgb(244 244 241 / 0.78);
  --graphite: #16181B;
  --amber: #F0A400;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--brand-blue);
  color: var(--paper);
  font: 400 1.125rem/1.55 "Source Sans 3", system-ui, sans-serif;
}
a { color: var(--paper); text-underline-offset: 0.2em; }
a:focus-visible, .play:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 0.5em; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand span { font: 600 1.6rem/1 "Jost", sans-serif; color: var(--paper-soft); }

main { padding: clamp(40px, 8vw, 88px) var(--gutter) 64px; max-width: 1440px; }
h1, h2 { font-family: "Jost", sans-serif; font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 12ch; }
.lead { color: var(--paper-soft); font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin: 20px 0 48px; }
h2 { font-size: 1.6rem; margin-bottom: 20px; }

.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.game img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.game h3 { font: 600 1.5rem/1.1 "Jost", sans-serif; margin: 0; }
.play {
  background: var(--amber); color: var(--graphite); font-weight: 600;
  padding: 10px 22px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.empty { color: var(--paper-soft); max-width: 40ch; margin: 0; }

.follow { margin-top: 56px; }
.follow ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }

footer {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--paper-soft); font-size: 1rem;
}
footer p { margin: 0 0 8px; }

.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); max-width: none; margin-bottom: 12px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--paper-soft); }
