/*
 * Cantina v1. Loud and friendly: a bright green header with a red order button, a cream page, chunky
 * display type, content in framed cards (red on top, green down the side). Colors come from the site's
 * theme variables (see Theme::css). The one rule that keeps it readable whatever a customer picks: text on
 * the green uses --c-on-primary, text on the red uses --c-on-accent, text on the page uses --c-ink, links
 * use --c-link. The red (--c-accent) fills buttons and draws edges; it is never the color of words.
 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--c-link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--c-on-primary); box-shadow: 0 0 0 5px var(--c-primary); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--c-primary); color: var(--c-on-primary); padding: .75rem 1rem; }
.skip:focus { left: 0; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 46rem; }
section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; }
.ornament { display: none; }

/* Header: a green bar, the name on the left, the menu on the right. */
.site-header { background: var(--c-primary); color: var(--c-on-primary); border-bottom: 5px solid var(--c-accent); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; color: var(--c-on-primary); text-decoration: none; }
/* The owner's logo, when there is one, in place of the name. */
.brand.has-logo { display: block; line-height: 0; }
.brand.has-logo img { display: block; width: auto; height: auto; max-height: 4.25rem; max-width: min(16rem, 60vw); object-fit: contain; }
.site-header nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; padding: .4rem 0; color: var(--c-on-primary); font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--c-on-primary); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--c-on-primary); }
.site-header nav a.nav-cta { padding: .4rem 1rem; background: var(--c-accent); color: var(--c-on-accent); border: 3px solid var(--c-accent); }
.site-header nav a.nav-cta:hover { background: transparent; border-color: var(--c-on-primary); color: var(--c-on-primary); }

/* Hero: a big photo (or a plain green panel), the name in chunky capitals. */
.hero { background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-shade) 100%); color: var(--c-on-primary); text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.hero h1 { margin: 0 0 .6rem; font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: .08em; text-transform: uppercase; }
.hero .lede { max-width: 40rem; margin: 0 auto 1.75rem; font-size: clamp(1.05rem, 2.4vw, 1.5rem); letter-spacing: .2em; text-transform: uppercase; }

/* A picture or a silent video behind the hero. A dark layer is always between it and the words. */
.hero.has-media { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: min(70vh, 34rem); display: grid; align-items: center; padding-bottom: clamp(5rem, 12vw, 8rem); }
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 18, 13, .55), rgba(8, 18, 13, .7)); }

.btn { display: inline-block; padding: .7rem 1.8rem; background: var(--c-accent); color: var(--c-on-accent); border: 3px solid var(--c-accent); font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--c-bg); color: var(--c-ink); }
.hero .btn:hover, .site-footer .btn:hover { background: var(--c-on-primary); color: var(--c-primary); border-color: var(--c-on-primary); }

.page-title { text-align: center; padding: clamp(2.25rem, 6vw, 4rem) 0 0; }
.page-title h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.75rem); text-transform: uppercase; letter-spacing: .04em; }
.page-title + section { padding-top: 1.5rem; }

/* The first letter of a heading in the green, like a painted sign. */
.section-title { margin: 0 0 1.5rem; text-align: center; font-size: clamp(2rem, 5vw, 3.25rem); }
.section-title::first-letter, .page-title h1::first-letter { color: var(--c-link); }

/* The framed card: a red edge on top, a green edge down the left. */
.story .wrap, .dishes .wrap, .visit .wrap, .specials .wrap, .events .wrap { position: relative; }
.story .wrap.narrow { padding: 2.25rem clamp(1.25rem, 5vw, 3rem) 2.5rem; background: var(--c-surface); border-top: 8px solid var(--c-accent); border-left: 8px solid var(--c-primary); }
.story { text-align: center; }
.story p { max-width: 36rem; margin: 0 auto 1.1rem; font-size: 1.15rem; }
.dishes .wrap { padding-top: 2.25rem; padding-bottom: 2.5rem; background: var(--c-surface); border-top: 8px solid var(--c-accent); border-left: 8px solid var(--c-primary); }
.specials { background: rgba(0, 0, 0, .04); }

.more { margin: 2.25rem 0 0; text-align: center; }

/* The menu: framed cards, the price in a green tag. */
/* The menu's categories: one "Jump to a section" button that opens the list, pinned at the top of the screen while the menu scrolls (see site/body-end). */
.menu-jump { position: sticky; top: 0; z-index: 4; padding: .6rem 0; background: var(--c-bg); border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 20%, transparent); }
.menu-jump details { position: relative; max-width: 26rem; margin: 0 auto; }
.menu-jump summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .9rem; background: var(--c-bg); color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: 4px; font-weight: 700; letter-spacing: .02em; list-style: none; cursor: pointer; }
.menu-jump summary::-webkit-details-marker { display: none; }
.menu-jump summary::after { content: ""; flex: none; width: .5rem; height: .5rem; margin-top: -.25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.menu-jump details[open] summary::after { margin-top: .2rem; transform: rotate(-135deg); }
.menu-jump summary:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.menu-jump ul { position: absolute; left: 0; right: 0; top: calc(100% + .3rem); z-index: 5; max-height: min(24rem, 60vh); overflow-y: auto; margin: 0; padding: .25rem 0; list-style: none; background: var(--c-bg); border: 2px solid var(--c-ink); border-radius: 4px; }
.menu-jump li a { display: block; padding: .6rem .9rem; color: var(--c-ink); font-weight: 600; text-decoration: none; }
.menu-jump li a:hover, .menu-jump li a:focus-visible { background: var(--c-ink); color: var(--c-bg); }
.menu-jump li a.is-current { box-shadow: inset 5px 0 0 var(--c-accent); font-weight: 800; }
[id^="menu-cat-"] { scroll-margin-top: 5rem; }
.menu-category-note { max-width: 36rem; margin: -.5rem auto 1.75rem; text-align: center; font-weight: 500; }
.menu-items { display: grid; grid-template-columns: 1fr; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--c-bg); border: 2px solid var(--c-ink); border-left: 8px solid var(--c-primary); }
.item-photo { flex: none; width: 6.5rem; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--c-ink); }
.item-body { flex: 1; min-width: 0; }
.menu-item h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 0 0 .25rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.leader { display: none; }
.price { padding: .05rem .6rem; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.menu-item p { margin: 0 0 .4rem; font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .1rem 0 .4rem; padding: 0; list-style: none; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tags li { padding: 0 .5rem; border: 1px solid var(--c-ink); }
.menu-item .where { font-size: .9rem; font-weight: 600; }

/* Specials and events. */
.special-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.special { padding: 1.5rem; background: var(--c-bg); border: 2px solid var(--c-ink); border-top: 8px solid var(--c-accent); }
.special-when { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.special h2, .special h3 { margin: 0 0 .4rem; font-size: 1.6rem; text-transform: uppercase; }
.special .price { display: inline-block; margin: 0 0 .4rem; font-size: 1.1rem; }
.special p { margin: 0 0 .5rem; font-size: 1rem; }
.special-where { font-weight: 600; }

.event-list { max-width: 48rem; margin: 0 auto; padding: 0; list-style: none; }
.event { display: grid; grid-template-columns: 10rem 1fr; gap: 1.25rem; margin-bottom: 1.25rem; padding: 1.25rem 1.4rem; background: var(--c-bg); border: 2px solid var(--c-ink); border-left: 8px solid var(--c-primary); }
.event-when { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.event-time { display: block; font-weight: 700; }
.event h2, .event h3 { margin: 0 0 .25rem; font-size: 1.6rem; text-transform: uppercase; }
.event p { margin: .25rem 0; font-size: 1rem; }
.event-where { font-weight: 600; }

/* Locations. */
.location-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 0 auto; }
.location { padding: 1.5rem; text-align: center; background: var(--c-bg); border: 2px solid var(--c-ink); border-top: 8px solid var(--c-accent); }
.location h3 { margin: .2rem 0 .5rem; font-size: 1.7rem; text-transform: uppercase; }
.location h3 a { color: var(--c-ink); }
.location address { margin-bottom: .6rem; font-style: normal; }
.location p { margin: 0 0 .6rem; }
.badge { display: inline-block; margin: 0 0 .4rem; padding: 0 .6rem; background: var(--c-ink); color: var(--c-bg); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: center; gap: .1rem 1.25rem; margin: .8rem 0; font-size: .95rem; text-align: left; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.visit { background: rgba(0, 0, 0, .04); }
.visit h2 { margin: 0 0 1.5rem; text-align: center; font-size: clamp(2rem, 5vw, 3.25rem); }
.visit h2::first-letter { color: var(--c-link); }

/* Footer: near-black, a red edge on top. */
.site-footer { padding: 3rem 0 1.75rem; background: var(--c-ink); color: var(--c-bg); border-top: 8px solid var(--c-accent); font-size: 1rem; }
.site-footer :focus-visible { outline-color: var(--c-bg); box-shadow: 0 0 0 5px var(--c-ink); }
.footer-brand { margin: 0 0 1.5rem; font-family: var(--font-heading); font-size: 2rem; letter-spacing: .03em; text-transform: uppercase; text-align: center; }
.footer-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); text-align: center; }
.site-footer h2 { margin: 0 0 .5rem; font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: inherit; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 .5rem; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.credit { margin: 2.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid currentColor; font-size: .9rem; text-align: center; }

@media (min-width: 52rem) {
    .menu-items { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40rem) {
    .site-header .wrap { justify-content: center; text-align: center; }
    .site-header nav ul { justify-content: center; }
    .event { grid-template-columns: 1fr; gap: .25rem; }
}

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

/* Coming soon: the green panel fills the page. Words are on-primary; the red is only a line. */
.soon { background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-shade) 100%); color: var(--c-on-primary); min-height: 100vh; display: grid; align-items: center; text-align: center; padding: 4rem 0; border-top: 8px solid var(--c-accent); }
.soon :focus-visible { outline-color: var(--c-on-primary); }
.soon .soon-brand { margin: 0 0 1rem; font-family: var(--font-heading); font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
/* A logo is made for the page color, so it sits on a plate of it. */
.soon .soon-logo { display: block; margin: 0 auto 1.5rem; width: auto; height: auto; max-height: 7rem; max-width: min(24rem, 80vw); padding: .75rem 1.5rem; background: var(--c-bg); object-fit: contain; }
.soon h1 { margin: 0 0 .75rem; font-size: clamp(2.4rem, 8vw, 5rem); letter-spacing: .05em; text-transform: uppercase; }
.soon .lede { max-width: 38rem; margin: 0 auto 1.75rem; font-size: clamp(1.1rem, 2.6vw, 1.5rem); }
.soon-opening { display: inline-block; margin: 0; padding: .45rem 1.4rem; background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.soon-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 3rem; margin-top: 2.5rem; padding: 1.5rem 0 0; border-top: 2px solid currentColor; font-size: 1rem; }
.soon-contact a { color: inherit; }
.soon-contact address { font-style: normal; }
.soon-contact h3 { margin: 0 0 .25rem; font-size: 1.3rem; text-transform: uppercase; }
.soon-contact p { margin: 0; }
.soon-contact .social { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; width: 100%; }

/* The social marks in the header, in the header's own text color. */
.social-icons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1rem .3rem; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; color: inherit; border-radius: 50%; text-decoration: none; }
.social-icons a:hover { opacity: .7; }
.social-icon { display: block; width: 1.3rem; height: 1.3rem; }

/* Sections the owner adds: words, pictures beside them or in a gallery, and a button. The pictures are kept square-cornered and cropped to one shape so a mixed set still lines up. */
.block { padding: clamp(2.5rem, 6vw, 4.25rem) 0; }
.block-grid.beside { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.block-layout-right .block-grid.beside .block-images { order: 2; }
.block-images { display: grid; gap: .6rem; }
.block-images.count-2, .block-images.count-3, .block-images.count-4 { grid-template-columns: 1fr 1fr; }
/* Pictures are shown whole, never cropped to a box. One picture beside the words may be tall, so it is capped and centered. */
.block-images img, .block-gallery img { display: block; width: 100%; height: auto; }
.block-images.count-1 img { max-height: 40rem; object-fit: contain; }
.block-gallery { align-items: start; }
.block-text .section-title { text-align: left; }
.block-text .section-title::after { margin-left: 0; margin-right: auto; }
.block-text p { margin: 0 0 1rem; }
.block-text .more { margin-top: 1.25rem; text-align: left; }
.block-gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: 2rem 0 0; padding: 0; }
.block-grid:not(.beside) .block-text { max-width: 44rem; margin: 0 auto; text-align: center; }
.block-grid:not(.beside) .block-text .section-title { text-align: center; }
.block-grid:not(.beside) .block-text .section-title::after { margin-left: auto; margin-right: auto; }
.block-grid:not(.beside) .block-text .more { text-align: center; }
@media (max-width: 44rem) {
    .block-grid.beside { grid-template-columns: 1fr; }
    .block-layout-right .block-grid.beside .block-images { order: 0; }
}
