/* Somi's Glamour: WordPress-specific styles (blog posts, editor blocks, admin bar, page curtain) */

/* arriving from an internal link: start with the curtain closed, skip the intro */
html.pt-entering .intro { display: none !important; }
html.pt-entering .pt { visibility: visible; }
html.pt-entering .pt-logo { opacity: 1; }
html.pt-entering .pt-line { transform: scaleX(1); }

/* WordPress admin bar */
.admin-bar .header { top: 32px; }
.admin-bar .scroll-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .header, .admin-bar .scroll-progress { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* lightbox caption line */
.lb .lb-cap { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

/* post hero meta */
.post-meta { margin-top: 22px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- article content (Gutenberg + classic editor) ---------- */
.entry { font-size: 18px; line-height: 1.85; color: #3d3542; }
.entry > * + * { margin-top: 1.2em; }
.entry p { margin: 0 0 1.2em; }
.entry .post-lede { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.4; color: var(--royal); margin-bottom: 1.4em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--font-display); font-weight: 500; color: var(--royal); line-height: 1.15; margin: 1.9em 0 0.5em; }
.entry h2 { font-size: clamp(30px, 3vw, 40px); }
.entry h3 { font-size: clamp(24px, 2.3vw, 30px); }
.entry h4 { font-size: 22px; }
.entry a { color: var(--purple); text-decoration: underline; text-decoration-color: rgba(97, 33, 121, 0.35); text-underline-offset: 3px; transition: text-decoration-color 0.3s; }
.entry a:hover { text-decoration-color: var(--purple); }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.entry li { margin: 0.4em 0; }
.entry ul li::marker { color: var(--gold); }
.entry ol li::marker { color: #9a7a45; font-weight: 600; }
.entry strong { color: var(--charcoal); }
.entry blockquote, .entry .wp-block-quote { margin: 2em 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--royal); }
.entry blockquote cite { display: block; margin-top: 10px; font: 600 11px var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: #9a7a45; font-style: normal; }
.entry img, .entry .wp-block-image img { border-radius: 6px; height: auto; }
.entry figure { margin: 2em 0; }
.entry figcaption, .entry .wp-element-caption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.entry .alignwide { width: min(1100px, 92vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
.entry .alignleft { float: left; margin: 0.4em 1.6em 1em 0; max-width: 46%; }
.entry .alignright { float: right; margin: 0.4em 0 1em 1.6em; max-width: 46%; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry hr, .entry .wp-block-separator { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2.4em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 2em 0; }
.entry th, .entry td { padding: 12px 10px; border-bottom: 1px solid rgba(97, 33, 121, 0.14); text-align: left; }
.entry th { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #9a7a45; }
.entry .wp-block-button__link, .entry .wp-element-button { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 999px; background: var(--royal); color: #fff; text-decoration: none; font: 600 12px var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; }
.entry .wp-block-embed iframe, .entry iframe { max-width: 100%; border-radius: 6px; }
.entry::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) { .entry { font-size: 17px; } .entry .alignleft, .entry .alignright { float: none; max-width: 100%; margin: 1.4em 0; } }

.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(97, 33, 121, 0.14); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(97, 33, 121, 0.25); color: var(--purple); text-decoration: none; }
.post-share { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.post-share a { color: var(--purple); text-decoration: none; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.post-book { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; padding: 30px; border-radius: 14px; background: var(--royal); color: #fff; }
.post-book p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.75); font-size: 16px; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 60px; }
.pager .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(97, 33, 121, 0.25); color: var(--royal); font-weight: 600; transition: background 0.3s, color 0.3s; }
.pager .page-numbers:hover { border-color: var(--purple); }
.pager .page-numbers.current { background: var(--royal); color: #fff; border-color: var(--royal); }
.pager .dots { border: 0; }

/* feature post on the blog index */
.post-card.is-feature h2 { transition: color 0.3s; }
.post-card.is-feature:hover h2 { color: var(--purple) !important; }
.filters a.filter { display: inline-flex; align-items: center; }

/* search */
.search-bar { display: flex; gap: 10px; max-width: 560px; }
.search-bar input { flex: 1; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(97, 33, 121, 0.25); background: #fff; font: 16px var(--font-body); }
.search-bar input:focus { outline: none; border-color: var(--purple); }

/* screen reader text used by core */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
