/* Self-hosted Libre Franklin (variable). Two files cover all weights + italics. */
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;              /* the full variable range in one file */
  font-display: swap;
  src: url("/css/fonts/LibreFranklin-VariableFont_wght.ttf") format("truetype-variations");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/css/fonts/LibreFranklin-Italic-VariableFont_wght.ttf") format("truetype-variations");
}

:root {
  color-scheme: light dark;
  --paper:  #ffffff;
  --ink:    #16181a;
  --muted:  #6e7479;
  --rule:   #e6e8ea;
  --forest: #1a5d38;
  --link-underline: rgba(26, 93, 56, 0.35);
  --font: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #16181a;   /* the old ink, now the page */
    --ink:    #e8e9ea;   /* off-white, not pure #fff — softer on a dark field */
    --muted:  #8b9096;   /* lifted so it stays legible on dark */
    --rule:   #2a2d30;   /* hairlines, barely-there */
    --forest: #5fb985;   /* lighter, slightly desaturated — forest reads muddy in the dark */
    --link-underline: rgba(95, 185, 133, 0.4);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 88px 24px 120px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 600px; margin: 0 auto; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.021em; line-height: 1.15; margin: 0 0 6px; }
.standfirst { font-size: 19px; color: var(--muted); margin: 0 0 22px; letter-spacing: -0.006em; }
p { margin: 0 0 16px; }
a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: var(--link-underline); }
a:hover { text-decoration-color: var(--forest); }
a:focus-visible, .row:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 34px; font-size: 15px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-block; margin: 0 0 26px; font-size: 15px; text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
section { margin-top: 48px; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.row { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.row:last-child { border-bottom: none; }
.row .title { font-weight: 500; flex: 1 1 auto; letter-spacing: -0.004em; }
.row .note { display: block; font-weight: 400; font-size: 15px; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.row .meta { flex: 0 0 auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
a.row:hover .title { color: var(--forest); }
a.row:hover .note { color: var(--ink); }
.empty { color: var(--muted); padding: 11px 0 0; margin: 0; }
.more { margin-top: 18px; font-size: 15px; }
footer { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; }
footer .ack { color: var(--ink); margin: 0 0 10px; line-height: 1.55; }
footer .fine { color: var(--muted); margin: 0; }
@media (max-width: 520px) {
  body { padding: 56px 20px 80px; }
  h1 { font-size: 28px; }
  .standfirst { font-size: 18px; }
  .row { gap: 12px; }
}

/* --- posts --------------------------------------------------------- */
.post-meta { font-size: 14px; color: var(--muted); margin: 0 0 30px; }
article h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.004em; margin: 32px 0 8px; }
article ul { margin: 0 0 16px; padding-left: 20px; }
article li { margin-bottom: 6px; }
blockquote { margin: 0 0 16px; padding: 0 0 0 16px; border-left: 2px solid var(--rule); color: var(--muted); }

/* --- boardgame grid ------------------------------------------------ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 18px;
  margin-top: 28px;
}
.game { text-decoration: none; color: inherit; display: block; }
.game-cover {
  aspect-ratio: 1 / 1;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game.no-img .game-cover::after {
  content: attr(data-name);
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
  text-align: center;
}
.game-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}
.game-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.game:hover .game-name { color: var(--forest); }
.game-rating {
  flex: 0 0 auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
}
@media (max-width: 520px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 12px; }
}
