/* Subscribe form component styles */

.subscribe-box {
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

.form-input::placeholder {
  color: var(--fg-muted);
}

.form-input:focus {
  border-color: var(--accent);
}

.form-btn {
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tos-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  cursor: pointer;
  line-height: 1.5;
}

.tos-label input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: var(--secondary);
  flex-shrink: 0;
}

.tos-label a {
  color: var(--secondary);
}

.form-message {
  font-size: 0.875rem;
  min-height: 1.2em;
}

.form-error {
  color: var(--accent);
}

.form-success {
  color: #4caf7d;
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
}

/* Status pages (confirmed, unsubscribed, pending) */
.status-page {
  text-align: center;
  padding: 6rem 0 4rem;
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.status-page h1 {
  margin-bottom: 1rem;
}

/* Archive */
.archive h1 {
  margin-bottom: 0.5rem;
}

.archive > p {
  margin-bottom: 2rem;
}

.issue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.issue-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.issue-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex: 1;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}

.issue-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.issue-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.issue-subject {
  font-size: 0.95rem;
}

.issue-count {
  font-size: 0.78rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.empty-state {
  color: var(--fg-muted);
  font-style: italic;
}

/* Archive issue view */
.issue {
  max-width: 680px;
}

.issue-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.issue-meta {
  margin-bottom: 1rem;
}

.issue-meta a {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.issue-header h1 {
  margin-bottom: 0.25rem;
}

.issue-body h2 {
  margin: 2rem 0 0.5rem;
}

.issue-body p {
  margin-bottom: 1rem;
}

.issue-body a {
  color: var(--accent);
}

/* Story cards */
.issue-body .story {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.issue-body .story:last-child {
  border-bottom: none;
}

.issue-body .source {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.issue-body .story h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.issue-body .summary {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.issue-body .story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.issue-body .tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.issue-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

/* Legal pages (terms, privacy) */
.legal {
  max-width: 680px;
}

.legal h1 {
  margin-bottom: 0.25rem;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p {
  margin-bottom: 0.75rem;
}
