/* Plot65 Blog — Shared Stylesheet */

/* ------------------------------------------------------------------ */
/* Google Fonts imported via <link> in each HTML file                   */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Design Tokens                                                        */
/* ------------------------------------------------------------------ */
:root {
  --bg:         #fdfaf3;
  --text:       #1a1814;
  --accent:     #2a4fd6;
  --accent-hover: #1e3ca8;
  --muted:      #6b6560;
  --border:     #e8e2d8;
  --surface:    #f5f0e8;
  --cta-bg:     #1a1814;
  --cta-text:   #fdfaf3;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------------ */
/* Nav Header                                                           */
/* ------------------------------------------------------------------ */
.blog-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-nav__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-nav__logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.blog-nav__logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.blog-nav__logo span {
  color: var(--accent);
}

.blog-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.blog-nav__link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Container                                                            */
/* ------------------------------------------------------------------ */
.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Page Header                                                          */
/* ------------------------------------------------------------------ */
.blog-header {
  padding: 48px 0 32px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 40px;
}

.blog-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-header__subtitle {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

/* ------------------------------------------------------------------ */
/* Article Cards (Index Page)                                           */
/* ------------------------------------------------------------------ */
.article-list {
  list-style: none;
}

.article-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.article-card:first-child {
  padding-top: 0;
}

.article-card__date {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.article-card__title a {
  color: var(--text);
  text-decoration: none;
}

.article-card__title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-card__excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.article-card__read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.article-card__read-more:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Article Page                                                         */
/* ------------------------------------------------------------------ */
.article-back {
  padding: 24px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-back a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-back a:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-header {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.article-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-meta__date,
.article-meta__author {
  font-weight: 500;
}

.article-meta__sep {
  color: var(--border);
}

/* ------------------------------------------------------------------ */
/* Article Body                                                         */
/* ------------------------------------------------------------------ */
.article-body {
  padding-bottom: 40px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body strong {
  font-weight: 600;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 6px;
  color: var(--text);
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Bottom CTA                                                           */
/* ------------------------------------------------------------------ */
.article-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 28px;
  margin-bottom: 48px;
  text-align: center;
}

.article-cta__text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.article-cta__btn {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.article-cta__btn:hover {
  opacity: 0.85;
  color: var(--cta-text);
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.blog-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.blog-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-footer__copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-footer__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.blog-footer__link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .blog-nav__inner {
    padding: 0 16px;
  }

  .blog-container {
    padding: 0 16px;
  }

  .blog-header {
    padding: 32px 0 24px;
    margin-bottom: 28px;
  }

  .article-header {
    padding: 20px 0 24px;
    margin-bottom: 28px;
  }

  .article-cta {
    padding: 22px 20px;
  }

  .blog-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }
}
