/*
 * Triply base styles.
 *
 * Component-level styling is rendered inline (matching the prototype exactly),
 * so this file only carries the design tokens, resets, focus/scroll polish and
 * the keyframes the app animates with.
 */

:root {
  /* Default palette: Indigo & Coral. */
  --tp-primary: #2e3a75;
  --tp-accent: #e06a5a;
  --tp-accent-soft: #fbe9e5;
  --tp-accent-text: #c2503f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #fbf6ee;
  color: #29241e;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--tp-accent);
  color: #fff;
}

input,
textarea,
button,
select {
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--tp-primary) !important;
  box-shadow: 0 0 0 3px rgba(19, 78, 72, 0.1);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #e2d7c6;
  border-radius: 8px;
  border: 3px solid #fbf6ee;
}

@keyframes triplyFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes triplyPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes triplyOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tpSpin {
  to {
    transform: rotate(360deg);
  }
}

.tp-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: tpSpin 0.6s linear infinite;
  vertical-align: -2px;
}
