/* EverVoice — design tokens + base styles */

:root {
  /* Grounds */
  --ground: #F6F1E8;
  --ground-deep: #EFE7D5;
  --sand: #EAE0CE;
  --sand-soft: #F1E9DA;
  --card: #FBF7EE;

  /* Ink */
  --ink: #2A2622;
  --ink-soft: #4A433C;
  --ink-muted: #7A7268;
  --ink-faint: #A89E90;
  --hairline: #D9CDB6;
  --hairline-soft: #E5DBC6;

  /* Accent — default terracotta (tweakable) */
  --accent: #B5593F;
  --accent-deep: #8E4129;
  --accent-soft: #E8C7B8;
  --accent-tint: #F4E2D7;

  /* Recording amber */
  --amber: #C8822B;
  --amber-soft: #F0DDB8;

  /* Semantic */
  --rust: #A85036;
  --moss: #6B7F4A;

  /* Circle palette — muted */
  --circle-spouse: #B4647A;      /* dusty rose */
  --circle-spouse-soft: #E8D2D8;
  --circle-kids: #7B8E63;        /* sage */
  --circle-kids-soft: #D8DFC8;
  --circle-extended: #B08947;    /* ochre */
  --circle-extended-soft: #E8D8B8;
  --circle-friends: #6B7F92;     /* slate blue */
  --circle-friends-soft: #D2DAE2;

  /* Time capsule */
  --wax: #8E3B2A;
  --wax-deep: #6B2818;
  --kraft: #D4B787;
  --kraft-deep: #A6875A;

  /* Type */
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
  margin: 0; padding: 0;
  background: #1C1915;
  font-family: var(--font-sans);
  color: var(--ink);
  overscroll-behavior: none;
}

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea { font-family: inherit; color: inherit; }

/* Utility */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.sans { font-family: var(--font-sans); }

/* Screen base inside phone frame */
.screen {
  background: var(--ground);
  width: 100%;
  height: 100%;
  position: relative;
  color: var(--ink);
}

/* Hide scrollbars inside device frames */
.nobars::-webkit-scrollbar { display: none; }
.nobars { scrollbar-width: none; }

/* Breathing animation (recording) */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes wax-settle {
  0% { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes envelope-lift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.fade-in { animation: fadeIn 400ms var(--ease) both; }
.slide-up { animation: slideUp 500ms var(--ease) both; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
