/* ============================================================
   Shared chrome for the ten demo sites.

   This file owns ONLY the house-brand banner that sits above each
   demo, plus a reset. Everything below the banner belongs to the
   demo's own palette and type — the house cacao/cream never bleeds
   into it, and the demo's palette never bleeds out.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- House banner ---------- */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #2A1810;
  color: #F2E4CE;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(242, 228, 206, 0.18);
}
.demo-bar-inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
}
.demo-bar-note { display: flex; align-items: center; gap: 9px; }
.demo-bar-note img { height: 19px; width: auto; flex: none; }
.demo-bar-note b { font-weight: 600; }
.demo-bar-note span { color: #C0B19E; }
.demo-bar a {
  color: #F2E4CE;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 228, 206, 0.4);
  white-space: nowrap;
}
.demo-bar a:hover { border-bottom-color: #8B9A76; }

@media (max-width: 600px) {
  .demo-bar { font-size: 12px; }
  .demo-bar-note span { display: none; }
}

/* ---------- Shared skeleton the demos restyle ---------- */
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 700px)  { .wrap { padding-inline: 34px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 48px; } }

.site-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 16px 26px; }
.nav-links a { text-decoration: none; }

.demo-note {
  font-size: 12.5px;
  opacity: 0.75;
  margin-top: 10px;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

/* hidden must win over any display rule a demo sets */
[hidden] { display: none !important; }

/* Skip link — visually out of the way until it takes focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: #2A1810;
  color: #F2E4CE;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Shared capability chrome.

   These pieces appear inside ten different palettes, so they take their
   colour from whatever they sit in via currentColor and color-mix, rather
   than each demo restating them. The plain rgba line before each color-mix
   is the fallback.
   ============================================================ */

/* ---------- Open now / closed ---------- */
.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
}
.hours-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.hours-badge.is-open::before { background: #4E9A5B; opacity: 1; }
.hours-badge.is-shut::before { background: currentColor; opacity: 0.35; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  margin-top: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid;
  border-color: rgba(128, 128, 128, 0.28);
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.filter-field select {
  background: transparent;
  color: inherit;
  border: 1px solid;
  border-color: rgba(128, 128, 128, 0.4);
  border-color: color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14.5px;
  min-width: 132px;
}
.filter-field select option { color: #1a1a1a; }
.filter-meta { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 13.5px; opacity: 0.75; }
.filter-reset {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.filter-empty { margin-top: 30px; font-size: 15px; opacity: 0.75; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 14, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.lightbox-figure { margin: 0; max-width: min(760px, 100%); width: 100%; }
.lightbox-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 74vh;
  border-radius: 8px;
}
.lightbox-cap {
  margin-top: 14px;
  text-align: center;
  color: #EDE3D6;
  font-size: 14px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 0;
  color: #EDE3D6;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.lightbox-nav {
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #EDE3D6;
  font-size: 30px;
  line-height: 1;
  width: 46px;
  height: 64px;
  border-radius: 6px;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 52px; font-size: 24px; }
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

/* ---------- "You can edit this yourself" ---------- */
.editor {
  margin-top: 40px;
  border: 1px solid;
  border-color: rgba(128, 128, 128, 0.3);
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 10px;
  padding: 22px 20px;
}
@media (min-width: 700px) { .editor { padding: 26px 26px 28px; } }
.editor h3 { font-size: 18px; margin-bottom: 8px; }
.editor p.why { font-size: 14px; line-height: 1.65; opacity: 0.78; max-width: 52em; }
.editor textarea {
  width: 100%;
  margin-top: 16px;
  min-height: 190px;
  background: rgba(128, 128, 128, 0.08);
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: inherit;
  border: 1px solid;
  border-color: rgba(128, 128, 128, 0.3);
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 6px;
  padding: 14px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
}
.editor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
/* Outlined rather than filled: a filled button would need a foreground
   colour per palette, and an outline reads correctly in all ten. */
.editor-apply {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 11px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.editor-apply:hover {
  background: rgba(128, 128, 128, 0.14);
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.editor-status { font-size: 13.5px; opacity: 0.8; }

/* Footer live status line */
.foot-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-bottom: 12px;
}
.foot-dir { color: inherit; text-decoration: none; font-size: 13px; border-bottom: 1px solid currentColor; }

/* ---------- Photographs ----------
   Each sits inside the element that used to be a bare gradient. The
   gradient stays as the background, so a missing or slow image leaves the
   original colour rather than a white hole. */
.sw img, .im img, .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-art:has(img) { background: none; }

/* A full-width photograph directly under the hero, for the demos whose
   hero is type and colour alone. */
.hero-band { width: 100%; height: 260px; overflow: hidden; }
@media (min-width: 700px)  { .hero-band { height: 340px; } }
@media (min-width: 1100px) { .hero-band { height: 420px; } }
.hero-band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A photograph set beside content, stacking on a phone. */
.split-media { display: grid; gap: 26px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 820px) {
  .split-media { grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
  .split-media-reverse { grid-template-columns: 1.1fr 0.9fr; }
}
.media { margin: 0; }
.media img { width: 100%; height: auto; border-radius: 8px; display: block; }
.media-wide { margin: 28px 0 0; }
.band-short { height: 220px; }
@media (min-width: 700px)  { .band-short { height: 280px; } }
@media (min-width: 1100px) { .band-short { height: 340px; } }
