/* Home: continuous mountain plate scroll: Landing → Menu → About → Contact */

.home-page {
  background: #111;
}

.home-plate {
  position: fixed;
  inset: 0;
  background: url("/assets/plate-clean.jpg") center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.home-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
}

.home-scroll {
  position: relative;
  z-index: 1;
}

.home-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ==== Landing ==== */
#landing {
  justify-content: center;
  align-items: center;
}
#landing .veil {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.22);
  pointer-events: none;
  z-index: 1;
}
.lockup {
  position: relative;
  z-index: 2;
  width: min(820px, 92vw);
  height: auto;
  aspect-ratio: 820 / 540;
  max-height: 62vh;
  pointer-events: none;
  margin-top: -4vh;
}
.lockup svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cta-slot {
  position: absolute;
  left: 50%;
  bottom: max(12vh, 100px);
  transform: translateX(-50%);
  text-align: center;
  max-width: 420px;
  width: 90%;
  z-index: 3;
}
.cta-slot .cta-line {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #111;
  line-height: 1.45;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55), 0 0 18px rgba(255,255,255,0.45);
  margin: 0;
}
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  z-index: 3;
}
.scroll-hint span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
}
.scroll-hint .chev {
  width: 12px; height: 12px;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(45deg);
}

/* ==== Overlays (Menu / About / Contact) ==== */
.home-section--overlay {
  padding: 96px var(--pad-x) 56px;
}
.home-section--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.42);
  pointer-events: none;
  z-index: 0;
}
#home-about::before { background: rgba(255,255,255,0.40); }
#home-contact::before { background: rgba(255,255,255,0.48); }

.home-section--overlay > * { position: relative; z-index: 2; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(17,17,17,0.14);
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #111;
  margin: 0;
}
.section-meta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}

/* Menu grid on mountain */
.sauce-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-content: start;
}
.tile {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 4px;
  overflow: hidden;
  min-height: 420px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
@media (hover: hover) {
  .tile:hover {
  border-color: rgba(17,17,17,0.22);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 8px 22px rgba(17,17,17,0.08);
}
}
@media (hover: hover) {
  .tile:hover .tile-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}
}
.tile-art {
  height: 255px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(17,17,17,0.06);
  padding: 4px 6px;
}
.jar-img {
  height: 78%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.tile-body {
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tile-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #111;
  margin: 0;
}
.tile-price {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(17,17,17,0.78);
  line-height: 1.4;
  margin: 0;
}
.tile-hint {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.42);
}
.footer-note {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-note p {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.50);
  margin: 0;
}
.footer-note .pickup-only {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #111;
}

/* About overlay */
#home-about .section-header { justify-content: center; }
#home-about .section-title { text-align: center; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}
.copy-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lede {
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.004em;
  color: #111;
  text-align: center;
  margin: 0;
}
.body-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.body-block p {
  font-size: clamp(15px, 1.45vw, 19.5px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.003em;
  color: #111;
  text-align: center;
  margin: 0;
}
.closer-wrap {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(17,17,17,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.closer {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.006em;
  color: #111;
  font-style: italic;
  text-align: center;
  margin: 0;
}
.full-story {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.42);
  text-decoration: none;
}
@media (hover: hover) {
  .full-story:hover { color: rgba(17,17,17,0.62); }
}
.hero-frame {
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(17,17,17,0.07);
  min-height: 320px;
  height: 100%;
}
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  display: block;
  min-height: 320px;
}

/* Contact overlay */
.contact-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 48px;
}
.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 36px;
  border-bottom: 1px solid rgba(17,17,17,0.10);
  text-decoration: none;
  color: inherit;
}
.contact-item:nth-child(even) {
  border-left: 1px solid rgba(17,17,17,0.08);
}
.contact-item:nth-child(n+3) { border-bottom: none; }
@media (hover: hover) {
  .contact-item:hover .contact-value { text-decoration: underline; text-underline-offset: 4px; }
}
.contact-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.55);
}
.contact-value {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #111;
}
.contact-value.email {
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 22px);
  letter-spacing: 0.02em;
}
/* Desktop contact hint: 12px with AA contrast (about 7:1). Line height
   pinned to the old 10px box so the contact cards keep their size. */
.contact-hint {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.72);
  margin-top: 4px;
}
.contact-foot {
  margin-top: 40px;
  text-align: center;
}
.contact-foot p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}

@media (max-width: 1100px) {
  .sauce-grid { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 360px; }
}
@media (max-width: 720px) {
  .home-section--overlay { padding: 72px 16px 32px; }
  .sauce-grid { grid-template-columns: 1fr; gap: 12px; }
  .tile { min-height: 0; flex-direction: row; align-items: center; }
  .tile-art {
    width: 96px; height: 110px; flex-shrink: 0;
    border-bottom: none; border-right: 1px solid rgba(17,17,17,0.06);
  }
  .tile-body { padding: 14px 14px 14px 12px; gap: 6px; }
  .tile-name { font-size: 16px; }
  .tile-hint { padding-top: 4px; }
  .about-layout { grid-template-columns: 1fr; gap: 20px; }
  .hero-frame { min-height: 220px; max-height: 280px; }
  .hero-frame img { min-height: 220px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-item {
    padding: 22px 20px;
    border-left: none !important;
    border-bottom: 1px solid rgba(17,17,17,0.10) !important;
  }
  .contact-item:last-child { border-bottom: none !important; }
  .lockup { width: min(340px, 88vw); max-height: 50vh; }
  .cta-slot { bottom: 110px; }
  .cta-slot .cta-line { font-size: 14px; }
  #home-menu .section-header { margin-bottom: 20px; }
}

/* ==== Home slideshow section scroll (index.html only: html.home-slides) ====
   Native scroll snap as the base layer; js/home-slides.js moves exactly one
   section per wheel / swipe / key gesture. When any section is taller than
   the viewport the script adds .home-slides--tall and snap relaxes to
   proximity so tall content can never be trapped. */
html.home-slides {
  scroll-snap-type: y mandatory;
}
html.home-slides.home-slides--tall {
  scroll-snap-type: y proximity;
}
/* Menu drawer open: the slideshow leaves keys alone, and proximity snap keeps
   a native arrow key scroll behind the drawer from snapping the page to the
   next section (with mandatory snap, ArrowDown moved a whole section). */
html.home-slides:has(body.drawer-open) {
  scroll-snap-type: y proximity;
}
html.home-slides .home-section {
  /* min-height 100vh with 100dvh override comes from .home-section above */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@media (prefers-reduced-motion: reduce) {
  html.home-slides { scroll-behavior: auto; }
}
