/*
Theme Name: Decoding History
Theme URI: https://decodinghistory.net
Author: Decoding History
Author URI: https://decodinghistory.net
Description: A dark editorial WordPress theme for Decoding History. Features dark/light mode toggle, gold accents, classic serif typography, and magazine-style layout for history blogging.
Version: 1.4.0
Requires at least: 5.8
Tested up to: 6.5
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: decoding-history
Tags: blog, magazine, dark, custom-colors, custom-menu, featured-images, sticky-post, two-columns, right-sidebar
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Cinzel:wght@400;600;700&display=swap');

/* DARK MODE (default) - High contrast */
:root {
  --bg-primary:    #0a0806;
  --bg-secondary:  #181410;
  --bg-card:       #131008;
  --border:        #4a3820;
  --border-light:  #322516;
  --gold:          #f5c950;
  --gold-bright:   #ffd966;
  --gold-dark:     #c8941e;
  --gold-muted:    #d4ae5c;
  --text-primary:  #ffffff;
  --text-secondary:#f0e8d4;
  --text-muted:    #d4c4a0;
  --text-dim:      #a89878;
  --text-faint:    #6a5840;
  --accent:        #c0392b;
  --font-display:  'Cinzel', 'Georgia', serif;
  --font-heading:  'Playfair Display', 'Georgia', serif;
  --font-body:     'Crimson Pro', 'Georgia', serif;
  --max-width:     1140px;
  --sidebar-width: 300px;
}

/* LIGHT MODE - High contrast, easy to read */
body.light-mode {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f5efe0;
  --bg-card:       #ffffff;
  --border:        #8a6f3a;
  --border-light:  #c9b88a;
  --gold:          #6b4504;
  --gold-bright:   #5a3a02;
  --gold-dark:     #3d2700;
  --gold-muted:    #7a5210;
  --text-primary:  #000000;
  --text-secondary:#1a1208;
  --text-muted:    #2e2210;
  --text-dim:      #4a3818;
  --text-faint:    #7a6840;
  --accent:        #8b1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-primary); line-height: 1.2; font-weight: 700; }
p { margin-bottom: 1.2rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-secondary);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.15em;
}

.site-container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.content-area { display: grid; grid-template-columns: 1fr var(--sidebar-width); gap: 40px; padding: 40px 0; }
.full-width { grid-template-columns: 1fr; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 3px;
  transition: all 0.2s;
  line-height: 1;
  font-family: inherit;
}
.theme-toggle:hover { background: var(--bg-secondary); border-color: var(--gold); }

.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--text-secondary); }
.top-bar a:hover { color: var(--gold); }
.top-bar-left, .top-bar-right { display: flex; gap: 18px; align-items: center; }
.top-bar-date { color: var(--text-muted); }

.site-header {
  text-align: center;
  padding: 36px 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  position: relative;
  transition: background 0.3s;
}
.site-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 80px rgba(245,201,80,0.25), 0 0 30px rgba(245,201,80,0.15);
}
body.light-mode .site-title {
  text-shadow: none;
  color: var(--gold-dark);
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--text-primary); }
.site-description {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-muted);
  letter-spacing: 0.06em;
  margin: 0;
  font-weight: 500;
}
body.light-mode .site-description { color: var(--gold-dark); }
.header-ornament {
  font-size: 18px;
  color: var(--gold-muted);
  margin-top: 12px;
  letter-spacing: 0.3em;
  opacity: 0.5;
}

.main-navigation {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.main-navigation .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.main-navigation ul { list-style: none; display: flex; flex-wrap: nowrap; justify-content: center; }
.main-navigation ul li a {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 14px 11px;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  font-weight: 600;
  white-space: nowrap;
}
.main-navigation ul li:first-child a { border-left: 1px solid var(--border); }
.main-navigation ul li a:hover { color: var(--gold-bright); background: var(--bg-secondary); }
.main-navigation ul li.current-menu-item a { color: var(--gold-bright); background: var(--bg-secondary); }
body.light-mode .main-navigation ul li a:hover,
body.light-mode .main-navigation ul li.current-menu-item a { color: var(--gold-dark); background: var(--bg-secondary); }

@media (max-width: 1100px) {
  .main-navigation ul li a { padding: 14px 9px; font-size: 9.5px; letter-spacing: 0.1em; }
}
@media (max-width: 950px) {
  .main-navigation ul li a { padding: 14px 7px; font-size: 9px; letter-spacing: 0.08em; }
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  cursor: pointer;
  width: 100%;
}

.hero-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  transition: background 0.3s;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}
.hero-main { padding: 36px 32px; border-right: 1px solid var(--border); }
.hero-image { position: relative; overflow: hidden; max-height: 320px; margin-bottom: 20px; }
.hero-image img { width: 100%; height: 320px; object-fit: cover; }
.hero-image-placeholder {
  background: var(--bg-card);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--gold-muted);
  border: 1px solid var(--border);
  opacity: 0.4;
}
.hero-sidebar { padding: 28px 24px; background: var(--bg-card); transition: background 0.3s; }
.hero-sidebar-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}

.post-category {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  font-weight: 700;
}
body.light-mode .post-category { color: var(--gold-dark); }

.entry-title { font-family: var(--font-heading); font-weight: 700; }
.entry-title a { color: var(--text-primary); }
.entry-title a:hover { color: var(--gold-bright); }
body.light-mode .entry-title a:hover { color: var(--gold-dark); }
.hero-title { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.2; margin-bottom: 14px; font-weight: 700; }
.hero-title a { color: var(--text-primary); }
.hero-title a:hover { color: var(--gold-bright); }
body.light-mode .hero-title a:hover { color: var(--gold-dark); }
.hero-excerpt { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.card-title { font-size: 19px; line-height: 1.3; margin-bottom: 8px; font-weight: 700; }
.card-title-sm { font-size: 16px; line-height: 1.35; margin-bottom: 6px; font-weight: 600; }

.post-meta {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--gold); }
.meta-divider { color: var(--text-faint); }

.hero-side-list { list-style: none; padding: 0; }
.hero-side-item { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item .post-category { margin-bottom: 5px; }
.hero-side-item .card-title-sm a { color: var(--text-primary); }
.hero-side-item .card-title-sm a:hover { color: var(--gold-bright); }
body.light-mode .hero-side-item .card-title-sm a:hover { color: var(--gold-dark); }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  text-transform: uppercase;
  font-weight: 700;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.post-card { background: var(--bg-primary); padding: 24px 20px; transition: background 0.2s; }
.post-card:hover { background: var(--bg-secondary); }
.post-card-number {
  font-family: var(--font-heading);
  font-size: 44px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 900;
}
.post-card-thumb { width: 100%; height: 140px; object-fit: cover; margin-bottom: 14px; }
.post-card-thumb-placeholder {
  width: 100%;
  height: 140px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-dim);
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
}
.post-card-excerpt { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-top: 8px; }

.read-more {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  padding: 10px 22px;
  margin-top: 14px;
  transition: all 0.2s;
  font-weight: 700;
}
body.light-mode .read-more { color: var(--gold-dark); border-color: var(--gold-dark); }
.read-more:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}
body.light-mode .read-more:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
}

.quote-banner {
  text-align: center;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  margin: 0;
  transition: background 0.3s;
}
.quote-banner blockquote {
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-primary);
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  font-weight: 500;
}
body.light-mode .quote-banner blockquote { color: var(--text-primary); }
.quote-banner blockquote::before { content: '\201C'; color: var(--gold); font-size: 2em; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.quote-banner blockquote::after  { content: '\201D'; color: var(--gold); font-size: 2em; line-height: 0; vertical-align: -0.4em; margin-left: 4px; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
  transition: background 0.3s;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--text-secondary);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-secondary); font-size: 15px; }
.widget ul li a:hover { color: var(--gold); }
.widget p { font-size: 15px; color: var(--text-secondary); }

.widget .search-form { display: flex; gap: 0; }
.widget .search-field {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}
.widget .search-field:focus { border-color: var(--gold); }
.widget .search-submit {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg-primary);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  font-weight: 600;
}
.widget .search-submit:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.single-post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.single-post-title { font-size: clamp(26px, 4vw, 44px); line-height: 1.15; margin: 12px 0 16px; }
.single-post-meta { margin-bottom: 16px; }
.single-post-thumb { width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 32px; border: 1px solid var(--border); }

.entry-content {
  font-size: 19px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.entry-content h2 { font-size: 30px; margin: 2.2rem 0 1rem; color: var(--text-primary); font-weight: 700; }
.entry-content h3 { font-size: 24px; margin: 1.8rem 0 0.8rem; color: var(--text-primary); font-weight: 700; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content a { color: var(--gold-bright); border-bottom: 1px solid var(--gold-muted); font-weight: 500; }
body.light-mode .entry-content a { color: var(--gold-dark); }
.entry-content a:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.entry-content img { margin: 2rem auto; border: 1px solid var(--border); }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.5rem; }
.entry-content strong { color: var(--text-primary); font-weight: 700; }

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
  border: 1px solid var(--border);
}
.nav-previous, .nav-next { background: var(--bg-primary); padding: 20px; transition: background 0.2s; }
.nav-next { text-align: right; }
.nav-previous:hover, .nav-next:hover { background: var(--bg-secondary); }
.nav-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.nav-title { font-family: var(--font-heading); font-size: 16px; color: var(--text-primary); }

.comments-area { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.comment-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: 0.08em; }
.comment-author { color: var(--gold); }
.comment-content { font-size: 16px; color: var(--text-secondary); }

.comment-form input, .comment-form textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 12px;
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.comment-form .submit {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.comment-form .submit:hover { background: var(--gold); color: var(--bg-primary); }

.archive-header { padding: 32px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.archive-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}
body.light-mode .archive-label { color: var(--gold-dark); }
.archive-title { font-size: 38px; font-weight: 700; color: var(--text-primary); }
.archive-description { color: var(--text-secondary); font-size: 17px; margin-top: 10px; font-style: italic; }

.post-list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.post-list-item:last-child { border-bottom: none; }
.post-list-thumb { width: 180px; height: 120px; object-fit: cover; border: 1px solid var(--border); }
.post-list-thumb-placeholder {
  width: 180px;
  height: 120px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.post-list-title { font-size: 22px; margin: 8px 0 10px; }
.post-list-excerpt { font-size: 16px; color: var(--text-secondary); line-height: 1.65; }

.page-header { padding: 32px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.page-title { font-size: 36px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.pagination .page-numbers {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 14px;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  transition: background 0.3s;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .site-title { font-size: 22px; margin-bottom: 12px; text-shadow: none; }
.footer-brand p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.footer-widget-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.footer-links li a { color: var(--text-secondary); font-size: 15px; }
.footer-links li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sidebar { border-top: 1px solid var(--border); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-main { border-right: none; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-thumb, .post-list-thumb-placeholder { width: 100%; }
  .footer-widgets { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .main-navigation ul { display: none; flex-direction: column; width: 100%; }
  .main-navigation ul.toggled { display: flex; }
  .main-navigation ul li a { border-right: none; border-left: none; border-bottom: 1px solid var(--border); text-align: center; }
  .main-navigation ul li:first-child a { border-left: none; border-top: 1px solid var(--border); }
  .top-bar-left { display: none; }
  .top-bar-inner { justify-content: center; }
}

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--text-muted); font-style: italic; text-align: center; margin-top: 6px; }

/* =====================================================
   LIGHT MODE FINAL ADJUSTMENTS - High contrast overrides
===================================================== */
body.light-mode {
  font-weight: 500;  /* Slightly bolder body in light mode */
}
body.light-mode .top-bar { background: #2a1f10; border-bottom: 1px solid #5a4528; }
body.light-mode .top-bar a { color: #f0e0c0; }
body.light-mode .top-bar a:hover { color: #ffd966; }
body.light-mode .top-bar-date { color: #d4c4a0; }
body.light-mode .theme-toggle { color: #ffd966; border-color: #5a4528; }
body.light-mode .theme-toggle:hover { background: #3a2f20; border-color: #ffd966; }

body.light-mode .site-header { background: var(--bg-secondary); }
body.light-mode .header-ornament { color: var(--gold-dark); opacity: 0.7; }

body.light-mode .main-navigation { background: var(--bg-primary); border-bottom: 2px solid var(--border); }
body.light-mode .main-navigation ul li a { color: var(--text-primary); }

body.light-mode .hero-section { background: var(--bg-secondary); border-top: 1px solid var(--border); }
body.light-mode .hero-sidebar { background: var(--bg-card); border-left: 1px solid var(--border); }

body.light-mode .post-card { background: var(--bg-primary); border: 1px solid var(--border-light); }
body.light-mode .post-card:hover { background: var(--bg-secondary); }
body.light-mode .post-card-number { color: var(--border-light); }

body.light-mode .quote-banner { background: var(--bg-secondary); }
body.light-mode .widget { background: var(--bg-card); border: 1px solid var(--border); }

body.light-mode .site-footer { background: #2a1f10; color: #f0e0c0; border-top: 2px solid var(--gold-dark); }
body.light-mode .footer-brand .site-title { color: #ffd966; }
body.light-mode .footer-brand p { color: #d4c4a0; }
body.light-mode .footer-widget-title { color: #ffd966; border-bottom-color: #5a4528; }
body.light-mode .footer-links li { border-bottom: 1px solid #4a3820; }
body.light-mode .footer-links li a { color: #d4c4a0; }
body.light-mode .footer-links li a:hover { color: #ffd966; }
body.light-mode .footer-bottom { color: #a89878; }

body.light-mode .meta-divider { color: var(--border); }
body.light-mode .post-meta { color: var(--text-dim); }
body.light-mode .post-meta a { color: var(--text-dim); }

body.light-mode .pagination .page-numbers { color: var(--text-primary); border-color: var(--border); }
body.light-mode .pagination .page-numbers:hover,
body.light-mode .pagination .page-numbers.current {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
}

body.light-mode blockquote {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-left: 3px solid var(--gold-dark);
}

body.light-mode .widget .search-field { background: #fff; color: var(--text-primary); border-color: var(--border); }
body.light-mode .widget .search-submit { background: var(--gold-dark); color: #fff; border-color: var(--gold-dark); }
body.light-mode .widget .search-submit:hover { background: #3d2700; }

body.light-mode .read-more { font-weight: 700; }

/* =====================================================
   WPFORMS STYLING - Make form labels properly visible
===================================================== */
.wpforms-container,
.wpforms-form { font-family: var(--font-body) !important; }

/* Main field labels (Name, Email, etc.) */
.wpforms-container .wpforms-field-label,
.wpforms-form .wpforms-field-label {
  color: var(--text-primary) !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  display: block !important;
}

/* Required asterisk */
.wpforms-container .wpforms-required-label,
.wpforms-form .wpforms-required-label {
  color: var(--gold-bright) !important;
  font-weight: 700 !important;
}
body.light-mode .wpforms-container .wpforms-required-label,
body.light-mode .wpforms-form .wpforms-required-label { color: var(--accent) !important; }

/* Sub-labels (First, Last under Name field) */
.wpforms-container .wpforms-field-sublabel,
.wpforms-form .wpforms-field-sublabel {
  color: var(--text-muted) !important;
  font-family: var(--font-display) !important;
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  margin-top: 6px !important;
}
body.light-mode .wpforms-container .wpforms-field-sublabel,
body.light-mode .wpforms-form .wpforms-field-sublabel { color: var(--text-dim) !important; }

/* Description text */
.wpforms-container .wpforms-field-description,
.wpforms-form .wpforms-field-description {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  font-style: italic !important;
}

/* Input fields - text, email, etc. */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="url"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container textarea,
.wpforms-container select,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="url"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="number"],
.wpforms-form textarea,
.wpforms-form select {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  padding: 10px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  border-radius: 0 !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
}

body.light-mode .wpforms-container input[type="text"],
body.light-mode .wpforms-container input[type="email"],
body.light-mode .wpforms-container input[type="url"],
body.light-mode .wpforms-container input[type="tel"],
body.light-mode .wpforms-container input[type="number"],
body.light-mode .wpforms-container textarea,
body.light-mode .wpforms-container select,
body.light-mode .wpforms-form input[type="text"],
body.light-mode .wpforms-form input[type="email"],
body.light-mode .wpforms-form input[type="url"],
body.light-mode .wpforms-form input[type="tel"],
body.light-mode .wpforms-form input[type="number"],
body.light-mode .wpforms-form textarea,
body.light-mode .wpforms-form select {
  background: #fff !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus { border-color: var(--gold) !important; outline: none !important; }

/* Submit button */
.wpforms-container button[type="submit"],
.wpforms-form button[type="submit"],
.wpforms-container .wpforms-submit,
.wpforms-form .wpforms-submit {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold-bright) !important;
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  margin-top: 8px !important;
}
.wpforms-container button[type="submit"]:hover,
.wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover,
.wpforms-form .wpforms-submit:hover {
  background: var(--gold) !important;
  color: var(--bg-primary) !important;
}
body.light-mode .wpforms-container button[type="submit"],
body.light-mode .wpforms-form button[type="submit"],
body.light-mode .wpforms-container .wpforms-submit,
body.light-mode .wpforms-form .wpforms-submit {
  border-color: var(--gold-dark) !important;
  color: var(--gold-dark) !important;
}
body.light-mode .wpforms-container button[type="submit"]:hover,
body.light-mode .wpforms-form button[type="submit"]:hover,
body.light-mode .wpforms-container .wpforms-submit:hover,
body.light-mode .wpforms-form .wpforms-submit:hover {
  background: var(--gold-dark) !important;
  color: #fff !important;
}

/* "Send Us a Message" / "Connect With Us" headings on Contact page */
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text-primary) !important; font-weight: 700 !important; }

/* Section heading style for plain bold lines like "Send Us a Message" */
.page .entry-content p strong:only-child {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 700;
}
body.light-mode .page .entry-content p strong:only-child { color: var(--gold-dark); }
