:root{--brand:#978c6f;--ink:#23282d;--surface:#f6f3ec}
/* Shared card styles. build.mjs prepends each client's --brand, --ink and --surface. */
:root {
  color-scheme: light; /* ponytail: light only, client logos are drawn for light backgrounds */
  --card: #fff;
  --muted: color-mix(in oklab, var(--ink) 64%, var(--surface));
  --line: color-mix(in oklab, var(--ink) 9%, transparent);
  /* The raw brand colour is often too light for text; these keep text at WCAG AA. */
  --brand-strong: color-mix(in oklab, var(--brand), black 40%);
  --brand-soft: color-mix(in oklab, var(--brand) 13%, white);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

/* ---------- hero */

.hero {
  position: relative;
  isolation: isolate;
  margin: 0 -16px;
  padding: calc(76px + env(safe-area-inset-top)) 24px 32px;
  text-align: center;
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  z-index: -1;
  width: 86%;
  right: -30%;
  top: -4%;
  opacity: .085;
  pointer-events: none;
}

.langs {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  box-shadow: 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}
.langs a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.langs a[aria-current] { background: var(--ink); color: var(--card); }

.logo { display: block; width: min(250px, 72%); height: auto; margin: 0 auto; }

.rule {
  display: block;
  width: 36px;
  height: 1px;
  margin: 24px auto 18px;
  background: var(--brand);
}

.tagline {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--brand-strong);
  font-size: 14px;
  letter-spacing: .02em;
  text-wrap: balance;
}

.person { margin-top: 14px; display: grid; gap: 1px; }
.person strong { font-size: 16px; font-weight: 600; }
.person span { color: var(--muted); font-size: 14px; }

/* ---------- actions */

.icon { width: 20px; height: 20px; flex: none; }

.save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--card);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--ink) 60%, transparent);
  transition: transform .15s ease;
}
.save .icon { color: var(--brand); }
.save:active { transform: scale(.98); }

.list {
  list-style: none;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px color-mix(in oklab, var(--ink) 5%, transparent);
}
.list li + li .row { box-shadow: inset 0 1px var(--line); }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 11px 14px 11px 12px;
  color: inherit;
  text-decoration: none;
}
.row:active { background: var(--brand-soft); }
@media (hover: hover) { .row:hover { background: color-mix(in oklab, var(--brand) 5%, white); } }

.badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.row-text { flex: 1; min-width: 0; display: grid; }
.label { font-weight: 600; }
.detail {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev { width: 18px; height: 18px; color: var(--muted); opacity: .55; }

/* ---------- info cards */

.card {
  margin-top: 14px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px color-mix(in oklab, var(--ink) 5%, transparent);
}
.card h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
address { font-style: normal; font-size: 16px; }

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid color-mix(in oklab, var(--brand) 45%, transparent);
  border-radius: 12px;
  background: none;
  color: var(--brand-strong);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ghost .icon { width: 18px; height: 18px; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  font-size: 15px;
}
.hours dd { color: var(--muted); font-variant-numeric: tabular-nums; }
.today { display: none; }
.hours [aria-current] { background: var(--brand-soft); font-weight: 600; }
.hours [aria-current] dd { color: var(--ink); }
.hours [aria-current] .today {
  display: inline;
  margin-left: 6px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- footer */

footer { margin-top: 22px; text-align: center; }
footer .ghost { margin-top: 0; }
.domain { margin-top: 14px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }

/* ---------- call sheet: a native <dialog> pinned to the bottom of the screen */

.sheet {
  width: 100%;
  max-width: 440px;
  max-height: 85dvh;
  margin: auto auto 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -10px 40px -12px color-mix(in oklab, var(--ink) 35%, transparent);
}
.sheet::before {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--line);
}
.sheet::backdrop { background: color-mix(in oklab, var(--ink) 40%, transparent); }
.sheet h2 { text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }
.sheet .list { margin-top: 12px; }
.sheet .label { font-variant-numeric: tabular-nums; }
.cancel {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .hero > :not(.hero-mark, .langs), main > *, footer { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  main > * { animation-delay: .08s; }
  footer { animation-delay: .14s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  .sheet[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
  .sheet[open]::backdrop { animation: fade .28s ease; }
  @keyframes up { from { transform: translateY(100%); } }
  @keyframes fade { from { opacity: 0; } }
}
