/*
Theme Name: Dushime Personal
Theme URI: https://example.com/
Author: You
Author URI: https://example.com/
Description: Personal portfolio and media theme with Tailwind CSS for showcasing skills, projects, publications, books, testimonials, speaking engagements, newsletter, and weekly opinions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dushime
Tags: portfolio, blog, custom-background, custom-logo, custom-menu, featured-images, responsive, mobile-first
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #050506;
  color: #f5f5f3;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  letter-spacing: 0.01em;
  color: #f8f7f2;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(235, 207, 78, 0.85);
}

.lead-copy {
  font-size: 1.125rem;
  color: rgba(241, 241, 240, 0.82);
}

.stat-block {
  display: grid;
  gap: 0.25rem;
}

.stat-block strong {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 2rem;
  color: rgb(235, 207, 78);
}

.stat-block span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.surface-card {
  position: relative;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(235, 207, 78, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.65) 85%);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
}

.surface-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  border: 1px solid rgba(235, 207, 78, 0.12);
  pointer-events: none;
}

.academic-grid {
  display: grid;
  gap: 1.75rem;
}

.academic-grid h3 {
  font-size: 1.3rem;
}

.testimonial-quote::before,
.testimonial-quote::after {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 3.5rem;
  color: rgba(235, 207, 78, 0.45);
}

.newsletter-form input:focus,
.newsletter-form button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(235, 207, 78, 0.4);
}

/* Article Typography */
.entry-content,
.wp-block-post-content {
  line-height: 1.8;
}

.entry-content p,
.wp-block-post-content p {
  margin: 0 0 1.15rem;
}

.entry-content h1,
.wp-block-post-content h1 {
  line-height: 1.2;
  margin: 2rem 0 1rem;
}
.entry-content h2,
.wp-block-post-content h2 {
  line-height: 1.25;
  margin: 1.75rem 0 0.85rem;
}
.entry-content h3,
.wp-block-post-content h3 {
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem;
}
.entry-content h4,
.wp-block-post-content h4 {
  line-height: 1.35;
  margin: 1.25rem 0 0.6rem;
}

.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
  margin: 0 0 1.25rem 1.25rem;
}
.entry-content li,
.wp-block-post-content li {
  margin: 0.25rem 0;
}

.entry-content blockquote,
.wp-block-post-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(235, 207, 78, 0.35);
}

.entry-content figure,
.wp-block-post-content figure {
  margin: 1.5rem 0;
}
.entry-content figcaption,
.wp-block-post-content figcaption {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.5rem;
}

.entry-content .wp-block-paragraph.has-small-font-size,
.wp-block-post-content .wp-block-paragraph.has-small-font-size {
  line-height: 1.6;
}
.entry-content .wp-block-paragraph.has-large-font-size,
.wp-block-post-content .wp-block-paragraph.has-large-font-size {
  line-height: 1.5;
}

/* Blog Post Typography (single.php uses .scholarly-article + .prose) */
.scholarly-article .prose {
  line-height: 1.85;
}
.scholarly-article .prose p {
  margin: 0 0 1.35rem !important;
}
.scholarly-article .prose p + p {
  margin-top: 1.35rem !important;
}
.scholarly-article .prose h1 {
  line-height: 1.2;
  margin: 2rem 0 1rem;
}
.scholarly-article .prose h2 {
  line-height: 1.25;
  margin: 1.75rem 0 0.85rem;
}
.scholarly-article .prose h3 {
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem;
}
.scholarly-article .prose h4 {
  line-height: 1.35;
  margin: 1.25rem 0 0.6rem;
}
.scholarly-article .prose ul,
.scholarly-article .prose ol {
  margin: 0 0 1.25rem 1.25rem;
}
.scholarly-article .prose li {
  margin: 0.25rem 0;
}
.scholarly-article .prose blockquote {
  margin: 1.6rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(235, 207, 78, 0.35);
}
.scholarly-article .prose figure {
  margin: 1.5rem 0;
}
.scholarly-article .prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2rem 0;
}
.scholarly-article .prose figcaption {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.5rem;
}

/* Robust flow spacing inside post content */
.scholarly-article .prose > * + * {
  margin-top: 1.25rem;
}

/* Ensure Gutenberg paragraph blocks receive spacing */
.scholarly-article .prose .wp-block-paragraph {
  margin: 0 0 1.35rem !important;
}
.scholarly-article .prose .wp-block-group p,
.scholarly-article .prose [class*="wp-block-"] p {
  margin: 0 0 1.35rem !important;
}
