/* ==========================================================================
   Crumbs Kitchen — design system
   Concept: "The chalkboard, redrawn"
   Palette from the café itself: chalkboard black, sage panelling, cream,
   tomato accent. Type: Fraunces (display) + Inter (workhorse).
   ========================================================================== */

:root {
  /* colour tokens */
  --chalk: #1c1b1a;
  --chalk-soft: #2a2927;
  --chalk-white: #f5f2ec;
  --cream: #faf6ef;
  --cream-deep: #f3ecdf;
  --sage: #9ba88d;
  --sage-tint: #e9ece3;
  --sage-deep: #6f7d62;
  --tomato: #c4552d;
  --tomato-deep: #a83f1c;
  --ink: #262421;
  --ink-soft: #5c574f;

  /* type scale (fluid) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.39vw, 1.5rem);
  --step-2: clamp(1.56rem, 1.42rem + 0.71vw, 2rem);
  --step-3: clamp(1.95rem, 1.71rem + 1.19vw, 2.66rem);
  --step-4: clamp(2.44rem, 2.05rem + 1.93vw, 3.55rem);
  --step-5: clamp(3.05rem, 2.45rem + 3vw, 4.77rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(28, 27, 26, 0.06), 0 6px 24px rgba(28, 27, 26, 0.07);
  --shadow-lift: 0 2px 4px rgba(28, 27, 26, 0.08), 0 14px 40px rgba(28, 27, 26, 0.13);
  --wrap: 72rem;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--chalk);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--tomato-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--tomato); }

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: var(--space-2);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--chalk);
  color: var(--chalk-white);
  padding: 0.6em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0.7em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--tomato);
  color: #fff;
}

.btn-primary:hover {
  background: var(--tomato-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: currentColor;
}

.btn-ghost:hover {
  color: var(--tomato-deep);
  transform: translateY(-1px);
}

.btn-chalk {
  background: var(--chalk-white);
  color: var(--chalk);
}

.btn-chalk:hover {
  background: #fff;
  color: var(--chalk);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 27, 26, 0.07);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--chalk);
  text-decoration: none;
  line-height: 1;
}

.logo .logo-dot { color: var(--tomato); }

.footer-badge {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-3);
}

/* the logo, stamped onto the page */
.hero-stamp {
  position: absolute;
  top: -2.25rem;
  left: -3.25rem;
  width: clamp(130px, 13.5vw, 195px);
  height: auto;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
  opacity: 0.92;
  z-index: 2;
  pointer-events: none;
}

html.js .hero-stamp {
  animation: stamp-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.45s backwards;
}

@keyframes stamp-in {
  from {
    transform: rotate(-18deg) scale(1.7);
    opacity: 0;
  }
  to {
    transform: rotate(-12deg) scale(1);
    opacity: 0.92;
  }
}

@media (max-width: 52em) {
  .hero-stamp {
    width: 104px;
    top: -1.5rem;
    left: -0.75rem;
  }
}

.logo .logo-kitchen {
  font-style: italic;
  font-weight: 480;
  color: var(--sage-deep);
}

.logo:hover { color: var(--chalk); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.site-nav a.nav-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5em 0.1em;
}

.site-nav a.nav-link:hover,
.site-nav a[aria-current="page"] {
  color: var(--tomato-deep);
}

.site-nav .btn-primary { color: #fff; }
.site-nav .btn-primary:hover { color: #fff; }

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-call { white-space: nowrap; }

@media (max-width: 40em) {
  .site-nav .nav-link { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--sage-deep);
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 26em;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sage-deep);
  background: var(--sage-tint);
  border-radius: 999px;
  padding: 0.45em 1em;
  margin-bottom: var(--space-3);
}

.hero-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
}

.hero-status.is-closed { color: var(--ink-soft); background: var(--cream-deep); }
.hero-status.is-closed::before { background: var(--ink-soft); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-visual {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}

.hero-arch {
  position: relative;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.hero-arch img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
}

/* offset sage arch outline behind the image */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  right: -1.4rem;
  bottom: 1.1rem;
  left: 3.9rem;
  border: 2px solid var(--sage);
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
}

.hero-float {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lift);
  transform: rotate(-2deg);
}

.hero-float img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

@media (max-width: 52em) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual {
    margin-top: var(--space-3);
    max-width: 26rem;
    margin-inline: auto;
  }
  .hero-arch img { aspect-ratio: 0.9; }
}

/* --------------------------------------------------------------------------
   Chalkboard strip
   -------------------------------------------------------------------------- */
.chalk-strip {
  background: var(--chalk);
  color: var(--chalk-white);
  padding-block: var(--space-5);
}

.chalk-strip h2 {
  color: var(--chalk-white);
  font-style: italic;
  font-weight: 480;
  font-size: var(--step-2);
  text-align: center;
  margin-bottom: var(--space-4);
}

.chalk-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.chalk-items li {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.chalk-items .price {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sage);
}

/* --------------------------------------------------------------------------
   Cards / sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-sage { background: var(--sage-tint); }
.section-deep { background: var(--cream-deep); }

.section-head {
  max-width: 38em;
  margin-bottom: var(--space-5);
}

.section-head h2::after,
.find-grid h2:first-of-type::after {
  content: "";
  display: block;
  width: 110px;
  height: 8px;
  margin-top: 0.35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 8'%3E%3Cpath d='M2 5.5C20 2.5 45 2 62 3.5c15 1.3 32 1.8 46-1' fill='none' stroke='%239ba88d' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.dish-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.dish-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.dish-card figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-4);
}

.dish-card .dish-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 560;
  color: var(--chalk);
  line-height: 1.2;
}

.dish-card .dish-note {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.35em;
}

.dish-card .price {
  font-weight: 600;
  color: var(--tomato-deep);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Proof band
   -------------------------------------------------------------------------- */
.proof-band .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.proof {
  border-top: 3px solid var(--sage);
  padding-top: var(--space-3);
}

.proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--chalk);
  line-height: 1.1;
}

.proof span { color: var(--ink-soft); font-size: var(--step--1); }

blockquote.review {
  margin: 0;
  border-top: 3px solid var(--sage);
  padding-top: var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  font-weight: 460;
  color: var(--chalk);
  line-height: 1.35;
}

blockquote.review footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

@media (max-width: 40em) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-card img { aspect-ratio: 16 / 9; }
}

/* --------------------------------------------------------------------------
   Find us / hours
   -------------------------------------------------------------------------- */
.find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55em 0;
  border-bottom: 1px solid rgba(28, 27, 26, 0.1);
  font-weight: 400;
}

.hours-table td { text-align: right; }

.hours-table tr.today th,
.hours-table tr.today td {
  font-weight: 650;
  color: var(--tomato-deep);
}

.address-block {
  font-style: normal;
  line-height: 1.7;
}

.address-block strong { font-size: var(--step-1); font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   Menu page
   -------------------------------------------------------------------------- */
.menu-nav {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 27, 26, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-nav::-webkit-scrollbar { display: none; }

.menu-nav ul {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: var(--space-2) clamp(1rem, 4vw, 2rem);
  max-width: var(--wrap);
  margin-inline: auto;
}

.menu-nav a {
  display: inline-block;
  white-space: nowrap;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45em 1em;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 27, 26, 0.16);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-nav a:hover { border-color: var(--tomato); color: var(--tomato-deep); }

.menu-nav a.active {
  background: var(--chalk);
  color: var(--chalk-white);
  border-color: var(--chalk);
}

.menu-section { padding-block: var(--space-5) var(--space-3); scroll-margin-top: 130px; }

.menu-section h2 {
  font-size: var(--step-3);
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
}

.menu-section .service-note {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--sage-deep);
  background: var(--sage-tint);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.menu-intro { color: var(--ink-soft); max-width: 36em; }

.menu-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  column-gap: var(--space-6);
  row-gap: var(--space-3);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 0.75em;
}

.menu-item .item-name {
  font-weight: 600;
  color: var(--chalk);
}

.menu-item .item-desc {
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.1em;
}

.menu-item .item-price {
  font-weight: 600;
  color: var(--tomato-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badges {
  display: inline-flex;
  gap: 0.3em;
  margin-left: 0.4em;
  vertical-align: 0.1em;
}

.badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.3em 0.5em;
  border-radius: 5px;
}

.badge-v { background: var(--sage-tint); color: var(--sage-deep); }
.badge-vg { background: #dcebd2; color: #3c6b2a; }
.badge-gf { background: #f4e3c8; color: #8a5a18; }

.menu-footnote {
  font-size: var(--step--1);
  color: var(--ink-soft);
  border-top: 1px solid rgba(28, 27, 26, 0.1);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--chalk);
  color: var(--chalk-white);
  padding-block: var(--space-6) var(--space-5);
}

.site-footer a { color: var(--chalk-white); }
.site-footer a:hover { color: var(--sage); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-5);
}

.footer-grid h2 {
  color: var(--chalk-white);
  font-size: var(--step-1);
  font-weight: 560;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; line-height: 2; }

.footer-note {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(245, 242, 236, 0.15);
  font-size: var(--step--1);
  color: rgba(245, 242, 236, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Sticky mobile action bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: var(--chalk);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.action-bar.visible { transform: translateY(0); }

.action-bar ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-bar li { flex: 1; }

.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  border-radius: var(--radius-s);
  background: var(--chalk-soft);
  color: var(--chalk-white);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.action-bar a.bar-primary { background: var(--tomato); }

@media (max-width: 40em) {
  .action-bar { display: block; }
  body { padding-bottom: 68px; }
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-stamp { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .dish-card,
  .gallery-grid img,
  .btn { transition: none; }
}
