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

/* Pure Black & White Minimal Theme */
:root {
    --bg-color: #000;
    --text-color: #fff;
    --border-color: #fff;
}

/* Reset-ish for consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 50px;
    padding: 16px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("../stars.gif");

    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    image-rendering: pixelated;

    color: var(--text-color);
    font-family:
        "JetBrains Mono",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

/* Content container */
.box {
    max-width: 42rem; /* better than px for scaling */
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

/* Headings */
h1,
h2,
h3 {
    margin-top: 0;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

ul {
    /* logical property for left/right padding */
    padding-inline: 1.5rem 0;

    /* Optional: custom bullet or alignment */
    list-style-type: disc;
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: var(--text-color);
    text-decoration: underline;
}

a:hover {
    opacity: 0.75;
}

/* Code */
code {
    background-color: #000;
    border: 1px solid var(--border-color);
    padding: 0.15em 0.4em;
    font-family: monospace;
    font-size: 0.95em;
}

/* Container for the code block to position the button */
.code-wrapper {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    font-size: 10px;
    text-transform: uppercase;
    background: #30363d;
    color: #c9d1d9;
    border: 1px solid #8b949e;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease;
}

.code-wrapper:hover .copy-button {
    opacity: 1; /* Shows up when you hover over the code */
}

.copy-button:hover {
    background: #484f58;
}

.copy-button.copied {
    background: #238636;
    color: white;
}

/* Pixel art stays crisp */
img.pixel-art {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* 1. Reset any table-like behavior inside the box */
.box pre,
.box code {
    display: block;
    background: #0d1117; /* Dark terminal background */
    color: #e6edf3;
    padding: 1rem;
    border-radius: 0px;
    border: 1px solid #30363d;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre; /* Essential: keeps your fastfetch spacing exact */
}

/* 2. Kill the "underlines" (stray borders) from the screenshot */
.box pre code {
    border: none !important;
    padding: 0;
    background: transparent;
    text-decoration: none !important;
}

/* 3. If Jekyll is still forcing <table> tags, this flattens them */
.box table,
.box tr,
.box td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block; /* Forces rows to stop acting like table cells */
}

/* Footer */
footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-color);
}

/* --- Mobile tweaks --- */
@media (max-width: 480px) {
    body {
        padding: 12px;
        font-size: 15px;
    }

    .box {
        padding: 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }
}
