/*
Theme Name: Noble Valley
Theme URI: https://noblevalley.org
Author: Dale A. Stiles
Description: Minimalist custom theme for Noble Valley.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noblevalley
*/

:root {
  --bg: #f9f9f8;             /* Warm, soft parchment background */
  --surface: #f1f0eb;        /* Subtle warm card/header surface */
  --text: #222222;           /* Deep charcoal ink */
  --muted: #6b6965;          /* Muted warm gray for metadata */
  --accent: #7a1c1c;         /* Deep oxblood for primary links/actions */
  --gold: #b38f3e;           /* Muted antique gold for subtle borders/accents */
  --border: #e0ded7;         /* Soft structural divider line */
  --max-width: 760px;        /* Ideal reading column width */
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 2rem;
}

.header-inner,
.site-main,
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.primary-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
  color: var(--accent);
}

/* Main Content */
.site-main {
  padding: 3rem 1.5rem;
  min-height: calc(100vh - 180px);
}

article {
  margin-bottom: 3.5rem;
}

.entry-title,
.archive-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.entry-title a {
  color: var(--text);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--accent);
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Links */
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

/* Archive / Blog List */
.archive-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.post-card {
  margin-bottom: 0;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card .entry-meta {
  margin-bottom: 0.35rem;
}

.post-card .entry-title {
  font-size: 1.45rem;
}

.entry-summary p {
  margin: 0.65rem 0 0.85rem;
  color: var(--muted);
}

.read-more {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  margin-top: 2.5rem;
}

.pagination .nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pagination a,
.pagination .current {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.pagination .current {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.footer-menu {
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.site-footer p {
  margin: 0;
}