@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-canvas: #F5F3EC;
  --bg-phone: #FAF8F2;
  --ink-primary: #1F1E1B;
  --ink-secondary: #65625B;
  --ink-muted: #9E9A90;
  --border-subtle: rgba(31, 30, 27, 0.08);
  --border-focus: rgba(31, 30, 27, 0.22);
  --seal-red: #A33B2E;
  --seal-red-bright: #E56857;
  --sage-green: #2F5943;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.font-editorial {
  font-family: 'Newsreader', Georgia, serif;
}

.font-mono-subtle {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Breathing animation for gesture arrows */
@keyframes breathUp {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-6px); opacity: 1.0; }
}

@keyframes breathDown {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1.0; }
}

.animate-breath-up {
  animation: breathUp 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.animate-breath-down {
  animation: breathDown 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Scrollbar clean */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::selection {
  background: rgba(163, 59, 46, 0.12);
  color: var(--seal-red);
}

/* Washi paper subtle fiber feel */
.washi-paper {
  background-color: var(--bg-phone);
  background-image: radial-gradient(rgba(31, 30, 27, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Animations for card transitions */
@keyframes swipeUpAnim {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-140px) scale(0.96); opacity: 0; }
}

@keyframes swipeDownAnim {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(140px) scale(0.96); opacity: 0; }
}

@keyframes cardEnterAnim {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.anim-swipe-up {
  animation: swipeUpAnim 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-swipe-down {
  animation: swipeDownAnim 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-card-enter {
  animation: cardEnterAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive phone container */
@media (max-width: 640px) {
  .phone-frame {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
