/*
Theme Name: Jon Spitz
Theme URI: https://jonpspitz.com
Author: Jon Spitz
Description: Personal brand theme for Jon P. Spitz — writer, realtor, and entrepreneur.
Version: 1.0
License: GNU General Public License v2
*/

/* ─────────────────────────────────────────
   GOOGLE FONTS
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
}

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

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 32px 0 28px;
  background: #fff;
}

.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

.site-title a { color: inherit; }
.site-title a:hover { color: #555; }

.site-description {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
  margin-top: 2px;
}

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-navigation a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: #999;
  transition: color 0.15s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #1a1a1a;
}

.nav-cta a {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 11px !important;
  letter-spacing: 1.5px;
}

.nav-cta a:hover {
  background: #333 !important;
  color: #fff !important;
}

/* ─────────────────────────────────────────
   HERO STRIP (homepage only)
───────────────────────────────────────── */
.hero-strip {
  padding: 72px 0 64px;
  border-bottom: 1px solid #f0f0f0;
}

.hero-strip .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 16px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
  padding: 11px 22px;
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
}

.btn-primary:hover { background: #333; color: #fff; }

.btn-secondary {
  background: transparent;
  color: #999;
  padding: 11px 22px;
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid #e8e8e8;
  display: inline-block;
}

.btn-secondary:hover { color: #1a1a1a; border-color: #ccc; }

/* ─────────────────────────────────────────
   BLOG FEED
───────────────────────────────────────── */
.posts-feed {
  padding: 64px 0;
}

.post-item {
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
}

.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }

.post-meta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 10px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 12px;
}

.post-title a { color: inherit; }
.post-title a:hover { color: #555; }

.post-excerpt {
  font-size: 16px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 600px;
}

.read-more {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 500;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
}

.read-more:hover { color: #555; border-color: #555; }

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.pagination {
  padding: 32px 0 64px;
  display: flex;
  gap: 8px;
}

.pagination a,
.pagination span {
  font-size: 13px;
  color: #999;
  padding: 6px 12px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.pagination a:hover { color: #1a1a1a; border-color: #ccc; }
.pagination .current { color: #1a1a1a; border-color: #1a1a1a; }

/* ─────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────── */
.single-post {
  padding: 64px 0;
}

.single-post .post-meta { margin-bottom: 16px; }

.single-post .post-title {
  font-size: 40px;
  margin-bottom: 40px;
  line-height: 1.15;
}

.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
}

.post-content p { margin-bottom: 24px; }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 26px; margin: 40px 0 16px; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 32px 0 12px; }
.post-content a { border-bottom: 1px solid #ddd; color: #1a1a1a; }
.post-content a:hover { border-color: #999; }
.post-content blockquote { border-left: 2px solid #1a1a1a; padding-left: 24px; margin: 32px 0; color: #555; font-style: italic; }
.post-content img { margin: 32px 0; border-radius: 8px; }

/* ─────────────────────────────────────────
   RE STRIP (homepage — real estate CTA)
───────────────────────────────────────── */
.re-strip {
  background: #f9f9f9;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 40px 0;
}

.re-strip .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.re-strip-text p.label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 6px;
}

.re-strip-text p.headline {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #1a1a1a;
}

.re-strip-stats {
  display: flex;
  gap: 40px;
}

.re-stat { text-align: center; }

.re-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
}

.re-stat .label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
}

/* ─────────────────────────────────────────
   PAGE (static pages)
───────────────────────────────────────── */
.page-content {
  padding: 64px 0;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 40px;
  line-height: 1.15;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #f0f0f0;
  padding: 40px 0;
  background: #fff;
}

.site-footer .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left p {
  font-size: 13px;
  color: #bbb;
}

.footer-left a { color: #999; }
.footer-left a:hover { color: #1a1a1a; }

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bbb;
}

.footer-right a:hover { color: #1a1a1a; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header .container--wide { flex-direction: column; align-items: flex-start; gap: 20px; }
  .main-navigation ul { gap: 16px; flex-wrap: wrap; }
  .hero-strip .container { flex-direction: column; text-align: center; }
  .hero-links { justify-content: center; }
  .hero-text h1 { font-size: 28px; }
  .re-strip .container--wide { flex-direction: column; text-align: center; }
  .re-strip-stats { justify-content: center; }
  .site-footer .container--wide { flex-direction: column; gap: 16px; text-align: center; }
  .footer-right { justify-content: center; }
  .single-post .post-title { font-size: 30px; }
  .container--wide { padding: 0 24px; }
}
