:root {
    --ink: #1f2a1f;
    --paper: #f9f4ea;
    --card: #fffdf8;
    --pine: #30513a;
    --tomato: #d85232;
    --amber: #d88c43;
    --green: #4a7a52;
    --red: #b64934;
    --border: rgba(48, 81, 58, 0.15);
    --shadow: 0 14px 40px rgba(53, 41, 24, 0.14);
    --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 {
    text-decoration: none;
    color: inherit;
}

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

.topbar {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    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: 18px;
    font-weight: 600;
    font-size: 0.94rem;
}

.topnav a {
    opacity: 0.85;
}

.topnav a:hover {
    opacity: 1;
}

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

.hero {
    margin-top: 22px;
    display: grid;
    gap: 18px;
    grid-template-columns: 1.25fr 1fr;
}

.eyebrow {
    margin: 0;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #8a5d1f;
    padding: 6px 12px;
    background: rgba(240, 181, 57, 0.18);
    border-radius: 999px;
}

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

h1 {
    margin: 14px 0;
    line-height: 1.03;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.subtitle {
    margin: 0;
    max-width: 58ch;
    color: rgba(31, 42, 31, 0.82);
}

.hero-note {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero-note h2 {
    margin: 0;
    font-size: 1.5rem;
}

.hero-note p {
    margin: 10px 0;
    color: rgba(31, 42, 31, 0.8);
}

.hero-note ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.jump-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jump-links a {
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}

.recipe-list {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.recipe-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 10px 22px rgba(66, 52, 31, 0.08);
}

.recipe-header {
    padding: 16px;
    color: #fff;
}

.recipe-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.recipe-header p {
    margin: 7px 0 0;
    font-weight: 700;
    opacity: 0.92;
}

.recipe-header.green {
    background: linear-gradient(130deg, var(--green), #355d3d);
}

.recipe-header.amber {
    background: linear-gradient(130deg, var(--amber), #b56d31);
}

.recipe-header.red {
    background: linear-gradient(130deg, var(--red), #983728);
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

.recipe-content h4 {
    margin: 0 0 8px;
    font-size: 1.14rem;
}

.recipe-content ul,
.recipe-content ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 7px;
}

.recipe-actions {
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.recipe-actions a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: 0.86rem;
}

.vote-button {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(48, 81, 58, 0.22);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
}

.vote-button:hover {
    border-color: var(--pine);
    color: var(--pine);
}

.vote-count {
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(31, 42, 31, 0.72);
}

.planner {
    margin-top: 20px;
    border-radius: 20px;
    background: linear-gradient(110deg, #30513a, #3f6a4b);
    color: #fff;
    padding: 20px;
}

.planner h2 {
    margin: 0;
    font-size: 1.55rem;
}

.planner p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
}

footer {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(31, 42, 31, 0.68);
}

@media (max-width: 920px) {
    .hero,
    .recipe-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar {
        border-radius: 18px;
    }

    .topnav {
        width: 100%;
        justify-content: space-between;
        font-size: 0.86rem;
    }

    footer {
        flex-direction: column;
    }
}
