/*
Theme Name: Suicide Fire
Theme URI: https://suicidefire.com
Author: Raphael Dib
Author URI: https://suicidefire.com
Description: A stoic, minimalist block theme for SuicideFIRE — a publication on financial independence, mortality, and living deliberately. Serif typography, generous whitespace, restrained palette.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
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: suicidefire
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments
*/

/* ------------------------------------------------------------------
   Suicide Fire — supplemental styles
   Most styling is in theme.json; this file handles the polish
   that theme.json can't express cleanly.
   ------------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Drop-cap on the first paragraph of a single post */
.wp-block-post-content > p.has-drop-cap:first-of-type::first-letter,
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 4.5em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.12em 0 0;
  font-weight: 400;
  color: var(--wp--preset--color--accent);
}

/* Body links: subtle underline, accent on hover */
.entry-content a,
.wp-block-post-content a {
  color: var(--wp--preset--color--foreground);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--wp--preset--color--subtle);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
  color: var(--wp--preset--color--accent);
  text-decoration-color: var(--wp--preset--color--accent);
}

/* Pull-quote / blockquote */
.wp-block-quote,
blockquote {
  border-left: 2px solid var(--wp--preset--color--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--wp--preset--color--muted);
}

.wp-block-quote p,
blockquote p {
  font-size: 1.15em;
  line-height: 1.6;
}

/* Horizontal rule — a single hairline */
hr,
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--wp--preset--color--subtle);
  margin: 3rem auto;
  max-width: 4rem;
}

.wp-block-separator.is-style-wide {
  max-width: 100%;
}

/* Post title on archive: hover shifts to accent */
.wp-block-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* Navigation: spacing & hover */
.wp-block-navigation__container .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.15s ease;
}

.wp-block-navigation__container .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent);
}

/* Code blocks */
.wp-block-code,
pre {
  background: #1a1a1a;
  color: #f8f5ef;
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
}

code {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.92em;
  background: var(--wp--preset--color--subtle);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.wp-block-code code,
pre code {
  background: transparent;
  padding: 0;
}

/* Read-more pseudo-arrow */
.read-more::after {
  content: " →";
  transition: transform 0.2s ease;
  display: inline-block;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* Subtle ink-stamp accent for the site title in header (optional class) */
.site-title-stamp {
  position: relative;
  display: inline-block;
}

.site-title-stamp::after {
  content: "";
  position: absolute;
  right: -0.6em;
  top: 0.1em;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--wp--preset--color--accent);
  opacity: 0.85;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Mobile: tighten the editorial feel */
@media (max-width: 600px) {
  .wp-block-post-content > p.has-drop-cap:first-of-type::first-letter,
  .single .entry-content > p:first-of-type::first-letter {
    font-size: 3.5em;
  }
}
