/* Settl editorial system
   Shared by the blog index and every article. New posts should reuse the
   summary, article-layout, message-example, process, and figure components. */

body.settl-blog {
  background: #fff;
}

body.settl-blog main {
  overflow: hidden;
  background: linear-gradient(180deg, var(--mc-blue-soft) 0, var(--mc-paper) 720px);
}

/* ---------- Index ---------- */

.blog-index-hero {
  position: relative;
  max-width: none;
  padding: 104px max(24px, calc((100vw - 1100px) / 2)) 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 20%, rgba(0, 82, 255, .12) 0 7%, transparent 7.2%),
    radial-gradient(circle at 89% 65%, rgba(255, 189, 46, .28) 0 12%, transparent 12.2%),
    var(--mc-cream);
  border-bottom: 1px solid rgba(36, 28, 21, .14);
}

.blog-index-hero::after {
  content: "";
  position: absolute;
  top: 42px;
  right: max(24px, calc((100vw - 1100px) / 2));
  width: 180px;
  height: 180px;
  border: 1px solid rgba(36, 28, 21, .25);
  border-radius: 50%;
  transform: translate(20%, -16%);
}

.blog-index-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--mc-ink);
}

.blog-index-hero > p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--mc-muted);
}

.blog-list-wrap {
  padding: 72px 24px 104px;
}

.blog-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(36, 28, 21, .22);
}

.blog-list-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--mc-ink);
}

.blog-list-head p {
  margin: 0;
  font-size: 14px;
  color: var(--mc-muted);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border: 1px solid rgba(36, 28, 21, .75);
  border-radius: 20px;
  background: var(--mc-paper);
  color: var(--mc-ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(36, 28, 21, .08);
  transition: transform .3s cubic-bezier(.5, 2.5, .7, .7),
    box-shadow .3s cubic-bezier(.5, 2.5, .7, .7);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 10px 0 rgba(0, 82, 255, .14);
}

.blog-card-media {
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #e9f3ff;
  border-bottom: 1px solid rgba(36, 28, 21, .16);
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.025);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.blog-card-date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-muted);
}

.blog-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.blog-card-body > p:not(.blog-card-date) {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--mc-muted);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mc-ink);
}

.blog-card-link .mc-arrow-disc {
  width: 32px;
  height: 32px;
}

.blog-card:hover .blog-card-link .mc-arrow-disc svg {
  transform: translateX(3px);
}

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

.blog-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.blog-breadcrumb {
  margin-bottom: 52px;
}

.blog-breadcrumb .blog-guides-link {
  margin-left: 0;
  color: var(--mc-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.blog-breadcrumb .blog-guides-link:hover {
  color: #fff;
}

.blog-article-head {
  max-width: 900px;
  margin-bottom: 52px;
}

.blog-article-head h1 {
  max-width: 880px;
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--mc-ink);
}

.blog-title-aside {
  display: block;
  margin-top: .12em;
  font-size: .72em;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--mc-yellow);
}

.blog-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  color: var(--mc-muted);
}

.blog-byline-avatar {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--mc-cream);
}

.blog-byline-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.45);
  transform-origin: 50% 67%;
}

.blog-byline a {
  color: var(--mc-ink);
  font-weight: 700;
  text-decoration: none;
}

.blog-byline a:hover {
  color: var(--mc-yellow);
  text-decoration: underline;
}

.blog-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: center;
  margin-bottom: 72px;
  padding: 34px 36px;
  border: 1.5px solid rgba(0, 82, 255, .55);
  border-radius: 18px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--mc-yellow);
}

.blog-summary h2 {
  margin: 0 0 16px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mc-yellow);
}

.blog-summary p,
.blog-summary ul {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.5;
  color: var(--mc-ink);
}

.blog-summary ul {
  padding-left: 1.15em;
}

.blog-summary li + li {
  margin-top: 12px;
}

.blog-summary-stat {
  padding: 8px 0 8px 28px;
  border-left: 1px solid rgba(0, 82, 255, .28);
}

.blog-summary-stat strong,
.blog-summary-stat span {
  display: block;
}

.blog-summary-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--mc-yellow);
}

.blog-summary-stat span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mc-muted);
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  gap: 64px;
  align-items: start;
}

.blog-toc {
  position: sticky;
  top: 24px;
  padding: 20px 16px;
  border: 1px solid var(--mc-blue-line);
  border-radius: 18px;
  background: var(--mc-blue-soft);
}

.blog-toc p {
  margin: 0 0 12px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mc-yellow);
}

.blog-toc .mc-arrow-link {
  width: 100%;
  justify-content: space-between;
  margin: 0 0 4px;
  padding: 5px 6px 5px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mc-ink);
  text-decoration: none;
}

.blog-toc .mc-arrow-link:last-child {
  margin-bottom: 0;
}

.blog-toc .mc-arrow-link > span {
  width: 30px;
  height: 30px;
}

.blog-toc .mc-arrow-link:hover {
  color: #fff;
}

.blog-prose {
  font-size: 17px;
  line-height: 1.78;
  color: var(--mc-ink);
}

.blog-prose h2 {
  scroll-margin-top: 32px;
  margin: 60px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--mc-ink);
}

.blog-prose h2:first-of-type {
  margin-top: 46px;
}

.blog-prose p {
  margin: 0 0 21px;
}

.blog-prose a {
  color: var(--mc-yellow);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-prose a:hover {
  color: var(--mc-yellow-dark);
}

.blog-prose ul {
  margin: 0 0 24px;
  padding-left: 22px;
}

.blog-prose li {
  margin-bottom: 12px;
  padding-left: 5px;
}

.blog-section-image {
  margin: 36px 0 50px;
  overflow: hidden;
  border-radius: 20px;
}

.blog-section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-message-example {
  margin: 32px 0 40px;
  overflow: hidden;
  border: 1px solid rgba(36, 28, 21, .75);
  border-radius: 20px;
  background: #eaf2ff;
}

.blog-message-example figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(36, 28, 21, .18);
  background: white;
}

.blog-message-example figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.blog-copy-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mc-yellow);
  cursor: pointer;
}

.blog-copy-button:hover {
  color: var(--mc-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-message-canvas {
  padding: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 82, 255, .11), transparent 28%),
    #eaf2ff;
}

.blog-message-from {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 500px);
  margin: 0 auto 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-muted);
}

.blog-message-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--mc-ink);
  color: white;
  font-size: 12px;
}

.blog-message-bubble {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 6px 20px 20px 20px;
  background: white;
  box-shadow: 0 12px 32px rgba(36, 28, 21, .1);
  font-size: 16px;
  line-height: 1.65;
}

.blog-process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 6px;
  margin: 30px 0;
  padding: 26px;
  border-radius: 18px;
  background: var(--mc-ink);
  color: white;
}

.blog-process-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.blog-process .blog-process-arrow {
  align-self: center;
  justify-self: center;
  width: 28px;
  height: 28px;
}

.blog-process a {
  color: white;
  text-decoration-color: rgba(255, 255, 255, .65);
}

.blog-faq {
  width: min(860px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 40px;
  border: 1px solid var(--mc-blue-line);
  border-radius: 24px;
  background: var(--mc-blue-soft);
}

.blog-faq h2 {
  color: var(--mc-yellow);
}

.blog-faq .faq-list {
  padding: 0 24px;
  border: 1px solid var(--mc-blue-line);
  border-radius: 18px;
  background: #fff;
}

.blog-outro {
  max-width: 720px;
  margin: 72px auto 0;
  padding: 0 24px 80px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mc-muted);
}

.blog-outro-lead {
  display: block;
  margin: 0 0 4px;
}

.blog-outro .email-signup {
  margin-top: 16px;
  margin-bottom: 0;
}

.blog-outro a {
  color: var(--mc-yellow);
  font-weight: 600;
}

@media (max-width: 860px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
  }

  .blog-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .blog-index-hero {
    padding-top: 72px;
    padding-bottom: 68px;
  }

  .blog-index-hero::after {
    width: 110px;
    height: 110px;
    opacity: .65;
  }

  .blog-index-hero h1 {
    max-width: 320px;
    font-size: 47px;
  }

  .blog-index-hero > p {
    font-size: 17px;
  }

  .blog-list-wrap {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .blog-list-head p {
    display: none;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-card-body {
    padding: 24px;
  }

  .blog-card h2 {
    font-size: 26px;
  }

  .blog-article {
    padding-top: 32px;
  }

  .blog-breadcrumb {
    margin-bottom: 36px;
  }

  .blog-article-head {
    margin-bottom: 38px;
  }

  .blog-article-head h1 {
    font-size: 41px;
  }

  .blog-byline {
    align-items: flex-start;
    line-height: 1.5;
  }

  .blog-summary {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 52px;
    padding: 27px 24px;
    box-shadow: 4px 4px 0 var(--mc-ink);
  }

  .blog-summary p,
  .blog-summary ul {
    font-size: 20px;
  }

  .blog-summary-stat {
    padding: 20px 0 0;
    border-top: 1px solid rgba(36, 28, 21, .28);
    border-left: 0;
  }

  .blog-summary-stat span {
    max-width: 180px;
  }

  .blog-prose h2 {
    margin-top: 50px;
    font-size: 29px;
  }

  .blog-message-example figcaption {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 5px;
  }

  .blog-message-canvas {
    padding: 26px 18px;
  }

  .blog-process {
    grid-template-columns: 1fr;
  }

  .blog-process-step {
    min-height: 54px;
  }

  .blog-process .blog-process-arrow {
    transform: rotate(90deg);
  }

  .blog-faq {
    width: calc(100% - 32px);
    padding: 28px 18px;
  }

  .blog-faq .faq-list {
    padding: 0 18px;
  }
}
