:root {
    color-scheme: light;
    --cream: #f8f6ef;
    --paper: #fffdf8;
    --green: #43543a;
    --green-dark: #34432d;
    --red: #a54b35;
    --ink: #292d26;
    --muted: #62665b;
    --line: #e7e3d8;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--cream);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-width: 320px;
    margin: 0;
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px max(5vw, 20px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    flex: 0 0 auto;
    text-decoration: none;
}

.wordmark img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 32px);
}

.main-nav a {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a:hover,
.text-link:hover,
.social-links a:hover {
    color: var(--red);
}

.main-nav .nav-order {
    padding: 9px 17px;
    border-radius: 24px;
    background: var(--green);
    color: white;
}

.main-nav .nav-order:hover {
    background: var(--green-dark);
    color: white;
}

.hero {
    position: relative;
    display: grid;
    min-height: min(690px, 78vh);
    min-height: min(690px, 78svh);
    place-items: center;
    overflow: hidden;
    background: #403d32;
    color: white;
    text-align: center;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center 55%;
}

.hero-shade {
    background: linear-gradient(90deg, rgb(23 28 21 / 68%), rgb(23 28 21 / 38%));
}

.hero-content {
    position: relative;
    width: min(700px, 90%);
    padding: 72px 0 90px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #e4c98c;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(3rem, 8vw, 5.7rem);
    letter-spacing: -0.045em;
}

.hero-content > p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 auto;
    color: rgb(255 255 255 / 90%);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    background: var(--cream);
    color: var(--green-dark);
}

.button-light:hover {
    background: white;
}

.button-green {
    background: var(--green);
    color: white;
}

.button-green:hover {
    background: var(--green-dark);
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgb(255 255 255 / 78%);
    font-size: 0.8rem;
    text-decoration: none;
    transform: translateX(-50%);
}

.section {
    width: min(1080px, 88%);
    margin: 0 auto;
    padding: 90px 0;
}

.story {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: clamp(36px, 7vw, 88px);
}

.section-copy h2,
.section-heading h2,
.order-content h2,
.find-section h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4.5vw, 3.3rem);
}

.section-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.find-section > p:not(.eyebrow) {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 5px;
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.story-image {
    display: block;
    width: min(100%, 400px);
    height: 380px;
    justify-self: center;
    border-radius: 16px;
    object-fit: cover;
    object-position: center 25%;
}

.menu-section {
    padding: 82px 6vw 90px;
    background: var(--paper);
    text-align: center;
}

.section-heading {
    max-width: 620px;
    margin: 0 auto 36px;
}

.section-heading > p:not(.eyebrow) {
    margin-bottom: 0;
}

.menu-list {
    width: min(720px, 100%);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    text-align: left;
}

.pizza-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.pizza-photo {
    grid-column: 1;
    width: 96px;
    height: 96px;
    cursor: zoom-in;
}

.menu-item-copy {
    grid-column: 2;
    min-width: 0;
}

.menu-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 23px 4px;
    border-bottom: 1px solid var(--line);
}

.menu-item h3 {
    margin-bottom: 0;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.menu-item-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.dietary-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #cad3c0;
    border-radius: 12px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.5;
}

.vegan-tag {
    border-color: #d8dfc9;
    color: #566b3f;
}

.halal-tag {
    border-color: #e7c8bd;
    color: var(--red);
}

.menu-item p {
    max-width: 580px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.menu-price {
    grid-column: 3;
    flex: 0 0 auto;
    color: var(--green);
    font-size: 1.05rem;
    font-weight: 700;
}

#pizza-viewer {
    width: min(960px, calc(100% - 32px));
    max-height: 90svh;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 28px 100px rgb(0 0 0 / 40%);
}

#pizza-viewer::backdrop {
    background: rgb(20 26 19 / 80%);
    backdrop-filter: blur(6px);
}

.pizza-viewer-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.pizza-viewer-photo {
    position: relative;
    display: grid;
    align-items: center;
    background: #262b23;
    min-width: 0;
}

.pizza-viewer-details {
    min-width: 0;
    align-self: center;
    padding: 64px 36px 40px;
}

.pizza-viewer-details h2 {
    margin-bottom: 20px;
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.035em;
}

#pizza-viewer-description {
    color: var(--muted);
}

.pizza-viewer-price {
    margin: 24px 0 0;
    color: var(--red);
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
}

.pizza-viewer-close {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
}

.pizza-viewer-close button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.pizza-viewer-close button:hover {
    background: var(--green);
    color: white;
}

.pizza-viewer-close svg {
    width: 20px;
    height: 20px;
}

.pizza-viewer-navigation {
    position: absolute;
    top: 50%;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.pizza-viewer-navigation button {
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: rgb(22 28 19 / 75%);
    color: white;
    font-size: 1.3rem;
    pointer-events: auto;
}

.pizza-viewer-navigation button:hover {
    background: var(--green);
    color: white;
}

#pizza-viewer-position {
    position: absolute;
    bottom: 12px;
    left: 50%;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgb(22 28 19 / 75%);
    color: white;
    font-size: 0.85rem;
    transform: translateX(-50%);
}

#pizza-viewer-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85svh;
    object-fit: contain;
}

#pizza-viewer-status:empty {
    display: none;
}

.menu-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: min(720px, 100%);
    margin: 30px auto 0;
    text-align: left;
}

.menu-legend p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.menu-legend strong {
    display: inline-grid;
    width: 25px;
    height: 25px;
    margin-right: 5px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 0.72rem;
}

.menu-legend .vegan-mark {
    background: #687d4f;
}

.menu-legend .halal-mark {
    background: var(--red);
}

.menu-note {
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.allergen-note {
    width: min(720px, 100%);
    margin: 20px auto 0;
    padding: 14px 18px;
    border-left: 3px solid var(--red);
    background: var(--cream);
    color: var(--muted);
    font-size: 0.82rem;
    text-align: left;
}

.allergen-note strong {
    color: var(--ink);
}

.order-section {
    padding: 86px 6vw;
    background: var(--green);
    color: white;
    text-align: center;
}

.order-content {
    max-width: 650px;
    margin: 0 auto;
}

.order-content .eyebrow {
    color: #e4c98c;
}

.order-content > p:not(.eyebrow) {
    max-width: 570px;
    margin: 0 auto;
    color: rgb(255 255 255 / 83%);
}

.order-content > p.small-note {
    margin: 0 auto;
    padding-top: 48px;
    font-size: 0.82rem;
}

.find-section {
    padding: 82px 6vw;
    text-align: center;
}

.find-section > p:not(.eyebrow) {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.location-map {
    display: block;
    width: min(900px, 100%);
    height: 360px;
    margin: 28px auto 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 27px;
}

.social-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.social-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.site-footer {
    padding: 28px 20px;
    background: #292f27;
    color: white;
    text-align: center;
}

.site-footer p {
    margin: 9px 0 0;
    color: rgb(255 255 255 / 75%);
    font-size: 0.84rem;
}

.site-footer .copyright {
    margin-top: 3px;
    color: rgb(255 255 255 / 48%);
    font-size: 0.76rem;
}

:focus-visible {
    outline: 3px solid #d4a64f;
    outline-offset: 3px;
}

.footer-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

button {
    font: inherit;
    cursor: pointer;
}

.footer-controls button {
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-controls button {
    color: white;
    font-size: 0.82rem;
}

#analytics-privacy h2 {
    font-size: 1.5rem;
}

#analytics-privacy {
    width: min(650px, calc(100% - 32px));
    max-height: 85svh;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
}

#analytics-privacy::backdrop {
    background: rgb(0 0 0 / 55%);
}

@media (max-width: 760px) {
    .pizza-viewer-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #pizza-viewer-image {
        height: 42svh;
    }

    .pizza-viewer-details {
        padding: 24px;
    }

    .pizza-viewer-details h2 {
        margin-bottom: 12px;
    }

    .pizza-viewer-details .button {
        margin-top: 18px;
    }

    .pizza-viewer-price {
        margin-top: 14px;
    }

    html {
        scroll-padding-top: 185px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 5vw;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px 18px;
        padding: 2px 0 4px;
        white-space: nowrap;
    }

    .main-nav a {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        font-size: 0.82rem;
    }

    .main-nav .nav-order {
        padding: 6px 12px;
    }

    .site-header .wordmark img {
        width: 48px;
        height: 48px;
    }

    .hero {
        min-height: 610px;
        min-height: min(700px, 76svh);
    }

    .story {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 65px 0;
    }

    .story-image {
        height: 320px;
    }

    .menu-section,
    .order-section,
    .find-section {
        padding-top: 65px;
        padding-bottom: 68px;
    }

    .menu-legend {
        grid-template-columns: 1fr;
        gap: 10px;
    }

}

@media (max-width: 420px) {
    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding-top: 58px;
    }

    .section {
        width: 88%;
    }

    .menu-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .pizza-photo {
        width: 64px;
        height: 64px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
