:root {
    --ink: #202124;
    --muted: #5d6572;
    --line: #dce2ea;
    --paper: #f7f9fb;
    --surface: #ffffff;
    --accent: #0f766e;
    --accent-dark: #134e4a;
    --coral: #d45b43;
    --gold: #b7791f;
    --shadow: 0 18px 48px rgba(32, 33, 36, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #eaf6f4 55%, #fff2e8 100%);
    border-bottom: 1px solid var(--line);
}

.nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1160px;
    padding: 18px 24px;
}

.brand {
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 18px;
}

.nav-links a {
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.compact-header {
    background: #ffffff;
}

.admin-link,
.button-link,
button {
    background: var(--accent);
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
}

.button-link.secondary,
.admin-link {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--accent-dark);
}

.hero {
    margin: 0 auto;
    max-width: 1160px;
    padding: 62px 24px 72px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
    margin: 0 0 18px;
    max-width: 850px;
}

.hero p {
    color: var(--muted);
    font-size: 19px;
    margin: 0;
    max-width: 720px;
}

.eyebrow {
    color: var(--coral) !important;
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px !important;
    text-transform: uppercase;
}

.page {
    margin: 0 auto;
    max-width: 1160px;
    padding: 28px 24px 64px;
}

.text-page {
    max-width: 760px;
    padding-top: 58px;
}

.text-page h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 18px;
}

.text-page p {
    color: var(--muted);
    font-size: 18px;
}

.creator-section {
    margin-top: 42px;
}

.creator-section h2 {
    font-size: 24px;
    margin: 0 0 16px;
}

.creator-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.creator-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 4px;
    padding: 16px;
    text-decoration: none;
}

.creator-card:hover {
    border-color: var(--accent);
}

.creator-handle {
    color: var(--accent-dark);
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.creator-network {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-panel,
.admin-panel,
.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    padding: 18px;
}

.search-panel {
    align-items: end;
    grid-template-columns: 2fr 1fr 1fr auto;
    margin-top: -58px;
    position: relative;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.results-head,
.admin-head {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 34px 0 18px;
}

.results-head h2,
.admin-head h1 {
    margin: 0;
}

.results-head p,
.admin-head p {
    color: var(--muted);
    margin: 0;
}

.post-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 18px;
}

.post-card h2 {
    font-size: 21px;
    line-height: 1.2;
    margin: 10px 0;
}

.post-card p {
    color: var(--muted);
    margin: 0 0 14px;
}

.post-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-meta span,
.tag-list a,
.tag-list span,
.status-pill {
    background: #eef7f5;
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    text-decoration: none;
}

.tag-list a {
    background: #fff5ec;
    color: #8a4a10;
}

.embed-box {
    margin-top: 16px;
    overflow: hidden;
}

.embed-box iframe,
.embed-box blockquote {
    max-width: 100% !important;
    min-width: 0 !important;
}

.external-link {
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--accent-dark);
    display: block;
    font-weight: 800;
    padding: 16px;
    text-align: center;
    text-decoration: none;
}

.empty-state {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 36px;
    text-align: center;
}

.admin-shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 24px;
}

.admin-table {
    background: #fff;
    border: 1px solid var(--line);
    border-collapse: collapse;
    width: 100%;
}

.category-form {
    margin-bottom: 24px;
}

.category-table {
    margin-top: 24px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f1f5f9;
    font-size: 13px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.login-panel {
    margin: 80px auto;
    max-width: 420px;
}

.contact-form {
    margin-top: 28px;
}

.alert {
    background: #fff3f0;
    border: 1px solid #f0b3a5;
    border-radius: 7px;
    color: #8c2f20;
    padding: 12px;
}

@media (max-width: 900px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .search-panel,
    .post-grid,
    .form-grid,
    .creator-grid {
        grid-template-columns: 1fr;
    }

    .results-head,
    .admin-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
