/* Degauss v1.000: original font software, MIT License. */
@font-face {
  font-family: "Degauss";
  src: url("./Degauss-Regular.woff2?v=1.000") format("woff2"),
       url("./Degauss-Regular.woff?v=1.000") format("woff"),
       url("./Degauss-Regular.ttf?v=1.000") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Degauss";
  src: url("./Degauss-Bold.woff2?v=1.000") format("woff2"),
       url("./Degauss-Bold.woff?v=1.000") format("woff"),
       url("./Degauss-Bold.ttf?v=1.000") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Code and interfaces: the C60 space keeps trees, frames and indents aligned. */
.degauss {
  font-family: "Degauss", ui-monospace, monospace;
  font-variant-ligatures: contextual;
  font-feature-settings: "calt" 1;
  font-synthesis: none;
  line-height: 1.2;
  tab-size: 4;
}

/* Running prose: tighten the C60 word space to a proportional-looking gap. */
.degauss-prose {
  font-family: "Degauss", system-ui, sans-serif;
  font-synthesis: none;
  word-spacing: -0.25em;
  line-height: 1.55;
}

/* Strict character-by-character code. */
.degauss-ligatures-off {
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0;
}

/* Optional phosphor glow. A rendering effect: none of this is in the fonts. */
.degauss-phosphor {
  --degauss-core: #effff0;
  --degauss-beam: #62ff86;
  color: var(--degauss-core);
  text-shadow:
    0 0 1px color-mix(in srgb, var(--degauss-core) 70%, transparent),
    0 0 6px color-mix(in srgb, var(--degauss-beam) 62%, transparent),
    0 0 18px color-mix(in srgb, var(--degauss-beam) 40%, transparent),
    0 0 44px color-mix(in srgb, var(--degauss-beam) 24%, transparent);
}
.degauss-amber { --degauss-core: #fff3dc; --degauss-beam: #ffab2e; }
.degauss-ice { --degauss-core: #f1f8ff; --degauss-beam: #72c8ff; }

/* Optional burn-in: a faint fixed ghost of the text in data-burn. */
.degauss-burn { position: relative; }
.degauss-burn::before {
  content: attr(data-burn);
  position: absolute;
  inset: 0;
  white-space: pre;
  color: var(--degauss-beam, #62ff86);
  opacity: 0.08;
  transform: translate(0.035em, 0.02em);
  filter: blur(0.4px);
  pointer-events: none;
}

@media (forced-colors: active) {
  .degauss-phosphor { text-shadow: none; }
  .degauss-burn::before { display: none; }
}
@media print {
  .degauss-phosphor { color: #000; text-shadow: none; }
  .degauss-burn::before { display: none; }
}
