/* Bean & Bloom: demo site by Sorted Studio.
   Direction: neighbourhood corner shop. Butter ground, green-black ink, one deep leaf-green block.
   Type: Bricolage Grotesque (variable). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --butter: #f7edd3;
  --butter-2: #efe2bf;
  --ink: #1b2119;
  --ink-soft: #545a4f;
  --leaf: #1f4b37;
  --leaf-deep: #173a2a;
  --on-leaf: #f7edd3;
  --on-leaf-soft: #cfd9c3;
  --rule: rgba(27, 33, 25, 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--butter); color: var(--ink);
  font-family: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, table { margin: 0; }
h1, h2 { text-wrap: balance; }
ul { padding: 0; list-style: none; }
svg { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.flowers :focus-visible { outline-color: var(--butter); }

/* Header */
.top { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.brand { font-weight: 760; font-size: 1.6rem; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.brand span { font-weight: 300; color: var(--leaf); }
.top__nav { display: flex; gap: 1.75rem; margin-left: auto; font-weight: 500; }
.top__nav a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1.5px; padding-block: 0.3rem; transition: background-size 0.4s var(--ease); }
.top__nav a:hover { background-size: 100% 1.5px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.1rem; padding: 0.7rem 1.35rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease);
}
.pill:active { transform: scale(0.98); }
.pill--ink { background: var(--ink); color: var(--butter); }
.pill--ink:hover { background: #333a30; }
.pill--leaf { background: var(--leaf); color: var(--on-leaf); }
.pill--leaf:hover { background: var(--leaf-deep); }
.pill--butter { background: var(--butter); color: var(--leaf-deep); }
.pill--butter:hover { background: #fff7e2; }

/* Hero */
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__title {
  font-weight: 780; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(3.1rem, 8.6vw, 8.4rem); max-width: 14ch;
}
.hero__title em { font-style: normal; font-weight: 300; color: var(--leaf); display: block; }
.hero__body {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; margin-top: clamp(2rem, 4vw, 3rem);
}
.hero__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 60%; border-radius: var(--r); }
.hero__lede { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); line-height: 1.45; max-width: 30ch; }
.hero__facts { margin-block: 1.5rem 1.75rem; border-top: 1.5px solid var(--ink); }
.hero__facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--rule); }
.hero__facts dt { font-weight: 650; }
.hero__facts dd { color: var(--ink-soft); text-align: right; }

/* Menu */
.menu {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 10vw, 8rem);
  border-top: 1.5px solid var(--ink);
}
.menu__head h2 { font-weight: 760; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(2.5rem, 5vw, 4.6rem); max-width: 10ch; }
.menu__head p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 36ch; }
.menu__img { margin-top: 2.25rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.menu__card { background: #fbf5e4; border-radius: var(--r); padding: clamp(1.4rem, 3.5vw, 3rem); border: 1px solid var(--rule); }
.menu__card h3 { font-weight: 300; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--leaf); }
.menu__card h3 + .menu__list { margin-top: 0.75rem; }
.menu__list + h3 { margin-top: 2.25rem; }
.menu__list li { display: flex; align-items: baseline; gap: 0.75rem; padding-block: 0.7rem; }
.menu__list li + li { border-top: 1px dashed var(--rule); }
.menu__item { flex: 1; font-weight: 600; font-size: 1.1rem; }
.menu__item small { display: block; font-weight: 400; font-size: 0.93rem; color: var(--ink-soft); }
.menu__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.menu__note { margin-top: 1.75rem; font-size: 0.93rem; color: var(--ink-soft); }

/* Flowers: the one leaf-green block */
.flowers { background: var(--leaf); color: var(--on-leaf); padding-block: clamp(4.5rem, 10vw, 8rem); }
.flowers__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.flowers h2 { font-weight: 760; letter-spacing: -0.045em; line-height: 0.96; font-size: clamp(2.6rem, 5.6vw, 5.4rem); max-width: 13ch; }
.flowers__list { margin-block: 2.25rem 2rem; border-top: 1.5px solid var(--on-leaf); max-width: 34rem; }
.flowers__list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid rgba(247, 237, 211, 0.25); }
.flowers__list li span:last-child { font-weight: 700; white-space: nowrap; }
.flowers__note { margin-top: 1rem; color: var(--on-leaf-soft); font-size: 0.95rem; }
.flowers__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }

/* Feed strip */
.feed { padding-block: clamp(4.5rem, 10vw, 8rem) 0; }
.feed__title { font-weight: 300; letter-spacing: -0.035em; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; }
.feed__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.75rem; }
.feed__strip li { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.feed__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feed__strip li:hover img { transform: scale(1.04); }
.feed__follow a {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  padding: clamp(1rem, 2vw, 1.5rem); background: var(--butter-2); text-decoration: none;
  font-weight: 600; font-size: clamp(1rem, 0.6vw + 0.85rem, 1.25rem); line-height: 1.3;
}
.feed__follow svg { width: 2.2rem; height: 2.2rem; color: var(--leaf); }

/* Visit */
.visit {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: stretch;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.visit h2 { font-weight: 760; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(2.5rem, 5vw, 4.6rem); max-width: 10ch; }
.visit__hours { width: 100%; border-collapse: collapse; margin-top: 2rem; border-top: 1.5px solid var(--ink); }
.visit__hours th, .visit__hours td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.visit__hours th { font-weight: 650; }
.visit__hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.visit__note { margin-top: 1.5rem; color: var(--ink-soft); max-width: 40ch; }
.visit__contact { margin-top: 1.25rem; font-weight: 650; font-size: 1.2rem; }
.visit__contact a { text-underline-offset: 0.2em; }
.visit__contact span { color: var(--ink-soft); padding-inline: 0.4rem; }

/* Map placeholder (styled block, not a live map) */
.map {
  position: relative; min-height: 22rem; border-radius: var(--r); overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(27, 33, 25, 0.05) 46px 47px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(27, 33, 25, 0.05) 46px 47px),
    var(--butter-2);
  border: 1px solid var(--rule);
}
.map__road { position: absolute; background: #fbf5e4; }
.map__road--v { top: 0; bottom: 0; left: var(--x); width: 26px; transform: translateX(-50%); }
.map__road--h { left: 0; right: 0; top: var(--y); height: 22px; transform: translateY(-50%); }
.map__road--minor.map__road--v { width: 14px; }
.map__road--minor.map__road--h { height: 14px; }
.map__road span {
  position: absolute; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.map__road--v span { left: 50%; top: 54%; bottom: auto; writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); }
.map__road--h span { left: 1rem; top: 50%; transform: translateY(-50%); }
.map__park { position: absolute; left: 66%; top: 46%; width: 16%; height: 18%; border-radius: 8px; background: #cfd9b7; }
.map__pin {
  position: absolute; left: 58%; top: 36%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 7px rgba(31, 75, 55, 0.18);
}
.map__label {
  position: absolute; left: 1.6rem; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--butter); font-weight: 650; font-size: 0.85rem;
  padding: 0.35rem 0.7rem; border-radius: 999px; white-space: nowrap;
}

/* Footer */
.foot { border-top: 1.5px solid var(--ink); padding-block: 2.25rem 3.5rem; font-size: 0.92rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 0.4rem 2.5rem; align-items: baseline; }
.foot__brand { font-weight: 760; font-size: 1.25rem; letter-spacing: -0.03em; }
.foot__credit { color: var(--ink-soft); }

/* Demo tag */
.demo-tag {
  position: fixed; right: 0.9rem; bottom: 0.9rem; z-index: 30;
  font: 600 0.75rem/1 system-ui, sans-serif; color: #fff; background: rgba(27, 33, 25, 0.86);
  text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 999px;
}
.demo-tag:hover { background: var(--ink); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .feed__strip li.reveal:nth-child(2) { transition-delay: 0.06s; }
.js .feed__strip li.reveal:nth-child(3) { transition-delay: 0.12s; }
.js .feed__strip li.reveal:nth-child(4) { transition-delay: 0.18s; }
.js .hero__title, .js .hero__body { animation: rise 0.9s var(--ease) both; }
.js .hero__body { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__wa { margin-left: auto; }
  .hero__body, .menu, .flowers__grid, .visit { grid-template-columns: 1fr; }
  .flowers__photo { max-width: 460px; }
  .feed__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .top { min-height: 4rem; gap: 1rem; }
  .brand { font-size: 1.35rem; }
  .top__wa { min-height: 2.6rem; padding: 0.5rem 0.95rem; font-size: 0.92rem; }
  .top__wa span { display: none; }
  .top__wa::after { content: "WhatsApp"; }
  .hero__title { font-size: clamp(2.9rem, 14.5vw, 4rem); }
  .hero__photo img { aspect-ratio: 4 / 3; }
  .hero__rail .pill { width: 100%; }
  .flowers .pill { width: 100%; white-space: normal; text-align: center; }
  .feed__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.6rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .feed__strip::-webkit-scrollbar { display: none; }
  .feed__strip li { flex: 0 0 72%; scroll-snap-align: start; }
  .map { min-height: 17rem; }
  .demo-tag { font-size: 0.7rem; right: 0.75rem; bottom: 0.75rem; }
}

/* Example banner: says plainly that this site is an example */
.example-bar { background: #15301c; color: #f5f5eb; text-align: center; font: 500 0.875rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 10px 16px; }
.example-bar a { color: #beff50; text-decoration: underline; text-underline-offset: 2px; }

/* Example contact buttons: the dialog and the no-JavaScript note they point to */
.demo-dialog {
  width: min(28rem, calc(100% - 2rem)); padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--butter); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r);
}
.demo-dialog::backdrop { background: rgba(27, 33, 25, 0.6); }
.demo-dialog h2 { font-weight: 760; letter-spacing: -0.035em; font-size: 2rem; line-height: 1; }
.demo-dialog p { margin-top: 0.9rem; }
.demo-dialog__msg { margin: 0.75rem 0 0; padding: 0.8rem 1rem; background: #fbf5e4; border-left: 4px solid var(--leaf); border-radius: 8px; }
.demo-dialog__note { font-weight: 650; }
.demo-dialog__cta a, .demo-note a { color: var(--leaf); font-weight: 650; text-underline-offset: 0.2em; }
.demo-dialog__close { width: 100%; margin-top: 1.5rem; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.demo-note { border-top: 1.5px solid var(--ink); padding-block: clamp(2.5rem, 6vw, 4rem); }
.demo-note h2 { font-weight: 760; letter-spacing: -0.03em; font-size: 1.6rem; line-height: 1.1; }
.demo-note p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 60ch; }
.demo-note .demo-note__strong { color: var(--ink); font-weight: 650; }
/* Small phones: the name sits above the pin, clear of the edge and the road names. */
@media (max-width: 480px) {
  .map__label { left: 50%; top: -1.15rem; transform: translate(-50%, -100%); }
  .map { min-height: 21rem; }
}
