/* Minimalist Academic Styling */
:root {
    --home-bg: #ffffff;
    --home-ink: #000000;
    --home-muted: #555555;
    --home-line: #cccccc;
    --home-max: 42rem;
    --home-wide: 56rem;
    --link-color: #0000ee;
    --link-visited: #551a8b;
}

html.dark-mode {
    --home-bg: #121212;
    --home-ink: #e0e0e0;
    --home-muted: #a0a0a0;
    --home-line: #444444;
    --link-color: #90caf9;
    --link-visited: #ce93d8;
}

html,
body.home-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background: var(--home-bg);
    color: var(--home-ink);
    font-family: "Times New Roman", Times, serif;
}

body.home-body {
    display: block;
}

.home-body a {
    color: var(--link-color);
    text-decoration: underline;
}

.home-body a:visited {
    color: var(--link-visited);
}

.home-page {
    max-width: var(--home-wide);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.home-hero {
    max-width: var(--home-max);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--home-line);
}

.home-kicker {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--home-muted);
}

.home-hero h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: normal;
    line-height: 1.15;
}

.home-bio {
    margin: 0 0 1.75rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--home-ink);
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.home-social-link {
    display: inline-flex;
    line-height: 0;
    text-decoration: none;
}

.home-social-icon {
    display: block;
    width: 2rem;
    height: 2rem;
}

.home-social-icon-dark {
    display: none;
}

html.dark-mode .home-social-icon-light {
    display: none;
}

html.dark-mode .home-social-icon-dark {
    display: block;
}

.home-cta {
    font-weight: bold;
}

.home-cta-secondary {
    font-weight: normal;
}

.home-section {
    max-width: var(--home-max);
    margin-bottom: 2.75rem;
}

.home-section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: normal;
}

.home-heading-with-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.home-tip {
    position: relative;
    width: 0.85rem;
    height: 0.85rem;
    padding: 0;
    border: 1px solid var(--home-ink);
    border-radius: 50%;
    background: transparent;
    color: var(--home-ink);
    font-family: inherit;
    font-size: 0.65rem;
    line-height: 1;
    cursor: help;
}

.home-tip-text {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.35rem);
    z-index: 5;
    max-width: 18rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--home-line);
    background: var(--home-bg);
    color: var(--home-muted);
    font-size: 0.95rem;
    font-weight: normal;
    line-height: 1.4;
}

.home-tip:hover + .home-tip-text,
.home-tip:focus-visible + .home-tip-text {
    display: block;
}

.home-section p {
    margin: 0 0 1rem;
    line-height: 1.55;
    color: var(--home-ink);
}

.home-feature {
    max-width: none;
    padding: 1.5rem 0; /* Minimalist feature just adds whitespace, no borders */
}

.home-feature h2 {
    margin-top: 0;
}

.home-post-list {
    list-style: disc; /* Use standard bullets */
    margin: 0 0 0 1.5rem; /* Standard indent */
    padding: 0;
}

.home-post-list li {
    padding: 0.5rem 0;
}

.home-post-list a {
    text-decoration: underline;
}

.home-post-meta {
    display: inline;
    margin-left: 0.5rem;
    font-style: italic;
    color: var(--home-muted);
}

.home-empty {
    margin: 0;
    color: var(--home-muted);
    font-style: italic;
}

.home-note {
    font-size: 1rem;
    color: var(--home-muted);
}

.resume-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.resume-form label {
    font-size: 1rem;
}

.resume-form input {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--home-line);
    background: var(--home-bg);
    color: var(--home-ink);
}

.resume-form button {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--home-ink);
    background: var(--home-bg);
    color: var(--home-ink);
    cursor: pointer;
}

.resume-document {
    margin-top: 0.5rem;
    line-height: 1.55;
}

.resume-document h3,
.resume-document h4 {
    margin: 0 0 0.5rem;
    font-weight: normal;
}

.resume-document section {
    margin-top: 1.25rem;
}

.resume-document ul {
    margin: 0 0 0 1.25rem;
    padding: 0;
}

@media (max-width: 600px) {
    .home-page {
        padding: 1.5rem 1rem 3rem;
    }
}
