/* Editorial system for Blog, Articles and About. Loaded after the shared base. */

.page-editorial {
  background:
    radial-gradient(circle at 8% 18%, rgba(244, 201, 93, 0.12), transparent 24rem),
    var(--color-canvas);
}

.page-editorial h1,
.page-editorial h2,
.page-editorial .post-card h3,
.page-editorial .page-hero-summary strong,
.page-editorial .article-byline strong {
  font-family: "Newsreader", Georgia, serif;
}

.page-editorial .site-header {
  border-bottom-color: rgba(59, 42, 34, 0.1);
}

.editorial-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(221, 232, 213, 0.9), transparent 25rem),
    linear-gradient(135deg, #fffaf2 0%, #f6e6cf 58%, #edf3e9 100%);
}

.editorial-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(59, 42, 34, 0.025) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, transparent 0 64%, rgba(255, 255, 255, 0.32) 64% 64.1%, transparent 64.1%);
  pointer-events: none;
}

.editorial-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: end;
}

.editorial-page-hero-copy {
  max-width: 760px;
}

.editorial-page-hero .eyebrow {
  margin-bottom: 18px;
}

.editorial-page-hero h1 {
  max-width: 740px;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.editorial-page-hero-copy > p:last-child {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--color-text-muted);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.7;
}

.page-hero-summary {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(59, 42, 34, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.page-hero-summary::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-sage-strong);
  box-shadow: 0 0 0 7px rgba(63, 104, 71, 0.1);
}

.page-hero-summary strong {
  display: block;
  color: var(--color-brand);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
}

.page-hero-summary > span {
  display: block;
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero-summary ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.page-hero-summary li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text-muted);
}

.page-hero-summary li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Blog */

.blog-page .section-light {
  background: transparent;
}

.blog-page .section-heading {
  max-width: 760px;
}

.blog-page .section-heading h2,
.about-page .section-heading h2,
.article-page .section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.filter-label-row {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin: 38px 0 14px;
}

.filter-label-row p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-page .filter-bar {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 42px;
  padding: 7px;
  border: 1px solid rgba(59, 42, 34, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.blog-page .filter-button {
  min-height: 44px;
  gap: 8px;
  padding-inline: 16px;
}

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(59, 42, 34, 0.08);
  font-size: 0.75rem;
  line-height: 1;
}

.filter-button.is-active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-scroll-hint {
  display: none;
}

.blog-page .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-editorial .post-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(59, 42, 34, 0.09);
}

.page-editorial .post-card-body {
  padding: 22px;
}

.page-editorial .post-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-editorial .post-card p {
  line-height: 1.65;
}

.page-editorial .post-meta {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* About */

.about-page .about-layout {
  gap: clamp(48px, 8vw, 104px);
}

.about-page .rich-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-page .rich-text p:first-child {
  color: var(--color-brand);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-page .image-panel {
  border-radius: 46% 46% 24px 24px;
}

.about-page .image-panel img {
  min-height: 560px;
  object-fit: cover;
}

.about-page .section-green {
  background:
    radial-gradient(circle at 86% 10%, rgba(244, 201, 93, 0.2), transparent 22rem),
    linear-gradient(180deg, #edf4e9, #dcebd6);
}

.about-page .value-card {
  min-height: 250px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.about-page .value-card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
}

.editorial-principle {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid rgba(59, 42, 34, 0.12);
  border-radius: var(--radius-lg);
  background: var(--color-brand);
  color: #fffaf2;
}

.editorial-principle p {
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
}

.editorial-principle strong {
  display: block;
  margin-bottom: 8px;
  color: #fffaf2;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
}

/* Articles */

.article-page .article-shell {
  position: relative;
  overflow: clip;
  padding-top: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(221, 232, 213, 0.72), transparent 27rem),
    linear-gradient(180deg, #fffaf2 0 33rem, transparent 33rem);
}

.article-page .article-header {
  position: relative;
  max-width: 980px;
  padding-top: clamp(54px, 7vw, 88px);
  padding-bottom: 52px;
}

.article-page .crumb {
  min-height: 44px;
  align-items: center;
  margin-bottom: 32px;
}

.article-page .article-header h1 {
  max-width: 920px;
  margin-top: 18px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.article-page .article-summary {
  max-width: 760px;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.article-page .article-meta {
  gap: 12px 24px;
  margin-top: 26px;
  color: var(--color-text-muted);
}

.article-page .article-meta > * + * {
  position: relative;
  padding-left: 22px;
}

.article-page .article-meta > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  max-width: 720px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(59, 42, 34, 0.14);
}

.article-byline img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.article-byline-copy {
  display: grid;
  flex: 1;
  min-width: 180px;
}

.article-byline strong {
  color: var(--color-brand);
  font-size: 1.15rem;
  font-weight: 600;
}

.article-byline span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.editorial-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(63, 104, 71, 0.22);
  border-radius: 999px;
  background: rgba(221, 232, 213, 0.72);
  color: var(--color-sage-strong) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-page .article-main-image {
  width: 100%;
  max-height: 720px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(59, 42, 34, 0.16);
}

.article-page .article-content {
  padding-top: 58px;
}

.article-page .article-content > p:first-child {
  color: var(--color-brand);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.55;
}

.article-page .article-toc {
  border-radius: 20px;
  background: linear-gradient(145deg, #fffefb, #f7ebd9);
}

.article-page .quick-tip {
  border-radius: 24px;
}

.editorial-note {
  margin: 44px 0 28px;
  padding: 28px;
  border: 1px solid rgba(63, 104, 71, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, #f5f9f2, #e6f0e1);
}

.article-content .editorial-note h2 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 1.65rem;
}

.article-content .editorial-note h2::before {
  display: none;
}

.article-content .editorial-note p:last-child {
  margin-bottom: 0;
}

.article-page .related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-page .section-light {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.2), rgba(245, 231, 210, 0.5));
}

@media (max-width: 920px) {
  .editorial-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-hero-summary {
    max-width: 520px;
  }

  .blog-page .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page .image-panel img {
    min-height: 460px;
  }
}

@media (max-width: 780px) {
  .editorial-page-hero {
    padding: 56px 0 64px;
  }

  .editorial-page-hero h1,
  .article-page .article-header h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .filter-label-row {
    margin-top: 28px;
  }

  .blog-page .filter-bar {
    width: calc(100vw - 24px);
    margin-left: calc((100vw - min(100vw - 24px, 1120px)) / -2);
    padding: 7px 12px;
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
    scrollbar-width: thin;
  }

  .mobile-scroll-hint {
    display: block;
    margin: -28px 0 34px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
  }

  .article-page .article-header {
    padding-bottom: 40px;
  }

  .article-page .article-main-image {
    border-radius: 20px;
  }
}

@media (max-width: 620px) {
  .editorial-page-hero h1,
  .article-page .article-header h1 {
    line-height: 1;
  }

  .page-hero-summary {
    padding: 22px;
  }

  .blog-page .blog-grid,
  .article-page .related-grid {
    grid-template-columns: 1fr;
  }

  .filter-label-row p:last-child {
    display: none;
  }

  .about-page .image-panel img {
    min-height: 380px;
  }

  .article-page .article-meta > * + * {
    padding-left: 0;
  }

  .article-page .article-meta > * + *::before {
    display: none;
  }

  .article-byline {
    align-items: flex-start;
  }

  .editorial-badge {
    margin-left: 66px;
  }

  .article-page .article-content {
    padding-top: 42px;
  }

  .article-page .article-content > p:first-child {
    font-size: 1.28rem;
  }

  .editorial-note {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .editorial-page-hero h1 {
    font-size: 2.75rem;
  }

  .article-page .article-header h1 {
    font-size: 2.65rem;
  }

  .page-hero-summary strong {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-editorial .post-card,
  .page-editorial .post-card img {
    transition: none !important;
  }
}
