/* Shared Eldritch tokens for wtenison.com.
   Hex values from ~/Themes/Eldritch/style/eldritch-style-sheet.md (the canonical sheet). Dark-only. */
:root {
  color-scheme: dark;
  --ink: #05060b; --abyss: #0b0c17; --mantle: #171928; --base: #212337;
  --surface: #292e42; --overlay: #3b4261; --mist: #4d5680;
  --fg: #ebfafa; --muted: #abb4da; --comment: #7081d0;
  --green: #37f499;  --green-b: #69f8b3;   /* links, focus */
  --purple: #9071f4; --purple-b: #a48cf2;  /* headings glow */
  --cyan: #04d1f9;   --cyan-b: #66e4fd;    /* info */
  --pink: #f265b5;   --pink-b: #fd92ce;    /* the one focal hot spot */
  --yellow: #f1fc79; --yellow-b: #fbffc4;  /* lantern */
  --selection: #bf4f8e;
  --display: "C059 Eldritch", "C059", "Century Schoolbook", "TeX Gyre Schola", Georgia, serif;
  --body: "Alegreya", "C059 Eldritch", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--abyss); }
body {
  margin: 0; min-height: 100vh; background: var(--abyss); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased;
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
body::after { /* canon grain: 7% overlay */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--selection); color: var(--fg); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-b); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
code { font: .86em var(--mono); color: var(--cyan-b); background: var(--mantle); padding: .08em .35em; border-radius: var(--r); }

.caps { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { font: 400 .75rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--comment); }
.torn {
  height: 14px; border: 0; margin: 0; background: var(--overlay);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 6 L7 4 L13 8 L22 5 L29 7 L37 3 L44 8 L52 5 L60 7 L66 4 L75 8 L83 5 L90 7 L98 3 L105 7 L113 5 L120 6 L120 9 L112 11 L104 8 L96 10 L88 9 L80 11 L71 8 L63 10 L55 9 L47 11 L39 9 L31 10 L23 8 L15 11 L8 9 L0 10Z'/%3E%3C/svg%3E") 0 0/240px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 6 L7 4 L13 8 L22 5 L29 7 L37 3 L44 8 L52 5 L60 7 L66 4 L75 8 L83 5 L90 7 L98 3 L105 7 L113 5 L120 6 L120 9 L112 11 L104 8 L96 10 L88 9 L80 11 L71 8 L63 10 L55 9 L47 11 L39 9 L31 10 L23 8 L15 11 L8 9 L0 10Z'/%3E%3C/svg%3E") 0 0/240px 14px repeat-x;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
