/* ==========
   Palette (reference)
   Text:     #0a0a0a
   Bg:       #f0f0f0
   Hover:    #e4e4e4  (row shade)
   Line:     #e0e0e0  (hairlines)
   Muted:    #5f5f5f  (small labels, coming soon)
   ========== */

   /* ==========
   Base
   ========== */


/* Typography */
body {
    margin: 0;
    background-color: #f0f0f0;
    color: #0a0a0a;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

/* Section labels (About, Projects) */
main h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5f5f5f;
}

/* Links */
a {
    color: #0a0a0a;
    text-decoration: none;
}

/* ==========
   Layout
   ========== */

/* ==========
   Components
   ========== */

/* Header */
header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 12vw, 6rem);
    letter-spacing: -0.02em;
}

header p {
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5f5f5f;
}

/* Main: About */
.about {
    padding: 4rem 1rem;
}

.about p {
    max-width: 40rem;
    margin: 0;
}

/* Main: Projects */
.projects h2 {
    margin: 0;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.project-group {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.project-group h3 {
    width: 8rem;
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5f5f5f;
}

.project-group ul {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-group a {
    display: block;
    padding: 1rem 0;
}

.project-group a span {
    color: #5f5f5f;
}

/* Shade the row on hover */
.project-group:hover {
    background-color: #e4e4e4;
}

.project-group:hover h3 {
    color: #0a0a0a;
}

/* Clear outline for keyboard users */
.project-group a:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 4px;
}

/* Underline the project being pointed at */
.project-group a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 4rem 1rem 1rem;
}

footer p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5f5f5f;
}

/* ==========
   Desktop (800px and up)
   ========== */
@media (min-width: 50em) {
    header,
    .about,
    .projects h2,
    .project-group,
    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .about {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .project-group h3 {
        width: 16rem;
    }
}