:root {
  color-scheme: light;
  font-family: "Inter", Arial, sans-serif;
  color: #292524;
  background: #fafaf9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.blog-page {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: #fbfaf8;
}

.site-shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  min-height: 88px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(231 229 228 / 72%);
}

.site-footer {
  min-height: 92px;
  margin-top: 88px;
  border-top: 1px solid #e7e5e4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #292524;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.brand-tagline {
  max-width: 190px;
  padding-left: 14px;
  border-left: 1px solid #e7e5e4;
  color: #78716c;
  font-size: 12px;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-link,
.site-footer a:not(.button) {
  color: #57534e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.header-link:hover,
.site-footer a:not(.button):hover,
.breadcrumbs a:hover {
  color: #be185d;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  border: 1.5px solid #be185d;
  border-radius: 999px;
  padding: 0 20px;
  background: transparent;
  color: #be185d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.arrow-up-right-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.header-cta:hover {
  border-color: #ec4899;
  background: #ec4899;
  color: #fff;
}

.breadcrumbs {
  margin: 24px 0 0;
  color: #78716c;
  font-size: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  padding-right: 6px;
  color: #a8a29e;
  content: "/";
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #292524;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.eyebrow,
.category-label {
  color: #be185d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.blog-intro {
  max-width: 800px;
  padding: 72px 0 34px;
}

.blog-intro h1 {
  margin-bottom: 16px;
}

.blog-brand-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.blog-brand-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #be185d;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: #57534e;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.75;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid transparent;
  color: #78716c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.category-nav a:hover,
.category-nav a[aria-current="true"] {
  border-color: #ec4899;
  color: #be185d;
}

.category-nav a:focus-visible,
.header-cta:focus-visible,
.button:focus-visible,
.article-card-link:focus-visible,
.featured-cover-link:focus-visible,
.featured-title-link:focus-visible,
.read-article-link:focus-visible,
.article-toc a:focus-visible {
  outline: 2px solid #ec4899;
  outline-offset: 4px;
}

.featured-cover-link:focus-visible {
  outline-offset: -4px;
}

.articles-area {
  scroll-margin-top: 24px;
}

.featured-section {
  margin: 18px 0 76px;
}

.featured-article {
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.featured-article[hidden],
.article-card[hidden],
.latest-articles[hidden],
.featured-section[hidden] {
  display: none;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: 420px;
}

.featured-cover-link {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.featured-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: #f5f5f4;
  transition: transform 450ms ease;
}

.featured-layout:hover .featured-cover {
  transform: scale(1.025);
}

.featured-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 68px);
}

.featured-content .eyebrow {
  margin-bottom: 26px;
}

.featured-content .category-label {
  margin-bottom: 12px;
}

.featured-content h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.2vw, 42px);
}

.featured-title-link {
  color: inherit;
  text-decoration: none;
}

.featured-article:hover .featured-title-link {
  color: #be185d;
}

.featured-description {
  margin-bottom: 24px;
  color: #57534e;
  font-size: 15px;
  line-height: 1.75;
}

.featured-meta {
  margin: auto 0 0;
  color: #78716c;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.featured-meta span {
  padding: 0 5px;
  color: #a8a29e;
}

.read-article-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 14px;
  color: #be185d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms ease;
}

.read-article-link:hover {
  color: #ec4899;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.latest-articles {
  margin: 0 0 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 28px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
}

.article-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: auto;
  color: inherit;
  text-decoration: none;
}

.article-cover,
.article-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f5f5f4;
}

.article-cover {
  margin-bottom: 18px;
  transition: opacity 180ms ease;
}

.article-card:hover .article-cover {
  opacity: 0.88;
}

.article-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.article-card h3 {
  margin: 0 0 10px;
  transition: color 160ms ease;
}

.article-card:hover h3 {
  color: #be185d;
}

.card-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #78716c;
  font-size: 12px;
  line-height: 1.5;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 2px;
  border-radius: 50%;
  background: #fce7f3;
  color: #be185d;
  font-size: 11px;
  font-weight: 700;
}

.card-description {
  display: -webkit-box;
  margin-bottom: 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #78716c;
  font-size: 14px;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
}

.tag {
  color: #be185d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article-card time,
.article-byline {
  color: #78716c;
  font-size: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 24px auto 0;
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
  background: #fff;
  text-align: center;
}

.empty-state-art {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #fdf2f8;
}

.strip-frame {
  display: block;
  width: 40px;
  height: 52px;
  border-radius: 4px;
  background: #fce7f3;
}

.strip-frame-2 {
  background: #f9a8d4;
}

.strip-frame-3 {
  background: #fbcfe8;
}

.empty-state-badge {
  margin-bottom: 14px;
  color: #be185d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-state h2 {
  max-width: 560px;
  margin-bottom: 14px;
}

.empty-state > p:not(.empty-state-badge) {
  max-width: 520px;
  margin-bottom: 26px;
  color: #57534e;
  line-height: 1.75;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

.article-header {
  max-width: 850px;
  margin: 0 auto;
  padding: 48px 0 42px;
  text-align: center;
}

.article-header .category-label {
  display: inline-block;
  margin-bottom: 15px;
}

.article-header h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(36px, 5vw, 56px);
}

.article-header .lead {
  margin: 0 auto;
}

.article-byline {
  margin: 20px 0 30px;
  line-height: 1.7;
}

.article-hero-image {
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.article-body-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 680px);
  justify-content: center;
  align-items: start;
  gap: clamp(36px, 7vw, 92px);
  margin: 54px auto 0;
}

.article-toc {
  position: sticky;
  top: 28px;
  padding: 4px 0 0 18px;
  border-left: 1px solid #e7e5e4;
}

.article-toc-title {
  margin-bottom: 14px;
  color: #292524;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li {
  font-size: 12px;
  line-height: 1.55;
}

.article-toc .toc-level-3 {
  padding-left: 12px;
}

.article-toc a {
  color: #78716c;
  text-decoration: none;
  transition: color 150ms ease;
}

.article-toc a:hover {
  color: #be185d;
}

.article-content {
  min-width: 0;
  color: #44403c;
  font-size: 17px;
  line-height: 1.9;
}

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

.article-content h2 {
  margin: 2.2em 0 0.65em;
  font-size: clamp(25px, 3vw, 32px);
  scroll-margin-top: 28px;
}

.article-content h3 {
  margin: 1.8em 0 0.6em;
  font-size: 22px;
  scroll-margin-top: 28px;
}

.article-content ul {
  padding-left: 24px;
  margin-bottom: 1.5em;
}

.article-content li {
  padding-left: 5px;
  margin: 8px 0;
}

.article-cta {
  max-width: 680px;
  margin: 64px auto 0;
  border: 1px solid #fbcfe8;
  border-radius: 4px;
  padding: 32px;
  background: #fdf2f8;
  text-align: center;
}

.article-cta h2 {
  margin-bottom: 18px;
}

.listing-cta {
  max-width: 900px;
  margin: clamp(48px, 7vw, 80px) auto 0;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 48px);
  background: #fdf2f8;
  text-align: center;
}

.listing-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.8vw, 32px);
}

.listing-cta p {
  max-width: 620px;
  margin: 0 auto 22px;
  color: #57534e;
  font-size: 14px;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #ec4899;
  border-radius: 999px;
  padding: 0 22px;
  background: #ec4899;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: #db2777;
}

.button-secondary {
  border-color: #e7e5e4;
  background: #fff;
  color: #57534e;
}

.button-secondary:hover {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #be185d;
}

.listing-cta-button {
  gap: 7px;
  border-color: #be185d;
  background: transparent;
  color: #be185d;
  font-weight: 600;
}

.listing-cta-button:hover {
  border-color: #be185d;
  background: #fce7f3;
  color: #be185d;
}

.related-articles {
  margin: 76px 0 0;
  scroll-margin-top: 24px;
}

.related-articles h2 {
  margin-bottom: 26px;
  font-size: clamp(26px, 3.4vw, 36px);
}

.not-found {
  padding: 80px 0;
  text-align: center;
}

.not-found p {
  margin-bottom: 24px;
  color: #78716c;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 48px, 1200px);
  }

  .featured-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  }

  .featured-cover {
    align-self: start;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .article-body-layout {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 32px, 1200px);
  }

  .site-header {
    min-height: 72px;
    padding: 12px 0;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-tagline,
  .header-link {
    display: none;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 16px;
  }

  .blog-intro {
    padding: 46px 0 24px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .blog-intro .lead {
    font-size: 16px;
  }

  .category-nav {
    flex-wrap: nowrap;
    gap: 18px;
    margin: 24px -16px 0;
    padding: 0 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-nav a {
    font-size: 12px;
  }

  .featured-section {
    margin: 8px 0 52px;
  }

  .featured-layout {
    display: flex;
    flex-direction: column;
  }

  .featured-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .featured-content {
    padding: 24px 20px 26px;
  }

  .featured-content .eyebrow {
    margin-bottom: 18px;
  }

  .featured-content h2 {
    font-size: 28px;
  }

  .featured-description {
    font-size: 14px;
  }

  .latest-articles {
    margin-bottom: 12px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-cover {
    margin-bottom: 15px;
  }

  .article-card h3 {
    font-size: 20px;
  }

  .breadcrumbs {
    margin-top: 18px;
  }

  .article-header {
    padding: 38px 0 28px;
  }

  .article-header h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .article-byline {
    margin: 17px 0 22px;
  }

  .article-hero-image {
    aspect-ratio: 4 / 3;
  }

  .article-body-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 34px;
  }

  .article-toc {
    position: static;
    width: 100%;
    padding: 0 0 0 15px;
  }

  .article-toc ol {
    max-height: 220px;
    gap: 8px;
    overflow-y: auto;
    padding-right: 8px;
  }

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

  .article-content h2 {
    margin-top: 1.9em;
    font-size: 26px;
  }

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

  .article-cta {
    margin-top: 44px;
    padding: 26px 18px;
  }

  .related-articles {
    margin-top: 54px;
  }

  .listing-cta {
    margin-top: 48px;
    border-radius: 14px;
    padding: 32px 20px;
  }

  .listing-cta h2 {
    font-size: 25px;
  }

  .empty-state {
    border-radius: 4px;
  }

  .empty-state-actions {
    width: 100%;
    flex-direction: column;
  }

  .empty-state-actions .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    margin-top: 56px;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
