/* Generated by tools/FlickFrag.Site from site/brand/source; do not edit by hand.
   Every colour below is measured off the owner's logo exports. The contrast ratios in
   the comments are WCAG, against the ground each colour is used on. */
:root {
  --orange: #cd4e05;        /* the field; the brand */
  --orange-deep: #6d2903;   /* orange as text on --bone (8.3:1) */
  --orange-lift: #cf550f;   /* orange as text on --ink (4.6:1) */
  --ink: #050c12;           /* the mark's black; text on --bone (15.3:1) */
  --on-orange: #000000;        /* text on the orange field (4.7:1) */
  --sand: #cbb38c;          /* the grenade tile's paper */
  --bone: #ebe2d3;          /* the page's ground */
  --paper: #f6f2eb;         /* cards and panels */
  --muted: #5c5d5b;         /* secondary text on --bone (5.2:1) */
  --on-ink: #c2bbb0;        /* text on the dark bands (10.3:1) */
  --on-ink-quiet: #9d9991;  /* secondary text there (6.9:1) */
  --line: #bdb7ac;
  --line-strong: #81807a;
  --line-on-ink: #414444;

  /* The dark ground the pages are actually drawn on. */
  --bg: #050c12;           /* the page */
  --panel: #13191e;         /* cards, tables, the header bar */
  --panel-high: #1e2427;    /* a panel that is hovered or nested */
  --well: #03070a;          /* code blocks, below the page */
  --text: #b8b3a9;          /* body text on --bg (9.4:1) */
  --text-dim: #9d9991;      /* secondary text on --bg (6.9:1) */
  --accent: #cf550f;        /* links, buttons, badges on --bg (4.6:1) */
  --accent-chip: #0f0f11;   /* the ground under a badge (4.5:1 with --accent) */
  --rule: #252a2d;
  --rule-strong: #454848;
}
/* flickfrag.com: one stylesheet, no framework, no build step at the far end.
   The colour tokens above this line are generated from site/brand/source by the site builder;
   everything below is written by hand and only ever refers to them by name.

   The shape of this site is a README, not a brochure: one dark column, text you can read for a
   while, monospace for versions, hashes and file names, orange only where something is meant to
   be clicked. */

@font-face {
  font-family: "Inter var";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dark by default and dark only: the game is played in a dark room and the pages are read in
     one. There is no light twin to keep in step (K44 in docs/kararlar.md). */
  color-scheme: dark;

  --wrap: 860px;
  --wide: 1100px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 6px;
  --measure: 70ch;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;

  --sans: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --h1: clamp(30px, 4.4vw, 42px);
  --h2: clamp(21px, 2.2vw, 26px);
  --h3: 17px;
  --body: 16px;
  --small: 14px;
  --tiny: 12.5px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--body)/1.7 var(--sans);
  font-synthesis-weight: none;
  overflow-wrap: break-word;
}

img, picture, svg, video { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-weight: 700;
  color: var(--bone);
  text-wrap: balance;
}
h1 { font-size: var(--h1); letter-spacing: -0.025em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1em; max-width: var(--measure); }

code, pre, .hash, .num, time, .mono { font-variant-numeric: tabular-nums; }
code, pre, .hash, .mono { font-family: var(--mono); }
code, .hash { font-size: 0.92em; }
code {
  color: var(--bone);
  background: var(--well);
  border-radius: 3px;
  padding: 1px 5px;
}

.muted { color: var(--text-dim); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stack-top { margin: var(--s4) 0 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.wide { max-width: var(--wide); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--accent);
  color: var(--on-orange);
  padding: 10px 18px;
  font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- the brand lockup ----------------------------------------------------------------------- */

.mark, .wordmark { display: block; fill: currentColor; }
.mark { width: auto; height: 26px; }
.wordmark { width: auto; height: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- header ---------------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}

.head-row {
  display: flex;
  align-items: center;
  gap: var(--s2) var(--s3);
  flex-wrap: wrap;
  min-height: 52px;
  padding-block: 8px;
}

.nav { flex: 1 1 auto; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--small);
  padding: 4px 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--accent); }

.lang {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 4px 9px;
  font-size: var(--tiny);
  font-family: var(--mono);
  text-decoration: none;
  color: var(--text-dim);
}
.lang:hover { color: var(--bone); border-color: var(--accent); }
.lang abbr { text-decoration: none; border: 0; text-transform: uppercase; }
.lang-full { display: none; }

/* ---- the page head: title, status line, one paragraph ---------------------------------------- */

.page { padding-block: clamp(32px, 6vw, 56px) 0; }
.page h1 { margin-bottom: var(--s2); }

.masthead .wordmark {
  height: auto;
  width: clamp(180px, 30vw, 260px);
  color: var(--bone);
  margin-bottom: var(--s3);
}

/* One line of machine facts under the title: version, date, commit. */
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) 10px;
  margin: 0 0 var(--s3);
  font-family: var(--mono);
  font-size: var(--small);
  color: var(--text-dim);
  max-width: none;
}
.status .sep { color: var(--rule-strong); }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--tiny);
  line-height: 1.5;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-chip);
  color: var(--accent);
  white-space: nowrap;
}

.lede { font-size: 17px; color: var(--text); max-width: var(--measure); }

/* ---- buttons --------------------------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: var(--s3) 0 0;
  align-items: stretch;
  max-width: none;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--small);
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-orange); border-color: var(--accent); }
.btn-primary:hover { background: var(--bone); border-color: var(--bone); color: var(--bg); }
.btn-ghost { border-color: var(--rule-strong); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--bone); background: var(--panel-high); }
.btn-sub { font-family: var(--mono); font-size: var(--tiny); opacity: 0.8; font-weight: 400; }

.more {
  font-size: var(--small);
  text-decoration: none;
  white-space: nowrap;
}
.more::after { content: " →"; }

/* ---- sections -------------------------------------------------------------------------------- */

.section { padding-block: clamp(28px, 5vw, 44px); }
.section > .wrap > h2 {
  font-size: var(--h2);
  margin-bottom: var(--s3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 { margin: 0; border: 0; padding: 0; }

/* ---- what works / what is next --------------------------------------------------------------- */

.columns {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.checklist { list-style: none; margin: 0; padding: 0; font-size: var(--small); }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.checklist li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
}
.checklist.done li::before { content: "[x]"; color: var(--accent); }
.checklist.todo li::before { content: "[ ]"; color: var(--text-dim); }
.columns h3 { font-size: var(--h3); margin-bottom: var(--s2); }

/* ---- lists of dated things (news, releases, files) -------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 2px var(--s2);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.rows li:last-child { border-bottom: 0; }
.rows time { font-family: var(--mono); font-size: var(--tiny); color: var(--text-dim); }
.rows a { color: var(--bone); text-decoration: none; font-weight: 600; }
.rows a:hover { color: var(--accent); text-decoration: underline; }
.rows p { grid-column: 2; margin: 0; font-size: var(--small); color: var(--text-dim); }
.rows .meta { grid-column: 2; font-family: var(--mono); font-size: var(--tiny); color: var(--text-dim); }

/* ---- screenshots ----------------------------------------------------------------------------- */

.shots { display: grid; gap: var(--s3); }
.shots-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--well); }
.shot figcaption {
  padding: 10px 14px;
  font-size: var(--tiny);
  color: var(--text-dim);
  border-top: 1px solid var(--rule);
  line-height: 1.5;
}

/* With an embed in it this is a 16:9 frame; empty, it is one quiet line, not a big dashed box. */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { aspect-ratio: auto; border: 0; background: none; }
.video-empty p { margin: 0; font-size: var(--small); }

/* ---- panels ---------------------------------------------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s3);
}
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3 { font-size: var(--h3); margin-bottom: var(--s2); }

.note {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s3);
  font-size: var(--small);
}
.note > :last-child { margin-bottom: 0; }

/* ---- prose ----------------------------------------------------------------------------------- */

.prose { color: var(--text); max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.8em; font-size: var(--h3); }
.prose h3 { margin-top: 1.8em; font-size: var(--body); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; max-width: var(--measure); }
.prose li { margin-bottom: 0.35em; }
.prose strong { font-weight: 600; color: var(--bone); }
.prose pre {
  background: var(--well);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
  font-size: var(--small);
}
.prose pre code { background: none; padding: 0; color: var(--text); }
.prose blockquote {
  margin: 0 0 1em;
  padding-left: var(--s2);
  border-left: 2px solid var(--rule-strong);
  color: var(--text-dim);
}
.prose a { text-decoration: underline; }

.table-wrap { overflow-x: auto; max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--small); }
.prose th, .prose td {
  text-align: left;
  padding: 9px 16px 9px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose th { color: var(--text-dim); font-weight: 600; font-size: var(--tiny); }
.prose td:first-child { color: var(--bone); white-space: nowrap; padding-right: var(--s3); }

/* ---- changelog ------------------------------------------------------------------------------- */

.release { padding-bottom: var(--s4); }
.release + .release { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.release h2, .release h3 { scroll-margin-top: 80px; }
.release h2 {
  font-size: var(--h3);
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  flex-wrap: wrap;
  border: 0;
  padding: 0;
}
.release .prose { font-size: var(--small); }

/* ---- news ------------------------------------------------------------------------------------ */

.post-head { margin-bottom: var(--s4); }
.post-head h1 { font-size: var(--h2); margin-bottom: var(--s2); }
.post-body { max-width: var(--measure); }
.post-nav { margin-top: var(--s5); display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---- links row (feed, discord, mail) --------------------------------------------------------- */

.links {
  display: grid;
  gap: var(--s2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: var(--s3);
}
.links a {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--bone);
  background: var(--panel);
}
.links a:hover { border-color: var(--accent); background: var(--panel-high); }
.links b { font-size: var(--small); font-weight: 600; }
.links span { font-size: var(--tiny); color: var(--text-dim); }

/* ---- download facts -------------------------------------------------------------------------- */

.facts {
  display: grid;
  gap: 0;
  margin: var(--s3) 0 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  font-size: var(--small);
}
.facts > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--s2);
  padding: 10px 14px;
  align-items: baseline;
}
.facts > div + div { border-top: 1px solid var(--rule); }
.facts dt { color: var(--text-dim); font-size: var(--tiny); }
.facts dd { margin: 0; font-family: var(--mono); font-size: var(--tiny); color: var(--bone); }
.facts .hash { word-break: break-all; color: var(--text-dim); }

/* ---- footer ---------------------------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: var(--s6);
  padding-block: var(--s5) calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  font-size: var(--small);
  color: var(--text-dim);
}
.foot-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.foot-brand p { margin: var(--s2) 0 0; max-width: 32ch; font-size: var(--tiny); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.foot-nav a { color: var(--text-dim); text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }
/* align-content, or the grid stretches four lines over the height of the tallest column. */
.build { display: grid; gap: 4px; align-content: start; margin: 0; font-family: var(--mono); font-size: var(--tiny); max-width: none; }
.build b { color: var(--text); font-weight: 400; }

/* ---- small screens, motion, print -------------------------------------------------------------- */

@media (min-width: 760px) {
  .lang abbr { display: none; }
  .lang-full { display: inline; }
}

@media (max-width: 599px) {
  .head-row { min-height: 48px; gap: var(--s2); }
  .nav { order: 3; flex-basis: 100%; }
  .nav ul { gap: 2px var(--s2); }
  .head-row .wordmark { display: none; }
  .rows li { grid-template-columns: 1fr; }
  .rows p, .rows .meta { grid-column: 1; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .cta-row, .links { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .rows a { color: #000; }
  .panel, .shot, .facts { border-color: #999; background: #fff; }
}
