/* ── Heart Huddle shared styles ── */

:root {
  --cream: #f5f0e8;
  --cream-dark: #ede7d9;
  --flame: #e05218;
  --flame-soft: #d4621a;
  --ember: #b84a10;
  --ink: #2d2826;
  --ink-soft: #5a4f47;
  --rule: rgba(45,40,38,0.12);
}

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

html { font-size: 16px; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 5rem;
}

/* ── icon ── */
img.icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 6px rgba(224,82,24,0.25));
}

/* ── header ── */
.header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s ease both;
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.header h1 span, h1 em {
  color: var(--flame);
  font-style: italic;
}

.header .sub {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── divider ── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--flame);
  border-radius: 2px;
  margin: 1rem auto 0;
  opacity: 0.4;
}

/* ── card ── */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(45,40,38,0.08), 0 1px 4px rgba(45,40,38,0.06);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: fadeUp 0.7s 0.15s ease both;
}

.card-header {
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header .label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.85;
}

.card-header .count-pill {
  background: var(--flame);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}

.names-list {
  padding: 0.5rem 0;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateX(-8px);
  animation: slideIn 0.4s ease forwards;
}

.name-row:last-child { border-bottom: none; }

.flame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  flex-shrink: 0;
  opacity: 0.7;
}

.name-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
}

/* ── states ── */
.state-msg {
  padding: 2.5rem 1.6rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

/* ── note / footer ── */
.note {
  margin-top: 2rem;
  max-width: 420px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  animation: fadeUp 0.7s 0.3s ease both;
}

.note a {
  color: var(--flame);
  text-decoration: none;
  font-weight: 500;
}

.note a:hover { text-decoration: underline; }

/* ── join page ── */
.join-body {
  justify-content: center;
  text-align: center;
}

.join-body h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  animation: fadeUp 0.6s 0.1s ease both;
  opacity: 0;
}

.description {
  max-width: 360px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  animation: fadeUp 0.6s 0.25s ease both;
  opacity: 0;
}

.btn {
  display: inline-block;
  background: var(--flame);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(224,82,24,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: fadeUp 0.6s 0.35s ease both;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,82,24,0.36);
}

.footer-links {
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  animation: fadeUp 0.6s 0.45s ease both;
  opacity: 0;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  margin: 0 0.6rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--flame); }

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

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* stagger name rows */
.name-row:nth-child(1)  { animation-delay: 0.30s }
.name-row:nth-child(2)  { animation-delay: 0.38s }
.name-row:nth-child(3)  { animation-delay: 0.46s }
.name-row:nth-child(4)  { animation-delay: 0.54s }
.name-row:nth-child(5)  { animation-delay: 0.62s }
.name-row:nth-child(6)  { animation-delay: 0.70s }
.name-row:nth-child(7)  { animation-delay: 0.78s }
.name-row:nth-child(8)  { animation-delay: 0.86s }
.name-row:nth-child(9)  { animation-delay: 0.94s }
.name-row:nth-child(10) { animation-delay: 1.02s }
