/* Import Space Grotesk for headings */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-Extrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-ExtraboldItalic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PerfectlyNineties';
    src: url('../fonts/PerfectlyNineties-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-Hairline.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-HairlineItalic.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-Thin.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-ThinItalic.woff2') format('woff2');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-SemiBoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-ExtraBoldItalic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EssentialSans';
    src: url('../fonts/EssentialSans-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Custom theme overrides */
:root {
    --md-text-font-family: "EssentialSans", -apple-system, system-ui, sans-serif;
    --md-header-font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* Improve readability */
.md-content {
    font-size: 16px;
    line-height: 1.7;
    font-feature-settings: "ss01", "ss02", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

.md-content article {
    max-width: 46rem;
}

/* Better header styling */
.md-header {
    font-family: var(--md-header-font-family);
}

.md-header__title {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Heading styles */
.md-content h1,
.md-content h2,
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
    font-family: var(--md-header-font-family);
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Improve dark mode readability */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: #1a1b1e;
    --md-default-fg-color: rgba(255, 255, 255, 0.87);
    --md-default-fg-color--light: rgba(255, 255, 255, 0.75);
    --md-default-fg-color--lighter: rgba(255, 255, 255, 0.4);
    --md-code-bg-color: rgba(255, 255, 255, 0.05);
}

/* Improve light mode contrast */
[data-md-color-scheme="default"] {
    --md-default-fg-color: rgba(0, 0, 0, 0.87);
    --md-default-fg-color--light: rgba(0, 0, 0, 0.67);
    --md-default-fg-color--lighter: rgba(0, 0, 0, 0.35);
} 

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&display=swap');

figure.terminal-container {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
    display: block;
    text-align: left;
}

.terminal {
  background-color: #1e1e1e;
  border-radius: 5px;
  padding: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #f8f8f2;
  max-width: 800px;
  margin: 20px auto;
}

.prompt {
  color: #ff5f5f;
  font-weight: bold;
}

.host {
  color: #ff5f5f;
  font-weight: bold;
}

.dir {
  color: #5f87ff;
}

.dirty {
    color: orange;
}
.caret {
    color: purple;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: #f8f8f2;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}