/* ServiceBookr - design tokens, reset, utilities */
:root {
  --ink: #0b1220;
  --ink-2: #445066;
  --ink-3: #6b7a90;
  --surface: #fff;
  --surface-2: #f5f7fb;
  --line: #e4e9f2;
  --brand: #1a5cff;
  --brand-ink: #0a3ec2;
  --ok: #0f9d58;
  --scrim: linear-gradient(90deg, rgba(6, 10, 20, 0.78), rgba(6, 10, 20, 0.35));
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-2: 0 8px 24px rgba(11, 18, 32, 0.08);
  --max: 1180px;
  --gutter: 20px;
  --font: -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --focus: 0 0 0 3px rgba(26, 92, 255, 0.35);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font: 400 1rem/1.6 var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

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

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-ink);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.85rem, 7vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
}

.grid-auto > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 640px) {
  .grid-auto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 379px) {
  :root {
    --gutter: 16px;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 28px;
  }
}
