/*
Theme Name: Stranger
Theme URI: https://themeshaper.com/stranger/
Author: Automattic
Author URI: http://Automattic
Description: Stranger is a cinematic theme that evokes unsettling stories, glitched memories, and speculative dreams. Designed with a techno-horror aesthetic, it features custom navigation, neon-outlined buttons, and eerie typography. Step beyond, the Framebreaker awaits.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stranger
Tags: blog, one-column, wide-blocks, block-styles, featured-images, full-site-editing, rtl-language-support, style-variations, threaded-comments, translation-ready

/* =========================================================
   Typography & Text Enhancements
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
blockquote {
  text-wrap: pretty;
}

body {
  text-rendering: geometricprecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

  /* =========================================================
    Sticky Header at the Bottom
    ========================================================= */

.sticky-header {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* =========================================================
   Navigation Icon
   ========================================================= */

.wp-block-navigation__responsive-container-open svg {
  width: 48px !important;
  height: 48px !important;
}

/* =========================================================
   Default and Custom Links
   ========================================================= */
   
    /* Button Link Animation */ 
.wp-block-button__link {
	transition: all 0.3s ease;
}

   /* Unified Link Underline Style Across the Theme */
a {
  text-decoration-thickness: 1px !important;
  text-decoration-style: solid !important;
  text-underline-offset: 4px;
}

   /* Custom 'Read More' Links */
.read-more-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  background: var(--wp--preset--color--quaternary) !important;
  border: none;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1px var(--wp--preset--color--contrast);
  text-stroke: 1px var(--wp--preset--color--contrast);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

.read-more-link::before,
.read-more-link::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--wp--preset--color--quaternary);
  border: 1px solid var(--wp--preset--color--contrast);
  transition: box-shadow 0.3s ease;
}

.read-more-link::before {
  margin-bottom: 12px;
}

.read-more-link::after {
  margin-top: 12px;
}

.read-more-link:hover {
  text-shadow:
    0 0 8px var(--wp--preset--color--contrast),
    1px 0 var(--wp--preset--color--contrast),
    -1px 0 var(--wp--preset--color--contrast),
    0 1px var(--wp--preset--color--contrast),
    0 -1px var(--wp--preset--color--contrast);
}

.read-more-link:hover::before,
.read-more-link:hover::after {
  box-shadow: 0 0 8px var(--wp--preset--color--contrast);
}

/* =========================================================
   Media & Image Handling
   ========================================================= */

.wp-block-image img {
  display: block;
}

.hover-zoom-tilt img {
  transition: transform 0.25s ease;
  transform-origin: center center;
}

.hover-zoom-tilt:hover img {
  transform: scale(1.025) rotate(-2deg);
}

   /* Unique Neon Glow on Hover */
.glow-hover:hover {
  box-shadow: 0 0 8px var(--wp--preset--color--contrast);
  filter: drop-shadow(0 0 8px var(--wp--preset--color--contrast));
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}