/* Example sites, shared by the home page, How it works, and Examples (2026-10-05).
   One system for the three design examples, so the cafe is the same cafe everywhere.
   .m-site is a small website laid out by its own width (container “site”), not the screen.
   Brands: .m-cafe (forest, cream, terracotta), .m-trade (navy, steel, safety orange),
   .m-store (blush, sage). Photo spots are brand-colored tiles labeled “Your photo” until
   real photos arrive (owner rule: no stock or fake photos). Business names stay blurred. */

.m-site {
  --m-bg: #f7f1e6; --m-card: #fffaf1; --m-ink: #1d2a22; --m-soft: #5f6a5c; --m-line: #e5dac6;
  --m-dark: #1f3a2e; --m-on-dark: #f7f1e6; --m-accent: #c2603c; --m-on-accent: #fff;
  --m-ph-a: #f2d7a1; --m-ph-b: #d98c5f; --m-ph-c: #a9472b;
  position: relative;
  min-height: 100%;
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}
.m-trade {
  --m-bg: #eef1f5; --m-card: #fff; --m-ink: #121c2b; --m-soft: #52617a; --m-line: #d3dbe5;
  --m-dark: #14213d; --m-on-dark: #fff; --m-accent: #ef6c2f; --m-on-accent: #1a0e05;
  --m-ph-a: #9fb4cf; --m-ph-b: #5d7ba3; --m-ph-c: #2b4468;
}
.m-store {
  --m-bg: #f8eee8; --m-card: #fffaf6; --m-ink: #2b2420; --m-soft: #74665e; --m-line: #ecd9cd;
  --m-dark: #3f4c39; --m-on-dark: #fff; --m-accent: #5f7356; --m-on-accent: #fff;
  --m-ph-a: #f6ddd1; --m-ph-b: #ddb6a6; --m-ph-c: #8fa287;
}
.m-site p { margin: 0; }
.m-site .m-soft { color: var(--m-soft); }
.m-site .m-gap { margin-top: .9rem; }
.m-mini { padding: .9rem; font-size: 14px; }
.m-mini.m-flush { padding: 0; }

.m-nav { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; background: var(--m-bg); border-bottom: 1px solid var(--m-line); }
.m-nav.m-dark { background: var(--m-dark); color: var(--m-on-dark); border-color: transparent; }
.m-brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; font-family: var(--serif); font-size: 1.3rem; }
.m-links { display: none; gap: 1.3rem; font-size: .86rem; }
.m-burger { display: inline-grid; gap: 4px; }
.m-burger i { display: block; width: 18px; height: 2px; background: currentColor; }
.m-site .m-wide { display: none; }

.m-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .62rem 1rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.m-btn.solid { background: var(--m-dark); border-color: var(--m-dark); color: var(--m-on-dark); }
.m-btn.accent { background: var(--m-accent); border-color: var(--m-accent); color: var(--m-on-accent); }
button.m-btn { font-family: inherit; cursor: pointer; justify-self: start; }

.m-hero { display: grid; gap: 1.3rem; padding: 1.6rem 1.1rem 1.8rem; }
.m-hero.m-dark { background: var(--m-dark); color: var(--m-on-dark); }
.m-hero.m-center { justify-items: center; text-align: center; }
.m-site .m-kick { margin-bottom: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--m-soft); }
.m-dark .m-kick { color: var(--m-accent); }
.m-h1 { font-family: var(--serif); font-size: clamp(2rem, 8.5cqi, 3.4rem); line-height: 1.04; letter-spacing: -.01em; }
.m-site .m-sub { max-width: 40ch; margin-top: .8rem; color: var(--m-soft); }
.m-dark .m-sub { color: #b8c4d1; }
.m-center .m-sub { margin-inline: auto; }
.m-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.m-center .m-actions { justify-content: center; }

.m-ph {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 110px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: .55rem;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 22% 12%, rgb(255 255 255 / .38), transparent 55%),
    linear-gradient(140deg, var(--m-ph-a) 0%, var(--m-ph-b) 58%, var(--m-ph-c) 100%);
}
.m-ph > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem .22rem .45rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .78);
  color: #2a2622;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.m-ph > span::before {
  content: "";
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.m-ph.tall { aspect-ratio: 4 / 3.3; }
.m-ph.m-banner { aspect-ratio: 21 / 7; border-radius: 0; }

.m-open { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .8rem 1.1rem; background: var(--m-card); border-block: 1px solid var(--m-line); font-size: .88rem; }
.m-dot { width: 9px; height: 9px; border-radius: 50%; background: #b6463a; }
.m-open.is-open .m-dot { background: #2f9e62; box-shadow: 0 0 0 3px rgb(47 158 98 / .18); }
.m-open .m-hours { margin-left: auto; color: var(--m-soft); }

.m-section { padding: 1.6rem 1.1rem; }
.m-section.m-alt { background: var(--m-card); border-block: 1px solid var(--m-line); }
.m-site .m-h2 { margin-bottom: .9rem; font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.m-site .m-note { margin: -.45rem 0 .9rem; color: var(--m-soft); font-size: .85rem; }

.m-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.m-tab { padding: .38rem .85rem; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-card); color: var(--m-ink); font-size: .82rem; font-weight: 600; cursor: pointer; }
.m-tab[aria-pressed="true"] { background: var(--m-dark); border-color: var(--m-dark); color: var(--m-on-dark); }
.m-menu { display: grid; gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.m-menu li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--m-line); }
.m-menu li > span:last-child { color: var(--m-soft); font-variant-numeric: tabular-nums; }
.m-menu small { display: block; color: var(--m-soft); font-size: .78rem; }

.m-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.m-gallery .m-ph { min-height: 0; aspect-ratio: 1; }

.m-reviews { display: grid; gap: .8rem; }
.m-review { display: grid; gap: .45rem; padding: .9rem 1rem; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 6px; font-size: .88rem; }
.m-alt .m-review { background: var(--m-bg); }
.m-stars { color: #d39b2a; letter-spacing: .12em; font-size: .9rem; }

.m-visit { display: grid; gap: 1.2rem; }
.m-visit p + p { margin-top: .5rem; }
.m-map {
  position: relative;
  min-height: 170px;
  border-radius: 6px;
  background-color: #e7e2d8;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / .6) 2px, transparent 2px),
    linear-gradient(rgb(255 255 255 / .6) 2px, transparent 2px),
    linear-gradient(32deg, transparent 47%, rgb(255 255 255 / .95) 47%, rgb(255 255 255 / .95) 51%, transparent 51%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.m-trade .m-map { background-color: #dbe2ea; }
.m-pin { position: absolute; left: 52%; top: 42%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: #b6463a; transform: rotate(-45deg); box-shadow: 0 0 0 5px rgb(182 70 58 / .18); }

.m-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; padding: 1.1rem; background: var(--m-dark); color: var(--m-on-dark); font-size: .82rem; }
.m-bar { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--m-card); border-top: 1px solid var(--m-line); }
.m-bar span { display: grid; justify-items: center; gap: .2rem; padding: .55rem 0 .65rem; font-size: .7rem; font-weight: 600; }
.m-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Contractor */
.m-services { display: grid; gap: .7rem; }
.m-services div { display: grid; gap: .3rem; padding: .9rem; background: var(--m-card); border: 1px solid var(--m-line); border-top: 3px solid var(--m-accent); border-radius: 6px; font-size: .86rem; }
.m-services span { color: var(--m-soft); }
.m-ba { --pos: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; }
.m-ba-before, .m-ba-after { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.m-ba-before { background: repeating-linear-gradient(135deg, #a9a093 0 14px, #b3aa9c 14px 28px); color: #3b352c; }
.m-ba-after { justify-content: flex-end; background: linear-gradient(160deg, #e3e9ee, #c8d3dd); color: #24384c; clip-path: inset(0 0 0 var(--pos)); }
.m-ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); pointer-events: none; }
.m-ba-knob { position: absolute; top: 50%; left: var(--pos); z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .25); transform: translate(-50%, -50%); pointer-events: none; }
.m-ba-knob::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #24384c; }
.m-ba input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.m-ba:focus-within { outline: 2px solid var(--star); outline-offset: 2px; }
.m-two { display: grid; gap: 1.6rem; }
.m-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.m-chips > span { padding: .3rem .65rem; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-card); font-size: .8rem; }
.m-form { display: grid; gap: .65rem; padding: 1rem; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 6px; }
.m-form label { display: grid; gap: .25rem; font-size: .8rem; font-weight: 600; }
.m-form input, .m-form textarea { width: 100%; padding: .55rem .6rem; border: 1px solid var(--m-line); border-radius: 4px; background: #fff; color: var(--m-ink); font-size: .9rem; font-weight: 400; }
.m-form textarea { min-height: 72px; resize: vertical; }
.m-site .m-done { color: #2f7d52; font-size: .82rem; font-weight: 600; }

/* Retail */
.m-notice { padding: .55rem 1.1rem; background: var(--m-accent); color: var(--m-on-accent); font-size: .8rem; font-weight: 600; text-align: center; }
.m-products { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.m-products > div { display: grid; gap: .2rem; align-content: start; font-size: .86rem; }
.m-products .m-ph { min-height: 0; aspect-ratio: 1; margin-bottom: .35rem; }
.m-products > div > span { color: var(--m-soft); font-size: .8rem; }
.m-hourlist { margin: .7rem 0 0; padding: 0; list-style: none; font-size: .86rem; }
.m-hourlist li { display: flex; justify-content: space-between; padding: .32rem 0; border-bottom: 1px solid var(--m-line); }
.m-hourlist li.is-today { font-weight: 700; }

/* Wider than a phone: desktop layout inside the frame */
@container site (min-width: 640px) {
  .m-links { display: flex; }
  .m-burger { display: none; }
  .m-site .m-wide { display: inline-flex; }
  .m-nav { padding: 1rem 2.2rem; }
  .m-hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2.2rem; padding: 3.2rem 2.2rem; }
  .m-hero.m-center { grid-template-columns: 1fr; padding: 3.6rem 2.2rem 2.6rem; }
  .m-open { padding: .85rem 2.2rem; }
  .m-section { padding: 2.6rem 2.2rem; }
  .m-menu { grid-template-columns: 1fr 1fr; }
  .m-gallery { grid-template-columns: repeat(4, 1fr); }
  .m-reviews { grid-template-columns: 1fr 1fr; }
  .m-visit { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .m-services { grid-template-columns: repeat(4, 1fr); }
  .m-section > .m-ba { max-width: 720px; }
  .m-two { grid-template-columns: 1fr 1fr; align-items: start; }
  .m-products { grid-template-columns: repeat(4, 1fr); }
  .m-foot { padding: 1.2rem 2.2rem; }
  .m-bar { display: none; }
}

/* ---------- Brands ---------- */

/* The small mark beside each blurred business name */
.m-mark { display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--m-accent); color: var(--m-on-accent); font-size: .78em; }
.m-mark svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cafe & bakery: forest-green hero, italic serif, a terracotta-to-butter arch where the photo goes */
.m-cafe .m-hero { background: var(--m-dark); color: var(--m-on-dark); }
.m-cafe .m-h1 { font-style: italic; }
.m-cafe .m-hero .m-kick { color: var(--m-ph-a); }
.m-cafe .m-hero .m-sub { color: #c9d4c7; }
.m-cafe .m-hero .m-btn.solid { background: var(--m-ph-a); border-color: var(--m-ph-a); color: var(--m-ink); }
.m-cafe .m-hero .m-ph { border-radius: 999px 999px 14px 14px; }
.m-hero .m-menu li { border-bottom-color: rgb(255 255 255 / .18); }
.m-cafe .m-hero .m-menu li > span:last-child { color: var(--m-ph-a); }
.m-cafe .m-tab[aria-pressed="true"] { background: var(--m-accent); border-color: var(--m-accent); color: var(--m-on-accent); }

/* Contractor: navy blueprint grid, bold sans headline, a safety-orange bar, square corners */
.m-trade .m-hero {
  background:
    linear-gradient(rgb(255 255 255 / .055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(255 255 255 / .055) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--m-dark);
}
.m-trade .m-h1 { font-family: var(--font); font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.8rem, 7.2cqi, 3rem); line-height: 1.02; }
.m-trade .m-kick::before { content: ""; display: inline-block; width: 22px; height: 3px; margin: 0 .55rem .22rem 0; background: var(--m-accent); vertical-align: middle; }
.m-trade .m-hero .m-ph { --m-ph-a: #f6b07e; --m-ph-b: #ef6c2f; --m-ph-c: #8f3711; }
.m-trade .m-ph, .m-trade .m-btn, .m-trade .m-services div, .m-trade .m-form { border-radius: 3px; }
.m-trade .m-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px) 0 0 / 22px 22px; }
.m-trade .m-mark { border-radius: 4px; }
.m-trade .m-h2 { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; font-size: 1.5rem; }

/* Gift shop: blush, a centered italic headline, soft sage, rounded tiles */
.m-store .m-hero { background: radial-gradient(90% 120% at 50% 0%, #fdf6f1, var(--m-bg) 70%); }
.m-store .m-h1 { font-style: italic; }
.m-store .m-kick { color: var(--m-accent); }
.m-store .m-ph { border-radius: 16px; }
.m-store .m-ph.m-banner { border-radius: 0; }
.m-store .m-btn { border-radius: 999px; }

/* Compact versions: the home hero, the home cards, and How it works */
.m-compact .m-hero { padding-block: 1.3rem 1.4rem; }
.m-compact .m-hero .m-ph { aspect-ratio: 16 / 7; min-height: 0; }
.m-compact .m-pad { padding: 1rem 1.1rem 1.2rem; }
.m-compact .m-products > div:nth-child(n + 3) { display: none; }
.m-compact .m-menu li { padding: .45rem 0; }
@container site (min-width: 640px) {
  .m-compact .m-hero { padding: 2rem 2rem; }
  .m-compact .m-hero .m-ph { aspect-ratio: 4 / 3.3; }
  .m-compact .m-pad { padding: 1.2rem 2rem 1.4rem; }
  .m-compact .m-products > div:nth-child(n + 3) { display: grid; }
}
