/* ============================================================
   STAY ENGINE — design tokens
   A direct-booking flow a hotel embeds on its own site.
   Light, high-contrast, fast-reading. Every pixel is in
   service of getting a date range into a confirmed booking.
   ============================================================ */

:root {
  --bg:      #ffffff;
  --bg-sub:  #f6f6f4;
  --bg-sub2: #ecebe7;
  --line:    #dcdbd5;
  --line-s:  #eceae5;

  --tx:      #16181a;
  --tx-1:    #4a4f55;
  --tx-2:    #83888f;

  --acc:     #17564a;
  --acc-lt:  #e4efe9;
  --acc-tx:  #0e3c33;
  --warn:    #9a6b12;
  --warn-lt: #fdf3dd;
  --err:     #a8341f;
  --err-lt:  #fbeae6;

  --sans: "Inter Tight", Inter, -apple-system, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-xs: 0.73rem;
  --fs-sm: 0.83rem;
  --fs-md: 0.93rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);

  --r: 8px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(20,22,24,.06), 0 1px 1px rgba(20,22,24,.04);
  --sh-2: 0 4px 16px rgba(20,22,24,.08), 0 1px 3px rgba(20,22,24,.05);
  --sh-3: 0 18px 50px rgba(20,22,24,.14), 0 3px 10px rgba(20,22,24,.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
body {
  background: var(--bg-sub);
  color: var(--tx);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 550; line-height: 1.2; }
::selection { background: var(--acc-lt); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--tx-1); }
.faint { color: var(--tx-2); }

.label {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--tx-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.3em; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg);
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
  box-shadow: var(--sh-1);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: var(--bg-sub); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); }
.btn--acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn--acc:hover { background: #1d6a5b; border-color: #1d6a5b; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--bg-sub2); box-shadow: none; }
.btn--lg { padding: .9em 1.6em; font-size: var(--fs-md); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .06em; padding: .22em .6em; border-radius: 99px;
  background: var(--bg-sub2); color: var(--tx-1);
}
.tag--ok   { background: var(--acc-lt); color: var(--acc-tx); }
.tag--warn { background: var(--warn-lt); color: var(--warn); }
.tag--err  { background: var(--err-lt); color: var(--err); }
