/* Shared by every page: the typeface, colours (light and dark), the page width, the brand and the footer.
   Page-specific styles are in home.css (index.html) and pages.css (docs, privacy, terms, changes). */

/* Inter (SIL Open Font License, fonts/LICENSE.txt), served from this site: one variable file for Latin, and a small one
   with the extra letters of Romanian and other European languages and the currency signs, fetched only by a page that uses them. Its optical
   size follows the text size, so headings get the tighter display cut. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F, U+0218-021B, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --text: #121214;
  --muted: #5b5b63;
  --faint: #8a8a92;
  --line: #e6e6e2;
  --line-strong: #d4d4cf;
  --accent: #ee7a0c;
  --accent-2: #ffaa3b;
  --accent-ink: #ffffff;
  --link: #c25f00;
  --danger: #c42b1c;
  --shot-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 30px 80px -24px rgb(0 0 0 / .28);
  --tile-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -18px rgb(0 0 0 / .18);
  --radius: 22px;
  --dot: rgb(24 24 27 / .16);    /* the dot floor behind the home page's hero, and the tiles' dot grids */
  --spark: #ee7a0c;              /* the floor's signals */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #141417;
    --surface-2: #1b1b1f;
    --text: #f0f0f2;
    --muted: #a5a5ad;
    --faint: #75757e;
    --line: #25252a;
    --line-strong: #35353b;
    --link: #ffaa3b;
    --danger: #ff8a80;
    --shot-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 30px 90px -24px rgb(0 0 0 / .9);
    --tile-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -18px rgb(0 0 0 / .7);
    --dot: rgb(237 237 239 / .13);
    --spark: #ffaa3b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  letter-spacing: -0.011em;
  font-feature-settings: "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ── the top bar's brand ── */
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand img { width: 26px; height: 26px; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--text); }
/* Release notes live on GitHub: its mark says so. */
footer .github { display: inline-flex; align-items: center; gap: 7px; }
footer .github .gh { width: 15px; height: 15px; fill: currentColor; }
/* BRCreative (bogdanrosu.com) and Pixel Crusher (bogdanrosu.net), as on wallnode.cc. Both are cropped to their
   shapes and sized to look as big as the GitHub mark. */
footer .marks { display: inline-flex; align-items: center; gap: 14px; margin-left: 4px; }
footer .marks a { display: inline-flex; }
footer .marks svg { width: auto; fill: currentColor; }
footer .marks .br { height: 16px; }
footer .marks .pc { height: 14px; }
