/*
Theme Name: MY BYD Review
Theme URI: https://mybydreview.com
Author: MY BYD review
Author URI: https://mybydreview.com
Description: A quiet, premium editorial block theme for a personal blog about owning a BYD Han EV in Europe. Warm paper palette, Fraunces display serif paired with Hanken Grotesk, generous whitespace, and a single restrained accent. Full-site editing (FSE), no runtime CDN dependencies.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mybydreview
Tags: blog, one-column, custom-colors, custom-menu, editor-style, block-styles, full-site-editing, wide-blocks, translation-ready
*/

/* -----------------------------------------------------------------------------
   Supplementary styles.
   Design tokens live in theme.json. This file holds only the refinements that
   theme.json cannot express (offsets, focus rings, hover micro-interactions).
   -------------------------------------------------------------------------- */

:root {
	--mbr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Smooth, premium reading rhythm */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

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

/* Selection */
::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* Links: quiet underline that sits away from the baseline */
a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color 0.2s var(--mbr-ease), text-decoration-color 0.2s var(--mbr-ease);
}

/* Visible, on-brand focus for keyboard users */
:where(a, button, input, textarea, select, .wp-block-button__link, .wp-block-navigation-item__content):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 1px;
}

/* Fraunces optical sizing — let the variable axis breathe at display sizes */
h1, h2, .wp-block-post-title, .wp-block-site-title {
	font-optical-sizing: auto;
	font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
}
h3, h4, h5, h6 {
	font-optical-sizing: auto;
	font-variation-settings: "opsz" 32;
}

/* ---- Post list (home / archive): editorial index, no cards ---------------- */
.mbr-post-index .wp-block-post-title a {
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent));
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.4s var(--mbr-ease);
}
.mbr-post-index .wp-block-post-title a:hover {
	background-size: 100% 1px;
}
.mbr-post-index li:not(:last-child) {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Meta row */
.mbr-meta,
.mbr-meta * {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---- Long-form content polish -------------------------------------------- */
.mbr-content p {
	max-width: 42rem;
}
/* Lead paragraph: first paragraph after the post title reads larger */
.mbr-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--wp--preset--color--contrast);
}

/* Images sit slightly wider than text for a premium editorial feel */
.mbr-content figure img,
.mbr-content .wp-block-image img {
	border-radius: 2px;
}

/* Thin rule accent */
.wp-block-separator.is-style-wide,
.wp-block-separator:not(.is-style-dots) {
	border: none;
	border-top: 1px solid var(--wp--preset--color--line);
	opacity: 1;
}

/* ---- Header ---------------------------------------------------------------- */
.mbr-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Navigation submenu / overlay refinement */
.wp-block-navigation .wp-block-navigation-item__content {
	transition: color 0.2s var(--mbr-ease);
}

/* ---- Footer ---------------------------------------------------------------- */
.mbr-footer {
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ---- Buttons: subtle motion ---------------------------------------------- */
.wp-block-button__link {
	transition: background-color 0.25s var(--mbr-ease), color 0.25s var(--mbr-ease);
}

/* ---- Plain list style (pros/cons) ---------------------------------------- */
.wp-block-list.is-style-none {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}
.wp-block-list.is-style-none > li {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.wp-block-list.is-style-none > li:last-child {
	border-bottom: none;
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}
