@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

/* ============================================================
   LoveDesk Design System
   Restraint first: one accent, hairline borders, real hierarchy.
   ============================================================ */
:root {
  /* Ink scale */
  --ink-0: #08090c;
  --ink-1: #0c0e13;
  --ink-2: #12151c;
  --ink-3: #181c25;
  --ink-4: #20252f;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #eceef3;
  --text-2: #b4b8c4;
  --text-3: #7d828f;
  --text-4: #5a5f6b;

  /* Single accent — muted violet */
  --accent: #9a8cf5;
  --accent-strong: #8475f0;
  --accent-soft: rgba(154, 140, 245, 0.12);
  --accent-line: rgba(154, 140, 245, 0.32);

  /* Semantic (desaturated) */
  --ok: #7cc4a4;
  --ok-soft: rgba(124, 196, 164, 0.12);
  --warn: #d9b26f;
  --warn-soft: rgba(217, 178, 111, 0.12);
  --bad: #d98282;
  --bad-soft: rgba(217, 130, 130, 0.12);

  /* Type */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; }
.h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; }
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-2); font-weight: 400; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.2); }
.btn-primary { background: var(--text); color: var(--ink-0); border-color: var(--text); }
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-accent { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ghost { border-color: transparent; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 16px; }
.brand-mark { width: 26px; height: 26px; }

/* ---------- Status dot ---------- */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); display: inline-block; flex-shrink: 0; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.dot.accent { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Tag (used sparingly) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.tag.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.tag.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.tag.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.tag.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

/* ---------- Forms ---------- */
.field {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--ink-1);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea.field { height: auto; min-height: 120px; padding: 12px; line-height: 1.55; resize: vertical; }
.field:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
