/* Shared base for the concept shop sites. Each site sets its own tokens and layout in style.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text-font);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

main {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus, currentColor);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max, 1240px));
  margin-inline: auto;
}

/* concept bar: says plainly that this is a concept, not a real shop */
.concept {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px max(16px, env(safe-area-inset-left, 0px));
  background: #111;
  color: #f2f1ec;
  font-family: "Mona Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.concept a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.concept strong {
  color: #ffd400;
}

/* open / closed status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--status-bg, rgba(255, 255, 255, 0.7));
  color: var(--status-ink, inherit);
  font-family: var(--ui-font, inherit);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
}

.status__dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f9d55;
}

.status[data-open="false"] .status__dot {
  background: #c23b3b;
}

@media (prefers-reduced-motion: no-preference) {
  .status[data-open="true"] .status__dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #1f9d55;
    animation: ping 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
}

@keyframes ping {
  from {
    opacity: 0.8;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* demo note toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: min(92vw, 440px);
  padding: 14px 18px;
  border-radius: 14px;
  background: #111;
  color: #f2f1ec;
  font-family: "Mona Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, 0);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
}

/* hours table: today is highlighted */
.hours {
  display: grid;
  gap: 2px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
}

.hours dt,
.hours dd {
  margin: 0;
}

.hours .is-today {
  background: var(--today-bg);
  color: var(--today-ink);
  font-weight: 700;
}

.reveal-up {
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal-up {
    animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: var(--d, 0ms);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
