:root {
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    --font-body: var(--font-serif);
    --bg-color: #fbfbfb;
    --text-color: #333;
    --link-color: #333;
    --link-hover-color: #000;
    --meta-color: #888;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 3rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
    color: #000;
}

h1 { font-size: 2em; margin-bottom: 2rem; }
h2 { font-size: 1.5em; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: none; }

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
    transition: border-bottom-color 0.2s;
}

a:hover {
    text-decoration: none;
    border-bottom: 1px solid #000;
    color: var(--link-hover-color);
}

/* Header */
header {
    margin-bottom: 4rem;
    border-bottom: none;
    padding-bottom: 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    border-bottom: none;
}

/* Posts List */
ul.posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

li.post {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

li.post a {
    font-size: 1.1rem;
    border-bottom: none; /* No border for list links by default */
}
li.post a:hover {
    border-bottom: 1px solid #000;
}

.meta.date {
    color: var(--meta-color);
    font-size: 0.9rem;
    font-family: "Georgia", serif; /* Use slightly different serif for numbers if desired */
    white-space: nowrap;
    margin-left: 1rem;
}

/* Content Images */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
}

/* Homepage Intro Menu */
.intro-menu {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    margin-bottom: 4rem; /* Spacing before post list */
}

.intro-menu li {
    display: inline-block;
    margin-right: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #888;
}

.intro-menu li:before {
    content: "•";
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    color: #ccc;
}

.intro-menu li:first-child:before {
    margin-left: 0;
}

.intro-menu li a {
    color: #999;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intro-menu li a:hover {
    color: #000;
    border-bottom: 1px solid #000;
}
/* Notes Styles */
.notes-container {
    max-width: 700px;
    margin: 0 auto;
}

.notes-list {
    list-style: none;
    padding: 0;
}

.note-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #eee;
}

.note-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-family: var(--sans-font);
}

.note-anchor a {
    text-decoration: none;
    color: #ccc;
    margin-left: 0.5rem;
}

.note-anchor a:hover {
    color: var(--link-color);
}

.note-content {
    line-height: 1.7;
}

/* Gallery Styles */
.gallery-container {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    break-inside: avoid;
}

.gallery-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.gallery-content img:hover {
    opacity: 0.9;
}

.gallery-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}
