/* Bergence Digital blog (/blog/), articles from the Epitom blog. Loaded after the home page's sheets,
   so it shares the tokens, nav, type and footer; this file only adds the list and the article. */

.blog main { padding-top: calc(var(--nav-top) + var(--nav-h)); }
.nav-links a[aria-current="page"], .menu a[aria-current="page"] { color: var(--ink); }

/* list */
.bl-head { padding: clamp(72px, 9vw, 136px) var(--edge) clamp(40px, 5vw, 64px); }
.bl-head h1 { max-width: 16ch; font-size: clamp(40px, 5vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; color: var(--ink); }
.bl-head p { max-width: 56ch; margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--soft); }
.bl-head .ul, .pt-src .ul { color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 0.2em; }
.bl-list { padding: 0 var(--edge) clamp(96px, 10vw, 160px); }
.bcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bc a { display: flex; flex-direction: column; height: 100%; min-height: 280px; padding: clamp(26px, 2.6vw, 40px); background: var(--raised); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.bc a:hover { border-color: var(--teal); box-shadow: 0 30px 60px -44px rgba(var(--shade), 0.45); transform: translateY(-2px); }
.bc-lead { grid-column: 1 / -1; }
.bc-lead a { min-height: 340px; background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.bc-lead a:hover { border-color: var(--teal); }
.bc-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bc-lead .bc-meta { color: rgba(255, 255, 255, 0.78); }
.bc-h { margin-top: 18px; max-width: 30ch; font-size: clamp(24px, 2vw, 32px); font-weight: 500; line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; color: var(--ink); }
.bc-lead .bc-h { max-width: 24ch; font-size: clamp(32px, 3.4vw, 54px); line-height: 1.04; color: #FFFFFF; }
.bc-d { max-width: 60ch; margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--soft); }
.bc-lead .bc-d { font-size: 17.5px; color: rgba(255, 255, 255, 0.88); }
.bc-go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 600; color: var(--teal-text); }
.bc-lead .bc-go { color: #FFFFFF; }
.bc a:hover .arr { transform: translateX(4px); }

/* article */
.pt { padding: clamp(64px, 8vw, 120px) var(--edge) clamp(72px, 8vw, 120px); }
.pt-head, .pt-body { max-width: 720px; margin: 0 auto; }
.pt-back { display: inline-flex; margin-bottom: 36px; font-size: 15px; font-weight: 500; color: var(--teal-text); }
.pt-back:hover { color: var(--ink); }
.pt-head .bc-meta { display: block; }
.pt-head h1 { margin-top: 16px; font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; color: var(--ink); }
.pt-src { margin-top: 20px; font-size: 15px; color: var(--muted); }
.pt-body { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); font-size: 18px; line-height: 1.7; color: var(--soft); }
.pt-body > * + * { margin-top: 1.1em; }
.pt-body h2 { margin-top: 2.2em; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.pt-body h3 { margin-top: 1.8em; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.pt-body h4 { margin-top: 1.6em; font-size: 18px; font-weight: 600; color: var(--ink); }
.pt-body h2 + *, .pt-body h3 + *, .pt-body h4 + * { margin-top: 0.6em; }
.pt-body strong { font-weight: 600; color: var(--ink); }
.pt-body a { color: var(--teal-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pt-body a:hover { color: var(--ink); }
.pt-body ul, .pt-body ol { padding-left: 1.3em; }
.pt-body ul { list-style: disc; }
.pt-body ol { list-style: decimal; }
.pt-body li + li { margin-top: 0.45em; }
.pt-body li::marker { color: var(--teal); }
.pt-body blockquote { padding: 4px 0 4px 22px; border-left: 3px solid var(--teal); color: var(--ink); }
.pt-body hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.pt-body code { padding: 2px 6px; border-radius: 6px; background: var(--teal-wash); font-size: 0.88em; color: var(--ink); }
.pt-table { overflow-x: auto; margin-top: 1.6em; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.pt-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pt-table th { padding: 14px 16px; background: var(--sunken); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; color: var(--ink); }
.pt-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }

.bl-more { padding: clamp(64px, 7vw, 104px) var(--edge) clamp(96px, 10vw, 160px); background: var(--sunken); border-top: 1px solid var(--line); }
.bl-more .work-eye { margin-bottom: 24px; }

@media (max-width: 760px) {
  .bcs { grid-template-columns: minmax(0, 1fr); }
  .bc a, .bc-lead a { min-height: 0; }
  .pt-body { font-size: 17px; }
}
