/* Home page: a quiet editorial canvas around the music and the community. */
.mj-body { background: #f6f5f1; }

.mj-home {
  --home-ink: #20221e;
  --home-muted: #70736b;
  --home-line: #dedfd6;
  --home-surface: #fff;
  --home-soft: #eeeee8;
  --home-gold: #d9b765;
  --home-accent: #866722;
  color: var(--home-ink);
}

.mj-home :where(a, button):focus-visible {
  outline: 3px solid #ab842f;
  outline-offset: 4px;
}

.mj-home .mj-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 510px;
  border-radius: 18px;
  background: #141713;
  color: #fff;
}

.mj-stage-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 71%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.mj-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #141713 5%, rgba(20, 23, 19, .97) 29%, rgba(20, 23, 19, .65) 49%, rgba(20, 23, 19, .08) 77%), linear-gradient(0deg, rgba(20, 23, 19, .65), transparent 45%);
}

.mj-stage-copy { padding: 54px clamp(28px, 4.3vw, 60px) 34px; }
.mj-stage-eyebrow { display: flex; align-items: center; gap: 9px; color: #e3c887; font-size: .6875rem; letter-spacing: .14em; }
.mj-stage-eyebrow > span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--home-gold); }
.mj-home .mj-stage h2 { margin-top: 31px; max-width: 650px; font-size: clamp(2.125rem, 4.1vw, 3.5rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.3; text-wrap: initial; word-break: keep-all; }
.mj-stage h2 em { color: #e3c887; font-style: normal; }
.mj-stage-description { margin-top: 21px; max-width: 530px; color: #d7d9d0; font-size: .9375rem; line-height: 1.9; word-break: keep-all; }
.mj-stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mj-home-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; border: 1px solid transparent; border-radius: 7px; padding: 11px 19px; font-size: .875rem; font-weight: 500; transition: border-color .18s ease; }
.mj-home-button-gold { background: var(--home-gold); color: #211e14; }
.mj-home-button-outline { background: rgba(20, 23, 19, .4); border-color: rgba(240, 240, 226, .36); color: #f5f5ec; }
.mj-home-button-outline:hover { border-color: #e3c887; }
.mj-stage-note { margin-top: 38px; font-size: .75rem; color: #b9bdb1; }
.mj-stage-caption { position: absolute; right: 32px; bottom: 28px; text-align: right; }
.mj-stage-caption span { display: block; color: #f5e0ae; font-size: .625rem; letter-spacing: .24em; }
.mj-home .mj-stage-caption strong { display: block; margin-top: 5px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.6rem; font-style: italic; font-weight: 400; }

.mj-home-discover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 21px; padding: 5px 0 24px; border-bottom: 1px solid var(--home-line); }
.mj-home-discover > a { display: flex; align-items: center; gap: 17px; min-width: 0; padding: 15px 24px; border-right: 1px solid var(--home-line); border-radius: 4px; }
.mj-home-discover > a:first-child { padding-left: 8px; }
.mj-home-discover > a:last-child { padding-right: 8px; border-right: 0; }
.mj-discover-number { align-self: flex-start; padding-top: 3px; color: var(--home-accent); font-size: .75rem; font-variant-numeric: tabular-nums; }
.mj-home-discover strong { display: block; font-size: 1rem; letter-spacing: -.025em; }
.mj-home-discover small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--home-muted); }
.mj-discover-arrow { margin-left: auto; color: var(--home-accent); font-size: 1.2rem; }

.mj-home-feature { margin-top: 34px; }
.mj-feature-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 40px; padding: 28px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 14px; }
.mj-feature-copy { padding: 8px 4px; }
.mj-home-eyebrow { color: var(--home-accent); font-size: .6875rem; line-height: 1.6; font-weight: 500; letter-spacing: .14em; }
.mj-home-eyebrow > span { padding: 0 8px; opacity: .5; }
.mj-home .mj-feature-copy h3 { margin-top: 14px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -.035em; }
.mj-feature-description { max-width: 420px; margin-top: 14px; font-size: .9375rem; line-height: 1.8; white-space: pre-line; color: var(--home-muted); word-break: keep-all; }
.mj-feature-audio { max-width: 400px; margin-top: 18px; padding-left: 12px; border-left: 2px solid var(--home-gold); font-size: .8125rem; line-height: 1.7; color: var(--home-muted); }
.mj-feature-actions { margin-top: 20px; }
.mj-feature-player { min-width: 0; }
.mj-feature-player > div { border: 0; border-radius: 9px; box-shadow: none; }
.mj-feature-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #141713; }
.mj-feature-empty { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 24px; background: #141713; color: #d7d9d0; font-size: .875rem; text-align: center; }
.mj-feature-player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.mj-home-text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--home-ink); font-size: .8125rem; white-space: nowrap; text-underline-offset: 5px; }
.mj-home-text-link:hover { color: var(--home-accent); text-decoration: underline; }
.mj-home-write-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 11px; border: 1px solid var(--home-line); border-radius: 5px; color: var(--home-muted); font-size: .75rem; }
.mj-home-write-link:hover { color: var(--home-ink); }

.mj-home-gallery { margin-top: 48px; scroll-margin-top: 150px; }
.mj-home-section-head, .mj-home-community-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mj-home .mj-home-section-title { color: var(--home-ink); font-size: 1.55rem; font-weight: 600; line-height: 1.35; letter-spacing: -.035em; }
.mj-home-eyebrow + .mj-home-section-title { margin-top: 8px; }
.mj-home-section-description { margin-top: 7px; color: var(--home-muted); font-size: .875rem; line-height: 1.7; }
.mj-home-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; margin-top: 23px; }
.mj-photo-card { display: block; width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-surface); text-align: left; transition: border-color .18s ease, transform .18s ease; }
.mj-photo-card:hover { border-color: #ad9762; transform: translateY(-3px); }
.mj-photo-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--home-soft); }
.mj-photo-placeholder { display: grid; place-items: center; font-size: .8125rem; color: var(--home-muted); }
.mj-photo-copy { padding: 14px 15px 16px; }
.mj-photo-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.9em; font-size: .9375rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.mj-home-meta { margin-top: 7px; font-size: .75rem; line-height: 1.6; color: var(--home-muted); }
.mj-home-meta + .mj-home-meta { margin-top: 3px; }
.mj-home-empty { padding: 32px 18px; color: var(--home-muted); font-size: .875rem; line-height: 1.8; background: var(--home-soft); border-radius: 7px; }
.mj-gallery-empty { grid-column: 1 / -1; }

.mj-home-community-head { margin-top: 52px; margin-bottom: 24px; }
.mj-home-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mj-home-board-grid + .mj-home-board-grid { margin-top: 24px; }
.mj-home-board { min-width: 0; padding: 24px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 10px; }
.mj-home .mj-home-board h3 { font-size: 1.125rem; }
.mj-home-board > .mj-home-section-head { padding-bottom: 15px; border-bottom: 1px solid var(--home-line); }
.mj-home-post-list { margin-top: 0; }
.mj-home-post { display: block; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--home-line); text-align: left; }
.mj-home-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mj-home-post:hover .mj-home-post-title { color: var(--home-accent); text-decoration: underline; text-underline-offset: 3px; }
.mj-home-post-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .9375rem; font-weight: 500; line-height: 1.6; }
.mj-home-post-list > .mj-home-empty { margin-top: 18px; }

.mj-home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 34px 38px; border-radius: 12px; background: #20251e; color: #f4f4ed; }
.mj-home-welcome .mj-home-eyebrow { color: #e3c887; }
.mj-home .mj-home-welcome h3 { margin-top: 9px; font-size: 1.5rem; letter-spacing: -.035em; }
.mj-home-welcome h3 + p { margin-top: 10px; color: #c0c6ba; font-size: .875rem; }
.mj-home-welcome .mj-home-button { flex-shrink: 0; }

html[data-theme="dark"] .mj-body { background: #141713; }

html[data-theme="dark"] .mj-home {
  --home-ink: #e9ece3;
  --home-muted: #a7aea0;
  --home-line: #343b30;
  --home-surface: #1d221b;
  --home-soft: #252c21;
  --home-accent: #d9b765;
}

@media (max-width: 1023px) {
  .mj-stage-copy { padding-left: 34px; padding-right: 34px; }
  .mj-stage-caption { right: 24px; bottom: 22px; }
  .mj-home-discover > a { gap: 10px; padding: 12px 14px; }
  .mj-home-discover small { font-size: .75rem; }
  .mj-feature-grid { gap: 24px; padding: 23px; }
  .mj-home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .mj-home .mj-stage { min-height: 540px; }
  .mj-stage-image { width: 100%; height: 70%; object-position: center 28%; }
  .mj-stage::before { background: linear-gradient(0deg, #141713 12%, rgba(20, 23, 19, .96) 34%, rgba(20, 23, 19, .45) 72%, rgba(20, 23, 19, .2)); }
  .mj-stage-copy { padding: 185px 24px 28px; }
  .mj-stage-eyebrow { gap: 6px; font-size: .5625rem; letter-spacing: .08em; }
  .mj-home .mj-stage h2 { margin-top: 19px; font-size: clamp(1.75rem, 6.3vw, 2.7rem); }
  .mj-stage-description { margin-top: 14px; font-size: .8125rem; }
  .mj-stage-actions { margin-top: 20px; gap: 8px; }
  .mj-stage-actions .mj-home-button { gap: 10px; padding: 10px 12px; font-size: .8125rem; }
  .mj-stage-note { margin-top: 22px; font-size: .6875rem; }
  .mj-stage-caption { display: none; }
  .mj-home-discover { grid-template-columns: 1fr; gap: 0; margin-top: 12px; padding-bottom: 12px; }
  .mj-home-discover > a, .mj-home-discover > a:first-child, .mj-home-discover > a:last-child { padding: 15px 8px; border-right: 0; }
  .mj-home-discover > a + a { border-top: 1px solid var(--home-line); }
  .mj-home-discover > a { gap: 15px; }
  .mj-home-discover strong { font-size: .9375rem; }
  .mj-home-discover small { font-size: .8125rem; }
  .mj-home-feature { margin-top: 26px; }
  .mj-feature-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .mj-feature-copy { padding: 0; }
  .mj-feature-description { margin-top: 11px; font-size: .875rem; }
  .mj-feature-actions { margin-top: 10px; }
  .mj-home-gallery { margin-top: 34px; }
  .mj-home .mj-home-section-title { font-size: 1.3rem; }
  .mj-home-section-description { font-size: .8125rem; }
  .mj-home-gallery-grid { gap: 15px 10px; margin-top: 18px; }
  .mj-photo-copy { padding: 11px 10px 13px; }
  .mj-photo-title { font-size: .8125rem; }
  .mj-home-meta { font-size: .6875rem; }
  .mj-home-community-head { margin-top: 36px; margin-bottom: 18px; }
  .mj-home-board-grid { grid-template-columns: 1fr; gap: 18px; }
  .mj-home-board-grid + .mj-home-board-grid { margin-top: 18px; }
  .mj-home-board { padding: 20px; }
  .mj-home-post .mj-home-meta { font-size: .75rem; }
  .mj-home-welcome { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 30px; padding: 27px 22px; }
  .mj-home .mj-home-welcome h3 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mj-home *, .mj-home *::before, .mj-home *::after { transition: none; }
  .mj-photo-card:hover { transform: none; }
}
