/* FinalCommander's site: one file, no framework, no fetching. */
:root {
  --bg: #11131a;
  --fg: #d7dae0;
  --dim: #8b93a7;
  --accent: #55ffff;
  --frame: #2b3040;
  --code-bg: #1a1e29;
  --link: #8fd3ff;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --fg: #1c2027;
    --dim: #5d6473;
    --accent: #006f84;
    --frame: #d8dce6;
    --code-bg: #f1f3f8;
    --link: #0b5fa4;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--frame);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}
/* The mark carries its own background and its own corners, so it needs nothing from the
   page and reads the same under either colour scheme. */
.wordmark img { width: 30px; height: 30px; border-radius: 6px; flex: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav a { color: var(--dim); text-decoration: none; }
nav a:hover, nav a:focus { color: var(--accent); }
nav a.here { color: var(--fg); border-bottom: 2px solid var(--accent); }
nav a.source { margin-left: auto; }
/* On a wide screen there is no button: the links are the navigation, and the checkbox that
   would hold its state is not in the page at all. */
.burger, .burger-label { display: none; }
/* Below this the eight links wrap into three lines, and three lines of links above the page
   is a menu that has eaten the page. There is no JavaScript on this site — a test makes sure
   of it — so the open state is a checkbox, and the thing a reader presses is its label. */
@media (max-width: 48rem) {
  header { flex-wrap: wrap; gap: 0; }
  /* Off the screen rather than `display: none`, so that it stays in the tab order and a
     keyboard can open the menu. */
  .burger {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
  }
  .burger-label {
    display: block;
    margin-left: auto;
    padding: 0.55rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .burger-label span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--fg);
  }
  .burger-label span + span { margin-top: 6px; }
  .burger:focus-visible + .burger-label { outline: 2px solid var(--accent); outline-offset: 2px; }
  header nav { display: none; flex-direction: column; width: 100%; gap: 0; margin-top: 0.6rem; }
  .burger:checked ~ nav { display: flex; }
  /* A row to press rather than a word to hit: each link is as tall as a finger and the
     separators say where one ends. */
  header nav a { padding: 0.7rem 0.1rem; border-top: 1px solid var(--frame); }
  header nav a.here { border-bottom: none; border-left: 3px solid var(--accent); padding-left: 0.6rem; }
  header nav a.source { margin-left: 0; }
}
main { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
a { color: var(--link); }
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; border-bottom: 1px solid var(--frame); padding-bottom: 0.3rem; }
h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.tagline { font-size: 1.3rem; color: var(--accent); margin: 0.25rem 0 1rem; }
.pitch { font-size: 1.05rem; }
.note { color: var(--dim); font-size: 0.9rem; font-style: italic; }
/* What the site asks of a reader. Set apart because it is the one sentence here that asks for
   something rather than describing something. */
.ideas { border-left: 3px solid var(--accent); padding: 0.6rem 0 0.6rem 0.9rem; margin: 1.4rem 0; }
code, pre, kbd {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 3px; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--frame);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--frame); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
th { background: var(--code-bg); }
img, svg { max-width: 100%; height: auto; }
figure { margin: 1.5rem 0; }
figcaption { color: var(--dim); font-size: 0.9rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.shots figure { margin: 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.buttons a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.buttons a:hover, .buttons a:focus { background: var(--accent); color: var(--bg); }
.pages { columns: 2 16rem; gap: 1.5rem; }
footer {
  border-top: 1px solid var(--frame);
  padding: 1.25rem;
  color: var(--dim);
  font-size: 0.9rem;
  text-align: center;
}
.languages { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center; margin-bottom: 0.5rem; }
.languages span { color: var(--fg); }
