/*
Theme Name: NewsPress
Theme URI: https://newspress-theme.local
Author: Nonso
Author URI: https://newspress-theme.local
Description: A fast, SEO-friendly, AdSense-ready news blog theme for WordPress 6.x
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0-or-later
Text Domain: newspress
Domain Path: /languages
Tags: news, blog, two-columns, custom-logo, featured-images, widgetized
*/

:root {
  --color-primary: #1a1a2e;
  --color-accent: #e94560;
  --color-bg: #f4f4f4;
  --color-surface: #ffffff;
  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --color-light-gray: #f9f9f9;
  --font-headline: 'Georgia', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-ui: system-ui, -apple-system, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --max-width: 1200px;
  --sidebar-width: 300px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.441rem;
}

h2 {
  font-size: 1.953rem;
}

h3 {
  font-size: 1.5625rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin-bottom: var(--space-md);
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-left: 0;
  margin-bottom: var(--space-lg);
  font-style: italic;
  color: var(--color-muted);
}

code,
pre {
  font-family: 'Courier New', monospace;
  background-color: var(--color-light-gray);
  border-radius: var(--radius);
  padding: var(--space-sm);
}

pre {
  overflow-x: auto;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

table th,
table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

table th {
  background-color: var(--color-light-gray);
  font-weight: 600;
}

ul,
ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-surface);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}
