/* NOTES (the blog, /blog): built by _source/build-site.js from the
   Markdown in blog-posts/. One reading column on the black page, in the
   landing pages' type: the title in the heading style (lower case, weight
   800), the text at a size for reading, and at the end the estimate
   button on the offer card's blue surface. */

.blog-main {
  position: relative;
  z-index: 20;
  padding: 168px var(--gutter) 0;
}

.blog-shell {
  max-width: var(--measure);
  margin: 0 auto;
}

.blog-kicker {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.blog-kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 180ms ease, border-color 180ms ease;
}

.blog-kicker a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
}

/* A draft, so it is never mistaken for a published post. */
.blog-draft {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 7px 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.blog-title {
  margin: 0;
  color: #fff;
  font-size: calc(clamp(34px, calc(4.6 * var(--u)), 60px) * var(--type-scale));
  line-height: 1;
  font-weight: var(--heading-weight, 800);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.blog-lede {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: max(16px, calc(clamp(17px, calc(1.4 * var(--u)), 20px) * var(--type-scale)));
  line-height: 1.55;
  font-weight: 400;
}

/* THE POST */
.blog-body {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.blog-body h2 {
  margin: 52px 0 14px;
  color: #fff;
  font-size: calc(clamp(24px, calc(2.4 * var(--u)), 32px) * var(--type-scale));
  line-height: 1.1;
  font-weight: var(--heading-weight, 800);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.blog-body h3 {
  margin: 36px 0 10px;
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.blog-body p,
.blog-body li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}

.blog-body p {
  margin: 20px 0 0;
}

.blog-body ul,
.blog-body ol {
  margin: 20px 0 0;
  padding-left: 1.2em;
}

.blog-body li + li {
  margin-top: 8px;
}

.blog-body li::marker {
  color: var(--accent);
}

.blog-body a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 180ms ease;
}

.blog-body a:hover {
  border-color: #fff;
}

.blog-body strong {
  color: #fff;
  font-weight: 600;
}

.blog-body blockquote {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.blog-body blockquote p {
  margin: 0;
  color: #fff;
}

.blog-body code {
  padding: 1px 5px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  font-size: 0.9em;
}

/* SEE THE WORK: the two landing pages, under every post. */
.blog-work {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.blog-work-label {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.blog-work a {
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
}

.blog-work a span {
  display: inline-block;
  transition: transform 420ms var(--ease-cinema);
}

.blog-work a:hover span,
.blog-work a:focus-visible span {
  transform: translateX(5px);
}

/* THE LIST of posts on /blog */
.blog-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.blog-item {
  border-top: 1px solid var(--line);
}

.blog-item-link {
  display: grid;
  gap: 8px;
  padding: 28px 0 30px;
  color: inherit;
  text-decoration: none;
}

.blog-item-date {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.blog-item-title {
  color: #fff;
  font-size: calc(clamp(22px, calc(2.2 * var(--u)), 30px) * var(--type-scale));
  line-height: 1.1;
  font-weight: var(--heading-weight, 800);
  letter-spacing: var(--tracking-display);
  transition: color 180ms ease;
}

.blog-item-link:hover .blog-item-title {
  color: var(--accent);
}

.blog-item-text {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.6;
}

.blog-empty {
  margin: 48px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

/* THE CALL TO ACTION, at the end: one line in the heading style and the
   estimate button, on the offer card's surface. */
.blog-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: var(--measure);
  margin: 96px auto 128px;
  padding: 40px 44px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--surface-shadow);
}

.blog-cta-line {
  margin: 0;
  color: #fff;
  font-size: calc(clamp(22px, calc(2.2 * var(--u)), 30px) * var(--type-scale));
  line-height: 1.1;
  font-weight: var(--heading-weight, 800);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

@media (max-width: 760px) {
  .blog-main {
    padding-top: 116px;
  }

  .blog-body p,
  .blog-body li {
    font-size: 16px;
  }

  .blog-cta {
    margin: 72px auto 88px;
    padding: 28px 24px 30px;
  }

  /* One line, a step smaller, as in the offer card on a phone. */
  .blog-cta .go-cta {
    width: 100%;
    padding: 17px 18px 17px 20px;
    font-size: 15px;
    white-space: nowrap;
  }
}

/* THE 404 PAGE: the same column, filling the screen above the footer. */
.not-found-main {
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  padding-bottom: 96px;
}

.not-found-links {
  margin-top: 48px;
}
