/* ==========================================================================
   Blog AlleProfit (blog.alleprofit.com) - list page chrome.
   Same visual language as alleprofit.com: Chivo, cream bg, orange primary.
   Article pages carry their own inline styles (self-contained shares).
   ========================================================================== */

:root {
  --ap-bg: var(--color-bg, #eae7de);
  --ap-surface: var(--color-surface, #f4f2ec);
  --ap-border: var(--color-border, rgba(25, 28, 33, 0.16));
  --ap-text: var(--color-text, #191c21);
  --ap-muted: var(--color-text-secondary, #4e545c);
  --ap-primary: var(--color-primary, #ff5a00);
  --ap-primary-hover: var(--color-primary-hover, #d64a00);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family:
    Chivo,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--ap-surface);
  border-bottom: 1px solid var(--ap-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar .brand img {
  display: block;
}

.topnav {
  display: flex;
  gap: 22px;
  font-weight: 700;
  font-size: 15px;
}

.topnav a {
  color: var(--ap-muted);
  text-decoration: none;
}

.topnav a:hover,
.topnav a.active {
  color: var(--ap-text);
}

.topnav a.active {
  border-bottom: 3px solid var(--ap-primary);
  padding-bottom: 2px;
}

.topbar .try {
  background: var(--ap-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar .try:hover {
  background: var(--ap-primary-hover);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-hero {
  padding: 56px 0 34px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ap-primary);
  border: 2px solid var(--ap-primary);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 900;
  margin: 0 0 14px;
}

.blog-hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ap-muted);
  max-width: 640px;
  margin: 0;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 10px 0 48px;
}

.post {
  display: block;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 18px;
  padding: 28px 30px;
  color: var(--ap-text);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.post:hover {
  transform: translateY(-2px);
  border-color: var(--ap-primary);
  box-shadow: 0 10px 28px rgba(25, 28, 33, 0.1);
}

.post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ap-primary);
  margin-bottom: 12px;
}

.post h2 {
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  font-weight: 900;
  margin: 0 0 10px;
}

.post p {
  margin: 0 0 14px;
  color: var(--ap-muted);
  font-size: 16px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ap-muted);
  margin-bottom: 14px;
}

.post-meta b {
  color: var(--ap-text);
}

.post-avatar {
  border-radius: 50%;
  display: block;
}

.post-go {
  font-weight: 900;
  font-size: 15.5px;
  color: var(--ap-primary);
}

.blog-cta {
  background: var(--ap-text);
  color: #fff;
  border-radius: 20px;
  padding: 38px 30px;
  margin: 0 0 56px;
  text-align: center;
}

.blog-cta h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.blog-cta p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin: 0 auto 22px;
}

.blog-cta .btn {
  display: inline-block;
  background: var(--ap-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  padding: 15px 32px;
  border-radius: 999px;
}

.blog-cta .btn:hover {
  background: var(--ap-primary-hover);
}

footer.site {
  padding: 26px 24px 44px;
  border-top: 1px solid var(--ap-border);
  text-align: center;
  font-size: 14px;
  color: var(--ap-muted);
}

footer.site p {
  margin: 0 0 8px;
}

footer.site a {
  color: var(--ap-primary);
}

.foot-company {
  font-size: 13px;
}

.foot-disclaimer {
  font-size: 12px;
  max-width: 640px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 640px) {
  .topnav {
    display: none;
  }

  .blog-hero {
    padding-top: 38px;
  }

  .post {
    padding: 22px;
  }
}

/* ---- Featured post: split card with a typographic "stat cover" ---------- */

.featured {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 3fr;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 22px;
  overflow: hidden;
  color: var(--ap-text);
  text-decoration: none;
  margin: 6px 0 40px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.featured:hover {
  transform: translateY(-2px);
  border-color: var(--ap-primary);
  box-shadow: 0 12px 32px rgba(25, 28, 33, 0.12);
}

.featured-cover {
  background: var(--ap-text);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 34px 30px;
}

.fc-stat {
  font-family: 'Red Hat Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -3px;
  color: var(--ap-primary);
}

.fc-cap {
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 240px;
}

.featured-body {
  padding: 30px 34px;
}

.featured-body h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.6px;
  font-weight: 900;
  margin: 0 0 10px;
}

.featured-body p {
  margin: 0 0 16px;
  color: var(--ap-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .featured-cover {
    padding: 26px 24px;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }

  .featured-body {
    padding: 24px;
  }
}

/* ---- Grid for older posts (activates from the 2nd article) -------------- */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 0 40px;
}

/* ---- Author band --------------------------------------------------------- */

.author-band {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 20px;
  padding: 30px 34px;
  margin: 0 0 40px;
}

.author-photo {
  border-radius: 50%;
  flex: 0 0 auto;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(25, 28, 33, 0.14);
}

.author-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ap-primary);
  margin-bottom: 4px;
}

.author-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.author-info p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .author-band {
    flex-direction: column;
    text-align: center;
    padding: 26px 22px;
  }
}

/* ---- Full footer (mirrors alleprofit.com) ------------------------------- */

.foot {
  border-top: 1px solid var(--ap-border);
  background: var(--ap-surface);
  padding: 44px 24px 30px;
  font-size: 14.5px;
}

.foot-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-brand .disc {
  color: var(--ap-muted);
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 340px;
  margin: 14px 0;
}

.foot-mail {
  color: var(--ap-primary);
  text-decoration: none;
  font-weight: 700;
}

.foot-company {
  color: var(--ap-muted);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.foot-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col li {
  margin: 8px 0;
}

.foot-col a {
  color: var(--ap-muted);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--ap-primary);
}

.foot-bottom {
  max-width: 1040px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--ap-border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ap-muted);
  font-size: 13px;
}

.foot-bottom p {
  margin: 0;
}

.foot-bottom a {
  color: var(--ap-primary);
  text-decoration: none;
}

@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
