:root {
    --bg: #faf9f6; --bg-card: #fff; --text: #2c2c2c;
    --muted: #888; --accent: #7b4f9e; --border: #e8e2f0;
    --font-body: 'Georgia', serif; --font-ui: system-ui, sans-serif;
    --max-w: 760px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.8; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header { border-bottom: 1px solid var(--border); padding: 1rem 2rem; background: white; }
nav { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-title { font-size: 1.3rem; font-weight: bold; color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; font-family: var(--font-ui); font-size: 0.9rem; }

main { flex: 1; max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 2rem 1.5rem; }

.hero { text-align: center; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.hero h1 { font-size: 2.2rem; color: var(--accent); margin-bottom: 0.5rem; }
.hero-desc { color: var(--muted); font-style: italic; }

.poem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.poem-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; transition: box-shadow .2s, transform .2s; }
.poem-card:hover { box-shadow: 0 4px 16px rgba(123,79,158,.12); transform: translateY(-2px); }
.poem-card a { color: var(--text); }
.poem-card h3 { font-size: 1rem; color: var(--accent); margin-bottom: .3rem; }
.poem-card time { font-size: .78rem; color: var(--muted); font-family: var(--font-ui); display: block; margin-bottom: .4rem; }
.excerpt { font-size: .85rem; color: var(--muted); line-height: 1.5; }

.btn-all { display: inline-block; margin-top: .5rem; font-family: var(--font-ui); font-size: .95rem; color: var(--accent); border: 1px solid var(--accent); padding: .5rem 1.2rem; border-radius: 20px; transition: background .2s, color .2s; }
.btn-all:hover { background: var(--accent); color: white; text-decoration: none; }

.page-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.page-header h1 { color: var(--accent); font-size: 1.8rem; }
.page-header p { color: var(--muted); font-family: var(--font-ui); font-size: .9rem; }
.poem-list { display: flex; flex-direction: column; gap: .6rem; }
.poem-item { border-bottom: 1px solid var(--border); padding: .8rem 0; }
.poem-item a { color: var(--text); }
.poem-item h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: .2rem; }
.meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-family: var(--font-ui); font-size: .8rem; color: var(--muted); }

.tag { background: var(--border); color: var(--accent); padding: .15rem .5rem; border-radius: 12px; font-size: .75rem; font-family: var(--font-ui); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.tag-item { background: var(--bg-card); border: 1px solid var(--border); color: var(--accent); padding: .4rem .9rem; border-radius: 20px; font-family: var(--font-ui); transition: background .2s; }
.tag-item:hover { background: var(--accent); color: white; text-decoration: none; }
.tag-item span { color: var(--muted); font-size: .85em; }

.poem-single { max-width: 620px; margin: 0 auto; }
.poem-single header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.poem-single h1 { font-size: 2rem; color: var(--accent); line-height: 1.3; margin-bottom: .5rem; }
.poem-body { font-size: 1.05rem; line-height: 2; }
.poem-body p { margin-bottom: 1.2rem; }
.poem-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: .9rem; }

footer { text-align: center; padding: 1.5rem; font-family: var(--font-ui); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); }

@media (max-width: 600px) {
    html { font-size: 16px; }
    .poem-grid { grid-template-columns: 1fr; }
    nav { justify-content: center; }
}
