/* ===== Home hero ===== */
.home-hero {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  position: relative;
}

.home-hero-title {
  font-family: var(--font-cn);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.home-hero-title span {
  color: var(--primary);
  /* underline like a highlighter stroke */
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  padding: 0 4px;
}

.home-hero-subtitle {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

.home-tips {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.home-tip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ink-sm);
  min-width: 90px;
}

.home-tip-icon { font-size: 2rem; }

.home-tip-label {
  font-family: var(--font-cn);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

/* ===== Word sets section ===== */
.word-sets-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-3xl);
}

.section-title {
  font-family: var(--font-cn);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* hand-drawn squiggle before title */
.section-title::before {
  content: '✦';
  color: var(--primary);
  font-size: 1.1rem;
}

.word-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* ===== Word set card ===== */
.word-set-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl);
}

/* coloured top stripe replaced with left border accent */
.word-set-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.word-set-card.is-empty::before { background: var(--muted); }

.word-set-card.is-empty {
  opacity: 0.6;
  cursor: default;
}

.word-set-card.is-empty:hover {
  transform: none;
  box-shadow: var(--shadow-ink);
}

.word-set-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.word-set-name {
  font-family: var(--font-cn);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.word-set-description {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  padding-left: var(--space-md);
}

.word-set-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--space-md);
}

.word-set-count {
  font-family: var(--font-cn);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* ===== Continue learning section ===== */
.continue-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl) 0;
}

.continue-card {
  background: var(--yellow);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ink-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.continue-info { flex: 1; min-width: 0; }

.continue-subtitle {
  font-family: var(--font-cn);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.continue-title {
  font-family: var(--font-cn);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0,0,0,0.12);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.continue-progress-fill {
  height: 100%;
  background: var(--ink);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 5px,
    rgba(255,255,255,0.2) 5px, rgba(255,255,255,0.2) 10px
  );
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.continue-progress-text {
  font-family: var(--font-cn);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
  opacity: 0.75;
}

.continue-btn {
  background: var(--card);
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}

.continue-btn:hover {
  background: var(--primary-pale);
}

/* ===== Footer ===== */
.home-footer {
  text-align: center;
  padding: var(--space-xl);
  border-top: var(--border-w) solid var(--ink);
  font-family: var(--font-cn);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
