/* Ghostwriting Blog - Premium Minimal Elegant Aesthetic */

:root {
  --color-bg: #FAFAFA;
  --color-bg-alt: #F5F5F5;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-accent: #2C2C2C;
  --color-border: #E5E5E5;
  --color-link: #1A1A1A;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 720px;
  --spacing-unit: 1.5rem;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Header */
header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4rem;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-text);
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Post List (Archive) */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.post-list .post-title {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.post-list .post-title a {
  text-decoration: none;
  color: var(--color-text);
}

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

.post-list .post-excerpt {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.post-list .post-category {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Post Page */
.post-header {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.post-header .post-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.post-header h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.post-header .post-excerpt {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.post-category-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  background: var(--color-bg-alt);
  border-radius: 2px;
}

.post-tags {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.post-tags span {
  margin-right: 0.5rem;
}

/* Post Content */
.post-content {
  font-size: 1.05rem;
}

.post-content h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
}

.post-content h3 {
  font-size: 1rem;
}

.post-content p:first-of-type {
  font-size: 1.15rem;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

footer a {
  color: var(--color-text-muted);
}

/* Archive Page */
.archive-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.archive-header h1 {
  font-size: 2rem;
}

.archive-header p {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* Index Page */
.hero {
  padding: 3rem 0 4rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .container {
    padding: 0 1.25rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 4rem;
}