/* ==========================================================================
   DeshiWear — pages, blog, comments, 404
   ========================================================================== */

.dw-page { padding-top: 8px; padding-bottom: 40px; }
.dw-page__title { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 24px; }
.dw-entry__content { font-size: 1.0625rem; line-height: 1.85; }
.dw-entry__content > * { max-width: 760px; }
.dw-entry__content > .alignwide { max-width: 1200px; }
.dw-entry__content > .alignfull { max-width: none; }
.dw-entry__content > .mfc-collection-page, .dw-entry__content > .woocommerce, .dw-entry__content > [class*="mfc-"] { max-width: none; font-size: 1rem; line-height: 1.6; }
.dw-entry__content h2 { margin-top: 1.6em; }
.dw-entry__content h3 { margin-top: 1.4em; }
.dw-entry__content img { border-radius: var(--dw-radius-lg); }
.dw-entry__content blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--dw-accent); font-family: var(--dw-font-display); font-size: 1.25rem; }
.dw-entry__content table { width: 100%; border-collapse: collapse; }
.dw-entry__content th, .dw-entry__content td { border: 1px solid var(--dw-line); padding: 10px; }
.dw-entry__content ul, .dw-entry__content ol { padding-left: 1.4em; }
.dw-entry__content li { margin-bottom: .4em; }
.dw-entry__content a { color: var(--dw-primary); }

/* Blog index */
.dw-blog { padding-bottom: 40px; }
.dw-blog__head { padding: 8px 0 28px; }
.dw-blog__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.dw-blog__desc { color: var(--dw-muted); }
.dw-posts--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.dw-posts--list { display: grid; gap: 32px; max-width: 900px; }
.dw-posts--list .dw-post { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.dw-post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--dw-radius-lg); background: var(--dw-tint); }
.dw-posts--grid .dw-post__media { margin-bottom: 14px; }
.dw-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--dw-ease); }
.dw-post:hover .dw-post__media img { transform: scale(1.04); }
.dw-post__meta { font-size: .8125rem; color: var(--dw-muted); margin: 0 0 4px; }
.dw-post__meta a { color: inherit; }
.dw-post__title { font-size: 1.375rem; margin: 0 0 6px; }
.dw-post__title a { text-decoration: none; }
.dw-post__excerpt { color: var(--dw-muted); margin: 0; }

/* Single article */
.dw-article__head { text-align: center; padding-bottom: 28px; }
.dw-article__head .dw-crumbs { text-align: left; }
.dw-article__title { font-size: clamp(2rem, 4.6vw, 3.25rem); margin: 6px 0 12px; }
.dw-article__lead { font-size: 1.1875rem; color: var(--dw-muted); max-width: 60ch; margin: 0 auto; }
.dw-article__media { margin: 0 auto 40px; }
.dw-article__media img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--dw-radius-lg); }
.dw-article__foot { padding-top: 32px; }
.dw-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--dw-tint); font-size: .8125rem; text-decoration: none; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; justify-content: stretch; }
.post-navigation a { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--dw-line); border-radius: var(--dw-radius-lg); text-decoration: none; background: var(--dw-surface); }
.post-navigation small { color: var(--dw-muted); }
.post-navigation .nav-next { text-align: right; }

/* Comments */
.dw-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--dw-line); }
.dw-comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.dw-comments__list .children { list-style: none; padding-left: 32px; }
.dw-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--dw-line); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .8125rem; color: var(--dw-muted); }
.comment-form p { margin-bottom: 14px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; }

/* Search form */
.dw-searchform { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }

/* 404 */
.dw-notfound { text-align: center; padding-block: clamp(48px, 10vw, 120px); max-width: 720px; }
.dw-notfound__code { font-family: var(--dw-font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--dw-tint); margin: 0; -webkit-text-stroke: 1px var(--dw-accent); }
.dw-notfound__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.dw-notfound .dw-search { max-width: 520px; margin: 24px auto; }
.dw-notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 899px) {
	.dw-posts--grid { grid-template-columns: 1fr; }
	.dw-posts--list .dw-post { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1099px) {
	.dw-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
