/*
Theme Name:   Postlio Blog
Theme URI:    https://example.com/postlio-blog
Description:  A warm editorial child theme of Twenty Twenty-Five, matching the Postlio marketing site aesthetic. Serif headlines, warm paper background, burnt-orange accents, generous whitespace.
Author:       Postlio
Author URI:   https://example.com
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  postlio-blog
*/

/* ============================================
   POSTLIO BLOG — Custom CSS
   Fine-tuning on top of theme.json
   ============================================ */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Body refinements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle grain texture overlay (matches marketing site) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Headlines: tighter tracking, refined italic accent option */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-heading {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Post titles on archive/home — make them feel editorial */
.wp-block-post-title a {
  text-decoration: none;
  transition: color 0.25s ease;
}
.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* Featured images — subtle rounding and shadow */
.wp-block-post-featured-image img {
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(45, 27, 14, 0.08);
}

/* Body content: longer line height for comfortable reading */
.wp-block-post-content p,
.entry-content p {
  line-height: 1.75;
}

/* Drop cap for first paragraph (optional editorial touch) */
.wp-block-post-content > p:first-of-type::first-letter {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.12em 0 0;
  color: var(--wp--preset--color--accent);
}

/* Links inside content */
.wp-block-post-content a,
.entry-content a {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.wp-block-post-content a:hover,
.entry-content a:hover {
  color: var(--wp--preset--color--accent-glow);
}

/* Blockquote — editorial style */
.wp-block-quote {
  border-left: 3px solid var(--wp--preset--color--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: 1.3em;
  line-height: 1.4;
  color: var(--wp--preset--color--deep);
}

/* Buttons — match marketing site */
.wp-block-button__link {
  border-radius: 100px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.6rem !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(232, 106, 51, 0.25);
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 106, 51, 0.35);
}

/* Site title */
.wp-block-site-title a {
  font-family: 'DM Serif Display', Georgia, serif;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Navigation links */
.wp-block-navigation a {
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

/* Subtle separator between posts on archive */
.wp-block-post-template > li {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.wp-block-post-template > li:last-child {
  border-bottom: none;
}

/* Post meta (date, author) — quieter, monospaced for label feel */
.wp-block-post-date,
.wp-block-post-author-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--muted);
}

/* Comments header */
.wp-block-comments-title {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* Code blocks */
.wp-block-code,
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  background: var(--wp--preset--color--warm);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}
.wp-block-code {
  padding: 1.2rem;
  border-left: 3px solid var(--wp--preset--color--accent);
}

/* Mobile refinements */
@media (max-width: 768px) {
  .wp-block-post-content > p:first-of-type::first-letter {
    font-size: 3.4em;
  }
}
