/* WealthOrHealth - Shared Styles
 * Clean, minimal, document-like aesthetic
 * ========================================= */

:root {
  --text-primary: #333;
  --text-secondary: #666;
  --text-tertiary: #999;
  --link-color: #0066cc;
  --border-color: #eee;
  --border-subtle: #f0f0f0;
  --bg-primary: #fff;
  --bg-secondary: #fafafa;
  --max-width: 700px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typography */
h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

blockquote {
  font-style: italic;
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid #ddd;
  color: var(--text-secondary);
}

ul,
ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

/* Navigation */
.site-nav {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav .site-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.site-nav .site-title:hover {
  text-decoration: none;
}

.site-nav .nav-separator {
  color: var(--text-tertiary);
}

.site-nav .nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.site-nav .nav-link:hover {
  color: var(--link-color);
}

.site-nav .nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* Back Link */
.back-link {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: inline-block;
}

/* Post List (Blog Index) */
.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-item:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.post-excerpt {
  color: #555;
}

/* Article Content */
article .post-date {
  margin-bottom: 2rem;
}

article img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

/* Hero Section (Landing Page) */
.hero {
  text-align: center;
  padding: 2rem 0 3rem 0;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero .description {
  color: var(--text-primary);
  max-width: 550px;
  margin: 0 auto 2rem auto;
}

.hero .screenshot {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-links a {
  font-size: 1rem;
}

/* Art Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.gallery-item .art-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.gallery-item .art-download {
  font-size: 0.85rem;
}

/* Newsletter Footer */
.newsletter-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.newsletter-footer h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-footer .newsletter-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input[type='email'] {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.newsletter-form input[type='email']:focus {
  outline: none;
  border-color: var(--link-color);
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  background: var(--link-color);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-form button:hover {
  background: #0055aa;
}

/* Page Header with border */
.page-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type='email'],
  .newsletter-form button {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  body {
    max-width: 100%;
    padding: 0;
  }

  .site-nav,
  .newsletter-footer {
    display: none;
  }

  a {
    color: var(--text-primary);
  }

  a[href]:after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: var(--text-secondary);
  }

  .site-nav a[href]:after,
  .back-link[href]:after {
    content: none;
  }
}
