/*
 * Bienvenidos v1. A welcoming home page: a full-screen photo, the name arriving letter by letter, then the
 * welcome message; terracotta and marigold on cream; the menu as friendly cards. Colors come from the
 * site's theme variables (see Theme::css). The rule that keeps it readable whatever a customer picks:
 * text on the terracotta uses --c-on-primary, text on the page uses --c-ink, links use --c-link, and text
 * on the photo is white over a dark layer that is always there. Marigold (--c-accent) is decoration only.
 *
 * Motion: the welcome plays once and is over in about five seconds; nothing loops or keeps moving, so no
 * pause control is needed. With prefers-reduced-motion nothing animates and the page simply shows its end
 * state (every animation below only names where it starts from).
 */
*, *::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.125rem; line-height: 1.7; }
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; }
.welcome :focus-visible, .site-footer :focus-visible, .nav-cta:focus-visible { outline-color: #fff; 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: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 42rem; }
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }

/* Header: the name on the left, the menu on the right; a marigold line beneath. */
.site-header { border-bottom: 4px solid var(--c-accent); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 800; line-height: 1.15; color: var(--c-ink); 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: 3.25rem; max-width: min(16rem, 60vw); object-fit: contain; }
.site-header nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; padding: .4rem 0; color: var(--c-ink); font-size: 1rem; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--c-accent); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--c-primary); }
.site-header nav a.nav-cta { padding: .45rem 1.1rem; background: var(--c-primary); color: var(--c-on-primary); border: 2px solid var(--c-primary); border-radius: 999px; }
.site-header nav a.nav-cta:hover { background: transparent; color: var(--c-link); }

/* The welcome. Terracotta alone, or a photo with a dark layer between it and the words. */
.welcome { position: relative; isolation: isolate; display: grid; place-items: center; min-height: min(82vh, 44rem); padding: 5rem 0 6rem; overflow: hidden; text-align: center; background: var(--c-primary); color: var(--c-on-primary); }
.welcome.has-image { color: #fff; }
.welcome-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: settle 5s ease-out both; }
.welcome.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 8, 5, .6), rgba(15, 8, 5, .7)); }
/* A scalloped edge where the photo meets the page. */
.welcome::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: radial-gradient(circle at 12px 0, transparent 11px, var(--c-bg) 11.5px) 0 0 / 24px 14px repeat-x; }

.wordmark { margin: 0; font-family: var(--font-heading); font-size: clamp(2.8rem, 10vw, 7rem); font-weight: 800; line-height: 1.05; }
.word { display: inline-block; white-space: nowrap; margin: 0 .04em; }
.ch { display: inline-block; animation: rise .75s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(var(--i) * 55ms + 250ms); }
.rule { display: block; width: 9rem; height: 3px; margin: 1.4rem auto 1.5rem; background: var(--c-accent); transform-origin: center; animation: draw 1s ease-out 1.6s both; }
.welcome h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 600; animation: lift .9s ease-out 1.9s both; }
.welcome .lede { max-width: 38rem; margin: .9rem auto 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-style: italic; animation: lift .9s ease-out 2.15s both; }
.welcome .btn { margin-top: 2rem; animation: lift .9s ease-out 2.4s both; }

@keyframes settle { from { transform: scale(1.07); opacity: 0; } 20% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(.55em) rotate(-5deg); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes lift { from { opacity: 0; transform: translateY(.8rem); } }

.btn { display: inline-block; padding: .75rem 2rem; background: var(--c-primary); color: var(--c-on-primary); border: 2px solid var(--c-primary); border-radius: 999px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; text-decoration: none; }
.btn:hover { background: transparent; color: var(--c-link); }
.welcome .btn, .site-footer .btn { background: #fff; color: #2A1A12; border-color: #fff; }
.welcome .btn:hover, .site-footer .btn:hover { background: transparent; color: #fff; }
.welcome:not(.has-image) .btn { background: var(--c-on-primary); color: var(--c-primary); border-color: var(--c-on-primary); }
.welcome:not(.has-image) .btn:hover { background: transparent; color: var(--c-on-primary); }
.site-footer .btn { background: var(--c-on-primary); color: var(--c-primary); border-color: var(--c-on-primary); }
.site-footer .btn:hover { background: transparent; color: var(--c-on-primary); }

.page-title { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0 0; }
.page-title h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.5rem); }
.page-title + section { padding-top: 1.5rem; }

.section-title { margin: 0 0 2rem; text-align: center; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-title::after { content: ""; display: block; width: 4rem; height: 4px; margin: .7rem auto 0; background: var(--c-accent); border-radius: 2px; }

.story, .specials { background: rgba(127, 127, 127, .1); }
.story { text-align: center; }
.story p { max-width: 38rem; margin: 0 auto 1.25rem; font-size: 1.2rem; }

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

/* The menu: friendly cards, the picture on top when there is one. */
/* 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: -1rem auto 2rem; text-align: center; font-style: italic; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; flex-direction: column; overflow: hidden; background: rgba(127, 127, 127, .1); border-radius: 16px; }
.item-photo { width: 100%; max-width: none; aspect-ratio: 16 / 10; object-fit: cover; }
.item-body { flex: 1; padding: 1rem 1.2rem 1.2rem; }
.menu-item h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: 0 0 .3rem; font-size: 1.3rem; line-height: 1.25; }
.leader { display: none; }
.price { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.menu-item p { margin: 0 0 .4rem; font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0; padding: 0; list-style: none; font-size: .8rem; font-weight: 600; }
.tags li { padding: 0 .6rem; border: 1.5px solid var(--c-accent); border-radius: 999px; }
.menu-item .where { font-size: .92rem; font-weight: 600; }

/* Specials: a framed card with a marigold edge. */
.special-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; }
.special { padding: 1.6rem 1.5rem; text-align: center; background: var(--c-bg); border: 2px solid var(--c-accent); border-radius: 16px; }
.special-when { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.special h2, .special h3 { margin: 0 0 .4rem; font-size: 1.5rem; }
.special .price { display: block; font-family: var(--font-heading); font-size: 1.5rem; }
.special p { margin: 0 0 .5rem; font-size: 1rem; }
.special-where { font-weight: 700; }

/* Events: the date as a card on the left. */
.event-list { max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; }
.event { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: start; padding: 1.3rem 0; border-top: 2px solid var(--c-accent); }
.event:last-child { border-bottom: 2px solid var(--c-accent); }
.event-when { margin: 0; font-size: .95rem; font-weight: 600; }
.event-time { display: block; font-weight: 800; }
.event h2, .event h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.event p { margin: .25rem 0; font-size: 1rem; }
.event-where { font-weight: 700; }

/* Locations. */
.location-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 62rem; margin: 0 auto; }
.location { padding: 1.5rem; text-align: center; background: rgba(127, 127, 127, .1); border-top: 6px solid var(--c-accent); border-radius: 16px; }
.location h3 { margin: .2rem 0 .5rem; font-size: 1.6rem; }
.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 .75rem; border: 2px solid var(--c-ink); border-radius: 999px; font-size: .85rem; font-weight: 700; }
.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; }

/* Footer: terracotta, centered. */
.site-footer { padding: 3.5rem 0 2rem; background: var(--c-primary); color: var(--c-on-primary); text-align: center; border-top: 6px solid var(--c-accent); font-size: 1rem; }
.footer-brand { margin: 0 0 1.75rem; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.footer-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.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.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--c-accent); font-size: .9rem; }

@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; }
    .welcome { padding: 3.5rem 0 5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .welcome-image, .ch, .rule, .welcome h1, .welcome .lede, .welcome .btn { animation: none; }
}

/* Coming soon: the welcome without a photo. The name arrives, then the news and how to reach us. */
.soon .soon-logo { display: block; margin: 0 auto 1.25rem; width: auto; height: auto; max-height: 7rem; max-width: min(24rem, 80vw); padding: .75rem 1.25rem; background: var(--c-bg); border-radius: 14px; object-fit: contain; animation: lift .9s ease-out .2s both; }
.soon-opening { display: inline-block; margin: 1.5rem 0 0; padding: .4rem 1.25rem; border: 2px solid var(--c-accent); border-radius: 999px; font-weight: 700; animation: lift .9s ease-out 2.4s both; }
.soon-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin-top: 2.25rem; padding: 0; animation: lift .9s ease-out 2.7s both; }
.soon-contact a { color: inherit; }
.soon-contact address { font-style: normal; }
.soon-contact h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.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%; }
@media (prefers-reduced-motion: reduce) {
    .soon .soon-logo, .soon-opening, .soon-contact { animation: none; }
}

/* 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; }
}
