:root {
  --ink: #151714;
  --muted: #4f544e;
  --green: #285f53;
  --deep-green: #173e38;
  --paper: #fffefb;
  --line: #cbc9c0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --sprite: url("assets/cafe-sprite.png");
  --hero-mobile: url("assets/photos/hero-mobile.jpg");
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

button.photo[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  opacity: 1;
}

.motion-ready .brand,
.motion-ready .hero h1,
.motion-ready .hero p,
.motion-ready .hero__directions {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready.motion-loaded .brand,
.motion-ready.motion-loaded .hero h1,
.motion-ready.motion-loaded .hero p,
.motion-ready.motion-loaded .hero__directions {
  animation: hero-rise 820ms var(--motion-ease) forwards;
}

.motion-ready.motion-loaded .hero h1 { animation-delay: 120ms; }
.motion-ready.motion-loaded .hero p { animation-delay: 270ms; }
.motion-ready.motion-loaded .hero__directions { animation-delay: 400ms; }

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms var(--motion-ease),
    transform 720ms var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.motion-ready .reveal .squiggle {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 650ms var(--motion-ease) 220ms;
}

.motion-ready .reveal.is-visible .squiggle { transform: scaleX(1); }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 650px;
  color: white;
  overflow: hidden;
  background-image: var(--sprite);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #061714 0%, #061714 40%, rgba(5, 20, 18, .76) 51%, rgba(5, 20, 18, .18) 67%, rgba(5, 20, 18, .04) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1050px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 48px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: .28em;
}

.hero__content { margin-top: 93px; }

.hero h1 {
  max-width: 520px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.35vw, 78px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
}

.hero p {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.hero__directions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  width: fit-content;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__directions svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.section-shell {
  width: min(1020px, calc(100% - 96px));
  margin: 0 auto;
}

.menu-section { padding: 72px 0 48px; }
.bakes-section { padding-top: 46px; padding-bottom: 68px; }

.menu-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
}

.section-heading { padding-top: 78px; }
.section-heading--copy { padding-top: 35px; }

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.squiggle {
  display: block;
  width: 65px;
  height: 10px;
  margin-top: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='65' height='10' viewBox='0 0 65 10'%3E%3Cpath d='M1 6c5-7 10 6 15 0s10 6 15 0 10 6 15 0 10 6 15 0' fill='none' stroke='%23285f53' stroke-width='1.25'/%3E%3C/svg%3E") center/contain no-repeat;
}

.section-heading p {
  margin: 27px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

.drink-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background-color: #e6e1d7;
  cursor: zoom-in;
  overflow: hidden;
}

.sprite {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.menu-card .photo { aspect-ratio: 194 / 300; }

.menu-card h3 {
  margin: 17px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

.menu-card > span {
  display: block;
  width: 35px;
  height: 1px;
  margin: 13px auto 0;
  background: var(--green);
}

/* Use independent photo files so each crop keeps the same framing at every viewport. */
.sprite--coffee { background-image: url("assets/photos/coffee.jpg"); }
.sprite--juice { background-image: url("assets/photos/juice.jpg"); }
.sprite--smoothie { background-image: url("assets/photos/smoothie.jpg"); }
.sprite--date-coffee { background-image: url("assets/photos/date-coffee.jpg"); }

.bakes-collage {
  display: grid;
  grid-template-columns: 1.8fr 1.03fr .68fr .68fr;
  grid-template-rows: 183px 166px;
  gap: 8px;
}

.bake-main { grid-column: 1; grid-row: 1 / 3; }
.bake-tart { grid-column: 2; grid-row: 1 / 3; }
.bake-chocolate { grid-column: 3 / 5; grid-row: 1; }
.bake-small { grid-column: 3; grid-row: 2; }
.bake-brownies { grid-column: 4; grid-row: 2; }

.sprite--bake-main { background-image: url("assets/photos/bake-main.jpg"); }
.sprite--bake-tart { background-image: url("assets/photos/bake-tart.jpg"); }
.sprite--bake-chocolate { background-image: url("assets/photos/bake-chocolate.jpg"); }
.sprite--bake-small { background-image: url("assets/photos/bake-small.jpg"); }
.sprite--bake-brownies { background-image: url("assets/photos/bake-brownies.jpg"); }

.community-section { padding: 0 0 24px; }
.community-grid {
  display: grid;
  grid-template-columns: 56.5% 43.5%;
  min-height: 360px;
}

.community-hero { border-radius: 0 4px 4px 0; }
.sprite--interior { background-image: url("assets/photos/interior.jpg"); background-position: center; }

.community-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 6vw 20px 44px;
}

.community-copy p {
  margin: 16px 0 22px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
}

.community-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.community-details .photo { aspect-ratio: 1 / 1.1; }
.sprite--detail-flowers { background-image: url("assets/photos/detail-flowers.jpg"); }
.sprite--detail-light { background-image: url("assets/photos/detail-light.jpg"); }
.sprite--detail-chair { background-image: url("assets/photos/detail-chair.jpg"); }

.visit-section {
  display: grid;
  grid-template-columns: 29% 71%;
  min-height: 250px;
}

.visit-photo { min-height: 250px; }
.sprite--visit { background-image: url("assets/photos/visit.jpg"); background-position: 24% center; }

.visit-content {
  display: grid;
  grid-template-columns: 120px minmax(270px, 1.2fr) minmax(250px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 29px 5.5vw 29px 38px;
}

.visit-title { align-self: start; }
.visit-title h2 { font-size: 42px; }

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-style: normal;
  line-height: 1.4;
}

.visit-details a,
.visit-details > div {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  width: fit-content;
}

.visit-details a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.visit-details svg,
.outline-button svg,
.mobile-map-cta svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit-actions { display: flex; flex-direction: column; gap: 11px; }
.outline-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 46px;
  padding: 0 23px;
  border: 1px solid #323632;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.outline-button:hover { background: var(--ink); color: white; transform: translateY(-1px); }
.outline-button--map { background: var(--deep-green); border-color: var(--deep-green); color: white; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 5vw;
  background: var(--deep-green);
  color: white;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mobile-map-cta { display: none; }

.lightbox {
  width: min(920px, calc(100vw - 48px));
  height: min(80vh, 720px);
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,.38);
}
.lightbox::backdrop { background: rgba(5, 14, 12, .82); backdrop-filter: blur(4px); }
.lightbox__photo { width: 100%; height: 100%; background-size: contain !important; background-position: center !important; }
.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: white;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

@media (hover: hover) {
  .photo { transition: filter 420ms ease, transform 700ms var(--motion-ease); }
  button.photo:hover { filter: brightness(.93); }
  .menu-card:hover .photo { transform: translateY(-4px) scale(1.012); filter: saturate(1.03); }
  .bakes-collage .photo:hover,
  .community-details .photo:hover { transform: scale(1.015); }
}

@media (max-width: 980px) {
  .hero__inner, .section-shell { width: min(100% - 48px, 860px); }
  .visit-section { grid-template-columns: 1fr; }
  .visit-photo { min-height: 360px; }
  .visit-content { grid-template-columns: 120px 1fr 1fr; padding-inline: 36px; }
  .community-grid { grid-template-columns: 1fr; }
  .community-hero { min-height: 520px; border-radius: 0; }
  .community-copy { padding: 48px 7vw 54px; }
  .community-details { max-width: 520px; }
}

@media (max-width: 760px) {
  .hero { min-height: 620px; background-image: var(--hero-mobile); background-size: cover; background-position: center; }
  .hero__shade { background: linear-gradient(90deg, #061714 0%, #061714 60%, rgba(5,20,18,.6) 84%, rgba(5,20,18,.16)); }
  .hero__inner { width: calc(100% - 32px); padding-top: 26px; }
  .brand { font-size: 14px; }
  .hero__content { margin-top: 88px; }
  .hero h1 { font-size: clamp(43px, 12vw, 54px); line-height: .97; }
  .hero p { max-width: 345px; font-size: 14px; line-height: 1.55; }
  .desktop-break { display: none; }
  .hero__directions { display: inline-flex; }

  .section-shell { width: calc(100% - 24px); }
  .menu-section { padding: 42px 0 30px; }
  .bakes-section { padding-top: 24px; padding-bottom: 42px; }
  .menu-layout { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .section-heading { padding-top: 34px; }
  .section-heading--copy { padding-top: 18px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading .squiggle { width: 44px; margin-top: 10px; }
  .section-heading--copy p { margin-top: 15px; font-size: 10px; line-height: 1.45; }
  .drink-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .menu-card h3 { margin-top: 9px; font-size: 9px; line-height: 1.2; }
  .menu-card > span { width: 22px; margin-top: 8px; }

  .bakes-collage {
    grid-template-columns: 1.8fr 1.03fr .68fr .68fr;
    grid-template-rows: 74px 67px;
    gap: 4px;
  }
  .bake-main { grid-column: 1; grid-row: 1 / 3; }
  .bake-tart { grid-column: 2; grid-row: 1 / 3; }
  .bake-chocolate { grid-column: 3 / 5; grid-row: 1; }
  .bake-small { grid-column: 3; grid-row: 2; }
  .bake-brownies { display: block; grid-column: 4; grid-row: 2; }

  .community-grid { grid-template-columns: 56% 44%; min-height: 250px; }
  .community-hero { min-height: 250px; border-radius: 0 4px 4px 0; }
  .community-copy { padding: 22px 12px 20px; }
  .community-copy h2 { font-size: 25px; }
  .community-copy .squiggle { width: 44px; margin-top: 9px; }
  .community-copy p { margin: 11px 0 14px; font-size: 9px; line-height: 1.35; }
  .community-copy p br { display: none; }
  .community-details { gap: 4px; }

  .visit-section { grid-template-columns: 31% 69%; min-height: 250px; }
  .visit-photo { min-height: 250px; }
  .visit-content {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px 10px;
    align-items: start;
    padding: 22px 12px 72px;
  }
  .visit-title h2 { font-size: 25px; }
  .visit-title .squiggle { width: 42px; margin-top: 9px; }
  .visit-details { gap: 7px; font-size: 9px; }
  .visit-details svg { width: 15px; height: 15px; }
  .visit-actions { grid-column: 1 / 3; gap: 6px; }
  .outline-button { min-height: 34px; padding: 0 12px; gap: 10px; font-size: 8px; }
  .outline-button svg { width: 16px; height: 16px; }
  footer { padding: 17px 20px; }
  footer a { display: none; }

  .mobile-map-cta {
    position: fixed;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--deep-green);
    color: white;
    box-shadow: 0 10px 28px rgba(15, 50, 43, .3);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .mobile-map-cta:active {
    transform: scale(.96);
    box-shadow: 0 5px 16px rgba(15, 50, 43, .24);
  }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 44px; }
  .community-hero { min-height: 250px; }
  .community-details { gap: 6px; }
  .visit-details { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .motion-ready .brand,
  .motion-ready .hero h1,
  .motion-ready .hero p,
  .motion-ready .hero__directions,
  .motion-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-ready .reveal .squiggle { transform: scaleX(1) !important; }
}
