/* Multibaby - Blog
 * Components for /blog and /blog/articles. Authored by hand: the site's main
 * stylesheet is a frozen, pre-pruned Tailwind build, so blog-only classes live
 * here rather than as arbitrary utilities in the markup.
 *
 * Night palette, literal values (the design-system --mb-* tokens are not loaded
 * on the site). No drop shadows - depth is translucent fill and amber glow.
 */

:root {
  --blog-ink-900: #120E0C;
  --blog-ink-800: #221A16;
  --blog-ink-700: #2E241E;
  --blog-bone: #F7F0E8;
  --blog-sand: #DCC3A8;
  --blog-dark-white: #C9B7A5;
  --blog-taupe: #9A8B7C;
  --blog-amber-400: #E89A52;
  --blog-amber-200: #F8CFA4;
  --blog-amber-tint: #FFB06E;
  --blog-layer-1: rgba(255, 176, 110, 0.05);
  --blog-layer-2: rgba(255, 176, 110, 0.07);
  --blog-layer-3: rgba(255, 176, 110, 0.08);
  --blog-layer-6: rgba(255, 176, 110, 0.12);
  --blog-hairline: rgba(255, 176, 110, 0.1);
  --blog-font: "Lexend", arial, sans-serif;
}

/* ---------- Shared page rhythm ---------- */

.blog-container {
  width: 100%;
  max-width: 1216px;
  margin-left: auto;
  margin-right: auto;
  /* Top padding clears the fixed nav (logo pill / hamburger) so the hero title
     is never hidden behind it. */
  padding: 128px 16px 96px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .blog-container {
    padding: 176px 16px 128px;
  }
}

.blog-head {
  max-width: 720px;
  margin: 0 0 56px;
}

.blog-eyebrow {
  font-family: var(--blog-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blog-amber-400);
  margin: 0 0 16px;
}

.blog-title {
  font-family: var(--blog-font);
  font-weight: 500;
  color: var(--blog-bone);
  font-size: 48px;
  line-height: 108%;
  margin: 0 0 20px;
}

.blog-lede {
  font-family: var(--blog-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--blog-sand);
  margin: 0;
}

@media (min-width: 1024px) {
  .blog-title {
    font-size: 74px;
    line-height: 100%;
  }
}

/* ---------- Index: card grid ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--blog-layer-1);
  border: 1px solid var(--blog-hairline);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  background: var(--blog-layer-3);
  border-color: rgba(255, 176, 110, 0.22);
}

.blog-card:focus-visible {
  outline: 2px solid var(--blog-bone);
  outline-offset: 2px;
}

.blog-card__cover {
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: var(--blog-ink-800);
  overflow: hidden;
}

.blog-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 12, 0) 45%, rgba(18, 14, 12, 0.55) 100%);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
  padding: 24px;
}

.blog-tag {
  align-self: flex-start;
  font-family: var(--blog-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-amber-400);
  background: var(--blog-layer-2);
  border: 1px solid var(--blog-hairline);
  border-radius: 100px;
  padding: 7px 12px;
}

.blog-card__title {
  font-family: var(--blog-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 128%;
  color: var(--blog-bone);
  margin: 0;
}

.blog-card__excerpt {
  font-family: var(--blog-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  color: var(--blog-sand);
  margin: 0;
}

.blog-card__meta {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--blog-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 150%;
  color: var(--blog-taupe);
}

/* ---------- Placeholder covers: warm bloom on ink, no photography ---------- */

.cover-art {
  position: absolute;
  inset: 0;
}

.cover--1 {
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(232, 154, 82, 0.4) 0%, rgba(232, 154, 82, 0) 55%),
    linear-gradient(160deg, #2E241E 0%, #120E0C 100%);
}

.cover--2 {
  background:
    radial-gradient(120% 120% at 80% 20%, rgba(196, 140, 166, 0.32) 0%, rgba(196, 140, 166, 0) 58%),
    linear-gradient(160deg, #241A19 0%, #120E0C 100%);
}

.cover--3 {
  background:
    radial-gradient(130% 130% at 50% 120%, rgba(242, 180, 120, 0.4) 0%, rgba(242, 180, 120, 0) 55%),
    linear-gradient(160deg, #2A2019 0%, #14100D 100%);
}

.cover--4 {
  background:
    radial-gradient(120% 120% at 25% 90%, rgba(143, 185, 140, 0.26) 0%, rgba(143, 185, 140, 0) 55%),
    linear-gradient(160deg, #221A16 0%, #120E0C 100%);
}

.cover--5 {
  background:
    radial-gradient(140% 100% at 70% 10%, rgba(255, 176, 110, 0.34) 0%, rgba(255, 176, 110, 0) 60%),
    linear-gradient(160deg, #1C1613 0%, #0A0807 100%);
}

/* A soft ring motif, echoing the app's single-day ring, drawn in CSS only. */
.cover-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -46px;
  bottom: -60px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 240, 232, 0.14);
}

.cover-ring::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 240, 232, 0.09);
}

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

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--blog-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  color: var(--blog-sand);
  text-decoration: none;
  transition: opacity 250ms ease;
  margin-bottom: 40px;
}

.article__back:hover {
  opacity: 0.6;
}

.article__back svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.article__title {
  font-family: var(--blog-font);
  font-weight: 500;
  font-size: 40px;
  line-height: 112%;
  color: var(--blog-bone);
  margin: 16px 0 24px;
}

@media (min-width: 1024px) {
  .article__title {
    font-size: 56px;
    line-height: 106%;
  }
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--blog-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: var(--blog-dark-white);
  margin-bottom: 40px;
}

.article__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blog-taupe);
}

.article__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--blog-ink-800);
  margin-bottom: 48px;
}

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

.article-body {
  font-family: var(--blog-font);
}

.article-body > p {
  font-size: 18px;
  font-weight: 400;
  line-height: 170%;
  color: var(--blog-sand);
  margin: 0 0 24px;
}

.article-body > p:first-of-type {
  font-size: 20px;
  line-height: 160%;
  color: var(--blog-bone);
}

.article-body h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 122%;
  color: var(--blog-bone);
  margin: 48px 0 16px;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 130%;
  color: var(--blog-bone);
  margin: 36px 0 12px;
}

.article-body ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-body ul li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
  font-weight: 400;
  line-height: 160%;
  color: var(--blog-sand);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blog-amber-400);
}

.article-body strong {
  color: var(--blog-bone);
  font-weight: 500;
}

.article-body a {
  color: var(--blog-amber-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 250ms ease;
}

.article-body a:hover {
  opacity: 0.6;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--blog-amber-400);
}

.article-body blockquote p {
  font-size: 24px;
  font-weight: 400;
  line-height: 140%;
  color: var(--blog-bone);
  margin: 0;
}

/* ---------- Article footer CTA ---------- */

.article-cta {
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--blog-hairline);
  text-align: center;
}

.article-cta h2 {
  font-family: var(--blog-font);
  font-size: 30px;
  font-weight: 500;
  line-height: 122%;
  color: var(--blog-bone);
  margin: 0 0 12px;
}

.article-cta p {
  font-family: var(--blog-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--blog-sand);
  margin: 0 auto 28px;
  max-width: 460px;
}

.article-cta__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  padding: 0 40px;
  border-radius: 100px;
  font-family: var(--blog-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  color: #33210F;
  text-decoration: none;
  background: linear-gradient(180deg, #E89A52 0%, #F8CFA4 100%);
  box-shadow: 0 0 22px 2px #E89A5266;
}
