/* Why Baziritual — editorial manifesto */

:root {
  --wb-ink: #171717;
  --wb-secondary: #555555;
  --wb-muted: #666666;
  --wb-num: rgba(138, 125, 107, 0.42);
  --wb-ivory: #fdfcf8;
  --wb-header-bg: #fdfcf8;
  --wb-nav-height: 64px;
  --wb-sidebar-width: 260px;
  --wb-main-max: 1600px;
  --wb-divider: rgba(0, 0, 0, 0.10);
  --wb-prose-max: 520px;
  /* Split editorial layout */
  --wb-split-max: 1320px;
  --wb-split-gap: clamp(80px, 7vw, 100px);
  --wb-split-prose-min: 520px;
  --wb-split-prose-max: 560px;
  --wb-split-body-size: clamp(20px, 1.05vw, 22px);
  --wb-split-body-lh: 2;
  --wb-split-para-space: clamp(32px, 3vw, 40px);
  --wb-split-title-size: clamp(56px, 4.2vw, 64px);
  --wb-split-media-max: clamp(680px, 52vw, 760px);
  --wb-split-media-offset: 60px;
  --wb-split-media-radius: clamp(18px, 1.4vw, 24px);
  --wb-num-split: rgba(138, 125, 107, 0.26);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.wb-page {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--wb-ivory);
  color: var(--wb-ink);
  min-height: 100vh;
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* —— Nav (light header) —— */
.wb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--wb-header-bg);
  border-bottom: 1px solid var(--wb-divider);
}

.wb-nav-logo {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wb-ink);
  text-decoration: none;
}

.wb-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.wb-nav-link {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--wb-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.wb-nav-link:hover {
  color: var(--wb-ink);
}

.wb-nav-link.is-active {
  color: var(--wb-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.wb-nav-cta {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--wb-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.wb-nav-cta:hover {
  opacity: 0.65;
  background: none;
}

.wb-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wb-ink);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* —— Shell: sidebar + main —— */
.wb-shell {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--wb-nav-height));
  background: var(--wb-ivory);
}

/* —— Sidebar TOC —— */
.wb-sidebar {
  flex: 0 0 var(--wb-sidebar-width);
  width: var(--wb-sidebar-width);
  position: sticky;
  top: var(--wb-nav-height);
  align-self: flex-start;
  max-height: calc(100vh - var(--wb-nav-height));
  overflow-y: auto;
  padding: 52px 32px 48px 48px;
  border-right: 1px solid var(--wb-divider);
}

.wb-sidebar__label {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wb-muted);
  margin-bottom: 32px;
}

.wb-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wb-toc__link {
  display: block;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(23, 23, 23, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wb-toc__link:hover {
  color: rgba(23, 23, 23, 0.58);
}

.wb-toc__link.is-active {
  color: var(--wb-ink);
  font-weight: 600;
}

.wb-toc__num {
  display: inline-block;
  min-width: 1.75em;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

/* —— Main content —— */
.wb-main {
  flex: 1;
  min-width: 0;
  max-width: var(--wb-main-max);
  padding: 64px clamp(40px, 5vw, 80px) 0;
}

/* —— Hero —— */
.wb-hero {
  padding-bottom: 56px;
}

.wb-hero__title {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(44px, 5.8vw, 68px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--wb-ink);
  margin-bottom: 24px;
}

.wb-hero__line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--wb-divider);
  margin-bottom: 28px;
}

.wb-hero__subtitle {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--wb-secondary);
  max-width: 42ch;
}

.wb-divider {
  border: none;
  border-top: 1px solid var(--wb-divider);
  margin: 0;
}

.wb-divider--hero {
  margin-bottom: 0;
}

/* —— Sections —— */
.wb-section {
  padding: clamp(56px, 6.5vw, 80px) 0;
  border-bottom: 1px solid var(--wb-divider);
  scroll-margin-top: calc(var(--wb-nav-height) + 24px);
}

.wb-section--closing {
  border-bottom: none;
  padding-bottom: clamp(88px, 10vw, 128px);
}

.wb-section__header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 28px;
  align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.wb-section__num {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(48px, 5vw, 60px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--wb-num);
  font-variant-numeric: tabular-nums;
}

.wb-section__title {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--wb-ink);
  padding-top: 0.35em;
}

.wb-section__body {
  padding-left: 108px;
  max-width: 100%;
}

.wb-section:not(.wb-section--split):not(.wb-section--climax):not(.wb-section--closing) .wb-section__body {
  max-width: calc(var(--wb-prose-max) + 108px);
}

/* —— Prose —— */
.wb-prose {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--wb-ink);
}

.wb-prose p + p {
  margin-top: clamp(18px, 2.5vw, 24px);
}

.wb-prose__emphasis {
  color: var(--wb-secondary);
  font-size: 15px;
  line-height: 1.82;
}

.wb-prose strong {
  font-weight: 500;
  color: var(--wb-ink);
}

/* —— Split sections: editorial text + mood image —— */
.wb-section--split .wb-section__body {
  max-width: calc(var(--wb-split-max) + 108px);
}

.wb-section--split .wb-section__num {
  color: var(--wb-num-split);
}

.wb-section--split .wb-section__title {
  font-size: var(--wb-split-title-size);
  line-height: 1.12;
  max-width: 760px;
  letter-spacing: -0.01em;
}

.wb-split {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: var(--wb-split-gap);
  align-items: start;
  max-width: var(--wb-split-max);
}

.wb-split__text {
  min-width: min(var(--wb-split-prose-min), 100%);
  max-width: var(--wb-split-prose-max);
}

.wb-section--split .wb-split__text.wb-prose {
  font-size: var(--wb-split-body-size);
  line-height: var(--wb-split-body-lh);
  color: var(--wb-ink);
}

.wb-section--split .wb-prose p + p {
  margin-top: var(--wb-split-para-space);
}

.wb-split__media {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: var(--wb-split-media-max);
  transform: translateY(var(--wb-split-media-offset));
  overflow: hidden;
  border-radius: var(--wb-split-media-radius);
  background: linear-gradient(152deg, #ebe7df 0%, #ddd6c8 48%, #cfc6b6 100%);
}

.wb-split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88);
}

/* —— Two-column text —— */
.wb-cols-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 56px);
  max-width: 720px;
}

.wb-cols-two__col {
  min-width: 0;
}

.wb-section--closing .wb-section__body {
  max-width: calc(720px + 108px);
}

/* —— Three-column climax —— */
.wb-grid-three {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.05fr;
  gap: clamp(32px, 4.5vw, 56px);
  max-width: 920px;
}

.wb-grid-three__col--aside {
  font-size: 14px;
  line-height: 1.82;
  color: var(--wb-secondary);
}

.wb-grid-three__col--aside strong {
  color: var(--wb-ink);
}

.wb-section--climax .wb-section__body {
  padding-left: 108px;
}

/* —— Footer (page-scoped light layout) —— */
.wb-page .site-footer--about {
  margin-top: 0;
  padding: 72px clamp(32px, 5vw, 48px) 36px;
  border-top: 1px solid var(--wb-divider);
  background: var(--wb-ivory);
  color: var(--wb-secondary);
}

.wb-page .site-footer--about .footer-inner {
  max-width: 1120px;
}

.wb-footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--wb-divider);
}

.wb-footer-brand__line {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--wb-secondary);
}

.wb-footer-brand__line + .wb-footer-brand__line {
  margin-top: 2px;
}

.wb-footer-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--wb-ink);
  flex-shrink: 0;
}

.wb-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(40px, 6vw, 72px);
}

.wb-footer-links__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wb-footer-links__col a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--wb-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wb-footer-links__col a:hover {
  color: var(--wb-ink);
}

.wb-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.wb-page .site-footer--about .footer-copy {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: var(--wb-muted);
  margin: 0;
  text-align: left;
}

.wb-page .site-footer--about .footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  font-size: 12px;
}

.wb-page .site-footer--about .footer-legal-links a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--wb-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wb-page .site-footer--about .footer-legal-links a:hover {
  color: var(--wb-ink);
}

.wb-page .site-footer--about .footer-disclaimer {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  color: rgba(85, 85, 85, 0.75);
  line-height: 1.65;
  margin: 20px 0 0;
  max-width: 640px;
  text-align: left;
  font-style: normal;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wb-ink);
  outline-offset: 3px;
}

/* —— Split stack: protect prose width when space is tight —— */
@media (max-width: 1280px) {
  .wb-section--split .wb-section__body {
    max-width: none;
    padding-left: 0;
  }

  .wb-section--split .wb-section__title {
    font-size: clamp(40px, 5.5vw, 56px);
    max-width: none;
  }

  .wb-split {
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 56px);
    max-width: none;
  }

  .wb-split__text {
    order: 1;
    min-width: 0;
    max-width: none;
  }

  .wb-section--split .wb-split__text.wb-prose {
    font-size: clamp(18px, 2.2vw, 20px);
    line-height: 1.95;
  }

  .wb-section--split .wb-prose p + p {
    margin-top: clamp(28px, 4vw, 36px);
  }

  .wb-split__media {
    order: 2;
    justify-self: stretch;
    max-width: none;
    transform: none;
  }
}

/* —— Tablet —— */
@media (max-width: 1024px) {
  :root {
    --wb-sidebar-width: 240px;
  }

  .wb-sidebar {
    padding: 40px 24px 40px 32px;
  }

  .wb-main {
    padding: 48px 32px 0;
  }

  .wb-section__body,
  .wb-section--climax .wb-section__body {
    padding-left: 0;
  }

  .wb-section__header {
    grid-template-columns: 64px 1fr;
    gap: 4px 20px;
  }

  .wb-section:not(.wb-section--split):not(.wb-section--climax):not(.wb-section--closing) .wb-section__body {
    max-width: none;
  }

  .wb-grid-three {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: none;
  }

  .wb-cols-two {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .wb-footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 32px;
  }

  .wb-footer-links {
    justify-content: center;
  }
}

/* —— Mobile: hide sidebar —— */
@media (max-width: 768px) {
  .wb-nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .wb-nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--wb-header-bg);
    border-bottom: 1px solid var(--wb-divider);
    z-index: 99;
  }

  .wb-nav-links.is-open {
    display: flex;
  }

  .wb-nav-toggle {
    display: block;
  }

  .wb-sidebar {
    display: none;
  }

  .wb-shell {
    display: block;
  }

  .wb-main {
    max-width: none;
    padding: 44px 24px 0;
  }

  .wb-hero {
    padding-bottom: 40px;
  }

  .wb-section {
    padding: clamp(44px, 8vw, 56px) 0;
  }

  .wb-section__header {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .wb-section__num {
    font-size: 40px;
  }

  .wb-section__title {
    padding-top: 0;
  }

  .wb-section--split .wb-split__text.wb-prose {
    font-size: 18px;
    line-height: 1.9;
  }

  .wb-split__media {
    border-radius: clamp(16px, 4vw, 20px);
  }

  .wb-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .wb-nav-links {
    gap: 12px;
  }

  .wb-nav-link,
  .wb-nav-cta {
    font-size: 13px;
  }

  .wb-footer-links {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
}
