/* Erobella Survey Tool — shared styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #0b0b0c;
  --ink-2: #1a1a1c;
  --paper: #f6f3ee;
  --paper-2: #efebe3;
  --paper-3: #e6e1d6;
  --line: #d8d2c5;
  --line-2: #bcb5a6;
  --muted: #6a655a;
  --muted-2: #8e897c;
  --red: #b91c1c;
  --red-hover: #991515;
  --red-tint: #fbecec;

  --font-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-ui: 'DM Sans', 'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --density: 1;
}

/* variation B: high-contrast editorial */
[data-variation="B"] {
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --paper-3: #eaeaea;
  --line: #e5e5e5;
  --line-2: #c9c9c9;
  --font-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-ui: 'Inter Tight', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

/* wordmark — recreates the Erobella brand feeling without copying the exact asset */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  font-stretch: condensed;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.hair-ink { background: var(--ink); }

/* buttons */
.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 11px 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn-text { background: transparent; color: var(--ink); padding: 8px 4px; }
.btn-text:hover { color: var(--red); }

/* inputs */
.input {
  font-family: var(--font-ui);
  font-size: 14px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .15s;
  outline: none;
}
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--muted-2); }

.input-bare {
  font-family: var(--font-ui);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  outline: none;
  width: 100%;
  color: var(--ink);
}
.input-bare:hover { border-bottom-color: var(--line); }
.input-bare:focus { border-bottom-color: var(--ink); }

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

/* number tick */
.tick {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* utility */
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); }
.dot-ink { background: var(--ink); }
.dot-mute { background: var(--line-2); }

/* scrollbars */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
*::-webkit-scrollbar-track { background: transparent; }

/* selection */
::selection { background: var(--red); color: #fff; }

/* focus rings off default */
button:focus, input:focus, textarea:focus, select:focus { outline: none; }

/* anim */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .25s ease both; }
@keyframes slideRight { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.slide-right { animation: slideRight .3s ease both; }
