@import "./styles/_variables.css";
@import "tailwindcss";
@import "tw-animate-css";

@font-face {
  font-family: "iA Writer Quattro";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url(https://cdn.jsdelivr.net/fontsource/fonts/ia-writer-quattro@latest/latin-400-normal.woff2)
      format("woff2"),
    url(https://cdn.jsdelivr.net/fontsource/fonts/ia-writer-quattro@latest/latin-400-normal.woff)
      format("woff");
}

@font-face {
  font-family: "iA Writer Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url(https://cdn.jsdelivr.net/fontsource/fonts/ia-writer-mono@latest/latin-400-normal.woff2)
      format("woff2"),
    url(https://cdn.jsdelivr.net/fontsource/fonts/ia-writer-mono@latest/latin-400-normal.woff)
      format("woff");
}

* {
  outline-color: color-mix(in srgb, var(--ring) 50%, transparent);
}

html {
  font-family: var(--font-sansserif);
}

body {
  background-color: var(--background);
  color: var(--foreground);
}

h1 {
  color: var(--color-orange-light);
}

h2 {
  color: var(--color-green-light);
}

.monospaced-font {
  font-family: "iA Writer Mono";
}
.scanlined {
  position: relative; /* Add this */
}

.scanlined::after {
  content: "";
  position: absolute; /* Change from fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px);
  background-size: 2px 2px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999; /* Might want to lower this too */
}

code {
  font-family: var(--font-monospaced);
}

p code {
  color: var(--foreground);
  background: #504945;
  font-size: 14px;
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.shiki {
  padding: 1rem 1.2rem;
  border-radius: 0;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.3;
  /* counter-reset: line; */
  font-family: var(--font-monospaced) !important;
  font-size: 14px !important;
}
