:root {
  --cream: #f7f1e3;
  --paper: #f0e8d4;
  --green: #2a3b2a;
  --green-ink: #1d2b1f;
  --red: #b3282d;
  --red-dark: #951f24;
  --line: #ddd2b8;
  --serif: "Playfair Display", Georgia, serif;
  --display: "Patrick Hand", "Comic Sans MS", cursive;
  --sans: "DM Sans", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--green-ink); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--green-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.6rem; border: 2px solid transparent; border-radius: 4px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--green-ink); background: transparent; }
.btn-outline:hover { background: var(--green-ink); color: var(--cream); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-ig { background: var(--red); color: #fff; }
.btn-fb { background: var(--green); color: var(--cream); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.text-link:hover { color: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { margin-right: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 44px; height: 44px; }
.logo span { width: 136px; height: 30px; background: currentColor; -webkit-mask: url(assets/img/shokupan-wordmark.svg) center / contain no-repeat; mask: url(assets/img/shokupan-wordmark.svg) center / contain no-repeat; }
.nav { display: none; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--red); }
.nav .icon-link { display: grid; place-items: center; width: 40px; height: 40px; border: 0; margin: 0 -10px; }
.nav .icon-link:hover { color: var(--red); }
.nav .icon { width: 22px; height: 22px; }
.header-cta { display: none; }

.burger { display: grid; gap: 6px; place-content: center; width: 52px; height: 52px; background: none; border: 0; cursor: pointer; }
.burger span { width: 28px; height: 2px; background: var(--green-ink); }

#mobile-menu { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 88px 24px 24px; background: var(--cream); flex-direction: column; gap: 4px; overflow-y: auto; }
#mobile-menu:popover-open { display: flex; }
#mobile-menu > a:not(.btn) { font: 600 2rem/1 var(--serif); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
#mobile-menu .btn { margin-top: 20px; }
#mobile-menu .close { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; font-size: 2.5rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--green-ink); }
.mm-social { display: grid; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.mm-social .btn { margin: 0; }

/* Hero */
.hero { padding: 0; }
.hero-grid { width: 100%; display: flex; flex-direction: column-reverse; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 38%; }
.hero-copy { padding: 28px 16px 12px; }
.hero h1 { font-size: clamp(3rem, 11vw, 3.6rem); margin-bottom: .4em; }
.lead { font-size: 1.1rem; max-width: 30em; }
.hero .btn-row { margin-top: 1.5rem; }
.hero .btn { flex: 1 1 150px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-block: 20px 8px; }
.cat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--red); transform: translateY(-2px); }
.cat > svg:first-child { width: 52px; height: 52px; fill: none; stroke: var(--green-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.cat h2 { font-size: 1.7rem; margin: 0; }
.cat p, .cat .go { display: none; }

/* About */
.about { padding-block: 40px; }
.about-grid { display: grid; gap: 24px; position: relative; }
.about-img { width: 100%; aspect-ratio: 645 / 325; object-fit: cover; border-radius: 4px; }
.about-copy .btn { margin-top: .5rem; }
.drawings { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.drawings img { height: 130px; width: auto; }

/* Gallery */
.gallery { padding-block: 24px 48px; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.gallery-head h2 { margin: 0; }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.track::-webkit-scrollbar { display: none; }
.track li { flex: 0 0 52%; scroll-snap-align: start; }
.track img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* Social */
.social { background: var(--green); color: var(--cream); padding-block: 56px; text-align: center; }
.social h2 { color: var(--cream); }
.social p { max-width: 32em; margin-inline: auto; opacity: .9; }
.social-cards { display: grid; gap: 16px; margin-top: 32px; text-align: left; }
.social-card { display: flex; align-items: center; gap: 20px; min-height: 96px; padding: 20px 24px; border-radius: 4px; text-decoration: none; border: 2px solid var(--cream); transition: transform .15s; }
.social-card:hover { transform: translateY(-2px); }
.social-card span { display: grid; flex: 1; }
.social-card strong { font: 600 1.6rem/1.1 var(--serif); }
.social-card small { font-size: .95rem; opacity: .85; }
.social-card .big { width: 44px; height: 44px; }
.sc-ig { background: var(--red); border-color: var(--red); color: #fff; }
.sc-ig:hover { background: var(--red-dark); border-color: var(--red-dark); }
.sc-fb { background: var(--cream); color: var(--green); }

/* Visit */
.visit { padding-block: 56px; background: var(--paper); }
.visit-grid { display: grid; gap: 36px; }
.visit address { display: flex; gap: 12px; font-style: normal; font-size: 1.2rem; margin-bottom: 1rem; }
.visit address .icon { color: var(--red); margin-top: 4px; }
.visit a:not(.btn) { color: var(--green); }
.visit .btn { width: 100%; }
.shopfront { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; margin-top: 24px; border-radius: 4px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-weight: 500; }
.hours .closed { color: #6b6b5c; }
.map { width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 4px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding-top: 40px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
.foot-grid .logo { margin-bottom: 12px; }
.site-footer h3 { font: 700 .8rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--green-ink); border-radius: 50%; }
.copy { padding-block: 24px 110px; font-size: .85rem; opacity: .75; }

/* Sticky mobile bar */
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 9; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgb(0 0 0 / .06); }

/* Tablet+ */
@media (min-width: 720px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .cat { padding: 28px 16px 22px; }
  .cat p { display: block; font-size: .9rem; margin: 6px 0 0; }
  .cat .go { display: block; margin-top: 10px; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .social-cards { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; height: 320px; }
  .foot-grid { grid-template-columns: 2fr 1.5fr 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: auto; }
  .copy { padding-bottom: 28px; }
  .mobile-bar { display: none; }
}

@media (min-width: 960px) {
  .nav, .header-cta { display: flex; }
  .burger { display: none; }
  .logo { margin-right: 0; }
  .header-row { justify-content: space-between; }

  .hero-grid { width: min(100% - 32px, var(--wrap)); flex-direction: row; align-items: stretch; min-height: 480px; }
  .hero-copy { flex: 0 0 46%; padding: 64px 0 56px; z-index: 1; margin-right: -4%; align-self: center; }
  .hero h1 { font-size: 4.4rem; }
  .hero .btn { flex: 0 0 auto; }
  .hero-img { flex: 1; aspect-ratio: auto; min-width: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); mask-image: linear-gradient(to right, transparent, #000 28%); }

  .track { margin-inline: 0; padding-inline: 0; overflow: visible; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .track li { flex: none; }
  .visit-grid { grid-template-columns: 1.1fr 1fr 1.2fr; align-items: start; gap: 48px; }
  .map { grid-column: auto; height: 100%; min-height: 300px; }
}

/* Menu page */
.menu-hero { padding-block: 40px 8px; text-align: center; }
.menu-hero h1 { font-size: clamp(3.5rem, 10vw, 5rem); margin-bottom: .4em; }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px; margin-inline: -16px; justify-content: flex-start; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 12px 18px; min-height: 48px; display: grid; place-items: center; border: 1.5px solid var(--green-ink); border-radius: 999px; font-weight: 500; text-decoration: none; }
.chips a:hover { background: var(--green-ink); color: var(--cream); }
.menu-block { padding-block: 40px; }
.menu-title { font-size: .85rem; font-family: var(--sans); font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--red); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 28px; }
.menu-cols { display: grid; gap: 8px; }
.menu-block section { margin-bottom: 36px; }
.menu-block h3 { font-size: 2rem; margin-bottom: .35em; }
.note { font-size: .9rem; color: #5c604f; margin: 0 0 .6em; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dotted #b9ad90; }
.items li span { flex: 1; text-transform: capitalize; }
.items b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
.items small { font-size: .78rem; color: #5c604f; }
.two-price li b { min-width: 5.4ch; }
.two-price .head { border: 0; padding-bottom: 0; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: #5c604f; }
.menu-food { background: var(--paper); }
.menu-food .menu-block { max-width: 760px; }
.sandos, .bakes { text-align: center; }
.sandos .note { margin-bottom: 1.6em; }
.dishes { list-style: none; margin: 0 0 28px; padding: 0; }
.dishes li { margin-bottom: 22px; }
.dishes h4 { font: 600 1.4rem/1.2 var(--serif); margin: 0 0 .25em; text-transform: capitalize; }
.dishes h4 b { font-family: var(--sans); font-weight: 700; margin-left: .35em; }
.dishes small { font: 500 .8rem var(--sans); text-transform: uppercase; color: var(--red); }
.dishes p { margin: 0; color: #3b4a3c; }
.served { display: inline-block; font-style: italic; font-weight: 500; border-bottom: 2px solid var(--red); margin-bottom: 24px; }
.bakes .items { max-width: 360px; margin-inline: auto; text-align: left; }
.menu-foot { text-align: center; max-width: 34em; margin: 32px auto 0; }
.menu-foot.key { font-size: .9rem; color: #5c604f; margin-top: 12px; }
.menu-foot a { color: var(--red); font-weight: 700; }

@media (min-width: 720px) {
  .chips { justify-content: center; margin-inline: 0; padding-inline: 0; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
