:root {
    --ink: #1f2a1f;
    --paper: #f9f4ea;
    --card: #fffdf8;
    --pine: #30513a;
    --tomato: #d85232;
    --gold: #f0b539;
    --border: rgba(48, 81, 58, 0.15);
    --shadow: 0 14px 40px rgba(53, 41, 24, 0.14);
    --max-width: 980px;
}

* {
    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;
    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.93rem;
    font-weight: 600;
}

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

.hero {
    margin-top: 20px;
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

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

.hero h1 {
    margin: 8px 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.04;
}

.kicker {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.95;
}

.subtext {
    margin: 8px 0 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.92);
}

.meta {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
}

.detail-vote-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-button {
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
}

.vote-button:hover {
    background: rgba(255, 255, 255, 0.26);
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

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

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

.panel h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

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

.tips {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.tips h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

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

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: 800px) {
    .recipe-layout {
        grid-template-columns: 1fr;
    }

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

    footer {
        flex-direction: column;
    }
}
