/*
Theme Name: Vaibhav Writing
Theme URI: https://vaibhav.gentepartners.com/
Author: Vaibhav Srivastava
Author URI: https://vaibhav.gentepartners.com/
Description: Editorial theme for the Writing section of vaibhav.gentepartners.com. Inherits the main site's design tokens, typography and chrome so the blog reads as one site with the portfolio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaibhav-writing
Tags: blog, one-column, custom-menu, editor-style, translation-ready
*/

/* ==========================================================================
   The main site stylesheet (/assets/style.css) is enqueued first and supplies
   every token, the header, the footer, buttons and cards. Everything below is
   only what the blog adds on top of it.
   ========================================================================== */

/* --- Post list ---------------------------------------------------------- */
.post-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft);
             border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.post-item { background: var(--page); padding: 34px 0; transition: background 0.25s var(--ease); }
.post-item:hover { background: var(--surface); }
.post-item .wrap { display: grid; grid-template-columns: 168px 1fr; gap: 8px 40px; align-items: baseline; }
@media (max-width: 720px) { .post-item .wrap { grid-template-columns: 1fr; gap: 10px; } }

.post-meta { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
             color: var(--muted-2); font-variant-numeric: tabular-nums; }
.post-item h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 800; letter-spacing: -0.03em;
                line-height: 1.2; margin-bottom: 10px; text-wrap: balance; }
.post-item h2 a { transition: color 0.2s var(--ease); }
.post-item:hover h2 a { color: var(--accent); }
.post-item .excerpt { color: var(--muted); font-size: 15.6px; max-width: 68ch; }
.post-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.post-cats a { font-size: 12.4px; font-weight: 600; color: var(--muted);
               border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 12px;
               transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.post-cats a:hover { border-color: var(--accent); color: var(--accent); }

/* --- Single post -------------------------------------------------------- */
.entry-head { padding: clamp(56px, 7vw, 92px) 0 clamp(30px, 4vw, 46px); border-bottom: 1px solid var(--line-soft); }
.entry-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em;
                 line-height: 1.08; max-width: 20ch; margin-bottom: 22px; text-wrap: balance; }
.entry-head .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
                      font-size: 13.4px; color: var(--muted-2); font-weight: 600; }
.entry-head .byline span { display: inline-flex; align-items: center; gap: 16px; }
.entry-head .byline span:not(:last-child)::after { content: ""; width: 4px; height: 4px;
                      border-radius: 50%; background: var(--line); }

.featured { margin: clamp(34px, 5vw, 54px) 0 0; border-radius: var(--radius-lg); overflow: hidden;
            border: 1px solid var(--line-soft); }
.featured img { width: 100%; height: auto; display: block; }

/* --- Article prose ------------------------------------------------------ */
.prose { padding: clamp(40px, 5vw, 62px) 0 clamp(56px, 7vw, 84px); }
.prose .measure-col { max-width: 68ch; }
.prose p, .prose ul, .prose ol { color: var(--muted); font-size: 1.05rem; line-height: 1.72; margin: 0 0 1.35em; }
.prose > .measure-col > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 800; letter-spacing: -0.03em;
            line-height: 1.2; margin: 2.2em 0 0.7em; color: var(--text); text-wrap: balance; }
.prose h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; margin: 1.9em 0 0.6em; color: var(--text); }
.prose h4 { font-size: 1.05rem; font-weight: 800; margin: 1.6em 0 0.5em; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
           text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose img, .prose figure img { border-radius: var(--radius); border: 1px solid var(--line-soft); height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 13.4px; color: var(--muted-2); margin-top: 12px; text-align: center; }
.prose blockquote { margin: 2em 0; padding-left: 26px; border-left: 3px solid var(--accent);
                    font-family: var(--font-serif); font-style: italic;
                    font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--text); }
.prose blockquote p { font-family: inherit; font-size: inherit; color: inherit; line-height: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.6em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.87em;
              background: var(--panel); padding: 2px 6px; border-radius: 5px; color: var(--text); }
.prose pre { background: var(--ink); color: var(--paper); padding: 22px 24px; border-radius: var(--radius);
             overflow-x: auto; margin: 1.8em 0; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.prose th { font-weight: 800; color: var(--text); }
.prose .wp-caption, .prose .alignwide { max-width: 100%; }
.prose iframe, .prose embed, .prose video { max-width: 100%; border-radius: var(--radius); }

/* --- Pagination --------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; padding: 44px 0 0; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px;
      padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-soft);
      font-size: 14.5px; font-weight: 700; color: var(--muted);
      transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--text); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --- Post navigation ---------------------------------------------------- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 44px;
            border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a { display: block; padding: 24px 26px; border: 1px solid var(--line-soft);
              border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
              transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.post-nav a:hover { border-color: var(--line); transform: translateY(-2px); }
.post-nav .dir { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
                 text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-nav .ttl { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.post-nav .next { text-align: right; }

/* --- Empty / search ----------------------------------------------------- */
.searchform { display: flex; gap: 10px; max-width: 460px; margin-top: 26px; }
.searchform input[type="search"] { flex: 1; padding: 13px 16px; border-radius: 11px;
      background: var(--surface); border: 1px solid var(--line); color: var(--text);
      font-family: inherit; font-size: 15.5px; }
.searchform input[type="search"]:focus { outline: none; border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(194, 75, 36, 0.12); }

/* --- Comments ----------------------------------------------------------- */
.comments { padding: 0 0 clamp(56px, 7vw, 84px); }
.comments h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 26px; }
.comments ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.comments .comment-body { background: var(--surface); border: 1px solid var(--line-soft);
      border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.comments .comment-meta { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }
.comments p { color: var(--muted); font-size: 15.4px; }
