/* =========================================================
   SOULSPIRE — WordPress additions (admin bar, inner pages, core classes)
   ========================================================= */
.fact__num { margin: 0; }
.menu__foot .btn { justify-self: start; margin-bottom: 1rem; color: var(--ink); }
.footer__logo img, .footer__logo .custom-logo { width: 150px; height: auto; }
.footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; color: var(--ivory-2); }

/* logged-in admin bar */
.admin-bar .nav { top: 32px; }
.admin-bar .menu { padding-top: calc(var(--nav-h) + 32px + 1rem); }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .menu { padding-top: calc(var(--nav-h) + 46px + 1rem); }
}
@media (max-width: 600px) { .admin-bar .nav.is-scrolled { top: 0; } }

/* core helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

/* ---------- inner pages (blog, pages, posts, 404) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(4rem, 8vw, 8rem)) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(70% 80% at 80% 0%, rgba(201, 164, 99, .12), transparent 70%), var(--ink); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.page-hero--image { min-height: 70vh; display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 11, 9, .95), rgba(13, 11, 9, .35)); }
.page-hero .container { position: relative; }
.page-hero h1 { margin-top: 1.2rem; max-width: 20ch; }
.page-hero .meta { margin-top: 1.4rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.entry-section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.entry-content { max-width: 46rem; margin-inline: auto; color: var(--ivory-2); font-size: 1.08rem; }
.entry-content > * { margin-block: 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--ivory); margin-top: 2em; }
.entry-content h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }
.entry-content h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); }
.entry-content a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.6rem; border-left: 1px solid var(--gold); font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--ivory); }
.entry-content img, .entry-content figure { max-width: 100%; height: auto; }
.entry-content figcaption, .wp-caption-text { font-size: .8rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.entry-content hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: 3rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.alignwide { max-width: min(72rem, 92vw); margin-inline: 50%; transform: translateX(-50%); width: min(72rem, 92vw); }
.alignfull { width: 100vw; max-width: none; margin-inline: 50%; transform: translateX(-50%); }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: .3rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.6rem; }
.wp-block-button__link { display: inline-flex; padding: 1rem 1.8rem; background: var(--gold); color: var(--ink) !important; text-decoration: none !important; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; border-radius: 0; }

/* post list */
.post-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: 1.2rem; }
.post-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); border: 1px solid var(--line-soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__img--empty { display: grid; place-items: center; }
.post-card__img--empty img { width: 72px; height: 72px; object-fit: contain; opacity: .6; }
.post-card h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: 0; }
.post-card h2 a:hover { color: var(--gold-hi); }
.post-card p { margin: 0; color: var(--sand); font-size: .95rem; }
.post-card .meta { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.pagination { margin-top: 4rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 2.8rem; height: 2.8rem; display: grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--line); font-size: .8rem; letter-spacing: .1em; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.post-nav { display: grid; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .next { text-align: right; } }
.post-nav span { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.post-nav a { font-family: var(--serif); font-size: 1.35rem; }

/* comments + search */
.comments-area { max-width: 46rem; margin: 4rem auto 0; }
.comments-area input:not([type=submit]):not([type=checkbox]), .comments-area textarea, .search-form input[type=search] { width: 100%; padding: .8rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(244, 237, 225, .25); color: var(--ivory); font: inherit; }
.comments-area input[type=submit], .search-form button, .search-form input[type=submit] { margin-top: 1rem; padding: 1rem 1.8rem; background: var(--gold); color: var(--ink); border: 0; font: inherit; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft); }
.search-form { display: flex; gap: 1rem; align-items: end; max-width: 32rem; margin: 2rem auto 0; }
.search-form label { flex: 1; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem; background: radial-gradient(60% 50% at 50% 30%, rgba(201, 164, 99, .12), transparent 70%), var(--ink); }
.notfound img { width: 90px; margin: 0 auto 2rem; }
.notfound p { color: var(--muted); margin: 1rem 0 2.4rem; }
