/* Taylr beta site: shared base. Colors and type come from tokens.css (brand/tokens). */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: only light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--taylr-mist);
  color: var(--taylr-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--taylr-cobalt-600); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--taylr-cobalt-300); outline-offset: 3px; border-radius: 8px; }

.display, h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--taylr-cobalt-500); color: #fff; box-shadow: 0 8px 24px -10px rgba(47,91,255,.7); }
.btn-primary:hover:not([disabled]) { background: var(--taylr-cobalt-600); }
.btn-ink { background: var(--taylr-ink); color: #fff; }
.btn-ink:hover:not([disabled]) { background: var(--taylr-ink-700); }
.btn-paper { background: #fff; color: var(--taylr-ink); box-shadow: inset 0 0 0 1px var(--taylr-slate-200); }
.btn-paper:hover:not([disabled]) { box-shadow: inset 0 0 0 1px var(--taylr-slate-300); }
.btn-ghost { background: transparent; color: var(--taylr-ink); box-shadow: inset 0 0 0 1px rgba(11,16,32,.14); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(11,16,32,.3); }
.btn-white { background: #fff; color: var(--taylr-cobalt-600); }
.btn-white:hover { background: var(--taylr-cobalt-50); }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* The stitch motif: 2px dashed, 6px dash, 5px gap, round caps, inset 6px.
   Drawn with SVG so the dash and gap are exact. Add class="stitched" to any card. */
.stitched { position: relative; }
.stitched > .stitch {
  position: absolute; inset: var(--stitch-inset);
  width: calc(100% - 2 * var(--stitch-inset)); height: calc(100% - 2 * var(--stitch-inset));
  pointer-events: none; overflow: visible;
}
.stitch rect { fill: none; stroke: var(--stitch-color, var(--taylr-cobalt-500)); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 5; }

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