@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg: #faf9f7;
    --text: #404040;
    --text-soft: #6b6b6b;
    --accent: #98a975;
    --accent-soft: #c4b8a6;
    --danger: #8c3a3a;
    --card: #fffdfb;
    --border: #e8e2d9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 10% 10%, #f0ebe3 0%, transparent 36%),
        radial-gradient(circle at 85% 15%, #f3efe7 0%, transparent 28%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.01em;
    margin: 0 0 0.6rem;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: #f9f7f4e6;
    backdrop-filter: blur(4px);
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-header nav a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    text-decoration: none;
}

.page-shell {
    width: min(980px, 92vw);
    margin: 1rem auto 1.5rem;
    flex: 1;
    display: grid;
    gap: 1rem;
}

.site-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.9rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: var(--card);
    box-shadow: 0 6px 20px #00000008;
}

.cards-grid {
    display: grid;
    gap: 1rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.recipe-cover {
    width: 100%;
    border-radius: 10px;
    max-height: 320px;
    object-fit: cover;
    margin-bottom: 0.8rem;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-grid,
.recipe-form {
    display: grid;
    gap: 0.8rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
    color: var(--text-soft);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    background: #fff;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    text-decoration: none;
    background: var(--accent-soft);
    color: var(--text);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-light {
    background: transparent;
    border-color: var(--border);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.flash {
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
}

.flash-success {
    background: #edf2e4;
    border: 1px solid #d2dec0;
}

.flash-error {
    background: #f6e6e6;
    border: 1px solid #e4c2c2;
}

.pill {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.muted {
    color: var(--text-soft);
}

ul,
ol {
    padding-left: 1.2rem;
}

@media (min-width: 780px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-card {
        max-width: 520px;
        margin: 0 auto;
    }
}
