/* abukix · notes — brand styles matching abukix.dev portfolio */

:root {
  --md-primary-fg-color: #1e1e2e;
  --md-primary-fg-color--light: #2a2a3a;
  --md-primary-fg-color--dark: #16161f;
  --md-accent-fg-color: #818cf8;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0f0f17;
  --md-default-bg-color--light: #16161f;
  --md-default-bg-color--lighter: #1a1a25;
  --md-default-bg-color--lightest: #1e1e2e;
  --md-default-fg-color: #e2e2ee;
  --md-default-fg-color--light: #a8a8bd;
  --md-default-fg-color--lighter: #6b6b85;
  --md-default-fg-color--lightest: #3a3a4f;
  --md-typeset-color: #e2e2ee;
  --md-typeset-a-color: #a5b4fc;
  --md-code-bg-color: #1a1a25;
  --md-code-fg-color: #c7d2fe;
  --md-footer-bg-color: #0a0a12;
  --md-footer-bg-color--dark: #07070d;
}

/* Typography */
body, .md-typeset {
  font-feature-settings: "calt", "ss01";
}

.md-typeset {
  font-size: .8rem;
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.md-typeset h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 1.5rem 0 1.75rem;
  color: #f0f0fa;
}

.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.35rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #e8e8f3;
}

.md-typeset h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  margin-top: 2rem;
  color: #d8d8e9;
}

.md-typeset p {
  margin-bottom: 1.1rem;
}

/* Content width for comfortable reading */
.md-main__inner {
  max-width: 980px;
  margin: 0 auto;
}

.md-content {
  max-width: 740px;
}

.md-content__inner {
  padding-top: 2rem;
  padding-bottom: 4rem;
  margin: 0 1.5rem;
}

/* Code */
.md-typeset code {
  font-size: .85em;
  background: rgba(165, 180, 252, 0.08);
  color: #c7d2fe;
  border-radius: 4px;
  padding: 1px 6px;
}

.md-typeset pre > code {
  font-size: .76rem;
  line-height: 1.55;
  padding: 1rem;
}

.md-typeset .highlight {
  border-radius: 6px;
  margin: 1.25rem 0;
}

/* Header — translucent, blurred */
.md-header {
  background: rgba(15, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.md-header__title {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Tabs (if used) */
.md-tabs {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Footer */
.md-footer {
  background: #0a0a12;
}

.md-footer-meta {
  background: #07070d;
}

.md-footer-meta__inner {
  font-size: .72rem;
  color: #6b6b85;
}

/* Social icons in footer */
.md-social__link svg {
  fill: #6b6b85;
  transition: fill 0.15s;
}

.md-social__link:hover svg {
  fill: #a5b4fc;
}

/* Links — subtle underline */
.md-typeset a {
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 180, 252, 0.25);
  transition: border-color 0.15s, color 0.15s;
}

.md-typeset a:hover {
  border-bottom-color: #a5b4fc;
  color: #c7d2fe;
}

/* HR — barely visible separator */
.md-typeset hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 2.75rem 0;
}

/* Em — used for metadata (date, reading time, tags) */
.md-typeset em {
  color: #8b8ba8;
  font-style: italic;
  font-size: 0.85em;
  letter-spacing: 0.01em;
}

/* Buttons — minimal */
.md-typeset .md-button {
  background: transparent;
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #a5b4fc;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.55em 1.25em;
  text-transform: lowercase;
  border-radius: 4px;
}

.md-typeset .md-button:hover {
  background: rgba(165, 180, 252, 0.08);
  border-color: #a5b4fc;
  color: #c7d2fe;
  text-decoration: none;
}

/* Blockquotes */
.md-typeset blockquote {
  border-left: 2px solid #818cf8;
  color: #a8a8bd;
  font-style: italic;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* Tables */
.md-typeset table:not([class]) {
  font-size: .76rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.md-typeset table:not([class]) th {
  background: rgba(165, 180, 252, 0.04);
  font-weight: 600;
  color: #e8e8f3;
}

/* Strong — slightly brighter */
.md-typeset strong {
  color: #f0f0fa;
  font-weight: 600;
}

/* Announce bar — slim back-to-portfolio strip */
.md-banner {
  background: #0a0a12;
  color: #8b8ba8;
  font-size: .72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.md-banner a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.15s;
}

.md-banner a:hover {
  color: #c7d2fe;
}

/* Search bar refinement */
.md-search__input {
  background: rgba(165, 180, 252, 0.06);
  color: #e2e2ee;
}

.md-search__input::placeholder {
  color: #6b6b85;
}

/* TOC on the right */
.md-nav__title {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: #6b6b85;
}

/* Index page — center & spacious */
.md-typeset .md-button + hr {
  margin-top: 3rem;
}
