/* Newsletter Styling */
:root {
  --primary-color: #2563eb;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --border-color: #e5e7eb;
  --accent-color: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2rem;
}

h1 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin: 0;
}

.newsletter-date {
  background: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2rem;
}

.story {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: #fefefe;
}

.story-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text-color);
}

.story-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.story-title a:hover {
  text-decoration: underline;
}

.story-emoji {
  margin-right: 0.5rem;
}

.story-summary {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.story-meta {
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.archive-list {
  list-style: none;
  padding: 0;
}

.archive-item {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: #fefefe;
}

.archive-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.archive-item a:hover {
  text-decoration: underline;
}

.archive-date {
  color: #6b7280;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.auth-container {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: #fefefe;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
}

.auth-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
}

.auth-button:hover {
  background: #1d4ed8;
}

.error-message {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .story {
    padding: 1rem;
  }
}