:root {
  color-scheme: light;
  --beige: #e7d1b5;
  --cream: #f7e6cd;
  --ink: #000;
  --display: "Baskervville", "Baskerville", "Libre Baskerville", Georgia, serif;
  --text: "Crimson Pro", Georgia, serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

p, li { font-weight: 400; }

h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.3; overflow-wrap: break-word; }

a { color: inherit; }

abbr[title] { text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--cream);
}
main:focus:not(:focus-visible) { outline: none; box-shadow: none; }
main:focus-visible { outline: 3px solid #000; outline-offset: -3px; box-shadow: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible {
  transform: none;
  box-shadow: 0 0 0 6px var(--cream), 0 4px 12px rgba(0, 0, 0, .4);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  min-height: 69px;
  flex-wrap: wrap;
}

.site-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: break-word;
}

.nav-list { display: flex; flex-wrap: wrap; gap: 34px; margin: 0; padding: 0; list-style: none; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 1.18rem;
  text-decoration: none;
  border-bottom: 0;
  line-height: 1.2;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 24px var(--gutter) 0;
  min-height: clamp(300px, 50vw, 597px);
  padding: 24px 0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a0f08;
}
.page-lunch .hero, .page-dinner .hero { min-height: clamp(260px, 36vw, 418px); }

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.hero-title {
  position: relative; z-index: 1;
  margin: 0 var(--gutter);
  max-width: calc(100% - 2 * var(--gutter));
  color: var(--cream);
  font-size: clamp(1.75rem, 5.2vw, 3.9rem);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 0, 0, .85);
  background-color: #1a0f08;
  padding: 0.2em 0.45em;
  border-radius: 12px;
}

/* ---------- Content ---------- */
main { display: block; }

.intro, .menu-section { padding: 0 var(--gutter); }
.intro { margin-top: 32px; }

.intro p, .callout p { margin: 0 0 1em; }

.intro-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding-bottom: 48px;
}
.callout h2 { font-size: 2.1rem; margin-bottom: .6em; }

.menu-section { margin-top: 48px; }
.menu-section h2 { font-size: 2.62rem; margin-bottom: .5em; }
.menu-section:last-of-type { padding-bottom: 48px; }

.menu-list, .sub-list { list-style: none; margin: 0; padding: 0; }
.menu-list > li { margin-bottom: .9rem; }
.dish-name { display: block; font-weight: 700; font-size: 1.45rem; line-height: 1.6; overflow-wrap: break-word; }
.dish-desc { display: block; margin: 0 0 .9rem; }
.sub-list { margin-top: .5rem; }
.sub-list li { font-weight: 400; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; margin-top: 0; padding: 40px var(--gutter) 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}
.site-footer p { margin: 0 0 1em; }
.site-footer address { font-style: normal; }
.footer-heading { font-size: 1.55rem; color: #000; margin-bottom: .9em; }
.phone { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.phone a { display: inline-block; padding: 4px 2px; text-decoration: underline; text-underline-offset: 4px; }

.footer-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, .15);
}
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-list a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-nav-list a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  body { font-size: 1.1rem; }
  .js .site-header { flex-wrap: wrap; }
  .site-title {
    font-size: 1.5rem;
    min-width: 0;
    width: 100%;
    padding-right: 52px;
    overflow-wrap: break-word;
  }
  .intro-two-col { grid-template-columns: 1fr; }
  .menu-section h2 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .js .site-nav { width: 100%; }
  .js .nav-toggle {
    position: absolute;
    top: 16px;
    right: var(--gutter);
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 0; border-top: 2px solid currentColor; background: none; content: ""; position: relative;
    transition: transform .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -9px; }
  .nav-toggle-bars::after { position: absolute; top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { border-top-style: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .js .nav-list {
    display: none;
    width: 100%;
    flex-direction: column; gap: 0;
    padding: 8px 0 12px;
    background: var(--beige);
  }
  .js .nav-list.is-open { display: flex; }
  .nav-list a { width: 100%; font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Forced colors ---------- */
@media (forced-colors: active) {
  .hero-title { text-shadow: none; }
}

/* ---------- High contrast ---------- */
@media (prefers-contrast: more) {
  .hero-img { filter: brightness(0.25); }
  .hero-title { background-color: #000; color: #fff; }
  .nav-list a[aria-current="page"], .footer-nav-list a[aria-current="page"] { text-decoration-thickness: 3px; }
}
