:root {
    /* Backgrounds */
    --bg-secondary: #0D0D0F;
    --bg-primary: #1A1A1C;
    --bg-tertiary: #2B2A24;

    /* Borders */
    --border: #3D3A30;

    /* Text */
    --text-primary: #CCC2A0;
    --text-secondary: #9A8F6A;

    /* Accents */
    --accent: #B8AD7F;
    --accent-hover: #E0D9C3;
    --olive: #7A6F52;
}

@font-face {
    font-family: "Terminess";
    src: url("/assets/fonts/TerminessNerdFontMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Terminess", monospace;
    font-size: 20px;
    line-height: 1.5;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

main{
    text-align: center;


}

.home {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* the font only has a regular weight, so stop headings faux-bolding */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}


/***************************** Navbar ************************************/
.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);

    display: flex;
    justify-content: center;  /* centers links horizontally */
    flex-wrap: wrap;          /* lets links wrap on narrow screens */
    gap: 0.5rem 1.5rem;       /* row gap, column gap */
    padding: 0.75rem 1rem;
}

.navbar a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.navbar a:visited {
    color: var(--text-primary);
}

.navbar a:hover {
    color: var(--accent-hover);
}

.navbar a:active {
    color: var(--olive);
}


/***************************** Footer **************************************/

footer {
    width: 100%;
    text-align: center;
}

footer p {
    margin: 0px;


}

/***************************** Terminal ************************************/

.terminal {
    width: 90%;
    max-width: 650px;
    margin: 20px auto;

    background-color: var(--bg-secondary);
    border: 3px solid var(--bg-tertiary);

    color: var(--text-primary);
    font-family: "Terminess", monospace;
    text-align: left;
}

/* Header */

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    padding: 4px 8px;

    color: var(--accent);
    font-size: 16px;
}

/* Window buttons */

.terminal-buttons {
    display: flex;
    gap: 4px;
}

.terminal-buttons button {
    width: 22px;
    height: 22px;

    background: var(--bg-primary);
    border: 1px solid var(--border);

    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}

.terminal-buttons button:hover {
    background: var(--olive);
    color: var(--accent-hover);
}

/* Output */

.terminal-body {
    padding: 16px;
    height: 700px;
    overflow-y: scroll;
    scrollbar-color: var(--olive) var(--border);
}

.terminal-body p {
    margin: 0;
    white-space: pre-line;
}

/* Input */

.terminal-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    caret-shape: block;

}

.terminal-input span {
    color: var(--accent);
    white-space: nowrap;
}

.terminal-input input {
    flex: 1;
    min-width: 0;

    background: transparent;
    border: none;
    outline: none;

    color: var(--accent);
    font-family: inherit;
    font-size: inherit;
}

/* Small screens */

@media (max-width: 480px) {
    .terminal {
        width: 95%;
    }

    .terminal-body {
        padding: 12px;
        min-height: 300px;
    }

    .terminal-input {
        font-size: 14px;
    }
}
.terminal-command-line{
    color: var(--accent);
}



.about {
    display: flex;
    align-items: center;
    gap: 24px;
}

.about img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.about p {
    white-space: pre-line;
}

.about-links a {
    color: var(--text-primary);

}
@media (max-width: 480px) {
    .about {
        flex-direction: column;
        align-items: flex-start;
    }

    .about img {
        width: 160px;
    }
}

