/*
 * Hacienda v1. Calm and high-end: ivory, deep green, antique gold; serif headings, the menu set as a
 * typographic list. 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 page
 * uses --c-ink, links use --c-link. Gold (--c-accent) is decoration only: rules, borders, ornaments.
 */
*, *::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; }
.hero :focus-visible, .site-footer :focus-visible, .nav-cta: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: 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: 500; line-height: 1.15; }

/* A thin gold rule with a diamond in the middle. */
.ornament { display: block; position: relative; width: 8rem; height: 1px; margin: 1.25rem auto; background: var(--c-accent); }
.ornament::after { content: ""; position: absolute; left: 50%; top: 50%; width: .6rem; height: .6rem; background: var(--c-accent); transform: translate(-50%, -50%) rotate(45deg); }

/* Header: the name in script, the menu centered beneath. */
.site-header { text-align: center; padding-top: 1.25rem; border-bottom: 1px solid var(--c-accent); }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.brand { font-family: var(--font-accent); font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.1; 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.75rem; max-width: min(16rem, 60vw); object-fit: contain; }
.site-header nav ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1.75rem; list-style: none; margin: 0; padding: .5rem 0 1.1rem; }
.site-header nav a { display: inline-block; padding: .35rem 0; color: var(--c-ink); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--c-accent); }
.site-header nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--c-accent); }
.site-header nav a.nav-cta { padding: .45rem 1.2rem; background: var(--c-primary); color: var(--c-on-primary); border: 1px solid var(--c-primary); }
.site-header nav a.nav-cta:hover { background: transparent; color: var(--c-link); border-color: var(--c-link); }

/* Hero: deep green, centered, quiet. */
.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, 9rem) 0; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; }
.hero .lede { max-width: 40rem; margin: 0 auto 2rem; font-family: var(--font-heading); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-style: italic; }

/* 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; padding-bottom: clamp(5.5rem, 12vw, 9rem); }
.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, .62), rgba(8, 18, 13, .72)); }
.hero.has-media .btn { color: #fff; }
.hero.has-media .btn:hover { background: var(--c-on-primary); color: var(--c-primary); }

.btn { display: inline-block; padding: .75rem 2rem; background: var(--c-primary); color: var(--c-on-primary); border: 1px solid var(--c-primary); font-family: var(--font-body); font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: transparent; color: var(--c-link); }
.hero .btn, .site-footer .btn { background: transparent; color: var(--c-on-primary); border-color: var(--c-accent); }
.hero .btn:hover, .site-footer .btn:hover { background: var(--c-on-primary); color: var(--c-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.75rem); }
.page-title + section { padding-top: 1.5rem; }

.section-title { margin: 0; text-align: center; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section-title::after { content: ""; display: block; width: 3rem; height: 1px; margin: .9rem auto 2.25rem; background: var(--c-accent); }

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

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

/* The menu: a typographic list, name and price joined by a dotted leader. */
/* 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: 1fr; gap: 1.9rem 4rem; list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; gap: 1rem; align-items: flex-start; }
.item-photo { flex: none; width: 6.5rem; aspect-ratio: 1; object-fit: cover; padding: 3px; background: var(--c-bg); border: 1px solid var(--c-accent); }
.item-body { flex: 1; min-width: 0; }
.menu-item h3 { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .2rem; font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.leader { flex: 1; min-width: 1rem; border-bottom: 1px dotted currentColor; transform: translateY(-.3em); }
.price { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; white-space: nowrap; }
.menu-item p { margin: 0 0 .4rem; font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0 .75rem; margin: .1rem 0 .4rem; padding: 0; list-style: none; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.tags li + li::before { content: "·"; margin-right: .75rem; }
.menu-item .where { font-size: .92rem; font-weight: 600; }
.dishes .menu-items { max-width: 60rem; margin: 0 auto; }

/* Specials: a framed card, double ruled. */
.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.9rem 1.5rem; text-align: center; background: var(--c-bg); border: 1px solid var(--c-accent); outline: 1px solid var(--c-accent); outline-offset: -.55rem; }
.special-when { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.special h2, .special h3 { margin: 0 0 .4rem; font-size: 1.55rem; }
.special .price { display: block; font-family: var(--font-heading); font-size: 1.4rem; }
.special p { margin: 0 0 .5rem; font-size: 1rem; }
.special-where { font-weight: 600; }

/* Events: date on the left, the occasion on the right. */
.event-list { max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; }
.event { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--c-accent); }
.event:last-child { border-bottom: 1px solid var(--c-accent); }
.event-when { margin: 0; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.event-time { display: block; font-weight: 700; }
.event h2, .event h3 { margin: 0 0 .25rem; font-size: 1.55rem; }
.event p { margin: .25rem 0; font-size: 1rem; }
.event-where { font-weight: 600; }

/* 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; border-top: 3px double var(--c-accent); }
.location h3 { margin: .2rem 0 .5rem; font-size: 1.65rem; }
.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; border: 1px solid var(--c-ink); font-size: .78rem; letter-spacing: .1em; 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: 600; }
.hours dd { margin: 0; }

/* Footer: green again, centered. */
.site-footer { margin-top: 0; padding: 3.5rem 0 2rem; background: var(--c-primary); color: var(--c-on-primary); text-align: center; border-top: 4px double var(--c-accent); font-size: 1rem; }
.footer-brand { margin: 0 0 1.75rem; font-family: var(--font-accent); font-size: 2.3rem; 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.05rem; font-weight: 600; letter-spacing: .14em; 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.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--c-accent); font-size: .9rem; }

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

@media (max-width: 40rem) {
    .event { grid-template-columns: 1fr; gap: .25rem; }
    .menu-item h3 { font-size: 1.25rem; }
}

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

/* Coming soon: the deep green panel fills the page. Words are on-primary; the gold 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; }
.soon :focus-visible { outline-color: var(--c-on-primary); }
.soon .soon-brand { margin: 0 0 1rem; font-family: var(--font-accent); font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1.1; }
/* 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; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.05; }
.soon .lede { max-width: 38rem; margin: 0 auto 1.75rem; font-family: var(--font-heading); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-style: italic; }
.soon-opening { display: inline-block; margin: 0; padding: .5rem 1.5rem; border: 1px solid var(--c-accent); font-size: .85rem; letter-spacing: .14em; 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: 1px solid var(--c-accent); font-size: 1rem; }
.soon-contact a { color: inherit; }
.soon-contact address { font-style: normal; }
.soon-contact h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.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; }
.site-header .social-icons { margin-top: -.5rem; padding-bottom: 1rem; }

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

/* A special's picture, above its words. */
.special-photo { display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0 0 1rem; object-fit: cover; }
