:root {
    --paper: #f5eddc;
    --paper-deep: #e8dcc1;
    --ink: #221910;
    --accent: #7f1d1d;
    --border: #b39c72;
    --shadow: rgba(34, 25, 16, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.65), transparent 35%),
        linear-gradient(180deg, #c8b48b 0%, #e8dcc1 30%, #d4c09b 100%);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(242, 232, 209, 0.96));
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px var(--shadow);
}

.masthead {
    padding: 28px 28px 18px;
    text-align: center;
    border-bottom: 4px double var(--ink);
}

.masthead h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.paper-kicker,
.tagline,
.masthead-meta,
.section-label,
.story-date {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.paper-kicker,
.tagline,
.masthead-meta {
    margin: 6px 0;
}

.masthead-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(127, 29, 29, 0.08);
}

.top-nav a {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent;
}

.top-nav a.active,
.top-nav a:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.55);
}

.nav-spacer {
    flex: 1;
}

.notice {
    margin: 16px 24px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.72);
}

.notice.success {
    border-left-color: #21603c;
}

.notice.error {
    border-left-color: #8f1f1f;
}

.home-layout,
.content-page {
    padding: 24px;
}

.home-layout {
    display: grid;
    grid-template-columns: 2fr 1.25fr 0.95fr;
    gap: 24px;
}

.lead-story,
.news-column,
.sidebar,
.content-card {
    background: rgba(255, 251, 243, 0.8);
    border: 1px solid var(--border);
    padding: 18px;
}

.lead-story h2,
.content-card h2,
.story-listing h3 {
    margin-top: 0;
}

.story-preview,
.story-body,
.content-card p,
.story-listing p {
    line-height: 1.65;
}

.secondary-featured-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(179, 156, 114, 0.55);
}

.secondary-featured-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(179, 156, 114, 0.35);
}

.secondary-featured-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.secondary-featured-item h3 {
    margin: 6px 0;
}

.story-listing {
    padding-bottom: 14px;
}

.story-divider {
    border-bottom: 1px solid rgba(179, 156, 114, 0.55);
    margin-bottom: 18px;
}

.story-thumb,
.full-story-image {
    margin: 16px 0;
    border: 1px solid var(--border);
}

.read-more,
button {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fdf7ea;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.danger-button {
    background: #8f1f1f;
    border-color: #8f1f1f;
}

.sidebar section + section {
    margin-top: 28px;
}

.site-social-band {
    padding: 16px 24px 14px;
    border-top: 1px solid rgba(179, 156, 114, 0.55);
    background: rgba(127, 29, 29, 0.05);
}

.site-social-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    color: var(--ink);
}

.social-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--ink);
    color: #fdf7ea;
}

.social-chip-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-facebook .social-chip-icon {
    background: #1f4f99;
}

.social-instagram .social-chip-icon {
    background: #9d2f7a;
}

.social-x .social-chip-icon {
    background: #111111;
}

.social-youtube .social-chip-icon {
    background: #b01f1f;
}

.social-whatsapp .social-chip-icon {
    background: #1d8f5a;
}

.social-tiktok .social-chip-icon {
    background: #111111;
}

.social-reddit .social-chip-icon {
    background: #d85a18;
}

.social-chip:hover {
    background: rgba(255, 255, 255, 0.92);
}

.social-chip-label {
    min-width: 0;
    font-size: 0.92rem;
    text-align: left;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 24px 12px;
    border-top: 4px double var(--ink);
    font-size: 0.95rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer-left,
.site-footer-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer-right {
    margin-left: auto;
}

.narrow-page {
    max-width: 760px;
    margin: 0 auto;
}

.form-card form,
.admin-columns form {
    display: grid;
    gap: 12px;
}

.settings-form {
    gap: 20px;
}

.settings-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(179, 156, 114, 0.55);
    background: rgba(255, 255, 255, 0.42);
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
}

textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.checkbox-row input {
    width: auto;
}

.admin-grid,
.admin-columns {
    display: grid;
    gap: 18px;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-columns {
    grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.95fr);
}

.admin-panel-link,
.admin-list-item {
    display: block;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: var(--ink);
}

.admin-panel-link strong,
.admin-panel-link span {
    display: block;
}

.admin-note {
    margin-top: 18px;
}

.full-story .story-body img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 920px) {
    .home-layout,
    .admin-columns {
        grid-template-columns: 1fr;
    }

    .page-shell {
        width: min(100%, calc(100% - 16px));
        margin: 8px auto;
    }

    .masthead,
    .top-nav,
    .home-layout,
    .content-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-social-band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-social-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .site-footer-right {
        margin-left: 0;
    }
}
