/* Cloudship Digital: blog article pages.
   Loaded after styles.css, which provides the tokens, nav, buttons and pill. */

/* ---------- Article hero ---------- */

.post-hero {
  position: relative;
  overflow: hidden;
  padding: 72px var(--gutter) 64px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--bg) 85%);
  text-align: center;
}
.post-hero__cloud { position: absolute; pointer-events: none; }
.post-hero__cloud--left  { left: calc(50% - 830px); top: 30px; width: 420px; }
.post-hero__cloud--top   { left: calc(50% - 250px); top: 10px; width: 220px; filter: blur(2px); opacity: 0.8; }
.post-hero__cloud--right { left: calc(50% + 480px); top: 60px; width: 260px; }

.post-hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.breadcrumb { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -1px;
}
.post-hero__title em { font-style: italic; }
.post-hero__lede { max-width: 680px; font-size: 19px; line-height: 30px; color: var(--ink-muted); }

/* ---------- Cover + byline ---------- */

.post-cover {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 32px;
}
.byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.byline__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Article body ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.article p { font-size: 19px; line-height: 30px; }
.article h2 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 42px;
}
.article .answer { font-weight: 500; }

.pull-quote {
  margin: 8px 0;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 38px;
}
.pull-quote em { font-style: italic; }

.article-cta {
  margin-top: 16px;
  padding: 32px 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fffdf9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.article-cta h2 { margin: 0; }
.article-cta p { font-size: 16px; line-height: 26px; color: var(--ink-muted); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 72px var(--gutter) 40px;
  background: var(--ink);
  color: var(--bg);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1; }
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; text-align: right; color: rgba(248, 245, 238, 0.7); }
.site-footer__contact a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .post-hero { padding: 48px var(--gutter) 40px; }
  .post-hero__lede { font-size: 17px; line-height: 27px; }
  .post-cover img { border-radius: 24px; }
  .article { padding-top: 32px; padding-bottom: 72px; }
  .article p { font-size: 17px; line-height: 28px; }
  .article h2 { font-size: 30px; line-height: 36px; }
  .pull-quote { padding: 24px; font-size: 26px; line-height: 32px; }
  .article-cta { padding: 28px 24px; }
  .site-footer__name { font-size: 56px; }
  .site-footer__contact { text-align: left; }
}
