/* ConvertNest blog theme — tokens from ConvertNestV2 tailwind.config.ts / assets/css/main.css */

:root {
  --cn-bg: #f7ebe8;
  --cn-surface: #ffffff;
  --cn-ink: #161311;
  --cn-muted: #6f6259;
  --cn-border: #e4dcd5;
  --cn-flare: #e23b2e;
  --cn-flare-deep: #c12a1f;
  --cn-display: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.ect-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--cn-display);
  color: var(--cn-ink);
  background: var(--cn-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -15%, rgba(226, 59, 46, 0.1), transparent),
    radial-gradient(ellipse 70% 45% at 92% 5%, rgba(244, 235, 227, 0.8), transparent),
    linear-gradient(180deg, #fbf4f2, #f7ebe8 40%, #f3eeea);
}

a {
  color: inherit;
  text-decoration: none;
}

.ect-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 244, 242, 0.85);
  border-bottom: 1px solid rgba(228, 220, 213, 0.85);
  backdrop-filter: blur(12px);
}

.ect-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 72rem;
  height: 4.5rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.ect-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.ect-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.ect-brand-word {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cn-ink);
}

.ect-brand-invert .ect-brand-word {
  color: #fff;
}

.ect-flare {
  color: var(--cn-flare);
}

.ect-nav-list {
  display: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .ect-nav-list {
    display: flex;
  }
}

.ect-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4d433c;
  transition: color 0.15s ease;
}

.ect-nav-link:hover {
  color: var(--cn-flare);
}

.ect-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ect-hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .ect-hide-sm {
    display: inline;
  }
}

.ect-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--cn-flare);
  color: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(226, 59, 46, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.ect-btn-primary:hover {
  background: var(--cn-flare-deep);
  transform: translateY(-1px);
}

.ect-main {
  min-height: 50vh;
}

.ect-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.ect-article {
  max-width: 46rem;
}

.ect-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cn-flare);
}

.ect-page-title {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ect-lead,
.ect-excerpt,
.ect-meta {
  color: var(--cn-muted);
}

.ect-lead {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.ect-post-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.ect-card {
  border: 1px solid var(--cn-border);
  border-radius: 1.25rem;
  background: var(--cn-surface);
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(22, 19, 17, 0.06);
}

.ect-card-title {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ect-card-title a:hover {
  color: var(--cn-flare);
}

.ect-excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ect-meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.ect-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 1.25rem;
  border: 1px solid var(--cn-border);
}

.ect-entry {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.ect-entry a {
  color: var(--cn-flare);
  font-weight: 600;
}

.ect-entry h2,
.ect-entry h3 {
  letter-spacing: -0.03em;
}

.ect-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.ect-pagination {
  margin-top: 2rem;
}

.ect-pagination .nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.ect-footer {
  border-top: 1px solid #221e1b;
  background: #161311;
  color: #f3eeea;
}

.ect-footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

@media (min-width: 768px) {
  .ect-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.ect-footer-blurb {
  max-width: 18rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #c9bdb3;
}

.ect-footer-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8b80;
}

.ect-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.ect-footer-links a:hover {
  color: var(--cn-flare);
}

.ect-footer-legal {
  border-top: 1px solid #352e29;
}

.ect-footer-legal p {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.75rem;
  color: #9a8b80;
}
