<style>
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f4f1ea;
    color: #222;
}

.topbar {
    background: #071527;
    color: white;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}

.nav {
    max-width: 1180px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 15px;
}

.nav a:hover {
    background: rgba(255,255,255,.25);
}

.hero {
    width: min(1180px, calc(100% - 28px));
    margin: 22px auto 18px;
    padding: 38px 28px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #071527, #0a3a66);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.hero p {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    opacity: .92;
}

.container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto 45px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 16px 12px;
    min-height: 135px;
    text-align: center;
    box-shadow: 0 7px 18px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.year {
    font-size: 15px;
    color: #9a6a00;
    font-weight: bold;
    margin-bottom: 8px;
}

.poem-title {
    color: #073763;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.35;
    font-size: 16px;
}

.poem-title:hover {
    text-decoration: underline;
}

.poet {
    margin-top: 10px;
}

.poet a {
    font-size: 15px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}

.poet a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.empty {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 7px 18px rgba(0,0,0,.08);
}
.search-row{
    display:grid;
    grid-template-columns:90px 1fr 130px;
    gap:12px;
    width:min(1180px, calc(100% - 28px));
    margin:24px auto;
}

.search-row input,
.search-row button{
    min-height:46px;
    border-radius:14px;
    border:1px solid #ccc;
    padding:10px 12px;
    font-size:14px;
    font-weight:bold;
}

.search-row button{
    background:#f4a024;
    color:#092b52;
    cursor:pointer;
    border:none;
}

.alphabet{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:5px;
    width:min(1180px, calc(100% - 28px));
    margin:0 auto 28px;
}

.alphabet button{
    border:1px solid rgba(9,43,82,.18);
    background:#fffaf2;
    color:#092b52;
    border-radius:12px;
    padding:8px 11px;
    font-weight:bold;
    cursor:pointer;
}

.alphabet button.active,
.alphabet button:hover{
    background:#f4a024;
}

.no-results{
    display:none;
    text-align:center;
    background:white;
    padding:22px;
    border-radius:18px;
    width:min(1180px, calc(100% - 28px));
    margin:0 auto 25px;
    font-weight:bold;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .card {
        padding: 13px 8px;
        min-height: 125px;
    }

    .poem-title {
        font-size: 14px;
    }

    .year {
        font-size: 14px;
    }

    .poet a {
        font-size: 14px;
    }

    .nav a {
        font-size: 14px;
        padding: 8px 12px;
    }
	.search-row{
    grid-template-columns:60px 1fr 82px;
    gap:7px;
}

.search-row input,
.search-row button{
    font-size:12px;
    padding:8px 7px;
}
	
	
}
</style>