:root {
    --bg-color: #ffffff;
    --primary-color: #2c3e50;
    --secondary-color: #666;
    --anchor-color: #4285F4;
}

html {
  color-scheme: light dark;
}

body {
    font-family: system-ui;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    color: var(--primary-color);
    background-color: var(--bg-color);
}

main {
  max-width: min(70ch, 100% - 4rem);
  margin-inline: auto;
}

h1 {
    font-size: 1,46rem;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 1,33rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h3 {
    font-size: 1,21rem;
    font-weight: 700;
    color: var(--primary-color);
}

h4 {
    font-weight: 400;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

ul {
    padding-left: 1.25rem;
}

ul li {
    margin-bottom: .5rem;
}

a {
    color: var(--anchor-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
}

/* Pages */

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-page section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.home-page footer {
    flex-grow: 0;
    padding: 1rem 0;
    text-align: center;
}

.resume section {
    margin-bottom: 40px;
}

.resume section h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.resume nav {
    margin: 20px 0;
}

/* Media Queries */

@media (prefers-color-scheme: dark) {
    :root{
        --bg-color: #121212;
        --primary-color: #ffffff;
        --secondary-color: #f1f1f1;
        --anchor-color: #82aaff;
    }
}

@media (min-width: 768px) {
    body {
        padding: 0 0;
    }
}

@media print {
    .no-print {
        display: none;
    }
}
