* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header { padding: 2rem 2rem; border-bottom: 1px solid #e8e8e8; background: #fff; }
nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #888;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #1a1a1a; }

/* Main content */
main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

/* Page heading */
.page-heading {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}
.page-description {
    color: #888;
    font-size: 1.1rem;
    margin-top: 0.4rem;
}

/* Cards grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Video card */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
    border-color: #ddd;
    transform: translateY(-2px);
}
.card-video {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.card-video video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-body { padding: 1.2rem 1.5rem; }
.card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.card-body p {
    font-size: 0.95rem;
    color: #888;
}

/* Poem card */
.poem-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.2rem;
    border: 1px solid #eee;
    transition: border-color 0.2s, transform 0.2s;
}
.poem-card:hover {
    border-color: #ddd;
    transform: translateY(-2px);
}
.poem-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.poem-card .poem-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    font-style: italic;
    white-space: pre-line;
}
.poem-card .poem-date {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #aaa;
}
.poem-expand {
    display: block;
    margin-top: 1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.poem-expand:hover { color: #1a1a1a; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 200;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    position: relative;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #1a1a1a; }
.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-right: 2.5rem;
}
.modal-body {
    font-size: 1.1rem;
    line-height: 1.9;
    white-space: pre-line;
    color: #333;
}
.modal-date {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    color: #bbb;
    font-size: 0.95rem;
    border-top: 1px solid #e8e8e8;
}

/* Responsive */
@media (max-width: 600px) {
    nav { flex-direction: column; gap: 1rem; }
    main { padding: 2.5rem 1.2rem; }
    .grid { grid-template-columns: 1fr; }
}
