/* The forest theme of mcanzi.de (themes/arang/static/css/site.css in mcanzi/personal_website). */

:root {
  --floor: #0b110e;
  --understory: #111a16;
  --raised: #17221d;
  --vine: #24332c;
  --mist: #e3e8e1;
  --muted: #8e9e96;
  --pandan: #72c699;
  --primary-hi: #95d5b2;
  --hornbill: #f2d45c;
  --kingfisher: #72c699;
  --orchid: #c3b6d6;
  --title-top: #ece07e;
  --title-bottom: #5cc48a;
  --nav-bg: rgba(11, 17, 14, 0.9);
  --glow-1: rgba(220, 230, 225, 0.08);
  --glow-2: rgba(136, 201, 168, 0.04);
  color-scheme: dark;
}

body {
  background-color: var(--floor);
  background-image:
    radial-gradient(1100px 600px at 85% -120px, var(--glow-1), transparent 70%),
    radial-gradient(900px 500px at 0% 420px, var(--glow-2), transparent 70%),
    radial-gradient(140% 120% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--mist);
  font-size: 1.08rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("https://mcanzi.de/img/motifs/rafflesia.svg") repeat 0 0 / 640px 640px;
  opacity: 0.2;
  filter: saturate(0.55) brightness(0.85);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
}
body > * { position: relative; z-index: 1; }
@media (max-width: 700px) { body::before { background-size: 380px 380px; opacity: 0.09; } }
@media print { body::before, body::after { display: none; } }

::selection { background: var(--pandan); color: var(--floor); }
:focus-visible { outline: 2px solid var(--pandan); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--pandan);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  background: linear-gradient(180deg, var(--title-top) 8%, var(--title-bottom) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1::selection, h1 ::selection { -webkit-text-fill-color: var(--floor); }
@media print { h1 { background: none; -webkit-text-fill-color: currentColor; } }

a { color: var(--kingfisher); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hi); }

.hl { color: var(--orchid); font-weight: 700; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vine);
}
.navbar-brand {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  color: var(--mist) !important;
}
.navbar-brand::before { content: "~/"; color: var(--pandan); }
.navbar-brand::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--hornbill);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .navbar-brand::after { animation: none; } }
.navbar .nav-link,
.navbar .nav-text {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--muted) !important;
  border-radius: 6px;
}
.navbar .nav-link:hover { color: var(--mist) !important; background: var(--raised); }
.navbar .nav-item.active .nav-link,
.navbar .nav-link.active { color: var(--primary-hi) !important; background: var(--raised); }
.dropdown-menu { background: var(--raised); border-color: var(--vine); }
.dropdown-item { color: var(--mist); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--understory); color: var(--pandan); }

code, pre, kbd, samp, .navbar-brand, .navbar .nav-link { font-variant-ligatures: none; }
code { color: var(--hornbill); }
pre, div.sourceCode {
  background: var(--understory) !important;
  border: 1px solid color-mix(in srgb, var(--hornbill) 22%, var(--vine));
  border-radius: 10px;
}
pre code { color: var(--mist); }
div.sourceCode pre { border: 0; margin: 0; background: none !important; }
pre .r-out, pre .r-wrn, pre .r-msg { color: var(--muted); }

.table { color: var(--mist); --bs-table-bg: transparent; --bs-table-color: var(--mist); }
.table > :not(caption) > * > * { border-color: var(--vine); }
.text-muted, .nav-text.text-muted { color: var(--muted) !important; }

#toc .nav-link { color: var(--muted); }
#toc .nav-link.active, #toc .nav-link:hover { color: var(--pandan); }
aside h2, aside h3 { -webkit-text-fill-color: currentColor; background: none; }

.form-control { background: var(--raised); color: var(--mist); border-color: var(--vine); }
.form-control::placeholder { color: var(--muted); }

footer { border-top: 1px solid var(--vine); color: var(--muted); }
