/*
 * MYBURKINI — Blog & article pages
 * Matches the storefront tokens (cream, ink, Cormorant / Outfit).
 */

/* ---------- Blog listing ---------- */
.blog-page {
  padding-bottom: 80px;
}

.blog-hero {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(144, 93, 47, 0.08), transparent 55%),
    linear-gradient(180deg, #faf7f3 0%, #f4efe7 100%);
  padding: 56px 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.blog-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #905d2f;
  margin: 0 0 14px;
}

.blog-hero__eyebrow a {
  color: inherit;
}

.blog-hero h1 {
  font-family: var(--font-luxury);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 16ch;
}

.blog-hero p {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0;
}

.blog-wrap {
  max-width: 1240px;
}

/* Featured editorial strip */
.blog-card--featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 56px;
  background: #faf7f3;
  border: 1px solid var(--line);
  overflow: hidden;
  animation: blogFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blog-card--featured .blog-card__media {
  display: block;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  background: #e9e0d1;
}

.blog-card--featured .blog-card__media img,
.blog-card--featured .blog-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card--featured:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card--featured .blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.blog-card--featured .blog-card__excerpt {
  font-size: 16px;
  line-height: 1.7;
  max-width: 38ch;
}

/* Grid cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.blog-card--default {
  display: flex;
  flex-direction: column;
  animation: blogFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.blog-grid .blog-card--default:nth-child(1) { animation-delay: 0.05s; }
.blog-grid .blog-card--default:nth-child(2) { animation-delay: 0.12s; }
.blog-grid .blog-card--default:nth-child(3) { animation-delay: 0.19s; }
.blog-grid .blog-card--default:nth-child(4) { animation-delay: 0.26s; }
.blog-grid .blog-card--default:nth-child(5) { animation-delay: 0.33s; }
.blog-grid .blog-card--default:nth-child(6) { animation-delay: 0.4s; }

.blog-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
  margin-bottom: 18px;
}

.blog-card--default .blog-card__media img,
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card__placeholder {
  display: block;
  background:
    linear-gradient(145deg, #f4efe7 0%, #e9e0d1 45%, #d9d0c1 100%);
}

.blog-card--default:hover .blog-card__media img {
  transform: scale(1.05);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #777;
  margin-bottom: 10px;
}

.blog-card__cat {
  color: #905d2f;
  font-weight: 600;
}

.blog-card__cat:hover {
  color: #000;
}

.blog-card__dot {
  opacity: 0.5;
}

.blog-card__title {
  font-family: var(--font-luxury);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.blog-card__title a {
  color: inherit;
  transition: color 0.2s;
}

.blog-card__title a:hover {
  color: #905d2f;
}

.blog-card__excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: #555;
  font-weight: 400;
  margin: 0 0 18px;
  flex: 1;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #000;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, gap 0.25s;
  width: fit-content;
}

.blog-card__more i {
  font-size: 14px;
  transition: transform 0.25s;
}

.blog-card__more:hover {
  border-bottom-color: #000;
  gap: 12px;
}

.blog-card__more:hover i {
  transform: translateX(2px);
}

/* Empty + pagination */
.blog-empty {
  text-align: center;
  padding: 72px 20px;
  max-width: 420px;
  margin: 0 auto;
}

.blog-empty i {
  font-size: 40px;
  color: #905d2f;
  margin-bottom: 18px;
}

.blog-empty h2 {
  font-size: 28px;
  margin: 0 0 12px;
}

.blog-empty p {
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}

.blog-pagination,
.navigation.pagination {
  margin-top: 56px;
}

.blog-pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers,
.navigation.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: 0.2s;
}

.blog-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
  border-color: #000;
}

.blog-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background: #000;
  color: #fff;
  border-color: #000;
}

.blog-page .search-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.blog-page .search-form label {
  flex: 1;
}

.blog-page .search-form .search-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
}

.blog-page .search-form .search-submit {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- Article detail ---------- */
.article-page {
  padding-bottom: 40px;
}

.article-hero {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(144, 93, 47, 0.07), transparent 50%),
    #faf7f3;
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line);
}

.article-hero__inner {
  max-width: 760px;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
  margin-bottom: 28px;
}

.article-breadcrumb a:hover {
  color: #000;
}

.article-breadcrumb span:last-child {
  color: #555;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #905d2f;
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--font-luxury);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.65;
  color: #444;
  font-weight: 400;
  margin: 0 0 28px;
  max-width: 36ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.article-author__role {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.article-meta__facts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.article-meta__dot {
  opacity: 0.45;
}

.article-cover {
  margin: 0;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 40px;
  margin-top: -1px;
}

.article-cover img {
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
  animation: blogFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.article-cover figcaption {
  font-size: 12.5px;
  color: #888;
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

.article-body {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 24px;
}

.article-content {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--ink);
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-luxury);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 2.2em 0 0.7em;
  line-height: 1.2;
}

.article-content h2 {
  font-size: 30px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content a {
  color: #905d2f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.35em;
  padding-left: 1.25em;
  list-style: revert;
}

.article-content li {
  margin-bottom: 0.45em;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 24px;
  border-left: 2px solid #905d2f;
  font-family: var(--font-luxury);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1c1a;
}

.article-content blockquote p {
  margin: 0;
}

.article-content img {
  margin: 2em 0;
  border-radius: 0;
}

.article-content figure {
  margin: 2em 0;
}

.article-content figcaption {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
  text-align: center;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.article-pages {
  margin-top: 28px;
  font-size: 14px;
}

/* Footer of article */
.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.article-tags > span,
.article-share > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #888;
  margin-right: 4px;
}

.article-tags a {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  transition: 0.2s;
}

.article-tags a:hover {
  border-color: #000;
  background: #faf7f3;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: #000;
  transition: 0.2s;
}

.article-share a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.article-share i {
  font-size: 18px;
}

/* Prev / next */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: #faf7f3;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
  min-height: 100px;
}

.article-nav__link:hover {
  border-color: #000;
  background: #fff;
}

.article-nav__link span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #905d2f;
}

.article-nav__link strong {
  font-family: var(--font-luxury);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.article-nav__next {
  text-align: right;
  margin-left: auto;
  width: 100%;
}

.article-nav__link.is-empty {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  border: none;
}

/* Related */
.article-related {
  padding: 64px 0 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.article-related .section-head {
  margin-bottom: 36px;
}

.article-related .section-head h2 {
  font-size: 32px;
}

.article-comments {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 24px;
}

.article-comments .comment-reply-title,
.article-comments .comments-title {
  font-family: var(--font-luxury);
  font-size: 28px;
  margin-bottom: 24px;
}

.article-comments .comment-form input,
.article-comments .comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
}

.article-comments .form-submit .submit {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

@keyframes blogFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card--featured,
  .blog-card--default,
  .article-cover img {
    animation: none;
  }

  .blog-card--featured:hover .blog-card__media img,
  .blog-card--default:hover .blog-card__media img {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .blog-card--featured {
    grid-template-columns: 1fr;
  }

  .blog-card--featured .blog-card__media,
  .blog-card--featured .blog-card__media img,
  .blog-card--featured .blog-card__placeholder {
    min-height: 320px;
  }

  .blog-card--featured .blog-card__body {
    padding: 32px 28px 36px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 22px;
  }

  .article-cover {
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 40px 0 36px;
    margin-bottom: 36px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-card__title {
    font-size: 22px;
  }

  .article-hero {
    padding: 28px 0 36px;
  }

  .article-cover {
    padding: 0;
  }

  .article-cover img {
    max-height: 420px;
    aspect-ratio: 4 / 3;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content blockquote {
    font-size: 22px;
    padding-left: 16px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__next {
    text-align: left;
  }

  .article-nav__link.is-empty {
    display: none;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-footer {
    flex-direction: column;
  }
}
