:root {
  --black: #030405;
  --white: #f8f5ec;
  --muted: rgba(248, 245, 236, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --lime: #cfff00;
  --yellow: #f9c715;
  --pink: #ff2aa1;
  --blue: #0b8cff;
  --paper: #f4efe4;
  --ink: #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 86px;
  padding: 12px max(28px, calc((100vw - 1320px) / 2));
  background: rgba(2, 3, 4, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand img { width: 150px; height: auto; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  font-size: 0.72rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.84);
}

.main-nav a:hover { color: #f5b72b; }

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.btn.primary {
  color: #030405;
  background: #f5b72b;
  box-shadow: 0 0 34px rgba(245, 183, 43, 0.24);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
}

.header-cta span,
.btn span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--lime);
  background: #030405;
}

.header-cta:hover,
.btn:hover { transform: translateY(-2px); }

.nav-toggle,
.nav-trigger { display: none; }

.blog-hero,
.blog-list,
.article-hero,
.article-body,
.related-posts {
  position: relative;
  overflow: hidden;
  padding-left: max(28px, calc((100vw - 1320px) / 2));
  padding-right: max(28px, calc((100vw - 1320px) / 2));
}

.blog-hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding-top: 120px;
  padding-bottom: 86px;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.55), rgba(3, 4, 5, 0.28), rgba(3, 4, 5, 0.46)),
    url("assets/avulso-hero-bg.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.blog-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -120px;
  width: 500px;
  height: 300px;
  pointer-events: none;
  color: var(--lime);
  background:
    radial-gradient(circle at 18% 44%, currentColor 0 6px, transparent 7px),
    radial-gradient(circle at 64% 26%, currentColor 0 4px, transparent 5px),
    linear-gradient(112deg, transparent 0%, currentColor 36%, transparent 70%);
  opacity: 0.54;
  filter: drop-shadow(0 0 18px currentColor);
  transform: rotate(-14deg);
}

.blog-hero-copy,
.article-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 950;
}

h1,
h2 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 4vw, 5rem);
}

h2 {
  font-size: clamp(2.7rem, 3vw, 3.8rem);
}

h1 span,
h2 span { color: var(--lime); }

p {
  color: var(--muted);
  line-height: 1.66;
}

.blog-hero-copy p:not(.eyebrow),
.article-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.08rem;
}

.blog-list {
  padding-top: 82px;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 0 18%, rgba(255, 42, 161, 0.12), transparent 26%),
    #06090e;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.4fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading p {
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 255, 0, 0.45);
}

.post-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.post-card-content {
  padding: 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.74rem;
  font-weight: 950;
}

.post-card h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.05;
}

.post-card p {
  margin-bottom: 20px;
}

.read-link {
  display: inline-flex;
  gap: 10px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 950;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}

.blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible,
.blog-pagination .current {
  border-color: rgba(207, 255, 0, 0.7);
  color: #030405;
  background: var(--lime);
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible {
  transform: translateY(-2px);
}

.empty-blog {
  max-width: 720px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.empty-blog h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.article-hero {
  min-height: 660px;
  display: grid;
  align-items: end;
  padding-top: 120px;
  padding-bottom: 86px;
  isolation: isolate;
  background: #040506;
}

.article-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, 0.96), rgba(3, 4, 5, 0.66), rgba(3, 4, 5, 0.32)),
    linear-gradient(180deg, rgba(3, 4, 5, 0.12), rgba(3, 4, 5, 0.86));
}

.article-body {
  padding-top: 78px;
  padding-bottom: 86px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 239, 228, 0.96), rgba(244, 239, 228, 0.99)),
    url("assets/avulso-testimonials-bg.jpg") center center / cover no-repeat;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(240px, 340px);
  gap: 70px;
  align-items: start;
}

.article-content {
  color: var(--ink);
}

.article-content p,
.article-content li {
  color: rgba(17, 17, 17, 0.76);
  font-size: 1.06rem;
  line-height: 1.78;
}

.article-content h2 {
  margin-top: 44px;
  color: var(--ink);
  font-size: clamp(2.2rem, 3vw, 3.4rem);
}

.article-content ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 22px;
}

.article-content img {
  height: auto;
  margin: 34px 0;
  border-radius: 14px;
}

.article-content a {
  color: #006cbf;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-aside {
  position: sticky;
  top: 110px;
  padding: 24px;
  color: var(--white);
  border-radius: 14px;
  background: #050608;
}

.article-aside strong {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
}

.article-aside p {
  margin-top: 0;
}

.related-posts {
  padding-top: 76px;
  padding-bottom: 94px;
  background: #06090e;
}

.footer {
  padding: 58px max(24px, calc((100vw - 1320px) / 2));
  color: var(--white);
  background: #100d0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand img { width: 170px; }

.footer strong,
.footer a { display: block; }

.footer strong { margin-bottom: 14px; }

.footer p,
.footer a {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 74px;
  }

  .brand img { width: 128px; }

  .nav-trigger {
    display: grid;
    justify-self: end;
    gap: 7px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
  }

  .nav-trigger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
  }

  .main-nav,
  .header-cta { display: none; }

  .nav-toggle:checked ~ .main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 20px 24px 26px;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-toggle:checked ~ .main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .section-heading,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: relative;
    top: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-hero,
  .blog-list,
  .article-hero,
  .article-body,
  .related-posts {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: clamp(3.15rem, 14vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .blog-hero,
  .article-hero {
    min-height: 620px;
    padding-top: 82px;
    padding-bottom: 68px;
  }

  .btn {
    width: 100%;
  }
}
