@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --md-text-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: "IBM Plex Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

[data-md-color-scheme="slate"] {
  /* High-contrast reading surfaces */
  --md-default-bg-color: #12110f;
  --md-default-fg-color: #f5f1e8;
  --md-default-fg-color--light: #cbc4b7;
  --md-default-fg-color--lighter: #9c9384;
  --md-default-fg-color--lightest: rgba(237, 230, 214, 0.14);

  /* Songcards structural colors */
  --md-primary-fg-color: #1b1712;
  --md-primary-fg-color--light: #252019;
  --md-primary-fg-color--dark: #12110f;
  --md-primary-bg-color: #f5f1e8;
  --md-primary-bg-color--light: #cbc4b7;

  /*
   * The locked copper (#A8683B) is retained for decoration/borders.
   * A lighter copper is used for text links so they remain clearly readable.
   */
  --md-accent-fg-color: #d18a56;
  --md-accent-fg-color--transparent: rgba(209, 138, 86, 0.14);

  --md-typeset-color: #f5f1e8;
  --md-typeset-a-color: #d18a56;

  --md-code-bg-color: #211d18;
  --md-code-fg-color: #ede6d6;

  --md-footer-bg-color: #0d0d0c;
  --md-footer-bg-color--dark: #090908;
}

/* Header */
.md-header {
  background-color: #1b1712;
  border-bottom: 1px solid #3a332a;
  box-shadow: none;
}

.md-header__title,
.md-header__button {
  color: #f5f1e8;
}

/* Search */
.md-search__form {
  background-color: #12110f;
  border: 1px solid #3a332a;
  border-radius: 4px;
  box-shadow: none;
}

.md-search__input {
  color: #f5f1e8;
}

.md-search__input::placeholder {
  color: #9c9384;
}

/* Navigation */
.md-nav__title {
  color: #f5f1e8;
  font-weight: 600;
}

.md-nav__link {
  color: #cbc4b7;
}

.md-nav__link:hover,
.md-nav__link:focus {
  color: #f5f1e8;
}

.md-nav__link--active {
  color: #d18a56;
  font-weight: 600;
}

/* Main typography */
.md-typeset {
  color: #f5f1e8;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: #f5f1e8;
  font-weight: 600;
}

.md-typeset h1 {
  letter-spacing: -0.02em;
}

.md-typeset a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.md-typeset a:hover,
.md-typeset a:focus {
  color: #f0a56f;
}

/* Code and data-like content */
.md-typeset code {
  border: 1px solid #3a332a;
  border-radius: 2px;
}

.md-typeset pre > code {
  border-radius: 4px;
}

/* Calm, flat Songcards surfaces */
.md-typeset .admonition,
.md-typeset details,
.md-typeset table:not([class]) {
  border: 1px solid #3a332a;
  border-radius: 4px;
  box-shadow: none;
}

/* Use the locked copper as a structural accent, not body text */
.md-typeset hr {
  border-bottom-color: #3a332a;
}

.md-typeset blockquote {
  border-left-color: #a8683b;
  color: #cbc4b7;
}

/* Footer */
.md-footer {
  border-top: 1px solid #3a332a;
  box-shadow: none;
}

.md-footer-meta {
  background-color: #090908;
}
