/*
Theme Name: HelloBD Newz Press
Theme URI: https://www.hellobdnewz.com/
Author: HelloBD Newz
Description: A Telugu news theme with a responsive front page, article pages, category archives, and WordPress search.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hellobd-newz-press
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@font-face {
	font-family: Spectral;
	src: url("assets/spectral-latin-700.woff2") format("woff2");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--paper: #faf8f3;
	--card: #fffdf9;
	--ink: #171b25;
	--nav: #1b2332;
	--nav-text: #fff;
	--nav-muted: #d7dce4;
	--nav-active: #293449;
	--nav-indicator: #ed8190;
	--muted: #565965;
	--rule: #d8d3c8;
	--brand: #a5232f;
	--brand-text: #fff;
	--brand-ink: var(--brand);
	--display: Spectral, "Noto Serif Telugu", "Nirmala UI", Georgia, serif;
	--body: system-ui, "Noto Sans Telugu", "Nirmala UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
button, input, textarea { font: inherit; }
.shell { width: min(calc(100% - 64px), 1200px); margin-inline: auto; }
.page-main { min-height: 52vh; padding-block: 38px 72px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; z-index: 10; inset: 14px auto auto 14px; padding: 10px 18px; background: white; }

.site-header { border-top: 5px solid var(--brand); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-block: 26px 24px; }
.wordmark { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: bold; line-height: 1.04; letter-spacing: -.05em; }
.brand-mark { display: inline-grid; flex: none; place-items: center; width: 50px; height: 50px; background: var(--brand); color: var(--brand-text); font: bold 1.25rem/1 Georgia, serif; letter-spacing: -.07em; }
.custom-logo { width: auto; max-height: 66px; }
.edition { margin: 10px 0 0; color: var(--muted); font-size: .84rem; font-weight: 650; }
.masthead-tools { text-align: end; flex: 0 1 310px; }
.masthead-tools time { display: inline-block; font-size: .78rem; font-weight: 650; margin-bottom: 7px; color: var(--muted); }
.search-form { display: flex; align-items: stretch; max-width: 330px; }
.search-form label { flex: 1 1 auto; min-width: 0; }
.search-form input { min-width: 0; width: 100%; border: 1px solid var(--rule); background: var(--card); border-radius: 0; padding: 8px 10px; min-height: 42px; font-size: .86rem; }
.search-form button, .comment-form .submit { min-height: 42px; border: 1px solid var(--nav); border-radius: 0; background: var(--nav); color: var(--nav-text); font-weight: bold; padding: 7px 12px; cursor: pointer; }
.search-form button:hover, .comment-form .submit:hover { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
.nav-band { background: var(--nav); color: var(--nav-text); }
.site-nav { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #777d87 var(--nav); }
.menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; gap: 5px; min-width: max-content; }
.site-nav a { display: grid; align-content: center; min-height: 53px; padding: 7px 18px; font-size: .9rem; font-weight: 700; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--nav-text); border-color: var(--nav-indicator); background: var(--nav-active); }
.site-nav a:focus-visible, .site-footer a:focus-visible { outline-color: var(--nav-text); outline-offset: -4px; }

.section-heading { position: relative; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; line-height: 1.25; padding-bottom: 12px; margin: 0 0 20px; border-bottom: 1px solid var(--rule); }
.section-heading::before { content: ""; width: 42px; height: 3px; background: var(--brand); position: absolute; bottom: -2px; left: 0; }
.top-news { padding-bottom: 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 24px; }
.hero-secondary { display: grid; gap: 20px; align-content: start; }
.story-card { min-width: 0; }
.story-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #e7ded1; }
.story-media img, .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #1b2332 50%, #2b3850 50%); color: #fff7e8; font: bold clamp(1.45rem, 4vw, 3rem)/1 Georgia, serif; letter-spacing: -.08em; }
.story-media img { transition: transform .24s ease; }
.story-media:hover img { transform: scale(1.035); }
.story-copy { padding-top: 13px; }
.story-title { margin: 7px 0 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.4; }
.story-copy p { color: var(--muted); font-size: .93rem; line-height: 1.75; margin: 9px 0 0; }
.story-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .76rem; }
.story-category { display: inline-block; color: var(--brand-ink); font-weight: 800; }
.story-category:hover { text-decoration: underline; }
.story-lead { background: var(--card); border: 1px solid var(--rule); }
.story-lead .story-copy { padding: 18px 22px 23px; }
.story-lead .story-title { font-size: clamp(1.6rem, 3.6vw, 2.65rem); line-height: 1.25; }
.story-compact { padding-bottom: 15px; border-bottom: 1px solid var(--rule); }
.hero-secondary .story-media { aspect-ratio: 2.2 / 1; }
.hero-secondary .story-title { font-size: clamp(1.07rem, 2vw, 1.33rem); }

.news-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.news-layout.no-sidebar, .article-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.article-layout.no-sidebar .article-body { max-width: 840px; }
.news-layout:not(.no-sidebar) .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-list { display: grid; grid-template-columns: minmax(105px, 27%) minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.story-list:first-child { padding-top: 0; }
.story-list .story-copy { padding: 0; }
.section-links { border-top: 4px solid var(--brand); background: var(--card); padding: 16px 20px 10px; }
.section-links h2 { font: bold 1.35rem/1.45 var(--display); margin: 0 0 8px; }
.section-links ul { margin: 0; padding: 0; list-style: none; }
.section-links li + li { border-top: 1px solid var(--rule); }
.section-links a { display: flex; min-height: 44px; gap: 12px; align-items: center; justify-content: space-between; font-size: .95rem; font-weight: 600; }
.section-links a span:last-child { color: var(--brand-ink); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.archive-grid .story-card { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.archive-description { color: var(--muted); max-width: 74ch; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.page-numbers, .more-link { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; gap: 10px; padding: 7px 11px; border: 1px solid var(--rule); background: var(--card); font-weight: 650; }
.page-numbers.current { background: var(--nav); color: var(--nav-text); border-color: var(--nav); }
.more-link { margin-top: 20px; }
.article-head { border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 24px; }
.article-head h1 { font: bold clamp(1.85rem, 4.7vw, 3.65rem)/1.24 var(--display); margin: 8px 0 14px; letter-spacing: -.02em; }
.article-author { font-weight: 800; }
.article-image { margin: 0 0 22px; }
.article-image img { width: 100%; }
figcaption { color: var(--muted); font-size: .82rem; padding-top: 7px; }
.static-page { max-width: 820px; }
.prose { font-size: 1.075rem; line-height: 1.85; }
.prose a { color: var(--brand-ink); text-decoration: underline; }
.prose iframe, .prose video { max-width: 100%; }
.prose pre, .prose .wp-block-table { overflow: auto; }
.prose figure { max-width: 100%; }
.prose blockquote { margin: 24px 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--brand); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.article-tags a { border: 1px solid var(--rule); padding: 5px 10px; font-size: .85rem; }
.related-news .story-card + .story-card { margin-top: 18px; }
.comments-area { border-top: 1px solid var(--rule); margin-top: 30px; padding-top: 20px; }
.comment-list { padding-inline-start: 18px; }
.comment-list li { padding-block: 10px; }
.comment-form label { display: block; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form input:not([type=checkbox], [type=submit]), .comment-form textarea { width: 100%; padding: 8px; border: 1px solid var(--rule); background: var(--card); }

.site-footer { background: var(--nav); color: var(--nav-text); border-top: 4px solid var(--brand); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 20px 42px; padding-block: 29px; }
.footer-brand { font: bold 1.45rem/1.4 var(--display); }
.site-footer p { margin: 6px 0 0; font-size: .8rem; color: var(--nav-muted); }
.site-footer .menu { display: flex; flex-wrap: wrap; gap: 5px 20px; font-size: .88rem; }
.site-footer a { display: inline-block; padding-block: 5px; }
.site-footer a:hover { color: var(--nav-text); text-decoration: underline; }

@media (max-width: 820px) {
	.shell { width: min(calc(100% - 40px), 1200px); }
	.news-layout, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.related-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.related-news .section-heading { grid-column: 1 / -1; margin-bottom: 0; }
	.related-news .story-card + .story-card { margin-top: 0; }
}
@media (max-width: 600px) {
	.shell { width: calc(100% - 32px); }
	.masthead { align-items: stretch; flex-direction: column; gap: 14px; padding-block: 15px; }
	.brand-mark { width: 39px; height: 39px; }
	.masthead-tools { flex: auto; text-align: start; }
	.masthead-tools time, .masthead-tools.date-only { display: none; }
	.masthead-tools .search-form { max-width: none; }
	.site-nav { width: 100%; padding-inline: 8px; }
	.site-nav a { padding-inline: 13px; min-height: 48px; }
	.page-main { padding-block: 25px 46px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
	.hero-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
	.hero-secondary .story-media { aspect-ratio: 16 / 10; }
	.story-lead .story-copy { padding: 13px 14px 18px; }
	.story-list { gap: 11px; }
	.story-list .story-title { font-size: 1rem; }
	.story-list .story-copy p { display: none; }
	.story-meta { font-size: .72rem; }
	.archive-grid, .news-layout:not(.no-sidebar) .latest-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.story-media img { transition: none; }
}
