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

:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --card: #0f3460;
  --accent: #e94560;
  --text: #f1f1f1;
  --text-muted: #a0a0b0;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -1px;
}
.tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Home */
.home {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

/* Joke Card */
.joke-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.joke-card.featured {
  box-shadow: 0 4px 24px rgba(233, 69, 96, 0.15);
}
.joke-label {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.joke-image {
  width: 100%;
  display: block;
}
.joke-date {
  text-align: center;
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Archive */
.archive {
  margin-top: 2rem;
}
.archive h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.joke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.joke-thumb {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.joke-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.2);
}
.joke-thumb img {
  width: 100%;
  display: block;
}
.thumb-date {
  display: block;
  text-align: center;
  padding: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Joke Page */
.joke-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}
.joke-nav {
  text-align: center;
  margin-top: 1rem;
}
.joke-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.joke-nav a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.coming-soon {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 4rem 1rem;
}
