/*
 * Hand-translated from the shadcn/ui HSL design tokens in src/index.css
 * (light mode values only — this static theme doesn't replicate the site's
 * dark-mode toggle) plus the Poppins/Merriweather fonts loaded there.
 */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

:root {
  --background: hsl(240 4% 95%);
  --foreground: hsl(240 5% 10%);
  --card: hsl(0 0% 98%);
  --primary: hsl(333 71% 50%);
  --primary-foreground: hsl(327 73% 97%);
  --secondary: hsl(240 5% 33%);
  --muted: hsl(240 4% 83%);
  --muted-foreground: hsl(240 5% 40%);
  --accent: hsl(355 100% 97%);
  --accent-foreground: hsl(349 89% 60%);
  --border: hsl(240 4% 83%);
  --radius: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-main { min-height: 60vh; }

/* ---------- Nav ---------- */
.site-nav { background: hsla(240 4% 95% / 0.95); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
.site-nav__inner { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav__logo img { height: 32px; width: auto; }
.site-nav__links { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 900px) { .site-nav__links { display: flex; } }
.site-nav__links a { font-size: 0.875rem; color: var(--secondary); }
.site-nav__links a:hover, .site-nav__links a.is-active { color: var(--foreground); font-weight: 600; }
.site-nav__auth { display: none; align-items: center; gap: 1rem; }
@media (min-width: 900px) { .site-nav__auth { display: flex; } }
.site-nav__signin { font-size: 0.875rem; color: var(--foreground); }
.site-nav__signup { background: var(--primary); color: var(--primary-foreground) !important; padding: 0.5rem 1.125rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; }

.site-nav__hamburger { display: block; padding: 0.5rem; color: var(--foreground); background: none; border: none; cursor: pointer; }
@media (min-width: 900px) { .site-nav__hamburger { display: none; } }

.site-nav__mobile { display: none; padding: 0.5rem 1.5rem 1.25rem; background: var(--background); border-top: 1px solid var(--border); }
.site-nav__mobile.is-open { display: block; }
.site-nav__mobile > a { display: block; font-size: 0.9375rem; color: var(--foreground); padding: 0.625rem 0; border-bottom: 1px solid var(--border); }
.site-nav__mobile-auth { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.site-nav__mobile-auth a { text-align: center; padding: 0.625rem; border-radius: var(--radius); }
.site-nav__mobile-auth .site-nav__signup { background: var(--primary); color: var(--primary-foreground) !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: hsl(240 4% 91%); }
.site-footer__inner { max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(7, 1fr); } }
.site-footer__logo { height: 32px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

.site-footer__col h3 { font-weight: 600; font-size: 0.9375rem; margin: 0 0 0.75rem; color: var(--foreground); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.site-footer__col a { color: var(--muted-foreground); }
.site-footer__col a:hover { color: var(--foreground); }

.site-footer__bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer__bottom p { margin: 0; }

/* ---------- Post content ---------- */
.post-wrap { max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem; }
.post-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 1.5rem; }
.post-back:hover { color: var(--foreground); }
.post-thumb { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); margin: 1rem 0 1.5rem; }
.post-category { display: inline-block; font-size: 0.75rem; font-weight: 600; background: var(--accent); color: var(--accent-foreground); padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; }
.post-title { font-family: 'Merriweather', Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--foreground); margin: 0 0 1rem; }
.post-byline { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-byline time, .post-byline .post-author { font-size: 0.75rem; color: var(--muted-foreground); }
.post-author-name { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }

.post-content { color: var(--foreground); line-height: 1.75; }
.post-content h1 { font-family: 'Merriweather', Georgia, serif; font-size: 1.875rem; font-weight: 700; margin: 0 0 1.5rem; }
.post-content h2 { font-family: 'Merriweather', Georgia, serif; font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.post-content p { margin: 0 0 1rem; }
.post-content a { color: var(--accent-foreground); text-decoration: underline; }
.post-content strong { font-weight: 700; }
.post-content ul, .post-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.375rem; }
.post-content blockquote { border-left: 3px solid var(--primary); margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1rem; color: var(--muted-foreground); font-style: italic; }
.post-content img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 1rem 0; }
.post-content code { background: var(--muted); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-content pre { background: hsl(240 5% 10%); color: hsl(0 0% 98%); border-radius: var(--radius); padding: 1rem; overflow-x: auto; font-size: 0.875rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 1.5rem 0; }
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.post-content th, .post-content td { padding: 0.625rem 1rem; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--muted); font-weight: 600; }

/* ---------- Comments ---------- */
.post-comments { margin: 2.5rem 0 0; }
.post-comments > h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list li { display: flex; gap: 0.875rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-list li::before { content: attr(data-initial); flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: var(--accent); color: var(--accent-foreground); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.comment-list .post-author-name { font-size: 0.9375rem; font-weight: 600; }
.comment-list time { display: block; font-size: 0.75rem; color: var(--muted-foreground); margin: 0.125rem 0 0.5rem; }
.comment-list .comment-body-text { font-size: 0.9375rem; line-height: 1.6; }
.post-comments .comment-respond { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.comment-reply-title { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.375rem; }
.comment-notes { font-size: 0.8125rem; color: var(--muted-foreground); margin: 0 0 1.25rem; }
.comment-form .required { color: hsl(0 72% 50%); }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.625rem 0.75rem; font: inherit; color: var(--foreground); background: var(--background);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); }
.comment-form textarea { min-height: 7rem; resize: vertical; }
@media (min-width: 640px) {
  .comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 0.5rem); vertical-align: top; }
  .comment-form-author { margin-right: 1rem; }
}
.comment-form .form-submit { margin-top: 1.25rem; margin-bottom: 0; }
.comment-form .form-submit input { background: var(--primary); color: var(--primary-foreground); border: none; padding: 0.625rem 1.5rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; }

/* ---------- Blog index ---------- */
.blog-index { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem; }
.blog-index__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-index__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-index__grid { grid-template-columns: repeat(3, 1fr); } }
.blog-index__card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.blog-index__card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.blog-index__card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.blog-index__card-fallback { width: 100%; aspect-ratio: 1200/630; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, hsla(333 71% 50% / 0.2), var(--accent)); }
.blog-index__card-fallback span { color: var(--accent-foreground); font-weight: 700; font-size: 1.125rem; padding: 0 1rem; text-align: center; }
.blog-index__card-body { padding: 1.25rem; }
.blog-index__card h2 { font-family: 'Merriweather', Georgia, serif; font-size: 1.0625rem; font-weight: 700; margin: 0.5rem 0; }
.blog-index__card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* ---------- Pagination ---------- */
.blog-pagination { max-width: 72rem; margin: 2.5rem auto 0; padding: 0 1.5rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; color: var(--foreground); background: var(--card); border: 1px solid var(--border); }
.blog-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.blog-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.blog-pagination .page-numbers.dots { border: none; background: none; color: var(--muted-foreground); }
