@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Montserrat:wght@700&display=swap');

:root {
  --purple:      #b36abf;
  --purple-dim:  #8a4f96;
  --purple-glow: rgba(179,106,191,0.16);
  --border:      #e8d8ee;
  --white:       #f7f3f9;
  --card:        #faf7fc;
  --text:        #160d1e;
  --text-mid:    #5a3a6a;
  --text-muted:  #9a82a8;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
}

nav {
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple-dim);
  text-decoration: none;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}

nav a:hover {
  background: var(--purple-glow);
  color: var(--purple);
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
  text-align: center;
}

.jokes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
}

.joke-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.joke-text p        { margin: 0; }
.joke-text blockquote { margin: 0; padding: 0; border: none; }

.author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author a {
  color: var(--purple-dim);
  text-decoration: none;
  font-weight: 500;
}

.author a:hover {
  color: var(--purple);
  text-decoration: underline;
}
