/* Body text — elegant and readable */
body {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2c2c2c;
}

/* Headings — grand and academic */
h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Code blocks — clean monospace */
code,
pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65em;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 6px;
}

/* Math */
.math {
    font-size: 1.1em;
}

/* Nav list */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 0;
    margin: 0;
}

/* Nav links — correct selector */
nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

/* Hover */
nav ul li a:hover {
    color: #222;
}

.blog-name a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.blog-name a:hover {
    color: #888;
    transition: color 0.2s ease;
}

body {
    font-family: 'EB Garamond', 'Noto Serif TC', serif;
}

figcaption {
    text-align: center;
}