:root {
    --bg: #1f1f1f;
    --text: #e6eef8;
    --muted: #9aa6b2;
    --accent: #9ae6ff;
}

/* Box sizing property set to border-box globally */
* {
    box-sizing: border-box;
    text-align: left;
}

/* Setting basic styles for html and body */
html, body {
    height: 100%;
}

body {
    box-sizing: border-box;
    padding: 7em;
    max-width: 50em;
    margin: 0;
    font-family: IBM Plex Mono, monospace;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background .25s, color .25s;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 16px;
}

.title_and_description {
    max-width: 920px;
}

.hero h1 {
    font-size: 1em;
    margin-bottom: 1.5em;
    text-decoration: none;
    color: #7c7c7a;
}

.lead {
    margin: 0 0 12px;
    color: var(--muted);
}

.desc-title {
    max-width: 720px;
    margin: 0 0 1.5em 0;
    color: var(--muted);
}

.desc-summary {
    max-width: 720px;
    margin: 0 0 3em 0;
    color: var(--muted);
}

.accordion {
    margin-bottom: 10px;
    border-radius: 10px;
    color: #e77728;
}

/* Style the clickable summary */
.accordion summary {
    cursor: pointer;
    list-style: none; /* hides default arrow */
    font-weight: bold;
    position: relative;
    padding: 6px 0 6px 18px; /* left padding for +/– space */
    user-select: none;
}

/* Remove default marker in WebKit browsers */
.accordion summary::-webkit-details-marker {
    display: none;
}

/* Add the + symbol on the left */
.accordion summary::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, content 0.3s ease;
    display: inline-block;
}

/* Change + to – when open */
.accordion[open] summary::before {
    content: "–";
}

.accordion-content {
    padding-left: 18px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
    color: var(--muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Add padding and a bottom border to each project for separation */
.project-item {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px dashed #7c7c7a; /* Muted dashed line */
}

/* Remove the border and extra padding from the last project */
.project-item:last-child {
    margin-bottom: 0.5em;
    padding-bottom: 0;
    border-bottom: none;
}

.proj-title {
    font-weight: bold;
    color: #e77728; /* This is your orange */
    text-decoration: none;
    display: block;
    margin-bottom: 0.25em;
}

.proj-title:hover {
    text-decoration: underline;
}

/* Keep the main <p> description muted */
.proj-desc {
    margin: 0 0 0 1em;
    font-size: 0.95em;
    color: var(--muted);
    line-height: 1.5;
}

/* Add styling for inline code */
.proj-desc code {
    color: var(--text);
    background-color: #333;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Make the feature list pop with the main text color */
.proj-desc ul {
    margin-top: 1em;
    margin-bottom: 0;
    padding-left: 1.5em;
    line-height: 1.6;
    color: var(--text); /* Main text color */
}

.proj-desc li {
    margin-bottom: 0.25em;
    padding-left: 0.25em; /* Add a little space from the bullet */
}

/* Make the bullets match the orange accent color */
.proj-desc li::marker {
    color: #e77728;
    font-weight: bold;
}


.proj-desc li b {
    color: #e77728; /* Make keywords orange */
    font-weight: 600; /* A little bolder */
}

.footer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    padding: 1em 18px 1em 18px;
    display: flex;
    text-align: left;
    position: relative;
}

/* This block will create the line */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;

    /* This draws the line */
    border-top: 1px solid #7c7c7a;
}

.footer a {
    color: #e77728;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer a:not(:last-child)::after {
    content: "|";
    color: #7c7c7a;
    margin-left: 10px;  /* Space before pipe */
    margin-right: 10px; /* Space after pipe */
}

@media (max-width: 640px) {
    /* This is your new rule */
    body {
        padding: 3em 1.5em; /* Reduces the large 7em padding for mobile */
    }
    .hero {
        padding: 15px 12px;
    }
}