/*
Theme Name: Blogging Center
Theme URI: https://blogging.center
Author: blogging.center
Author URI: https://blogging.center
Description: A minimalist editorial theme for design and creative writers. Warm sand tones, DM Serif Display typography, and a clean post list layout. Includes light and dark mode.
Version: 1.0.0
Requires at least: 6.0
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: blogging-center
Tags: blog, minimal, light, dark-mode, typography, one-column, custom-colors
*/

/* ── Tokens ───────────────────────────────────────── */
:root {
  --bg:         #F7F5F0;
  --bg-card:    #EDE9E0;
  --bg-card-h:  #E6E0D4;
  --text:       #1A1814;
  --text-muted: #6B6459;
  --text-dim:   #7A7065;
  --text-faint: #A89880;
  --accent:     #8B7355;
  --border:     rgba(26,24,20,0.10);
  --border-sm:  rgba(26,24,20,0.08);
  --num:        #C4B8A8;
}

[data-theme="dark"] {
  --bg:         #111009;
  --bg-card:    #1C1A14;
  --bg-card-h:  #232018;
  --text:       #E8E2D8;
  --text-muted: #7A7165;
  --text-dim:   #5A5448;
  --text-faint: #5A5448;
  --accent:     #C4955A;
  --border:     rgba(232,226,216,0.08);
  --border-sm:  rgba(232,226,216,0.06);
  --num:        #3A3830;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Theme Toggle ─────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover { background: var(--bg-card-h); }

/* ── Site Header ──────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
}

.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.site-logo span { font-style: italic; color: var(--accent); }

/* ── Navigation ───────────────────────────────────── */
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.main-navigation a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--text); }

/* ── Hero / Intro ─────────────────────────────────── */
.site-hero {
  padding: 5rem 3rem 3.5rem;
  max-width: 720px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.site-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.site-hero h1 em { font-style: italic; color: var(--accent); }
.site-hero .tagline {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ── Divider ──────────────────────────────────────── */
.bc-divider {
  height: 0.5px;
  background: var(--border);
  margin: 0 3rem;
}

/* ── Section Label ────────────────────────────────── */
.section-label {
  padding: 2.5rem 3rem 1.5rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

/* ── Featured Post ────────────────────────────────── */
.featured-post {
  margin: 1rem 3rem 0;
  background: var(--bg-card);
  border-radius: 2px;
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  cursor: pointer;
  transition: background 0.2s;
  border: 0.5px solid var(--border-sm);
  text-decoration: none;
  color: inherit;
}
.featured-post:hover { background: var(--bg-card-h); }

.featured-post-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.featured-post h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 1rem;
}
.featured-post .excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.featured-post .read-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.featured-post-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.featured-post-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card-h);
  border-radius: 2px;
  overflow: hidden;
}
.featured-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Post List ────────────────────────────────────── */
.posts-list { padding: 0 3rem 6rem; }

.post-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  gap: 0 2rem;
  padding: 2rem 0;
  border-bottom: 0.5px solid var(--border-sm);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.post-item:hover .post-title { color: var(--accent); }
.post-item:hover .post-arrow { opacity: 1; transform: translateX(3px); }

.post-number {
  font-family: 'DM Serif Display', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--num);
  padding-top: 4px;
}
.post-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 300;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
}
.post-category { color: var(--accent); }

.post-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.post-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 540px;
}
.post-arrow {
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transition: all 0.25s;
  padding-top: 4px;
  align-self: center;
}

/* ── Single Post ──────────────────────────────────── */
.single-post-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}
.single-post-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.5rem;
}
.single-post-wrap h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 2rem;
}
.post-content {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.3px;
}
.post-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
}
.post-content a { color: var(--accent); border-bottom: 0.5px solid var(--accent); }
.post-content img { border-radius: 2px; margin: 2rem 0; }

/* ── Site Footer ──────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.site-footer a { color: var(--accent); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 1.5rem; flex-wrap: wrap; gap: 1rem; }
  .main-navigation ul { gap: 1.25rem; }
  .site-hero { padding: 3rem 1.5rem 2.5rem; }
  .site-hero h1 { font-size: 36px; }
  .bc-divider { margin: 0 1.5rem; }
  .section-label { padding: 2rem 1.5rem 1rem; }
  .featured-post { margin: 1rem 1.5rem 0; grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  .featured-post-aside { display: none; }
  .posts-list { padding: 0 1.5rem 4rem; }
  .post-item { grid-template-columns: 50px 1fr auto; }
  .single-post-wrap { padding: 2.5rem 1.5rem 4rem; }
  .single-post-wrap h1 { font-size: 32px; }
  .site-footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
