/* =========================================================================
   SABI Sky Omakase, Generic Page Stylesheet
   Scope: All pages using page.php fallback template.
   Manifesto pages (cau-chuyen, triet-ly, tam-giac-am-thuc, nguyen-lieu)
   use .triet-ly-* / .tam-giac-* / etc. namespaces, not affected.
   Phase G, since v0.9.9
   ========================================================================= */

/* Outer article wrapper */
.sabi-page {
  background: var(--sumi);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 300;
  min-height: 60vh;
}

/* Hero section, top of page */
.sabi-page-hero {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section-tight);
  text-align: center;
  position: relative;
}

.sabi-page-hero-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* Page title, H1 */
.sabi-page-title {
  font-family: var(--serif);
  font-style: normal;
  font-size: var(--fs-h1);
  font-weight: 300;
  color: var(--bone-bright);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0;
}

/* Page lede, subtitle from excerpt */
.sabi-page-lede {
  font-family: var(--serif);
  font-style: normal;
  font-size: var(--fs-manifesto);
  font-weight: 300;
  color: var(--bone-warm);
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: var(--container-prose);
  margin: 0 auto;
}

/* Hairline divider between hero and content */
.sabi-page-divider {
  width: 60px;
  height: 1px;
  background: var(--stone);
  margin: var(--space-5) auto 0;
}

/* Content section, post body */
.sabi-page-content {
  padding-top: var(--space-section-tight);
  padding-bottom: var(--space-section);
}

.sabi-page-content-inner {
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Content typography, prose styles */
.sabi-page-content-inner h2 {
  font-family: var(--serif);
  font-style: normal;
  font-size: var(--fs-h2);
  font-weight: 300;
  color: var(--bone-bright);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: var(--space-10) 0 var(--space-3);
}

.sabi-page-content-inner h2:first-child {
  margin-top: 0;
}

.sabi-page-content-inner h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--bone-bright);
  line-height: 1.2;
  margin: var(--space-8) 0 var(--space-2);
}

.sabi-page-content-inner p {
  margin: 0 0 var(--space-3);
}

.sabi-page-content-inner p:last-child {
  margin-bottom: 0;
}

.sabi-page-content-inner a {
  color: var(--bronze-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 148, 120, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sabi-page-content-inner a:hover {
  color: var(--bronze-bright);
  border-bottom-color: var(--bronze-bright);
}

.sabi-page-content-inner ul,
.sabi-page-content-inner ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
}

.sabi-page-content-inner li {
  margin-bottom: var(--space-1);
}

.sabi-page-content-inner li:last-child {
  margin-bottom: 0;
}

.sabi-page-content-inner blockquote {
  font-family: var(--serif);
  font-style: normal;
  font-size: var(--fs-manifesto);
  color: var(--bone-bright);
  line-height: 1.3;
  margin: var(--space-8) 0;
  padding: 0 var(--space-5);
  border-left: 1px solid var(--bronze);
}

.sabi-page-content-inner strong {
  color: var(--bone-bright);
  font-weight: 500;
}

.sabi-page-content-inner em {
  font-family: var(--serif);
  font-style: normal;
  color: var(--bone-bright);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sabi-page-hero-inner {
    padding: 0 var(--space-2);
    gap: var(--space-2);
  }
  .sabi-page-content-inner {
    padding: 0 var(--space-2);
  }
  .sabi-page-content-inner blockquote {
    padding: 0 var(--space-3);
  }
}
