:root {
    --color-accent: oklch(65% 50% 0); /* Define the accent color */
    --border-gray: oklch(80% 3% 200); /* Default border color */
    --lighter-gray: oklch(85% 3% 200); /* Lighter version for the current page */
}

body {
    font: 100%/1.5 system-ui;
    max-width: 50rem;
    margin-inline: auto;
    padding: 1rem;
}

/* Step 2.1: Reset <ul> and <li> if used */
nav ul, 
nav li {
    display: contents; /* Removes styling from list elements */
}

/* Step 2.2: Apply Flexbox to the navigation */
nav {
    display: flex;
    justify-content: space-around; /* Evenly distribute items */
    align-items: center; /* Center items vertically */
    gap: 1rem; /* Space between items */
    padding: 1rem;
    margin-bottom: 1rem; /* Separate nav from content */
    border-bottom: 1px solid var(--border-gray); /* Cool gray bottom border */
}

/* Step 2.3: Style navigation links */
nav a {
    flex: 1; /* Each link takes equal space */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underlines */
    color: inherit; /* Inherit text color from parent */
    padding: 0.5em; /* Add some spacing */
}

/* Step 2.3: Style the current page link */
nav a.current {
    border-bottom: 0.4em solid var(--lighter-gray); /* Thicker bottom border */
    padding-bottom: 0.1em; /* Reduce padding to balance height */
}

/* Step 2.4: Hover styles with the accent color */
nav a:hover {
    border-bottom: 0.4em solid var(--color-accent); /* Accent color on hover */
}

/* Step 3.1: Integrate typography for the form */
input,
textarea,
button {
    font: inherit;
}

/* Step 3.2: Top-down layout */
label,
input,
textarea,
button {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

label {
    margin-block: 0.5rem;
}

/* Step 3.3: Grid layout */
form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1em;
}

label {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
}
  
input,
textarea,
button {
    width: 100%;
    box-sizing: border-box;
}
  
button {
    grid-column: 1 / -1;
}



img {
    max-width: 100%;
}

/* Step 4.2: Applying a responsive grid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
    gap: 1em;
}

/* Step 4.3: Horizontal alignment with subgrid */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
    gap: 1em;
}

.projects article {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
}

.projects h2 {
    margin: 0;
}


/* Step 4.4: Finishing touches */
h1 {
    font-size: 400%; /* Make H1 significantly larger for better hierarchy */
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1; /* Reduce line height for better readability */
    text-wrap: balance; /* Prevent uneven line breaks */
}



/* General resume layout */
#resume {
    max-width: 50rem;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--lighter-gray);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Resume header */
#resume h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Download button */
#resume p a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

#resume p a:hover {
    background: oklch(60% 50% 0);
}

/* Resume article (content container) */
#resume article {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Resume section headings */
#resume h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#resume h4 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 0.5rem;
}

/* Experience, Education, and Awards sections */
#resume section article {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

#resume section article:last-child {
    border-bottom: none;
}

/* Job & Education Titles */
#resume h5 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

/* Dates */
#resume time {
    display: block;
    font-size: 0.9rem;
    color: gray;
    margin-bottom: 0.5rem;
}

/* Job & Award descriptions */
#resume p {
    font-size: 1rem;
    line-height: 1.5;
}
