/*
Theme Name: Amit N Jain — Luxe
Theme URI: https://www.theamitjain.com/blog/
Author: Amit N Jain
Description: Blog theme for theamitjain.com. Reuses the main site's stylesheets (/colors_and_type.css, /site.css, /luxe.css) so the blog and the site always look the same. This file only adds blog-specific pieces.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: amitjain-luxe
*/

/* ── Note cards with cover image ─────────────────────────────── */
.note-card.has-thumb { padding: 0; overflow: hidden; }
.note-card.has-thumb .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--lx-bg-2); border-bottom: 1px solid var(--lx-line); }
.note-card.has-thumb .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: transform .6s var(--ease), filter .6s var(--ease); }
.note-card.has-thumb:hover .thumb img { transform: scale(1.035); filter: saturate(1); }
.note-card.has-thumb .nc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.note-card .meta .date { color: var(--wh-text-muted); font-weight: 600; }

/* ── Featured note with image ────────────────────────────────── */
.featured .fc-aside.has-img { padding: 0; }
.featured .fc-aside.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.featured .fc-aside.has-img::after { background: linear-gradient(90deg, rgba(11,10,9,.35), transparent 40%); }
.featured .fc-meta { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--wh-text-muted); margin: -6px 0 18px; }

/* ── Topic tiles as links + active state ─────────────────────── */
a.topic { text-decoration: none; display: block; }
a.topic .count { font-size: 11px; letter-spacing: 1px; color: var(--wh-gold); margin-left: 6px; }
a.topic.is-current { border-color: var(--wh-gold); }

/* ── Article ─────────────────────────────────────────────────── */
.page-hero .lede.post-lede { max-width: 40em; }
.post-meta-line { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--wh-gold); }
.post-meta-line span + span::before { content: "·"; margin: 0 10px; color: var(--wh-text-muted); }
.post-cover { margin: 0 auto clamp(36px, 5vw, 56px); max-width: 56em; border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--lx-line); }
.post-cover img { width: 100%; height: auto; display: block; }
.article h3 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 27px); color: var(--lx-ivory); margin: 34px 0 12px; }
.article h4 { font-family: var(--ff-sans); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--wh-gold); margin: 30px 0 10px; }
.article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { font-size: 17px; color: var(--wh-text); }
.article li::marker { color: var(--wh-gold); }
.article a { color: var(--wh-gold-light); text-decoration: underline; text-decoration-color: rgba(201,168,76,.4); text-underline-offset: 3px; }
.article a:hover { color: var(--lx-ivory); text-decoration-color: var(--wh-gold); }
.article blockquote, .article .wp-block-quote, .article .wp-block-pullquote {
  margin: 34px 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--wh-gold);
  font-family: var(--ff-display); font-size: clamp(21px, 2.3vw, 26px); line-height: 1.45; color: var(--lx-ivory);
}
.article blockquote p { font-family: inherit; font-size: inherit; color: inherit; margin-bottom: 10px; }
.article blockquote cite { display: block; font-family: var(--ff-sans); font-size: 13px; font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--wh-text-muted); }
.article figure, .article .wp-block-image { margin: 34px 0; }
.article img { max-width: 100%; height: auto; border-radius: var(--r-xl); }
.article figcaption, .article .wp-element-caption { font-size: 13px; color: var(--wh-text-muted); text-align: center; margin-top: 10px; }
.article hr, .article .wp-block-separator { border: 0; height: 1px; background: var(--lx-line); margin: 44px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.article th, .article td { border-bottom: 1px solid var(--lx-line); padding: 12px 10px; text-align: left; color: var(--wh-text); }
.article th { color: var(--lx-ivory); font-weight: 600; }
.article .wp-block-button__link { background: var(--wh-gold); color: var(--lx-ivory); border-radius: var(--r-lg); padding: 12px 22px; text-decoration: none; }
.article pre, .article code { font-family: var(--ff-mono, monospace); font-size: 14px; background: var(--lx-bg-2); border: 1px solid var(--lx-line); border-radius: var(--r-md); }
.article pre { padding: 18px; overflow-x: auto; }
.article code { padding: 2px 6px; }
.article .alignwide, .article .alignfull { max-width: 100%; }

/* Author box */
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; margin-top: 56px; padding: 26px; background: var(--lx-bg-2); border: 1px solid var(--lx-line); border-radius: var(--r-2xl); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--wh-gold-border); }
.author-box p { margin: 0 !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--wh-text-mid) !important; }
.author-box b { display: block; font-family: var(--ff-display); font-weight: 500; font-size: 21px; color: var(--lx-ivory); margin-bottom: 4px; }
.author-box a { color: var(--wh-gold-light); }

/* Share row */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; }
.share-row .lbl { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--wh-text-muted); margin-right: 6px; }
.share-row a, .share-row button { font: inherit; font-size: 13px; color: var(--wh-text); background: transparent; border: 1px solid rgba(201,168,76,.28); border-radius: var(--r-pill); padding: 8px 16px; text-decoration: none; cursor: pointer; }
.share-row a:hover, .share-row button:hover { border-color: var(--wh-gold); color: var(--wh-gold-light); }

/* ── Pagination ──────────────────────────────────────────────── */
.pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.pager .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--lx-line); border-radius: var(--r-md); color: var(--wh-text-mid); text-decoration: none; font-size: 14px; }
.pager .page-numbers.current { border-color: var(--wh-gold); color: var(--lx-ivory); }
.pager a.page-numbers:hover { border-color: var(--wh-gold-border); color: var(--wh-gold-light); }

/* ── Search ──────────────────────────────────────────────────── */
.blog-search { display: flex; gap: 10px; max-width: 520px; margin-top: 26px; }
.blog-search input { flex: 1; background: var(--lx-surface); border: 1px solid var(--lx-line-2); border-radius: var(--r-lg); padding: 12px 16px; color: var(--lx-ivory); font: inherit; font-size: 15px; }
.blog-search input:focus { outline: none; border-color: var(--wh-gold); }
.empty-note { color: var(--wh-text-mid); font-size: 17px; }

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; background: var(--wh-gold); color: var(--lx-ivory); padding: 10px 16px; border-radius: var(--r-md); clip: auto; width: auto; height: auto; }

@media (max-width: 600px) { .author-box { grid-template-columns: 1fr; text-align: left; } }
