/* ==========================================================================
   Vaguinho Blog, layout styles
   Reuses tokens from colors_and_type.css. Dark forest green + lime accent.
   Shared by /blog (listing) and every /blog/<slug> post page.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(120% 70% at 80% -10%, #16382b 0%, #0b201a 55%),
    #0b201a;
  color: var(--fg-1);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a {
  border-bottom: none;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 32, 26, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(244, 251, 233, 0.06);
}
.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-inner img {
  height: 26px;
}
.nav-spacer {
  flex: 1;
}
.nav-link {
  color: #c9d6c0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-cta {
  background: var(--accent);
  color: var(--fg-on-lime);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--fg-on-lime);
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 6px rgba(199, 255, 110, 0.14),
    0 16px 40px rgba(199, 255, 110, 0.24);
  transition: transform var(--dur-fast) var(--ease-out),
    background var(--dur-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-primary:active {
  transform: scale(0.97);
}

/* ---------- BLOG HERO ---------- */
.blog-hero {
  text-align: center;
  padding: 56px 20px 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(199, 255, 110, 0.1);
  border: 1px solid rgba(199, 255, 110, 0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 auto;
  max-width: 16ch;
}
.blog-hero h1 .accent {
  color: var(--accent);
}
.blog-hero p.lead {
  color: var(--fg-2);
  font-size: clamp(16px, 2.5vw, 19px);
  line-height: 1.55;
  max-width: 52ch;
  margin: 18px auto 0;
}

/* ---------- POST GRID (listing) ---------- */
.post-grid {
  display: grid;
  gap: 24px;
  margin: 40px auto 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(244, 251, 233, 0.035);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.post-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.post-card .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #123328;
}
.post-card .pc-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .pc-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--fg-1);
  margin: 0 0 10px;
}
.post-card p {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.post-card .pc-more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- POST PAGE HEADER ---------- */
.post-header {
  padding: 40px 20px 8px;
}
.post-header .crumbs {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.post-header .crumbs a {
  color: var(--fg-3);
  text-decoration: none;
}
.post-header .crumbs a:hover {
  color: var(--accent);
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 16px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--fg-3);
  font-size: 13.5px;
}
.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-cover {
  margin: 28px auto 0;
  max-width: 860px;
  padding: 0 20px;
}
.post-cover img {
  width: 100%;
  border-radius: var(--r-xl);
  display: block;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--border-1);
}

/* ---------- ARTICLE BODY ---------- */
article.post {
  margin: 36px auto 0;
}
article.post h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 4vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 40px 0 14px;
}
article.post h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--fg-1);
}
article.post p {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
}
article.post ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
article.post ul li {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
article.post ul li::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  flex: none;
  font-size: 18px;
  line-height: 1.5;
}
article.post strong {
  color: var(--fg-1);
}
article.post a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
article.post a:hover {
  color: var(--accent-hover);
}

/* ---------- VAGUINHO PROMO (post CTA) ---------- */
.promo {
  margin: 48px auto 8px;
}
.promo-card {
  background: linear-gradient(180deg, #123328 0%, #0e261e 100%);
  border: 1px solid rgba(199, 255, 110, 0.18);
  border-radius: var(--r-2xl);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-card .section-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.promo-card h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.promo-card p {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto 24px;
}

/* ---------- MORE POSTS ---------- */
.more-posts {
  margin: 56px auto 0;
}
.more-posts h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-align: center;
}
.more-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .more-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.more-card {
  background: rgba(244, 251, 233, 0.035);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out);
}
.more-card:hover {
  border-color: var(--border-accent);
}
.more-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.more-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1.35;
  margin: 8px 0 0;
}

/* ---------- FOOTER ---------- */
footer.site {
  padding: 40px 20px;
  background: #0b201a;
  border-top: 1px solid rgba(244, 251, 233, 0.05);
  margin-top: 56px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner img {
  height: 22px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #8fa597;
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--fg-1);
}
.footer-copy {
  color: #5c7268;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
