/************************************************************/
/* Minimalist-Mono.css                                      */
/* IDE Aesthetic | Readable High Density | Classless        */
/************************************************************/

/* 1. CORE IMPORTS */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,500;0,800;1,300&display=swap");

:root {
    --bg: #ffffff;
    --text: #24292e;
    --accent: #0366d6;
    --secondary: #6a737d;
    --border: #e1e4e8;
    --code-bg: #f6f8fa;
    --success: #28a745;
    --font-mono: "JetBrains Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --text: #c9d1d9;
        --accent: #58a6ff;
        --secondary: #8b949e;
        --border: #30363d;
        --code-bg: #161b22;
    }
}

/* 2. BASE RESET & GUTTER */
html {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px; /* BUMPED UP FOR READABILITY */
    line-height: 1.8;
    scroll-padding-top: 2rem;
}

body {
    margin: 0 auto;
    padding: 5rem 2rem;
    max-width: 900px;
    border-left: 2px solid var(--border); /* Slightly thicker gutter */
}

/* 3. TYPOGRAPHY (MARKDOWN STYLE) */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.2;
}

h1::before {
    content: "01 ";
    font-size: 1rem;
    color: var(--secondary);
    margin-right: 1.2rem;
    font-weight: 300;
}
h2::before {
    content: "02 ";
    font-size: 1rem;
    color: var(--secondary);
    margin-right: 1.2rem;
    font-weight: 300;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--border);
    padding-bottom: 1rem;
}
h2 {
    font-size: 1.8rem;
    color: var(--accent);
}
h3 {
    font-size: 1.4rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid rgba(3, 102, 214, 0.2);
    transition: border-color 0.2s;
}

a:hover {
    border-bottom-color: var(--accent);
}

/* 4. CODE, KBD & TERMINALS */
code {
    font-family: var(--font-mono);
    background: var(--code-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--success);
    border: 1px solid var(--border);
}

pre {
    background: var(--code-bg);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
    margin: 2rem 0;
}

pre::before {
    content: "$ ";
    color: var(--accent);
    font-weight: 800;
}

kbd {
    background: var(--code-bg);
    border: 1px solid var(--secondary);
    border-bottom: 4px solid var(--secondary);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    vertical-align: middle;
}

/* 5. INTERACTIVE */
button,
input[type="submit"] {
    all: unset;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 6px;
    transition: 0.2s;
}

button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* 6. FORMS */
fieldset {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    margin: 4rem 0;
}

legend {
    padding: 0 15px;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
textarea,
select {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    background: var(--code-bg);
    border: 2px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* 7. TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    font-size: 1rem;
}

th {
    text-align: left;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 3px solid var(--border);
    padding: 15px;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

/* 8. MEDIA */
video,
audio {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin: 2rem 0;
    background: var(--code-bg);
}

/* 9. PROGRESS */
progress {
    appearance: none;
    width: 100%;
    height: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
progress::-webkit-progress-bar {
    background: var(--code-bg);
}
progress::-webkit-progress-value {
    background: var(--accent);
}
