/* The Academos wordmark as live text, so it stays sharp at every size (Andrei, October 2026: the
   picture looked blurry on phones). Same Soft 3D look as Design/brand/wordmark.mjs in Examene:
   Nunito Black with letter-spacing -1, a light-to-Academos-blue face, a darker inner lower rim and a
   solid lower edge with a soft shadow. The font file holds only the letters of "Academos". */
@font-face {
  font-family: "Academos Wordmark";
  src: url("/fonts/nunito-black-wordmark.woff2") format("woff2");
  font-weight: 900;
  font-display: block;
}
.wordmark-text {
  /* Light backgrounds (the wordmark's on-light palette). */
  --wm-top: #55a2ff;
  --wm-mid: #1a7cf2;
  --wm-bottom: #0a6feb;
  --wm-shade: #0858bf;
  --wm-edge: #0750a9;
  position: relative;
  display: block;
  /* The face sits 0.024em above the shade, as the wordmark's 3-unit bevel. */
  top: 0.024em;
  font-family: "Academos Wordmark", Nunito, system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--wm-shade);
  /* The solid lower edge, 0.06em deep, then the soft shadow it casts. */
  text-shadow:
    0 0.012em 0 var(--wm-edge),
    0 0.024em 0 var(--wm-edge),
    0 0.036em 0 var(--wm-edge),
    0 0.048em 0 var(--wm-edge),
    0 0.06em 0 var(--wm-edge),
    0 0.11em 0.1em color-mix(in srgb, var(--wm-edge) 28%, transparent);
}
.wordmark-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: translateY(-0.024em);
  background: linear-gradient(var(--wm-top), var(--wm-mid) 45%, var(--wm-bottom));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
/* Dark backgrounds (the on-dark palette): the homepage scene always, other pages in dark appearance. */
.wordmark-text.on-dark {
  --wm-top: #a6d0ff;
  --wm-mid: #6fb0ff;
  --wm-bottom: #489afd;
  --wm-shade: #2f7fe6;
  --wm-edge: #0a4fa8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance="light"]) .wordmark-text {
    --wm-top: #a6d0ff;
    --wm-mid: #6fb0ff;
    --wm-bottom: #489afd;
    --wm-shade: #2f7fe6;
    --wm-edge: #0a4fa8;
  }
}
:root[data-appearance="dark"] .wordmark-text {
  --wm-top: #a6d0ff;
  --wm-mid: #6fb0ff;
  --wm-bottom: #489afd;
  --wm-shade: #2f7fe6;
  --wm-edge: #0a4fa8;
}
