* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #f8f6f2;
    color: #4a4a4a;
    line-height: 1.8;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0dcd4;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 1px solid #c0b8ac;
    color: #6b6358;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-btn:hover,
.nav-btn.active {
    background: #9a9084;
    border-color: #9a9084;
    color: white;
}


.hero {
    width: 100%;
    height: 340px;
    background:
        radial-gradient(circle at 20% 30%, rgba(180, 170, 155, 0.12) 0 15%, transparent 16%),
        radial-gradient(circle at 80% 70%, rgba(160, 170, 165, 0.12) 0 18%, transparent 19%),
        linear-gradient(135deg, #f0ede6, #e8e4dc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-bottom: 2px double #e0dcd4;
}

.hero h1 {
    font-size: 44px;
    color: #5c5449;
    letter-spacing: 6px;
    margin-bottom: 14px;
    font-weight: normal;
}

.hero p {
    font-size: 17px;
    color: #7d7568;
    max-width: 600px;
    font-style: italic;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.section-title {
    font-size: 26px;
    color: #5c5449;
    text-align: center;
    margin-bottom: 32px;
    font-weight: normal;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background: #c0b8ac;
    margin: 10px auto 0;
}


.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #ece8e0;
    margin-bottom: 22px;
}


.poets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.poet-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ece8e0;
    transition: all 0.3s ease;
}

.poet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #c0b8ac;
}

.poet-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8d2c6, #b5ada0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.poet-name {
    font-size: 19px;
    color: #5c5449;
    margin-bottom: 4px;
}

.poet-dynasty {
    font-size: 13px;
    color: #9a9084;
}


.poet-detail {
    display: none;
    background: #fdfcf9;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid #ece8e0;
    animation: fadeIn 0.3s ease;
}

.poet-detail.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e0dcd4;
}

.detail-header .poet-avatar {
    width: 64px;
    height: 64px;
    font-size: 24px;
    margin: 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
}

.detail-bio h3,
.detail-poems h3 {
    color: #7d6f5e;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 1px;
}

.poem-item {
    background: #f8f6f2;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 14px;
    border-left: 2px solid #c0b8ac;
}

.poem-title {
    font-weight: bold;
    color: #5c5449;
    margin-bottom: 8px;
    font-size: 16px;
}

.poem-text {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    white-space: pre-line;
    font-style: italic;
}

.close-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid #c0b8ac;
    color: #7d7568;
    padding: 5px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.close-btn:hover {
    background: #c0b8ac;
    color: white;
}


.dynasty-heading {
    font-size: 22px;
    color: #7d6f5e;
    margin: 20px 0 18px;
    padding-left: 12px;
    border-left: 3px solid #b5ada0;
    font-weight: normal;
    letter-spacing: 2px;
}


footer {
    text-align: center;
    padding: 22px;
    color: #9a9084;
    font-size: 13px;
    border-top: 1px solid #ece8e0;
    background: #fff;
}


@media (max-width: 900px) {
    .poets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px;
        letter-spacing: 3px;
    }
    .poets-grid {
        grid-template-columns: 1fr;
    }
    .nav-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}
