/*
Theme Name: The Frugal SEO 2026
Theme URI: https://thefrugalseo.com/blog/
Author: Aditya Vikram Singh
Author URI: https://thefrugalseo.com/about/
Description: Blog theme for thefrugalseo.com/blog/. It loads the main site's /assets/site.css and /assets/site.js, so the blog always matches the rest of the site. This file only adds what posts need.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: tfs2
*/

.wrap--narrow { max-width: 820px; }

/* ---------- Post list ---------- */
.plist { border-top: 1.5px solid var(--ink); }
.prow {
  position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px 40px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--rule-strong); isolation: isolate;
  transition: color var(--t-med), padding var(--t-med) var(--ease);
}
.prow::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 520ms var(--ease); }
.prow__date { font-family: var(--f-mono); font-size: var(--fs-small); color: var(--mute); transition: color var(--t-med); }
.prow__main { display: grid; gap: 8px; }
.prow__t { font-family: var(--f-display); font-size: clamp(1.45rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-variation-settings: "opsz" 60; }
.prow__d { color: var(--ink-2); font-size: .975rem; line-height: 1.5; max-width: 46em; transition: color var(--t-med); }
.prow__m { font-size: var(--fs-small); color: var(--mute); text-align: right; transition: color var(--t-med); }
@media (hover: hover) {
  .prow:hover { color: var(--on-ink); padding-inline: 18px; }
  .prow:hover::before { transform: scaleY(1); }
  .prow:hover .prow__date, .prow:hover .prow__d, .prow:hover .prow__m { color: var(--on-ink-mute); }
  .prow:hover .row__a { background: var(--brick-hi); color: var(--ink); box-shadow: none; transform: rotate(-45deg); }
}
@media (max-width: 760px) {
  .prow { grid-template-columns: minmax(0, 1fr) 40px; gap: 8px 16px; }
  .prow__date { grid-column: 1; }
  .prow__main { grid-column: 1; }
  .prow__m { grid-column: 1; text-align: left; }
  .prow .row__a { grid-column: 2; grid-row: 1 / span 3; }
}
.empty { padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1.5px solid var(--ink); display: grid; gap: 1rem; }

/* ---------- Pagination and search ---------- */
.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule-strong); font-weight: 600; font-size: .95rem; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.page-numbers.current { background: var(--ink); color: var(--paper); box-shadow: none; }
.page-numbers.dots { box-shadow: none; }
.blog-search { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 520px; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--rule-strong); background: var(--receipt); font-size: 1rem; }
.search-field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,21,19,.08); }
.search-submit { min-height: 50px; padding: 0 1.4em; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer; }
.search-submit:hover { background: var(--brick); }

/* ---------- Single post ---------- */
.post-hero .eyebrow { margin-bottom: 1.25rem; }
.post-title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); max-width: none; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-top: 2rem; font-size: var(--fs-small); color: var(--mute); line-height: 1.5; }
.post-meta a { color: var(--ink); font-weight: 600; }
.post-meta__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-cover { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.post-cover__img { width: 100%; height: auto; border-radius: var(--radius-lg); }

.entry { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); padding-bottom: clamp(2rem, 4vw, 3rem); }
.entry > * + * { margin-top: 1.25em; }
.entry h2, .entry h3, .entry h4 { color: var(--ink); margin-top: 2em; }
.entry h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.1; }
.entry h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; font-variation-settings: "opsz" 32; }
.entry h4 { font-size: 1.15rem; letter-spacing: -0.015em; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .6em; }
.entry a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--brick); }
.entry a:hover { color: var(--brick); }
.entry strong { color: var(--ink); font-weight: 600; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .45em; }
.entry li::marker { color: var(--brick); }
.entry blockquote, .entry .wp-block-quote { margin-left: 0; margin-right: 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--brick); font-family: var(--f-display); font-size: 1.35rem; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "opsz" 32; }
.entry blockquote cite { display: block; margin-top: .6em; font-family: var(--f-body); font-size: var(--fs-small); color: var(--mute); font-style: normal; letter-spacing: 0; }
.entry code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: .12em .4em; border-radius: 6px; }
.entry pre { font-family: var(--f-mono); font-size: .9rem; line-height: 1.6; background: var(--ink); color: var(--on-ink); padding: 1.1em 1.3em; border-radius: 12px; overflow-x: auto; }
.entry pre code { background: none; padding: 0; color: inherit; }
.entry img { border-radius: 12px; height: auto; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .entry .wp-caption-text, .entry .wp-element-caption { margin-top: .6em; font-size: var(--fs-small); color: var(--mute); text-align: center; }
.entry hr, .entry .wp-block-separator { border: 0; border-top: 1px solid var(--rule-strong); margin: 2.5em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry th, .entry td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; }
.entry th { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.entry .wp-block-table { overflow-x: auto; }
.entry .alignwide, .entry .alignfull { width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.5em; border-radius: 999px; background: var(--brick); color: var(--paper); text-decoration: none; font-weight: 600; }
.entry .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }
.entry .wp-block-embed iframe { width: 100%; border-radius: 12px; }
.entry::after { content: ""; display: table; clear: both; }
.page-links { margin-top: 2em; font-weight: 600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tags a { display: inline-block; font-size: var(--fs-small); padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tags a:hover { background: var(--ink); color: var(--paper); }
.share { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); font-size: var(--fs-small); }
.share span { color: var(--mute); }
.share a { font-weight: 600; }
.share a:hover { color: var(--brick); }

.author-box { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 26px; border-radius: var(--radius-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box p { color: var(--ink-2); font-size: .975rem; }
.author-box__k { font-size: var(--fs-small) !important; color: var(--mute) !important; }
.author-box__n { font-family: var(--f-display); font-size: 1.45rem !important; font-weight: 600; letter-spacing: -0.03em; color: var(--ink) !important; margin: 2px 0 8px; font-variation-settings: "opsz" 36; }
.author-box__l { display: flex; gap: 18px; margin-top: 12px; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2rem; }
.post-nav .rcard span { margin-top: 0; color: var(--mute); }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } }

/* ---------- Comments ---------- */
.comments { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1.5px solid var(--ink); }
.comments__h, .comment-reply-title { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.comment-list { display: grid; gap: 18px; margin-bottom: 2rem; }
.comment-list .children { margin: 14px 0 0 24px; display: grid; gap: 14px; }
.comment-body { padding: 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: var(--fs-xs); color: var(--mute); margin: 4px 0 10px; }
.comment-content p + p { margin-top: .8em; }
.reply { margin-top: 8px; font-size: var(--fs-small); font-weight: 600; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--rule-strong); background: var(--receipt); font-size: 1rem;
}
.comment-form textarea { min-height: 140px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ink); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-small); }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.form-submit .btn { border: 0; cursor: pointer; }

/* ---------- Logged-in admin bar ---------- */
.admin-bar .hdr { top: 32px; }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr, .admin-bar .progress { top: 46px; } }
