:root {
    --ink: #1f2a1f;
    --paper: #f9f4ea;
    --card: #fffdf8;
    --pine: #30513a;
    --tomato: #d85232;
    --gold: #f0b539;
    --border: rgba(48, 81, 58, 0.16);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 15% 0%, #fff3d9, transparent 44%),
                radial-gradient(circle at 85% 12%, #dcead4, transparent 36%),
                var(--paper);
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    backdrop-filter: blur(7px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--tomato), #be421f);
    color: #fff;
    font-size: 14px;
}

.topnav {
    display: flex;
    gap: 16px;
    font-size: 0.92rem;
    font-weight: 600;
}

.top-cta {
    border-radius: 999px;
    background: var(--pine);
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.admin-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 900px) {
    .admin-layout {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .admin-layout > section:first-child {
        grid-row: span 2;
    }
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

h1,
h2,
h3 {
    font-family: "Fraunces", Georgia, serif;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.subtitle {
    margin: 0;
    color: rgba(31, 42, 31, 0.8);
}

.form-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.form-row.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.86rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
}

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

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

button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

button.primary {
    background: var(--pine);
    color: #fff;
}

button.secondary {
    background: #fff;
    border-color: var(--border);
}

button.warn {
    background: #fff2ee;
    color: #8f2f17;
    border-color: rgba(216, 82, 50, 0.3);
}

button.inline {
    padding: 4px 10px;
    font-size: 0.86rem;
    vertical-align: baseline;
}

.list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.list-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.list-item h3 {
    margin: 0;
    font-size: 1.1rem;
}

.list-item p {
    margin: 6px 0 8px;
    font-size: 0.9rem;
    color: rgba(31, 42, 31, 0.75);
}

.list-item .item-actions {
    display: flex;
    gap: 8px;
}

.item-actions a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 0.86rem;
    background: #fff;
}

.status {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #255e2f;
}

footer {
    margin-top: 22px;
    font-size: 0.88rem;
    color: rgba(31, 42, 31, 0.68);
}

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

    .topnav {
        width: 100%;
        justify-content: space-between;
    }
}
