/* Cloaked Ghost Theme — screen.css */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-surface: #e9ecef;
  --color-primary: #e94560;
  --color-text: #1a1a2e;
  --color-text-muted: #6c757d;
  --color-link: #e94560;
  --color-border: #dee2e6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 720px;
  --max-width-wide: 1200px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Site Header */
.site-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.site-title a { color: var(--color-text); font-size: 1.5rem; font-weight: 700; }
.site-title a:hover { text-decoration: none; color: var(--color-primary); }
.site-description { color: var(--color-text-muted); margin-top: 0.25rem; font-size: 0.95rem; }

.site-nav { margin-top: 1rem; }
.site-nav ul { list-style: none; display: flex; justify-content: center; gap: 1.5rem; padding: 0; margin: 0; }
.site-nav a { color: var(--color-text-muted); font-size: 0.9rem; }
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }

/* Site Main */
.site-main {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Post Feed */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Post Card */
.post-card { border-radius: 8px; overflow: hidden; background: var(--color-bg-alt); transition: transform 0.2s; }
.post-card:hover { transform: translateY(-2px); }

.post-card-link { display: block; color: inherit; text-decoration: none; }
.post-card-link:hover { text-decoration: none; }

.post-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.post-card-content { padding: 1.25rem; }
.post-card-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); }
.post-card-title { font-size: 1.2rem; margin: 0.5rem 0; color: var(--color-text); }
.post-card-excerpt { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1rem; }

.post-card-meta { font-size: 0.8rem; color: var(--color-text-muted); display: flex; justify-content: space-between; }

/* Single Post */
.post-full { max-width: var(--max-width); margin: 0 auto; }

.post-full-header { margin-bottom: 2rem; }
.post-full-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); }
.post-full-title { font-size: 2.4rem; font-weight: 800; margin: 0.5rem 0; line-height: 1.2; }
.post-full-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.75rem; }
.post-full-author { margin-left: 0.5rem; }

.post-full-image { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }

/* Ghost Content / Cloaked Canvas Container */
.gh-content.gh-canvas {
  min-height: 60vh;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Ghost card width classes (required by Ghost validator) */
.kg-width-wide {
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gh-content p, .gh-content li { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; }
.gh-content h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.gh-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }

/* Tag & Author Headers */
.tag-header, .author-header { text-align: center; margin-bottom: 2rem; }
.tag-header h1, .author-header h1 { font-size: 2rem; }
.tag-description, .author-bio { color: var(--color-text-muted); margin-top: 0.5rem; max-width: 480px; margin-inline: auto; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; padding: 2rem 0; font-size: 0.9rem; }
.pagination a { color: var(--color-text-muted); padding: 0.4rem 1rem; border: 1px solid var(--color-border); border-radius: 4px; }
.pagination a:hover { color: var(--color-primary); border-color: var(--color-primary); text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .post-feed { grid-template-columns: 1fr; }
  .post-full-title { font-size: 1.8rem; }
  .site-main { padding: 1.5rem 1rem; }
}
