/* ============================================================
   Personal Site — CSS
   Aesthetic: early-2000s academic webpage
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    background-color: #f5f0e8;
    color: #111111;
    font-family: Georgia, "Times New Roman", Times, serif;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* --- Links --- */
a {
    color: #0000cc;
    text-decoration: underline;
}
a:visited {
    color: #551a8b;
}
a:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* --- Headings --- */
h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: -0.01em;
    margin-bottom: 0.15rem;
}

h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.8rem 0 0.5rem;
    border-bottom: 1px solid #bbb;
    padding-bottom: 0.15rem;
}

h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: bold;
    margin: 1.2rem 0 0.25rem;
}

p {
    margin-bottom: 0.85rem;
}

/* --- Header --- */
#site-header {
    padding: 1.5rem 0 0.75rem;
}

#site-title {
    font-size: 2rem;
    line-height: 1.1;
}

#site-subtitle {
    font-size: 0.92rem;
    color: #555;
    font-style: italic;
    margin-top: 0.25rem;
    font-family: Georgia, serif;
}

/* --- About photo --- */
#pfp {
    float: right;
    width: 175px;
    height: 175px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid #aaa;
    margin: 0.1rem 0 1rem 1.5rem;
}

/* --- Navigation --- */
nav {
    margin: 0.5rem 0 0.25rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.88rem;
}

nav a {
    margin-right: 1rem;
    text-decoration: none;
    color: #0000cc;
    border-bottom: 1px dotted #0000cc;
}
nav a:visited {
    color: #0000cc;
}
nav a:hover {
    color: #cc0000;
    border-bottom-color: #cc0000;
}
nav a.current {
    font-weight: bold;
    border-bottom: 1px solid #0000cc;
    color: #0000cc;
}

/* --- HR dividers --- */
hr {
    border: none;
    border-top: 1px solid #bbb;
    margin: 1.25rem 0;
}

hr.thick {
    border-top: 2px solid #888;
    margin: 1rem 0;
}

/* --- Sections --- */
.section {
    margin-bottom: 1.5rem;
}

/* --- Currently list --- */
#currently dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1rem;
    font-size: 0.95rem;
}

#currently dt {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.82rem;
    color: #555;
    padding-top: 0.1rem;
    white-space: nowrap;
}

#currently dd {
    margin: 0;
}

/* --- Footer --- */
footer {
    margin-top: 3rem;
    padding-top: 0.75rem;
    border-top: 1px solid #bbb;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.78rem;
    color: #666;
}

footer a {
    color: #666;
}

/* --- Utility --- */
.mono {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.88em;
}

.note {
    font-size: 0.88rem;
    color: #555;
    font-style: italic;
}

blockquote {
    border-left: 3px solid #aaa;
    margin: 1rem 0 1rem 0.5rem;
    padding-left: 1rem;
    color: #444;
    font-style: italic;
}

/* --- Blog / project list --- */
.entry-list {
    list-style: none;
    padding: 0;
}

.entry-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dotted #ccc;
}

.entry-list li:last-child {
    border-bottom: none;
}

.entry-date {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 0.1rem;
}

/* --- Responsive: narrow screens --- */
@media (max-width: 500px) {
    #site-header {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    #mascot {
        font-size: 0.65rem;
    }
    body {
        padding: 1rem 1rem 3rem;
    }
}
