/* Artware Studio brand skin for cal.diy — book.artware.studio
   Tokens copied from artware-studio/website/src/styles/global.css
   Injected by nginx sub_filter; the app itself is unmodified. */

:root {
  --aw-snow: #fafaf9;
  --aw-cream: #f5f3ef;
  --aw-sand: #e8e4dd;
  --aw-stone: #c4bfb6;
  --aw-slate: #8a8580;
  --aw-graphite: #4a4745;
  --aw-ink: #1a1918;
  --aw-accent: #d97757;
  --aw-accent-dim: #b85a3f;
  --aw-accent-text: #8c3517;
  --aw-accent-wash: rgba(217, 119, 87, 0.09);
  --aw-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── typography ──────────────────────────────────────────────────────── */

html,
body,
button,
input,
select,
textarea {
  font-family:
    "Satoshi",
    system-ui,
    -apple-system,
    sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.font-cal,
h1,
h2,
h3 {
  font-family: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

/* the event title — give it real presence */
h1.text-text {
  font-size: 1.5rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  color: var(--aw-ink) !important;
  margin-top: 0.35rem !important;
}

/* numbers in slots and the calendar shouldn't jitter */
[data-testid="time"],
[data-testid="day"] {
  font-variant-numeric: tabular-nums;
}

/* ── palette: warm ground instead of cal's cool grey ─────────────────── */

:root,
html.light,
html:not(.dark) {
  --cal-bg: var(--aw-snow);
  --cal-bg-default: var(--aw-snow);
  --cal-bg-subtle: var(--aw-cream);
  --cal-bg-muted: var(--aw-cream);
  --cal-bg-emphasis: #f1eee7;
  /* white on terracotta, the same pairing artware.studio uses for its CTAs */
  --cal-brand-text: #ffffff;
  --cal-brand-emphasis: var(--aw-accent-dim);
  --cal-border: var(--aw-sand);
  --cal-border-default: var(--aw-sand);
  --cal-border-subtle: var(--aw-sand);
  --cal-border-emphasis: var(--aw-stone);
  --cal-text-emphasis: var(--aw-ink);
  --cal-text: var(--aw-graphite);
  --cal-text-subtle: var(--aw-slate);
  --cal-text-muted: var(--aw-stone);
}

html:not(.dark) body {
  background-color: var(--aw-cream) !important;
  background-image: radial-gradient(
    56rem 34rem at 50% -8%,
    rgba(217, 119, 87, 0.11),
    transparent 68%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ── masthead: the artware wordmark and the slogan, above the card ───── */

/* cal ships my-20 (5rem); the masthead needs that room, not double it */
.main {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

/* `.main` is the booker's flex column, so ::before becomes its first item
   and lands centred above the card with no markup change. */
.main::before {
  content: "Ihre Website. In Tagen, nicht Monaten.";
  display: block;
  background-image: url("/brand/logo.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 152px auto;
  padding-top: 84px;
  margin-bottom: 2rem;
  text-align: center;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--aw-slate);
}

.main::after {
  content: "artware.studio";
  display: block;
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  color: var(--aw-slate);
}

@media (max-width: 767px) {
  .main::before {
    background-size: 112px auto;
    padding-top: 62px;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
  }
  .main::after {
    margin-top: 1.25rem;
  }
}

/* ── the booker card ─────────────────────────────────────────────────── */

html:not(.dark) [data-testid="booker-container"] {
  border-color: var(--aw-sand) !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(26, 25, 24, 0.04),
    0 12px 40px rgba(26, 25, 24, 0.07),
    0 2px 10px rgba(217, 119, 87, 0.05);
}

/* the meta column reads as a quieter panel, like the site's cards.
   The background sits on the grid area, not on event-meta — event-meta is only
   as tall as its content, which would leave a seam halfway down the card. */
html:not(.dark) [data-testid="booker-container"] [class*="[grid-area:meta]"] {
  align-self: stretch;
  background: linear-gradient(180deg, #faf8f4 0%, #f7f4ef 100%);
}

@media (min-width: 768px) {
  html:not(.dark) [data-testid="booker-container"] [class*="[grid-area:meta]"] {
    border-right: 1px solid var(--aw-sand);
  }
}

html:not(.dark) [data-testid="event-meta"] {
  background: transparent;
}

/* "Arielle Ostankova" above the title */
[data-testid="event-meta"] p.text-subtle {
  color: var(--aw-slate) !important;
  letter-spacing: 0.02em;
  font-size: 0.8125rem !important;
}

/* the event description */
[data-testid="event-meta"] [data-testid="event-meta-description"],
[data-testid="event-meta"] .text-subtle:not(p) {
  color: var(--aw-graphite) !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}

/* ── time slots ──────────────────────────────────────────────────────── */

[data-testid="time"] {
  background: #fff !important;
  border-color: var(--aw-sand) !important;
  border-radius: 12px !important;
  color: var(--aw-graphite) !important;
  box-shadow: 0 1px 1.5px rgba(26, 25, 24, 0.035) !important;
  transition:
    transform 0.18s var(--aw-ease),
    box-shadow 0.18s var(--aw-ease),
    border-color 0.18s var(--aw-ease),
    color 0.18s var(--aw-ease);
}

[data-testid="time"]:not([data-disabled="true"]):hover {
  border-color: var(--aw-accent) !important;
  color: var(--aw-accent-text) !important;
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow:
    0 3px 10px rgba(217, 119, 87, 0.16),
    0 0 0 1px rgba(217, 119, 87, 0.25) !important;
}

[data-testid="time"]:active {
  transform: translateY(0);
}

/* ── calendar days ───────────────────────────────────────────────────── */

[data-testid="day"] {
  border-radius: 12px !important;
  transition:
    background-color 0.16s var(--aw-ease),
    color 0.16s var(--aw-ease);
}

[data-testid="day"]:not(:disabled):not([aria-selected="true"]):hover {
  background-color: var(--aw-accent-wash) !important;
  color: var(--aw-accent-text) !important;
}

/* the selected day: white on terracotta, lifted */
[data-testid="day"].bg-brand-default {
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(217, 119, 87, 0.35);
}

/* today's dot */
[data-testid="day"] span[class*="rounded-full"] {
  background-color: var(--aw-accent) !important;
}

/* ── buttons ─────────────────────────────────────────────────────────── */

button[type="submit"],
[data-testid="confirm-book-button"] {
  border-radius: 10px !important;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 2px rgba(26, 25, 24, 0.08) !important;
  transition:
    background-color 0.18s var(--aw-ease),
    box-shadow 0.18s var(--aw-ease),
    transform 0.18s var(--aw-ease);
}

button[type="submit"]:hover,
[data-testid="confirm-book-button"]:hover {
  background-color: var(--aw-accent-dim) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.3) !important;
  transform: translateY(-1px);
}

[data-testid="back"] {
  color: var(--aw-slate) !important;
}

/* ── form fields ─────────────────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.bg-default input,
[data-testid="booking-form"] input,
[data-testid="booking-form"] textarea {
  border-radius: 10px !important;
  border-color: var(--aw-sand) !important;
  background: #fff !important;
  transition:
    border-color 0.16s var(--aw-ease),
    box-shadow 0.16s var(--aw-ease);
}

input:focus,
textarea:focus {
  border-color: var(--aw-accent) !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15) !important;
  outline: none !important;
}

/* ── slot column scrollbar ───────────────────────────────────────────── */

[data-testid="booker-container"] *::-webkit-scrollbar {
  width: 7px;
}

[data-testid="booker-container"] *::-webkit-scrollbar-thumb {
  background: var(--aw-sand);
  border-radius: 99px;
}

[data-testid="booker-container"] *::-webkit-scrollbar-thumb:hover {
  background: var(--aw-stone);
}

/* ── selection + focus ───────────────────────────────────────────────── */

::selection {
  background-color: rgba(217, 119, 87, 0.16);
  color: var(--aw-ink);
}

:focus-visible {
  outline: 2px solid var(--aw-accent-dim);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
  [data-testid="time"]:hover,
  button[type="submit"]:hover {
    transform: none;
  }
}
