/* WPNest — blog page. */

.blog-hero {
  padding: 64px 0 32px;
}
.blog-hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.blog-hero p {
  margin-top: 14px;
  font-size: 18px;
  max-width: 56ch;
}
.blog-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.blog-categories a,
.blog-categories button {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
}
.blog-categories a.on,
.blog-categories button.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.blog-categories a:hover:not(.on),
.blog-categories button:hover:not(.on) {
  border-color: var(--ink-3);
}

.blog-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 32px 0 56px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.blog-feature .img {
  aspect-ratio: 4/3;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), var(--card));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.blog-feature .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-feature .img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}
.blog-feature .img.has-image::before {
  display: none;
}
.blog-feature .img .ph-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-3);
}
.blog-feature .post-cat {
  color: var(--accent-text);
}
.blog-feature h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 12px;
  line-height: 1.1;
}
.blog-feature .excerpt {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 50ch;
}
.blog-feature .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.blog-feature .author .av {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-soft));
  display: inline-block;
  overflow: hidden;
}
.blog-feature .author .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-feature .author .name {
  font-weight: 600;
  font-size: 14px;
}
.blog-feature .author .meta {
  font-size: 12.5px;
  color: var(--ink-3);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-loadmore {
  text-align: center;
  padding: 56px 0;
}

/* ───────── Single post — hero ───────── */
.single-hero {
  padding: 64px 0 32px;
  text-align: center;
}
.single-hero-inner {
  max-width: 760px;
}
.single-hero .post-cat {
  display: inline-block;
  margin-bottom: 18px;
}
.single-title {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}
.single-lead {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 22px auto 0;
  max-width: 60ch;
}
.single-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}
.single-meta-av {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.single-meta-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-meta-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.single-meta-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ───────── Single post — cover image ───────── */
.single-cover {
  padding: 16px 0 0;
}
.single-cover .container {
  max-width: 1040px;
}
.single-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

/* ───────── Single post — article ───────── */
.single-article {
  padding: 56px 0 32px;
}

.entry-content {
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.entry-content > * + * {
  margin-top: 18px;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.entry-content h2 {
  font-size: 30px;
  margin-top: 48px;
}
.entry-content h3 {
  font-size: 22px;
  margin-top: 36px;
}
.entry-content h4 {
  font-size: 18px;
  margin-top: 28px;
}
.entry-content p {
  margin: 0;
}
.entry-content a {
  color: var(--accent-text);
}
.entry-content a:hover {
  border-bottom-color: var(--accent-text);
}
.entry-content strong {
  color: var(--ink);
  font-weight: 700;
}
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 22px;
  margin: 28px 0;
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-size: 17.5px;
}
.entry-content blockquote p {
  margin: 0;
}
.entry-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
}
.entry-content pre {
  background: var(--ink);
  color: #f6efe6;
  padding: 20px 24px;
  border-radius: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 28px 0;
}
.entry-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.entry-content img,
.entry-content figure img {
  border-radius: 14px;
  max-width: 100%;
  height: auto;
}
.entry-content figure {
  margin: 28px 0;
}
.entry-content figcaption {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
  text-align: center;
}
.entry-content ul,
.entry-content ol {
  margin: 0;
  padding-left: 24px;
}
.entry-content li {
  margin-bottom: 6px;
}
.entry-content li::marker {
  color: var(--accent-text);
}
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
}
.entry-content th,
.entry-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.entry-content th {
  background: var(--bg);
  font-weight: 700;
  color: var(--ink);
}

.single-paginate {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-3);
}
.single-paginate a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

/* ───────── Single post — tags ───────── */
.single-tags {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.single-tags-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-right: 6px;
}
.single-tags a {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink-2);
}
.single-tags a:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ───────── Comments ───────── */
.single-comments {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 80px;
  margin-top: 32px;
}
.comments-wrap {
  margin: 0 auto;
}
.comments-header {
  margin-bottom: 28px;
}
.comments-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.comments-title span {
  color: var(--accent-text);
}
.comments-closed {
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 24px;
}

.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-list > .wpnest-comment + .wpnest-comment {
  margin-top: 16px;
}
.comment-list .children {
  margin-top: 16px;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}
.comment-list .children .wpnest-comment + .wpnest-comment {
  margin-top: 16px;
}

.wpnest-comment-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}
.wpnest-comment-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wpnest-comment-av img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: block;
}
.wpnest-comment-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wpnest-comment-name,
.wpnest-comment-name a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
}
.wpnest-comment-name a:hover {
  color: var(--accent-text);
}
.wpnest-comment-time {
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: none;
}
.wpnest-comment-time:hover {
  color: var(--ink-2);
}
.wpnest-comment-pending {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--pill);
  padding: 8px 12px;
  border-radius: 8px;
  font-style: italic;
}
.wpnest-comment-content {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.wpnest-comment-content p {
  margin: 0;
}
.wpnest-comment-content p + p {
  margin-top: 10px;
}
.wpnest-comment-content a {
  color: var(--accent-text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.wpnest-comment-foot {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.wpnest-comment-foot a {
  color: var(--accent-text);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  text-decoration: none;
  transition: background 0.12s;
}
.wpnest-comment-foot a:hover {
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--accent) 20%);
}

.wpnest-comment.bypostauthor > .wpnest-comment-body {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Pagination */
.comments-wrap .pagination,
.comments-wrap .nav-links {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.comments-wrap .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.comments-wrap .page-numbers:hover {
  border-color: var(--ink-3);
}
.comments-wrap .page-numbers.current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ───────── Comment form ───────── */
.comment-respond {
  margin-top: 56px;
}
.comment-reply-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.comment-reply-title small {
  font-size: 13px;
  font-weight: 500;
  margin-left: 10px;
}
.comment-reply-title small a {
  color: var(--accent-text);
  text-decoration: none;
}

.wpnest-comment-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wpnest-form-notes {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0;
}
.wpnest-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wpnest-form-label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.wpnest-form-row .required {
  color: var(--accent-text);
}
.wpnest-comment-form input[type="text"],
.wpnest-comment-form input[type="email"],
.wpnest-comment-form input[type="url"],
.wpnest-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    background 0.12s;
}
.wpnest-comment-form input[type="text"]:focus,
.wpnest-comment-form input[type="email"]:focus,
.wpnest-comment-form input[type="url"]:focus,
.wpnest-comment-form textarea:focus {
  background: var(--card);
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}
.wpnest-comment-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.wpnest-form-cookies {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.wpnest-form-cookies input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-text);
  cursor: pointer;
}
.wpnest-form-submit {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* On wider screens — 3 cols for author/email/url; everything tagged `--full` spans the whole row. */
@media (min-width: 720px) {
  .wpnest-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 18px;
  }
  .wpnest-comment-form > .wpnest-form-row--full {
    grid-column: 1 / -1;
  }
}
