* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(155, 107, 76, .16), transparent 32rem),
        #f7f3ec;
    color: #211b16;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: #6d2f18;
}

.site-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #fffaf1 0%, #f0dfcc 100%);
    border-bottom: 1px solid #e1d6c9;
    box-shadow: 0 8px 24px rgba(74, 39, 24, .06);
}

.brand {
    color: #4a2718;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.content-column {
    min-width: 0;
}

.sidebar-column {
    position: sticky;
    top: 1rem;
}

.search-form input {
    min-width: 220px;
}

.card,
.poem,
.comment,
.form,
.messages {
    background: #fffdf8;
    border: 1px solid #e1d6c9;
    border-radius: 14px;
    margin: 1rem 0;
    padding: 1rem;
}

.card,
.poem {
    box-shadow: 0 12px 30px rgba(74, 39, 24, .05);
}

.poem-body {
    font-size: 1.15rem;
    white-space: normal;
}

.muted {
    color: #776b60;
    font-size: .95rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 600;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1.25rem;
}

.home-tabs {
    border-bottom: 1px solid #e1d6c9;
    padding-bottom: .75rem;
}

.tabs a,
.button,
button {
    border: 1px solid #9b6b4c;
    border-radius: 999px;
    background: #fffaf1;
    color: #4a2718;
    cursor: pointer;
    display: inline-block;
    padding: .45rem .8rem;
    text-decoration: none;
}

.tabs a.active,
button:hover,
.button:hover {
    background: #ead8c7;
}

input,
textarea,
select {
    border: 1px solid #c8b8a9;
    border-radius: 8px;
    font: inherit;
    max-width: 100%;
    padding: .5rem;
    width: 100%;
}

.inline {
    display: inline;
}

.reply {
    margin-left: 2rem;
}

.unread {
    border-color: #9b6b4c;
}

.social-login {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.ad-banner {
    background:
        linear-gradient(135deg, rgba(255, 250, 241, .96), rgba(234, 216, 199, .72)),
        repeating-linear-gradient(45deg, transparent 0 12px, rgba(155, 107, 76, .06) 12px 13px);
    border: 1px dashed #b88a6a;
    border-radius: 16px;
    color: #4a2718;
    display: grid;
    gap: .25rem;
    margin: 1rem 0;
    min-height: 120px;
    padding: 1rem;
    place-content: center;
    text-align: center;
}

.ad-banner strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.ad-banner span {
    color: #776b60;
}

.ad-banner a {
    font-weight: 700;
    margin-top: .25rem;
}

.ad-kicker {
    color: #9b6b4c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0;
    text-transform: uppercase;
}

.ad-banner-top,
.ad-banner-footer {
    min-height: 96px;
}

.ad-banner-sidebar {
    min-height: 260px;
}

.sidebar-widget {
    background: #fffdf8;
    border: 1px solid #e1d6c9;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(74, 39, 24, .05);
    margin: 0 0 1rem;
    padding: 1rem;
}

.sidebar-widget-head {
    align-items: baseline;
    border-bottom: 1px solid #ead8c7;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
}

.sidebar-widget-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    margin: 0;
}

.category-links {
    font-size: .92rem;
    line-height: 1.7;
}

.category-links a {
    text-decoration: none;
}

.category-links a:hover,
.category-links a.active {
    font-weight: 700;
    text-decoration: underline;
}

.category-sep {
    color: #b88a6a;
    margin: 0 .15rem;
}

.category-more {
    border-top: 1px solid #ead8c7;
    margin: .75rem 0 0;
    padding-top: .65rem;
}

.category-more a {
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.25rem 0;
}

.category-cloud a {
    background: #fffdf8;
    border: 1px solid #e1d6c9;
    border-radius: 999px;
    padding: .45rem .85rem;
    text-decoration: none;
}

.category-cloud a.active,
.category-cloud a:hover {
    background: #ead8c7;
    border-color: #9b6b4c;
}

.site-footer {
    background: #211b16;
    border-top: 4px solid #9b6b4c;
    color: #fffaf1;
    margin-top: 2rem;
    padding: 1.25rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .site-header,
    .page-layout {
        display: block;
    }

    .site-header nav {
        margin-top: 1rem;
    }

    .search-form {
        margin: 1rem 0;
    }

    .sidebar-column {
        position: static;
    }
}
