/* KESSA — shared tokens and base.
   Language: deep navy, one Hot Coral object, chunky rounded display type,
   everything soft (40px heroes, 28px cards, pills). */

@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --ink-0: #060f18;
  --ink-1: #091723;
  --ink-2: #0f1f2e;
  --ink-3: #152a3c;
  --ink-4: #1d3549;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f3;
  --text-2: rgba(245, 245, 243, 0.68);
  --text-3: rgba(245, 245, 243, 0.58);

  --coral: #ff4f40;
  --coral-hi: #ff7365;
  --coral-lo: #e63d2f;
  --coral-ink: #2b0a06;
  --coral-soft: rgba(255, 79, 64, 0.14);
  --mint: #f2f8f3;
  --mint-ink: #0b2a1c;
  --pos: #7fe0b2;
  --warn: #ffc56b;

  --display: 'Bricolage', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 0.12s;
  --t: 0.2s;
  --t-in: 0.55s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--coral-hi); outline-offset: 3px; border-radius: 8px; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ic { flex: none; }

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-variation-settings: 'opsz' 96;
}

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 79, 64, 0.7); }
.btn-coral:hover { background: var(--coral-hi); }
.btn-white { background: var(--text); color: var(--ink-1); }
.btn-white:hover { background: #fff; }
.btn-navy { background: var(--ink-1); color: var(--text); }
.btn-navy:hover { background: var(--ink-3); }
.btn-soft { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn-soft:hover { background: rgba(255, 255, 255, 0.12); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32); }
.btn-danger { background: rgba(255, 79, 64, 0.12); color: var(--coral-hi); }
.btn-danger:hover { background: rgba(255, 79, 64, 0.2); }

.link-u {
  font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: rgba(245, 245, 243, 0.35);
  transition: text-decoration-color var(--t) var(--ease);
}
.link-u:hover { text-decoration-color: currentColor; }

/* ---------- brand ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.045em;
  color: var(--text);
}
.wordmark svg { border-radius: 9px; }

/* ---------- avatar monogram ---------- */
.av {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * 0.36); letter-spacing: -0.02em;
  background: var(--ink-4); color: var(--text);
}
.av.coral { background: var(--coral); color: #fff; }
.av.mint { background: var(--mint); color: var(--mint-ink); }

/* ---------- entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.enter { animation: rise var(--t-in) var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }

@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.skel {
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

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