@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Mono:wght@400;500&display=swap');

/* TOKENS */
:root {
  --bg:       #09090d;
  --surface:  #111117;
  --border:   #252530;
  --accent:   #d4a843;
  --text:     #ede9e0;
  --text-dim: #9591a2;
  --muted:    #55525f;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono:  'DM Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212,168,67,0.05), transparent 70%);
}

/* LAYOUT */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* H1 */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 52px 0 0;
  animation: fadeDown 0.6s var(--ease) both;
}

h1::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 2px;
  animation: growLine 0.7s 0.3s var(--ease) forwards;
}

/* H2 (user title) */
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* SELECTOR BAR */
.selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 0 40px;
  animation: fadeUp 0.5s 0.15s var(--ease) both;
}

.selector-bar label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

#user-selector {
  appearance: none;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d4a843' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 38px 10px 14px;
  min-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#user-selector:hover { border-color: var(--accent); }
#user-selector:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.12);
}

/* USER DATA */
#user-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.5s 0.2s var(--ease) both;
}

/* QUESTION / ANSWER BLOCKS */
.questionDiv {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.questionDiv:hover { border-color: rgba(212,168,67,0.3); }

.question-p {
  background: rgba(212,168,67,0.06);
  border-bottom: 1px solid rgba(212,168,67,0.15);
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  margin: 0;
}

.answer-p {
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 12px 16px;
  margin: 0;
}

/* stagger each card in */
.questionDiv:nth-child(1)  { animation: fadeUp 0.3s 0.05s var(--ease) both; }
.questionDiv:nth-child(2)  { animation: fadeUp 0.3s 0.09s var(--ease) both; }
.questionDiv:nth-child(3)  { animation: fadeUp 0.3s 0.13s var(--ease) both; }
.questionDiv:nth-child(4)  { animation: fadeUp 0.3s 0.17s var(--ease) both; }
.questionDiv:nth-child(5)  { animation: fadeUp 0.3s 0.21s var(--ease) both; }
.questionDiv:nth-child(6)  { animation: fadeUp 0.3s 0.25s var(--ease) both; }
.questionDiv:nth-child(7)  { animation: fadeUp 0.3s 0.29s var(--ease) both; }
.questionDiv:nth-child(8)  { animation: fadeUp 0.3s 0.33s var(--ease) both; }
.questionDiv:nth-child(9)  { animation: fadeUp 0.3s 0.37s var(--ease) both; }

/* ANIMATIONS */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes growLine {
  to { width: 44px; }
}

/* MOBILE */
@media (max-width: 500px) {
  main { padding: 0 16px 60px; }
  .selector-bar { flex-direction: column; gap: 8px; }
  #user-selector { min-width: 100%; }
}