@charset "UTF-8";
/* ===== DragomirSec brand tokens ===== */
:root {
  --purple: #5D3FD3;
  --ember: #FF7A1A;
  --bg: #0F1115; /* was --cave   */
  --surface:#161A21; /* was --cave2  */
  --text: #EDEEF2; /* was --silver */
  --dim: #9AA0AC;
  --border: #22262e;
  --nav-bg: rgba(15,17,21,0.9);
  --code-bg:#1c212a;
  --body-text:#c6cad3; /* markdown body paragraphs */
  --placeholder:#5a6170;
}

/* ===== Light mode — surfaces and ink flip, brand anchors hold ===== */
[data-theme=light] {
  --ember: #E06300; /* darkened ember: #FF7A1A washes out on light surfaces */
  --bg: #EDEEF2; /* silver becomes the cave wall */
  --surface:#FFFFFF;
  --text: #161A21; /* cave ink */
  --dim: #6a7180;
  --border: #d4d7de;
  --nav-bg: rgba(237,238,242,0.92);
  --code-bg:#e3e6ec;
  --body-text:#3c414c;
  --placeholder:#9aa0ac;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.accent {
  color: var(--ember);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--ember);
}

.nav-links a.active {
  color: var(--ember);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width 0.25s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.nav-cta {
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 0.4rem 1.2rem;
  color: var(--purple);
}

.nav-links a.nav-cta:hover {
  background: var(--purple);
  color: #fff;
}

.nav-links a.nav-cta::after {
  display: none;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dim);
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* sun shows in dark (offer light), moon shows in light (offer dark) */
[data-theme=light] .icon-moon {
  display: none;
}

[data-theme=light] .icon-sun {
  display: block;
}

html:not([data-theme=light]) .icon-sun {
  display: none;
}

html:not([data-theme=light]) .icon-moon {
  display: block;
}

.nav-burger {
  display: none;
}

.icon-burger {
  display: block;
}

.icon-x {
  display: none;
}

body.nav-open .icon-burger {
  display: none;
}

body.nav-open .icon-x {
  display: block;
}

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 8vw;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

.hero-text h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--purple);
  font-weight: 600;
}

.tagline {
  color: var(--dim);
  margin: 1rem 0 2rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 24px rgba(93, 63, 211, 0.35);
}

.btn-ghost {
  border: 1px solid var(--purple);
  color: var(--purple);
}

.hero-dragon img {
  width: clamp(220px, 34vw, 420px);
  filter: drop-shadow(0 0 42px rgba(93, 63, 211, 0.55));
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    filter: drop-shadow(0 0 42px rgba(93, 63, 211, 0.55));
  }
  50% {
    filter: drop-shadow(0 0 68px rgba(93, 63, 211, 0.8));
  }
}
section {
  padding: 4rem 8vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "JetBrains Mono", monospace;
  color: var(--ember);
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(93, 63, 211, 0.15);
  color: var(--purple);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card p {
  color: var(--dim);
  font-size: 0.92rem;
  flex-grow: 1;
}

.card .card-link {
  color: var(--ember);
  text-decoration: none;
  font-size: 0.88rem;
}

.card h3 {
  transition: color 0.2s;
}

.card:hover h3 {
  color: var(--ember);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-item:hover {
  border-color: var(--ember);
}

.post-item h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.post-item .excerpt {
  color: var(--dim);
  font-size: 0.9rem;
}

.post-item .date {
  font-family: "JetBrains Mono", monospace;
  color: var(--dim);
  font-size: 0.8rem;
  white-space: nowrap;
}

.md h1, .md h2, .md h3 {
  margin: 1.4em 0 0.5em;
  color: var(--text);
}

.md p {
  margin: 0.8em 0;
  color: var(--body-text);
}

.md code {
  font-family: "JetBrains Mono", monospace;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--ember);
}

.md pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
}

.md pre code {
  color: var(--text);
}

.md a {
  color: var(--purple);
}

.md blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 1rem;
  color: var(--dim);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* --- Standalone pages --- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 6vw;
}

.cv-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cv-block h2 {
  color: var(--text);
}

.cv-block h3 {
  color: var(--purple);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.dim {
  color: var(--dim);
  font-size: 0.9rem;
}

/* --- About --- */
.about-wrap {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-wrap img.about-dragon {
  width: 160px;
  filter: drop-shadow(0 0 20px rgba(93, 63, 211, 0.45));
}

.about-wrap p {
  color: var(--body-text);
  margin-bottom: 0.8rem;
  max-width: 640px;
}

/* --- Doc pages + TOC --- */
.doc-page {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0;
  padding: 3rem 4vw;
  align-items: flex-start;
}

.doc-page article {
  flex: 1;
  min-width: 0;
}

.toc {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  border-left: 2px solid var(--border);
  padding-left: 1.2rem;
}

.toc-title {
  font-family: "JetBrains Mono", monospace;
  color: var(--ember);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.toc ul {
  list-style: none;
}

.toc a {
  display: block;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.toc .toc-sub a {
  padding-left: 1rem;
  font-size: 0.8rem;
}

.toc a:hover, .toc a.active {
  color: var(--ember);
}

/* --- Hoard search bar --- */
.search-bar {
  position: relative;
  max-width: 320px;
  margin-bottom: 2rem;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none;
  transition: color 0.2s;
}

.search-input {
  width: 100%;
  padding: 0.55rem 3rem 0.55rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--placeholder);
}

.search-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.18);
}

.search-bar:focus-within .search-icon {
  color: var(--ember);
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.45rem;
  background: var(--bg);
}

/* --- CV hero card --- */
.cv-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cv-avatar {
  width: 96px;
  height: auto;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 0 18px rgba(93, 63, 211, 0.5));
}

/* --- Contact page --- */
.contact-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  flex-wrap: wrap;
}

.contact-dragon {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  filter: drop-shadow(0 0 24px rgba(93, 63, 211, 0.5));
}

.contact-info h2 {
  color: var(--text);
}

.contact-info p {
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.contact-info a {
  display: inline-block;
  color: var(--ember);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  margin-top: 0.6rem;
  margin-right: 0.6rem;
  transition: border-color 0.2s, transform 0.15s;
}

.contact-info a:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
}

/* --- Post column (pulled left) --- */
.doc-page article {
  max-width: 900px;
  margin: 0;
  padding: 1rem 1rem 1rem 0;
}

.doc-page {
  margin: 0;
  padding-left: 4vw;
  padding-right: 6vw;
}

/* ---- 404 chibi page ---- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem 1rem;
}
.error-page .chibi-dragon {
  width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
}
.error-page h1 {
  color: var(--text);
  margin-bottom: 0.75rem;
}
.error-page p {
  color: var(--dim);
  margin-bottom: 1.75rem;
  max-width: 420px;
}

/* ---- Wiki docs nav ---- */
.wiki-nav {
  margin-top: 3rem;
  margin-bottom: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.wiki-nav ul {
  list-style: none;
  padding-left: 0;
}
.wiki-nav .toc-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.wiki-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wiki-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-left: 2px solid var(--border);
  border-radius: 0 6px 6px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.wiki-nav-link:hover {
  color: var(--ember);
  border-left-color: var(--ember);
  background: var(--surface);
}
.wiki-nav-link.active {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--purple);
  background: rgba(93, 63, 211, 0.12);
}

/* Prev / next pager at the end of a doc page */
.wiki-pager {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.wiki-pager .wiki-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  max-width: 48%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}
.wiki-pager .wiki-pager-link:hover {
  border-color: var(--purple);
}
.wiki-pager .wiki-pager-link.next {
  text-align: right;
  margin-left: auto;
}
.wiki-pager .wiki-pager-link .wiki-pager-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--dim);
}
.wiki-pager .wiki-pager-link .wiki-pager-title {
  color: var(--text);
  font-weight: 600;
}

/* "On this page" nested under the active doc link */
.wiki-nav-list .toc-page-list {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--border);
  margin-left: 0.75rem;
}
.wiki-nav-list .toc-page-list .toc-item a, .wiki-nav-list .toc-page-list .toc-sub a {
  display: block;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
  color: var(--dim);
  text-decoration: none;
  border-radius: 4px;
}
.wiki-nav-list .toc-page-list .toc-item a:hover, .wiki-nav-list .toc-page-list .toc-sub a:hover {
  color: var(--ember);
}
.wiki-nav-list .toc-page-list .toc-item a.active, .wiki-nav-list .toc-page-list .toc-sub a.active {
  color: var(--ember);
}
.wiki-nav-list .toc-page-list .toc-sub a {
  padding-left: 1.1rem;
  font-size: 0.78rem;
}

/* ---- Project status badges ---- */
.tag.status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border-color: var(--ember);
  color: var(--ember);
}

.tag.st-planned {
  color: var(--dim);
  border: 1px solid var(--dim);
  background: transparent;
}

.tag.st-in-progress {
  color: var(--ember);
  border: 1px solid var(--ember);
  background: rgba(255, 122, 26, 0.08);
}

.tag.st-done {
  color: var(--text);
  border: 1px solid var(--purple);
  background: rgba(93, 63, 211, 0.15);
}

/* ---- Chibi empty search state ---- */
#search-empty-block {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
#search-empty-block img.chibi {
  width: 96px;
  opacity: 0.9;
  display: block;
  margin: 0 auto 0.5rem;
}
#search-empty-block p {
  font-family: "JetBrains Mono", monospace;
  color: var(--dim);
  margin: 0;
}

/* ---- Responsive (merged the duplicate 720px blocks) ---- */
@media (max-width: 720px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .cta-row {
    justify-content: center;
  }
  .post-item {
    flex-direction: column;
  }
  .toc {
    display: none;
  }
  .nav {
    padding: 0.75rem 1rem;
    position: relative;
  }
  /* --- mobile hamburger menu --- */
  .nav-burger {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg); /* translucent dark + blur, matches top bar */
    backdrop-filter: blur(12px); /* ADD — frosts the page content behind it */
    -webkit-backdrop-filter: blur(12px); /* Safari prefix */
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem 1.25rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a {
    padding: 1rem 1rem;
    font-size: 1rem;
  }
  .nav-links li:last-child {
    margin-top: 0.1rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
  }
  .nav-links a.nav-cta {
    display: inline-block;
    text-align: center;
  }
  /* --- CV hero stacks on mobile --- */
  .cv-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
  .cv-hero > div {
    flex: none;
    width: 100%;
  }
  .cv-hero h2 {
    font-size: 1.35rem;
  }
  .cv-hero .cv-download {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
/* ---------- search result cards ---------- */
.search-result-card {
  display: block;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.search-result-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.sr-title {
  display: block;
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.sr-title .sr-section {
  color: var(--dim);
  font-size: 0.85em;
}

.sr-snippet {
  color: var(--dim);
  font-size: 0.9rem;
}
.sr-snippet mark {
  background: rgba(255, 122, 26, 0.25);
  color: var(--ember);
  border-radius: 3px;
  padding: 0 2px;
}

/* breathing room between search entity cards and section results */
#search-results .search-entity {
  margin-bottom: 2.5rem;
}

/* ---- download CV button ---- */
.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--purple);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cv-download:hover {
  background: rgba(93, 63, 211, 0.15);
  border-color: var(--ember);
}

/* pin the CV download button to the right edge of the hero card */
.cv-hero > div {
  flex: 1;
  min-width: 0;
}
.cv-hero .cv-download {
  margin-left: auto;
}

/* ---- coming soon page ---- */
.coming-soon {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
}
.coming-soon h1 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  color: var(--ember);
}
.coming-soon p {
  color: var(--dim);
  max-width: 40ch;
}
.coming-soon .chibi-lg {
  width: 140px;
  height: auto;
}
.coming-soon .cs-back {
  margin-top: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--purple);
  transition: color 0.15s ease;
}
.coming-soon .cs-back:hover {
  color: var(--ember);
}

/*# sourceMappingURL=main.css.map */