/*
Theme Name: Ek Humrahi by Pixiartworks.com
Theme URI: https://pixiartworks.com
Author: Pixiartworks.com
Author URI: https://pixiartworks.com
Description: A minimalist, high-legibility editorial personal blog and essay WordPress theme inspired by Derek Sivers. Designed with Crimson Pro, Newsreader, and JetBrains Mono typography, Paper/Sepia/Night reading themes, dynamic article feeds, and comprehensive WordPress Customizer controls.
Version: 1.01.03
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ek-humrahi
Tags: blog, minimal, typography, clean, dark-mode, custom-colors, custom-menu, post-formats, translation-ready
*/

/* CSS Variables for Reading Themes */
:root {
  --bg-color: #faf9f6;
  --text-color: #1a1a1a;
  --text-muted: #555555;
  --border-color: #d8d6ce;
  --link-color: #0b3fa9;
  --link-hover: #b91c1c;
  --accent-badge: #eeebe3;
}

body.theme-sepia {
  --bg-color: #f4ecd8;
  --text-color: #2b251f;
  --text-muted: #675c50;
  --border-color: #d6caa7;
  --link-color: #7a3e14;
  --link-hover: #1b1612;
  --accent-badge: #e6dbbf;
}

body.theme-night {
  --bg-color: #121212;
  --text-color: #e5e5e5;
  --text-muted: #a3a3a3;
  --border-color: #2d2d2d;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --accent-badge: #1f1f1f;
}

/* Base Reset & Core Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 1.5rem 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Newsreader', 'Crimson Pro', Georgia, serif;
  line-height: 1.7;
  transition: background-color 0.15s ease, color 0.15s ease;
  min-height: 100vh;
}

@media (min-width: 640px) {
  body {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 768px) {
  body {
    padding: 3rem 2.5rem;
  }
}

.font-mono-system {
  font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

.border-theme {
  border-color: var(--border-color);
}

.bg-badge {
  background-color: var(--accent-badge);
}

/* Minimalist Selection Styling */
::selection {
  background: #ffeb3b;
  color: #000;
}

body.theme-night ::selection {
  background: #374151;
  color: #f9fafb;
}

/* Container */
.site-container {
  max-width: 42rem; /* 672px max-w-2xl */
  margin-left: auto;
  margin-right: auto;
}

/* Content & Typography Utilities */
.article-content {
  font-size: 1.125rem;
  line-height: 1.75;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
  color: var(--text-muted);
  font-style: italic;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.25rem 1.25rem;
  padding-left: 0.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.article-content h1 { font-size: 1.875rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Form inputs */
input, textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--text-color);
  outline-offset: 1px;
}
