/*
Theme Name: Cedarline
Theme URI: https://syednauman.com
Author: Syed Nauman
Author URI: https://syednauman.com
Description: Cedarline is a warm, editorial block theme for writers, designers and independent creatives. It pairs a quiet paper-toned palette with an elegant serif and a clean sans, and ships with a blog home, a portfolio-style project grid, and ready-made block patterns for hero, about, and call-to-action sections. Fully editable in the Site Editor, with light, dark and sage style variations, wide alignment support, and keyboard-friendly focus states. No bundled plugins and no custom options screen.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
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: cedarline
Tags: blog, portfolio, one-column, two-columns, wide-blocks, block-patterns, block-styles, custom-colors, custom-logo, editor-style, featured-images, full-site-editing, style-variations, template-editing, threaded-comments, translation-ready, accessibility-ready
*/

/* Styles are driven by theme.json. Only what theme.json cannot express lives here. */

html {
	scroll-behavior: smooth;
}

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

/* Visible keyboard focus everywhere. */
:where(a, button, input, textarea, select, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Post card hover on the project grid. */
.cedarline-card {
	transition: transform 0.25s ease;
}
.cedarline-card:hover {
	transform: translateY(-3px);
}
.cedarline-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}
.cedarline-card:hover .wp-block-post-featured-image img {
	transform: scale(1.02);
}
.cedarline-card .wp-block-post-featured-image {
	overflow: hidden;
}

/* Small caps style for meta lines. */
.is-style-cedarline-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* Header navigation underline on hover. */
.wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-underline-offset: 0.35em;
}

/* Category labels read as eyebrows, so keep them clean until hovered. */
.wp-block-post-terms a {
	text-decoration: none;
}
.wp-block-post-terms a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
