:root {
    --bg: #fffaf5;
    --paper: rgba(255, 255, 255, 0.78);
    --paper-strong: #fffdfb;
    --line: rgba(99, 82, 74, 0.12);
    --ink: #57453e;
    --muted: #8a7268;
    --rose: #f7d9d6;
    --peach: #f7e7d9;
    --sage: #dce9de;
    --sky: #dce8f4;
    --butter: #faf0cf;
    --shadow: 0 18px 45px rgba(125, 100, 82, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(247, 217, 214, 0.8), transparent 32%),
        radial-gradient(circle at top right, rgba(220, 233, 222, 0.7), transparent 28%),
        linear-gradient(180deg, #fffaf5 0%, #fff7f3 48%, #fcfbf7 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 35%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 12%);
    pointer-events: none;
}

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

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 22px 64px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: rgba(255, 252, 249, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-kicker,
.section-tag,
.mini-tag {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--muted);
}

.brand-name {
    font-family: "Fraunces", serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 18px;
}

.site-nav a,
.nav-button {
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.nav-pill,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
}

.nav-pill,
.primary-button {
    background: linear-gradient(135deg, #efb7bc, #f0ceb0);
    box-shadow: 0 12px 24px rgba(209, 154, 148, 0.28);
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.soft-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 245, 0.86));
}

.hero-grid,
.content-panel.two-column,
.detail-layout {
    display: grid;
    gap: 22px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    margin-bottom: 26px;
}

.hero-copy,
.hero-portrait,
.page-hero,
.auth-card,
.detail-cover,
.detail-copy {
    padding: 32px;
}

h1,
h2,
h3 {
    font-family: "Fraunces", serif;
    margin: 0 0 14px;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4.6rem);
}

h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.lead {
    font-size: 1.05rem;
}

.hero-actions,
.price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.hero-note,
.price-badge {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(220, 233, 222, 0.92), rgba(220, 232, 244, 0.92));
}

.hero-portrait {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qr-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: auto;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(247, 217, 214, 0.28), rgba(220, 233, 222, 0.32)),
        rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(99, 82, 74, 0.08);
}

.qr-copy {
    display: grid;
    gap: 8px;
}

.qr-copy p {
    font-size: 0.95rem;
}

.qr-frame {
    position: relative;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 240, 0.96));
    box-shadow: 0 14px 26px rgba(125, 100, 82, 0.12);
}

.qr-frame::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(239, 183, 188, 0.32), rgba(220, 232, 244, 0.3));
    z-index: -1;
}

.qr-frame img {
    width: 124px;
    height: 124px;
    border-radius: 16px;
}

.placeholder-portrait,
.placeholder-box {
    display: grid;
    place-items: center;
    min-height: 280px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(247, 217, 214, 0.7), rgba(220, 233, 222, 0.75)),
        repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(255, 255, 255, 0.28) 10px, rgba(255, 255, 255, 0.28) 20px);
    color: var(--ink);
    text-align: center;
    padding: 18px;
}

.large-placeholder {
    min-height: 420px;
}

.portrait-caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-panel.two-column,
.detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 26px;
}

.section-block {
    margin-top: 34px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.section-description {
    max-width: 430px;
}

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

.recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card,
.product-card {
    overflow: hidden;
}

.media-thumb img,
.product-cover img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.media-content {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.inline-link {
    font-weight: 700;
    color: #8e5e66;
}

.detail-list,
.stack-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.stack-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
}

.stack-row span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.purchase-box {
    margin-top: 26px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(250, 240, 207, 0.72), rgba(247, 231, 217, 0.72));
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 70vh;
}

.auth-card {
    width: min(100%, 520px);
}

.auth-form p {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(99, 82, 74, 0.16);
    background: rgba(255, 255, 255, 0.88);
    font: inherit;
    color: var(--ink);
}

.small-note {
    margin-top: 12px;
    font-size: 0.92rem;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.message-success {
    background: rgba(220, 233, 222, 0.82);
}

.message-warning {
    background: rgba(250, 240, 207, 0.82);
}

.message-error {
    background: rgba(247, 217, 214, 0.9);
}

.empty-card {
    padding: 26px;
}

@media (max-width: 980px) {
    .site-header,
    .section-head,
    .stack-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .content-panel.two-column,
    .detail-layout,
    .card-grid,
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .qr-showcase {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .hero-copy,
    .hero-portrait,
    .page-hero,
    .auth-card,
    .detail-cover,
    .detail-copy {
        padding: 24px;
    }
}
