/*
Theme Name: Selah
Author: Selah
Description: A calm, editorial block theme for worship resources.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: selah
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  --selah-ink: #242827;
  --selah-ivory: #f5f1e9;
  --selah-sand: #e9e2d8;
  --selah-gray: #777b79;
  --selah-line: #d5d0c7;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; font-family: 'DM Sans', Arial, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Newsreader', Georgia, serif; }
a { text-underline-offset: .22em; }
.wp-site-blocks { overflow: clip; }
.selah-header,
.selah-footer { background: var(--selah-ink); color: var(--selah-ivory); }
.selah-header { padding: 22px max(28px, calc((100vw - 1200px) / 2)); }
.selah-header-inner { gap: 28px; min-height: 46px; }
.selah-header { border-bottom: 1px solid rgba(245,241,233,.14); }
.selah-header .wp-block-site-title,
.selah-footer .wp-block-site-title { margin: 0; }
.selah-brand a {
  display: block;
  width: 205px;
  height: 46px;
  overflow: hidden;
  background: url('assets/selah-logo-ivory-1000.png') center / 380px 95px no-repeat;
  font-size: 0;
  text-indent: -9999px;
}
.selah-nav { color: var(--selah-ivory); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.selah-nav a { color: inherit; text-decoration: none; }
.selah-nav a:hover, .selah-nav a:focus-visible { text-decoration: underline; }

.selah-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 700px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 50% 60% at 84% 44%, rgba(139,150,148,.25), transparent 70%),
    radial-gradient(ellipse 35% 35% at 73% 82%, rgba(245,241,233,.08), transparent 72%),
    var(--selah-ink);
  color: var(--selah-ivory);
  padding: 92px 28px 105px;
}
.selah-hero::before,
.selah-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(245,241,233,.11);
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}
.selah-hero::before { width: 980px; height: 480px; right: -310px; top: 55px; }
.selah-hero::after { width: 680px; height: 330px; right: -145px; top: 150px; }
.selah-container { width: min(100%, 1200px); margin-inline: auto; }
.selah-hero .selah-container { position: relative; z-index: 1; }
.selah-eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.selah-hero h1 {
  max-width: 850px;
  margin: 0 0 28px;
  font-size: clamp(66px, 9vw, 134px);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .96;
}
.selah-hero .selah-lead { max-width: 585px; margin: 0 0 38px; color: #d5d9d5; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.selah-hero .wp-block-button__link {
  border-radius: 20px;
  background: var(--selah-ivory);
  color: var(--selah-ink);
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.selah-hero .wp-block-button__link:hover { background: #ded8ce; }
.selah-hero .is-style-outline .wp-block-button__link { border: 1px solid #b8c0bb; background: transparent; color: var(--selah-ivory); }
.selah-hero .is-style-outline .wp-block-button__link:hover { background: rgba(245,241,233,.1); }

.selah-section { padding: 115px 28px; }
.selah-section .selah-container { max-width: 1200px; }
.selah-section h2 { margin: 0 0 24px; font-size: clamp(46px, 5.4vw, 79px); font-weight: 400; letter-spacing: -.045em; line-height: 1.03; }
.selah-section p { font-size: 18px; line-height: 1.65; }
.selah-section .selah-eyebrow { font-size: 12px; }
.selah-section .selah-eyebrow::before,
.selah-journal-hero .selah-eyebrow::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 22px;
  vertical-align: .24em;
  background: currentColor;
  box-shadow: 16px 0 0 currentColor;
}
.selah-vision { background: var(--selah-ivory); }
.selah-vision .selah-intro { max-width: 810px; }
.selah-vision .selah-intro p { max-width: 690px; }
.selah-rule { border-top: 1px solid var(--selah-line); margin-top: 76px; padding-top: 34px; }
.selah-values { gap: 40px; }
.selah-values .wp-block-column { border-top: 1px solid #b9b5ac; padding-top: 21px; }
.selah-values h3 { font-size: 30px; font-weight: 400; margin: 0 0 12px; }
.selah-values p { font-size: 15px; line-height: 1.6; margin: 0; color: #515854; }
.selah-num { display: block; color: #777b79; font-size: 12px; letter-spacing: .2em; margin-bottom: 23px; }

.selah-release { background: var(--selah-sand); }
.selah-release-grid { gap: 7%; align-items: center !important; }
.selah-release-copy { max-width: 535px; }
.selah-release-copy p { max-width: 500px; }
.selah-status { display: inline-block; border: 1px solid #a4aaa4; padding: 8px 12px; font-size: 11px !important; letter-spacing: .15em; text-transform: uppercase; }
.selah-art {
  min-height: 510px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #d7d7d3, #979b99 52%, #3c4140);
}
.selah-art::before {
  content: '';
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(245,241,233,.44);
  border-radius: 50%;
  transform: rotate(-27deg) scale(1.15, .58);
  box-shadow: 0 0 0 48px rgba(245,241,233,.035), 0 0 0 112px rgba(245,241,233,.025);
}
.selah-art::after {
  content: 'SELAH / 001';
  position: absolute;
  left: 34px;
  bottom: 29px;
  color: var(--selah-ivory);
  font-size: 11px;
  letter-spacing: .2em;
}
.selah-release .wp-block-button__link,
.selah-closing .wp-block-button__link {
  border-radius: 20px;
  padding: 15px 25px;
  background: var(--selah-ink);
  color: var(--selah-ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.selah-release .wp-block-button__link:hover,
.selah-closing .wp-block-button__link:hover { background: #4a504d; }

.selah-closing { background: var(--selah-ivory); border-top: 1px solid var(--selah-line); }
.selah-closing h2 { max-width: 800px; }
.selah-closing p { max-width: 630px; }
.selah-form-slot { margin-top: 36px; max-width: 650px; }
.selah-form-slot form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.selah-form-slot input[type="email"] { min-width: min(100%, 300px); min-height: 50px; padding: 13px 16px; border: 1px solid #aeb4ad; border-radius: 18px; background: #fffdfa; color: var(--selah-ink); font: inherit; }
.selah-form-slot input[type="submit"],
.selah-form-slot button[type="submit"] { min-height: 50px; padding: 13px 22px; border: 0; border-radius: 18px; background: var(--selah-ink); color: var(--selah-ivory); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.selah-form-slot input[type="submit"]:hover,
.selah-form-slot button[type="submit"]:hover { background: #4a504d; }
.selah-form-hint { padding: 16px; border: 1px dashed #777b79; font-size: 14px !important; }
.selah-footer { padding: 60px 28px 34px; }
.selah-footer-inner { gap: 40px; }
.selah-footer p { color: #bec6c0; font-size: 14px; }
.selah-footer .selah-brand a { width: 190px; background-size: 350px 88px; }
.selah-footer-rule { border-top: 1px solid rgba(245,241,233,.25); margin-top: 52px; padding-top: 20px; }
.selah-footer-rule p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.selah-page-wrap { padding: 90px 28px 120px; min-height: 65vh; }
.selah-page-wrap h1 { font-size: clamp(52px, 7vw, 98px); font-weight: 400; letter-spacing: -.05em; line-height: 1.02; }
.selah-page-wrap .wp-block-post-content > * { max-width: 780px; margin-inline: auto; }
.selah-page-wrap .wp-block-post-content > .alignwide { max-width: 1200px; }
.selah-page-wrap .wp-block-post-content > .alignfull { max-width: none; }
.selah-post-list { gap: 45px; }
.selah-post-list .wp-block-post { padding-bottom: 38px; border-bottom: 1px solid var(--selah-line); }
.selah-post-list .wp-block-post-title { font-size: clamp(34px, 4vw, 52px); font-weight: 400; letter-spacing: -.035em; }
.selah-post-list .wp-block-post-title a { text-decoration: none; }
.selah-post-list .wp-block-post-date { color: #626c66; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.selah-page-wrap > .wp-block-post-date,
.selah-page-wrap > .wp-block-post-terms { color: #626c66; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.selah-page-wrap > .wp-block-post-featured-image { margin-block: 42px 58px; overflow: hidden; border-radius: 24px; }
.selah-page-wrap .wp-block-post-content { font-size: 19px; line-height: 1.8; }
.selah-page-wrap .wp-block-post-content h2 { margin-top: 65px; font-size: clamp(38px, 5vw, 58px); font-weight: 400; line-height: 1.1; }
.selah-page-wrap .wp-block-post-content h3 { margin-top: 40px; font-size: 32px; font-weight: 400; }
.selah-article-nav { max-width: 780px; margin: 85px auto 0; border-top: 1px solid var(--selah-line); padding-top: 28px; font-size: 14px; }
.selah-article-nav a { text-decoration: none; }
.selah-article-nav a:hover { text-decoration: underline; }
.selah-search-page .wp-block-search { margin-block: 40px 60px; }
.selah-search-page .wp-block-search__input { padding: 13px 16px; border: 1px solid var(--selah-line); border-radius: 18px 0 0 18px; background: #fffdfa; font: inherit; }
.selah-search-page .wp-block-search__button { margin-left: 0; padding: 13px 20px; border: 0; border-radius: 0 18px 18px 0; background: var(--selah-ink); color: var(--selah-ivory); }

.selah-journal-hero { padding: 115px 28px 125px; background: var(--selah-sand); }
.selah-journal-hero h1 { max-width: 920px; margin: 0 0 23px; font-size: clamp(62px, 9vw, 118px); font-weight: 400; line-height: .98; letter-spacing: -.047em; }
.selah-journal-hero .selah-lead { max-width: 650px; font-size: clamp(19px, 2.1vw, 25px); }
.selah-journal-body { padding: 65px 28px 125px; background: var(--selah-ivory); }
.selah-journal-tools { gap: 24px; align-items: center; border-bottom: 1px solid var(--selah-line); padding-bottom: 28px; margin-bottom: 47px; }
.selah-journal-tools .selah-eyebrow { margin: 0; }
.selah-journal-tools .wp-block-search { max-width: 370px; }
.selah-journal-tools .wp-block-search__input { border: 1px solid var(--selah-line); border-radius: 18px 0 0 18px; background: #fffdfa; padding: 12px 16px; font: inherit; }
.selah-journal-tools .wp-block-search__button { margin-left: 0; border: 0; border-radius: 0 18px 18px 0; background: var(--selah-ink); color: var(--selah-ivory); padding-inline: 20px; }
.selah-journal-page .selah-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.selah-journal-page .selah-post-list .wp-block-post { padding: 0 0 28px; transition: transform .2s ease; }
.selah-journal-page .selah-post-list .wp-block-post:hover { transform: translateY(-4px); }
.selah-journal-page .selah-post-list .wp-block-post-featured-image { overflow: hidden; border-radius: 22px; margin-bottom: 24px; background: var(--selah-sand); }
.selah-journal-page .selah-post-list .wp-block-post-title { font-size: 37px; line-height: 1.08; margin: 10px 0 14px; }
.selah-journal-page .selah-post-list .wp-block-post-excerpt { color: #545b56; font-size: 16px; }
.selah-journal-page .wp-block-query-pagination { margin-top: 56px; }

.selah-audio-section { background: #e4e6e1; }
.selah-audio-grid { gap: 7%; align-items: center !important; }
.selah-audio-grid > .wp-block-column:first-child { max-width: 540px; }
.selah-audio-card { padding: clamp(28px, 4vw, 52px); border: 1px solid #b6beb8; border-radius: 24px; background: #f5f1e9; box-shadow: 0 24px 60px rgba(36,40,39,.07); }
.selah-audio-card h3 { margin: 0 0 12px; font-size: clamp(40px, 4vw, 58px); font-weight: 400; }
.selah-audio-card .selah-eyebrow { padding: 0; }
.selah-audio-card .selah-eyebrow::before { display: none; }
.selah-audio-instruction { margin-top: 28px; padding: 18px; border: 1px dashed #aeb4ad; border-radius: 18px; font-size: 14px !important; color: #626c66; }
.selah-audio-card audio { width: 100%; margin-top: 28px; accent-color: var(--selah-ink); }

.wp-block-button__link { transition: background-color .2s ease, color .2s ease; }
.wp-block-button__link:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wc-block-grid__product-title, .woocommerce-loop-product__title { letter-spacing: -.025em; }
.woocommerce div.product .button, .woocommerce .button { border-radius: 20px; }

@media (max-width: 781px) {
  .selah-header { padding: 18px 22px; }
  .selah-header-inner { flex-wrap: nowrap !important; }
  .selah-hero { min-height: 680px; padding: 95px 22px; }
  .selah-hero::before { right: -650px; }
  .selah-hero::after { right: -430px; }
  .selah-section { padding: 85px 22px; }
  .selah-release-grid { gap: 44px; }
  .selah-art { min-height: 380px; }
  .selah-values { gap: 28px; }
  .selah-journal-hero { padding: 85px 22px; }
  .selah-journal-body { padding: 55px 22px 90px; }
  .selah-journal-page .selah-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selah-audio-grid { gap: 38px; }
}

@media (max-width: 480px) {
  .selah-brand a { width: 168px; background-size: 315px 79px; }
  .selah-hero { min-height: 620px; }
  .selah-hero h1 { font-size: clamp(58px, 17vw, 78px); }
  .selah-hero .wp-block-buttons { gap: 12px; }
  .selah-hero .wp-block-button { width: 100%; }
  .selah-hero .wp-block-button__link { display: block; text-align: center; }
  .selah-section p { font-size: 16px; }
  .selah-art { min-height: 315px; }
  .selah-journal-page .selah-post-list { grid-template-columns: 1fr; }
  .selah-journal-tools .wp-block-search { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-block-button__link { transition: none; }
}
