html {
    --color-accent: oklch(60% 0.15 250);
    accent-color: var(--color-accent);
    font-family: sans-serif;
    line-height: 1.5;
    color-scheme: light dark;
}

body {
    max-width: 100ch;
    margin-inline: max(1em, (100% - 100ch) / 2);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    font-size: 400%;
}

nav {
    display: flex;
    margin-bottom: 2em;
    --border-color: oklch(50% 10% 200 / 40%);
    border-bottom: 1px solid var(--border-color);
}

nav ul,
nav li {
    display: contents;
}

nav a {
    flex: 1;
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 0.5em;
}

nav a:hover {
    border-bottom: 0.4em solid var(--color-accent);
    padding-bottom: calc(0.5em - 0.4em);
    background-color: color-mix(in oklch, var(--color-accent), canvas 85%);
}

nav a.current {
    border-bottom: 0.4em solid var(--border-color);
    padding-bottom: calc(0.5em - 0.4em);
}

input, textarea, button, select {
    font: inherit;
}

form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1em;
}

form label,
form button {
    grid-column: 1 / -1;
}

form label {
    display: grid;
    grid-template-columns: subgrid;
}

form label input,
form label textarea {
    grid-column: 2 / -1;
}

.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;
    padding: 1em;
    border: 1px solid #eee; 
}

.projects article h2 {
    margin: 0;
}

.projects article img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5em;
    padding-top: 2em;
}

.home-page h1 {
    font-size: 300%;
    margin: 0;
}

.home-page img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--color-accent); 
    object-fit: cover;
}

.home-page p {
    max-width: 65ch;
}


.resume-container {
    padding: 1em 0;
}

.resume-header {
    text-align: center;
    margin-bottom: 2.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5em;
}

.resume-header h2 {
    margin: 0 0 0.25em 0;
    font-size: 2.5em;
    color: #333;
}

.resume-header p {
    font-size: 1em;
    color: #555;
    margin: 0;
}

.resume-header a {
    color: var(--color-accent);
    text-decoration: none;
}

.resume-header a:hover {
    text-decoration: underline;
}

.cv-section h2 {
    color: var(--color-accent);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.2em;
}

.resume-entry {
    margin-bottom: 1.5em;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 0.25em;
}

.resume-entry-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.resume-entry-header h3 a {
    color: inherit;
    text-decoration: none;
}

.resume-entry-header h3 a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.resume-entry-header h4 {
    margin: 0;
    font-style: italic;
    color: #555;
    font-size: 0.9em;
    font-weight: normal;
}

.resume-entry > p {
    margin: 0.25em 0;
}

.resume-entry > ul {
    margin-top: 0.5em;
    padding-left: 2em; 
}

.resume-entry li {
    margin-bottom: 0.5em;
}

.resume-entry .skills, .resume-entry .coursework {
    font-size: 0.9em;
    color: #444;
}

.resume-entry strong {
    font-weight: 600;
    color: #333;
}

.cv-section ul {
    list-style: disc;
}

.color-scheme {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 80%;
}