/* Fennecweb display styles. Load after the palette in themes.css. */
@font-face {
  font-family: "Fennecweb Pixelify";
  src: url("/img/themes/fennecweb/pixelify.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Fennecweb Plex Mono";
  src: url("/img/themes/fennecweb/plex-mono.woff2") format("woff2");
  font-display: swap;
}

html[data-theme="fennecweb"] {
  --fennecweb-display: "Fennecweb Pixelify", system-ui, sans-serif;
  --fennecweb-mono: "Fennecweb Plex Mono", ui-monospace, monospace;
  --fennecweb-focus: #23624f;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="fennecweb"]:not([data-mode="light"]) {
    --fennecweb-focus: #4fb59a;
  }
}

html[data-theme="fennecweb"][data-mode="dark"] {
  --fennecweb-focus: #4fb59a;
}

html[data-theme="fennecweb"] :is(.brand, .page-title, .profile-info h1, dialog h2) {
  font-family: var(--fennecweb-display);
}

html[data-theme="fennecweb"] :is(.post-meta time, .profile-info > .muted) {
  font-family: var(--fennecweb-mono);
}

html[data-theme="fennecweb"] .brand::before {
  background-image: url("/img/themes/fennecweb/fennec.svg");
  image-rendering: pixelated;
}

html[data-theme="fennecweb"] :focus-visible {
  outline: 2px solid var(--fennecweb-focus);
  outline-offset: 3px;
}
