:root {
    --pz-cream: oklch(96% 0.018 83);
    --pz-flour: oklch(91% 0.032 80);
    --pz-wheat: oklch(82% 0.058 72);
    --pz-clay: oklch(55% 0.105 48);
    --pz-tomato: oklch(45% 0.12 32);
    --pz-basil: oklch(39% 0.07 138);
    --pz-cacao: oklch(23% 0.035 55);
    --pz-muted: oklch(43% 0.028 62);
    --pz-line: oklch(78% 0.033 74);
    --pz-shadow: 0 24px 70px rgb(59 38 20 / 14%);
    --pz-radius: 8px;
    --pz-shell: min(1120px, calc(100vw - 40px));
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--pz-cream);
}

body.pizzeria-demo-body {
    margin: 0;
    background: var(--pz-cream);
}

body.pizzeria-demo-body .pizzeria-page {
    min-height: 100vh;
}

.pizzeria-page {
    color: var(--pz-cacao);
    background:
        radial-gradient(circle at 14% 12%, rgb(148 88 42 / 10%), transparent 26rem),
        linear-gradient(135deg, var(--pz-cream), var(--pz-flour));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.pz-shell {
    width: var(--pz-shell);
    margin-inline: auto;
}

.pz-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(940px, calc(100vw - 28px));
    min-height: 54px;
    padding: 7px 8px 7px 18px;
    border: 1px solid rgb(92 61 34 / 16%);
    border-radius: 999px;
    background: rgb(249 240 223 / 82%);
    box-shadow: 0 16px 48px rgb(61 38 19 / 12%);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.pz-nav a {
    color: var(--pz-cacao);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
}

.pz-nav__brand {
    overflow: hidden;
    max-width: 34ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pz-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pz-nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    transition: background-color 160ms ease;
}

.pz-nav__links a:hover,
.pz-nav__links a:focus-visible {
    background: rgb(88 52 24 / 10%);
}

.pizzeria-page a:focus-visible {
    outline: 3px solid color-mix(in oklch, var(--pz-tomato), var(--pz-cream) 22%);
    outline-offset: 4px;
}

.pz-section {
    padding: clamp(72px, 9vw, 132px) 0;
    position: relative;
}

.pz-kicker {
    margin: 0 0 14px;
    color: var(--pz-tomato);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pz-section-heading {
    max-width: 720px;
}

.pz-section-heading h2,
.pz-story h2,
.pz-contact h2,
.pz-map-card h2 {
    margin: 0;
    color: var(--pz-cacao);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 0.96;
}

.pz-copy {
    margin: 0;
    color: var(--pz-muted);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.75;
    max-width: 62ch;
}

.pz-hero {
    min-height: 94svh;
    display: grid;
    align-items: center;
    position: relative;
    isolation: isolate;
    padding: 100px 0 64px;
}

.pz-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.pz-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(248 238 220 / 94%) 0%, rgb(248 238 220 / 72%) 45%, rgb(48 29 16 / 28%) 100%),
        radial-gradient(circle at 78% 25%, rgb(126 52 35 / 24%), transparent 30rem);
}

.pz-photo {
    min-height: 280px;
    border-radius: var(--pz-radius);
    background-color: var(--pz-wheat);
    background-image: linear-gradient(135deg, rgb(59 38 20 / 10%), transparent 44%);
    background-position: center;
    background-size: cover;
    box-shadow: var(--pz-shadow);
}

.pz-photo--hero {
    position: absolute;
    inset: 7% 5% 7% auto;
    width: min(46vw, 680px);
    min-height: 78svh;
    border-radius: 0;
    opacity: 0.94;
    background-image: url("../img/hero-pizza.webp");
    background-position: center right;
}

.pz-hero__seal {
    position: absolute;
    right: min(8vw, 110px);
    bottom: 13vh;
    display: grid;
    place-items: center;
    width: 118px;
    aspect-ratio: 1;
    border: 1px solid rgb(255 247 229 / 68%);
    border-radius: 999px;
    color: var(--pz-cream);
    background: rgb(61 38 19 / 74%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
}

.pz-hero__content {
    max-width: 700px;
    margin-inline-start: max(20px, calc((100vw - var(--pz-shell)) / 2));
}

.pz-hero__title {
    margin: 0;
    max-width: 10ch;
    color: var(--pz-cacao);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.1rem, 12vw, 9.8rem);
    font-weight: 500;
    line-height: 0.84;
}

.pz-hero__intro {
    max-width: 560px;
    margin: 28px 0 0;
    color: var(--pz-muted);
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    line-height: 1.55;
}

.pz-actions,
.pz-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.pz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--pz-cacao);
    border-radius: 999px;
    color: var(--pz-cacao);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.pz-button:hover,
.pz-button:focus-visible {
    transform: translateY(-2px);
}

.pz-button--primary {
    color: var(--pz-cream);
    background: var(--pz-cacao);
}

.pz-button--ghost {
    background: rgb(248 238 220 / 54%);
}

.pz-intro__grid,
.pz-story__grid,
.pz-contact__grid,
.pz-map__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}

.pz-specials {
    background: oklch(92% 0.03 77);
}

.pz-specials__grid {
    display: grid;
    gap: 0;
    margin-top: 42px;
    border-top: 1px solid var(--pz-line);
}

.pz-special-card,
.pz-menu-group,
.pz-info-list,
.pz-map-card {
    border: 1px solid var(--pz-line);
    border-radius: var(--pz-radius);
    background: rgb(252 244 230 / 72%);
}

.pz-special-card {
    display: grid;
    grid-template-columns: 72px minmax(108px, 0.32fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 48px);
    align-items: start;
    padding: clamp(22px, 4vw, 38px) 0;
    border-width: 0 0 1px;
    background: transparent;
    min-width: 0;
}

.pz-special-card__price {
    display: inline-block;
    color: var(--pz-tomato);
    font-size: 0.85rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.pz-special-card__number {
    color: color-mix(in oklch, var(--pz-cacao), transparent 62%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.82;
}

.pz-special-card h3,
.pz-menu-group h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.pz-special-card p,
.pz-map-card p {
    margin: 0;
    color: var(--pz-muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.pz-story {
    background:
        linear-gradient(90deg, transparent, rgb(93 54 27 / 8%)),
        var(--pz-cream);
}

.pz-photo--oven {
    min-height: 560px;
    background-image: url("../img/oven-fire.webp");
    background-position: center;
}

.pz-story__text {
    display: grid;
    gap: 24px;
}

.pz-menu__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 42px;
}

.pz-menu-group {
    padding: 26px;
}

.pz-menu-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--pz-line);
}

.pz-menu-item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.pz-menu-item p {
    margin: 0;
    color: var(--pz-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.pz-menu-item strong {
    white-space: nowrap;
    color: var(--pz-tomato);
    font-size: 0.9rem;
}

.pz-gallery {
    padding-block: 34px;
    background: var(--pz-cacao);
}

.pz-gallery__track {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1fr;
    gap: 16px;
    width: min(1240px, calc(100vw - 32px));
    margin-inline: auto;
}

.pz-gallery .pz-photo {
    min-height: clamp(260px, 32vw, 440px);
    box-shadow: none;
}

.pz-gallery__figure {
    overflow: hidden;
    min-height: clamp(260px, 32vw, 440px);
    margin: 0;
    border-radius: var(--pz-radius);
    background: var(--pz-wheat);
}

.pz-gallery__figure img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(260px, 32vw, 440px);
    object-fit: cover;
}

.pz-gallery__figure--tall {
    transform: translateY(28px);
}

.pz-contact {
    background: oklch(89% 0.035 75);
}

.pz-contact__main {
    max-width: 720px;
}

.pz-info-list {
    padding: 10px 26px;
}

.pz-info-list div {
    display: grid;
    gap: 5px;
    padding: 22px 0;
    border-bottom: 1px solid var(--pz-line);
}

.pz-info-list div:last-child {
    border-bottom: 0;
}

.pz-info-list span {
    color: var(--pz-tomato);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pz-info-list strong {
    font-size: 1.05rem;
}

.pz-map-section {
    padding-top: 92px;
}

.pz-map__grid {
    grid-template-columns: 0.55fr 1fr;
}

.pz-map-card {
    padding: clamp(24px, 4vw, 38px);
}

.pz-map-card h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.pz-link {
    display: inline-flex;
    margin-top: 28px;
    color: var(--pz-tomato);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.pz-map-embed {
    overflow: hidden;
    min-height: 430px;
    border: 1px solid var(--pz-line);
    border-radius: var(--pz-radius);
    box-shadow: var(--pz-shadow);
}

.pz-map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
    filter: sepia(16%) saturate(82%) contrast(94%);
}

.pz-mobile-bar {
    display: none;
}

.pz-reveal {
    will-change: transform, opacity;
}

@media (max-width: 900px) {
    :root {
        --pz-shell: min(100vw - 28px, 720px);
    }

    .pz-section {
        padding: 64px 0;
    }

    .pz-hero {
        min-height: auto;
        padding: 96px 0 46px;
    }

    .pz-photo--hero {
        position: relative;
        inset: auto;
        width: calc(100vw - 28px);
        min-height: 330px;
        margin: 0 auto 34px;
        border-radius: var(--pz-radius);
    }

    .pz-hero__media {
        position: relative;
        order: -1;
    }

    .pz-hero__media::after {
        border-radius: var(--pz-radius);
        background: linear-gradient(180deg, transparent 20%, rgb(248 238 220 / 42%));
    }

    .pz-hero__seal {
        right: 28px;
        bottom: 56px;
        width: 92px;
        font-size: 0.86rem;
    }

    .pz-hero__content {
        margin-inline: auto;
    }

    .pz-hero__title {
        font-size: clamp(3.7rem, 18vw, 6rem);
        max-width: 9ch;
    }

    .pz-intro__grid,
    .pz-story__grid,
    .pz-contact__grid,
    .pz-map__grid,
    .pz-specials__grid,
    .pz-menu__columns,
    .pz-gallery__track {
        grid-template-columns: 1fr;
    }

    .pz-photo--oven {
        min-height: 360px;
    }

    .pz-gallery__track {
        width: var(--pz-shell);
    }

    .pz-map-embed,
    .pz-map-embed iframe {
        min-height: 340px;
    }
}

@media (max-width: 560px) {
    .pz-nav {
        top: 10px;
        min-height: 50px;
        padding: 6px 7px 6px 14px;
    }

    .pz-nav__brand {
        max-width: 18ch;
    }

    .pz-nav__links a {
        min-height: 44px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .pz-nav__links a:first-child {
        display: none;
    }

    .pz-actions,
    .pz-contact-actions {
        display: grid;
    }

    .pz-button {
        width: 100%;
    }

    .pz-special-card {
        grid-template-columns: 52px 1fr;
        gap: 12px 18px;
        min-height: auto;
    }

    .pz-special-card__price {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .pz-special-card > div {
        grid-column: 1 / -1;
    }

    .pz-menu-group {
        padding: 22px 18px;
    }

    .pz-menu-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .pz-mobile-bar {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 30;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
        border: 1px solid rgb(92 61 34 / 18%);
        border-radius: 999px;
        background: rgb(249 240 223 / 90%);
        box-shadow: 0 18px 44px rgb(61 38 19 / 18%);
        backdrop-filter: blur(14px);
    }

    .pz-mobile-bar a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        border-radius: 999px;
        color: var(--pz-cream);
        background: var(--pz-cacao);
        font-size: 0.9rem;
        font-weight: 850;
        text-decoration: none;
    }

    .pz-mobile-bar a + a {
        color: var(--pz-cacao);
        background: rgb(255 249 238 / 74%);
    }

    .pz-gallery__figure--tall {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pz-reveal {
        will-change: auto;
    }
}
