/* What every Mislisha page shares (17.10.2026): the fonts, the colours, the
 * header and the footer. The product page adds mislisha.css, the manual adds
 * mislisha-manual.css. The other two apps and the shared legal pages keep
 * style.css.
 *
 * The rule of style.css still holds: nothing from another host and no script.
 * The fonts are served from /fonts/ — Noto Sans and Noto Serif Italic, OFL
 * (fonts/OFL.txt), cut to Latin including Serbian Latin.
 */

@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/noto-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #F4F5F3;
  --ink: #17191C;
  --ink-soft: #50565E;
  --rule: #D6DADD;
  --surface: #E9ECE8;
  --link: #0E6B5E;
  --button: #17191C;
  --button-ink: #F4F5F3;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Noto Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14171A;
    --ink: #E7EAEC;
    --ink-soft: #A7B0B6;
    --rule: #2B3136;
    --surface: #1C2125;
    --link: #6FBF90;
    --button: #E7EAEC;
    --button-ink: #14171A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 26px 0; }
.mark { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
/* The section the reader is in: darker and underlined, not a colour alone. */
.top nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

footer { border-top: 1px solid var(--rule); padding: 24px 0 64px; font-size: 14px; color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
footer a { color: var(--ink-soft); }
footer p { margin: 0; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
}
