/**
 * Main Stylesheet
 * TDT Parallax Theme
 */

/* ============================================
   CSS Reset & Base Styles
   ============================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 100px; /* Offset for sticky header */
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

.quotation {
	padding-left: 2em;
	font-style: italic;
}


/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1rem;
	font-weight: 600;
	line-height: 1.3;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.75rem;
}

h4 {
	font-size: 1.5rem;
}

h5 {
	font-size: 1.25rem;
}

h6 {
	font-size: 1rem;
}

p {
	margin: 0 0 1.5rem;
}

a {
	color: #003aae;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	text-decoration: underline;
}

ul, ol {
	margin: 0 0 1.5rem 1.5rem;
	padding: 0;
}

blockquote {
	margin: 0 0 1.5rem;
	padding: 1rem 1.5rem;
	border-left: 4px solid #003aae;
	background-color: #f9f9f9;
	font-style: italic;
}

/* ============================================
   Layout
   ============================================ */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
}

.site-main {
	margin: 2rem auto;
	padding: 0 1rem;
	max-width: 1024px;
}

.no-margin-top {
	margin-top: 0;
}


/* ============================================
   Header
   ============================================ */

.site-header {
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-title a {
	color: #333;
	text-decoration: none;
}

.site-title a:hover {
	color: #003aae;
}

.site-description {
	margin: 0;
	font-size: 0.875rem;
	color: #666;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
	background-color: #333;
	color: #fff;
	padding: 2rem 1rem;
	margin-top: auto;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.site-info {
	font-size: 0.875rem;
}

.site-info a {
	color: #fff;
}

.site-info a:hover {
	color: #003aae;
}

/* ============================================
   Posts & Pages
   ============================================ */

article {
	margin-bottom: 3rem;
}

article figure.wp-block-image {
	max-width: 35em;
	margin: auto;
}

article figure.wp-block-image img {
	border: 1px solid #12121e;
	box-shadow: 2px 2px 2px rgba(0, 0, 0.1, 0.3);
	border-radius: 8px;
}

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin-bottom: 0.5rem;
}

.entry-title a {
	color: #333;
}

.entry-title a:hover {
	color: #003aae;
	text-decoration: none;
}

.entry-meta {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 1rem;
}

.entry-meta .byline,
.entry-meta .posted-on {
	margin-right: 1rem;
}

.post-thumbnail {
	margin-bottom: 1.5rem;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content {
	line-height: 1.8;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.page-links {
	margin-top: 2rem;
	font-weight: 600;
}


/* ============================================
   Pagination
   ============================================ */

.pagination {
	margin: 3rem 0;
	text-align: center;
}

/* ============================================
   Accessibility
   ============================================ */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ============================================
   Archive & Search Pages
   ============================================ */

.page-header {
	margin-bottom: 3rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e0e0e0;
}

.page-title {
	margin: 0;
}

.archive-description {
	margin-top: 1rem;
	color: #666;
}

.archive-posts,
.search-results {
	display: grid;
	gap: 2rem;
}

.archive-post,
.search-result {
	display: grid;
	gap: 1rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e0e0e0;
}

.archive-post:last-child,
.search-result:last-child {
	border-bottom: none;
}

.archive-post .post-thumbnail img,
.search-result .post-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.archive-post .post-thumbnail a:hover img,
.search-result .post-thumbnail a:hover img {
	transform: scale(1.02);
}

.entry-summary {
	color: #555;
}

/* ============================================
   404 Error Page
   ============================================ */

.error-404 .page-header {
	text-align: center;
}

.error-404 .page-content {
	max-width: 800px;
	margin: 0 auto;
}

.error-404-suggestions {
	margin-top: 3rem;
}

.suggestions-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.suggestion-column h3 {
	margin-top: 0;
	color: #003aae;
}

.suggestion-column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.suggestion-column li {
	margin-bottom: 0.5rem;
}

.home-link {
	text-align: center;
	margin-top: 2rem;
}

.home-link .button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background-color: #003aae;
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.home-link .button:hover {
	background-color: #005177;
	text-decoration: none;
}

/* ============================================
   Responsive
   Note: Mobile breakpoint-dependent styles are generated
   dynamically in PHP (functions.php) to use configurable breakpoint.
   ============================================ */
