/*
Theme Name: AriNova
Theme URI: https://arihub.com/arinova/
Author: AriHub
Author URI: https://arihub.com/
Description: AriNova is an editorial block theme for news sites, magazines and publishers. It ships a lead-story front page, category and topic archives, a readable single-post layout, "Just in" and latest-news patterns, a newsletter call to action, six style variations including a dark Night style, and self-hosted Source Serif 4 and Inter fonts. Built for the Site Editor with theme.json, accessible by default and styled to work with the AriHub plugins.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arinova
Tags: news, blog, one-column, two-columns, wide-blocks, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, style-variations, template-editing, threaded-comments, translation-ready

AriNova, Copyright 2026 AriHub.
AriNova is distributed under the terms of the GNU GPL v2 or later.
*/

/*
 * Most styles live in theme.json. This file holds only what theme.json cannot express yet.
 */

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

/* Skip link and screen-reader text, in case a block does not provide its own. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--contrast);
	display: block;
	height: auto;
	left: 8px;
	padding: 12px 16px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Long words and URLs wrap instead of pushing the page sideways. */
:where(.wp-block-post-content, .wp-block-post-title, .wp-block-post-excerpt, .wp-block-comment-content, .wp-block-query-title, .wp-block-site-title) {
	overflow-wrap: break-word;
}

/* Preformatted text scrolls inside its own box. */
pre {
	max-width: 100%;
	overflow-x: auto;
}

/* Images never overflow their column. */
img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* Topic chips: tag cloud styled as pills. */
.is-style-arinova-chips.wp-block-tag-cloud a,
.is-style-arinova-chips.wp-block-post-terms a {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 600;
	margin: 0 0.375rem 0.5rem 0;
	padding: 0.375rem 0.875rem;
	text-decoration: none;
}

.is-style-arinova-chips.wp-block-tag-cloud a:hover,
.is-style-arinova-chips.wp-block-post-terms a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Post tags as chips: hide the comma separators and reset the label style. */
.is-style-arinova-chips.wp-block-post-terms {
	letter-spacing: normal;
	text-transform: none;
}

.is-style-arinova-chips.wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

/* Numbered list of headlines. */
.is-style-arinova-numbered .wp-block-post-template {
	counter-reset: arinova-rank;
}

.is-style-arinova-numbered .wp-block-post-template > li {
	counter-increment: arinova-rank;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 2.25rem 1fr;
}

.is-style-arinova-numbered .wp-block-post-template > li::before {
	color: var(--wp--preset--color--accent);
	content: counter(arinova-rank);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1;
}

/* Section label: small uppercase heading with a rule. */
.is-style-arinova-kicker {
	border-top: 3px solid var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	letter-spacing: 0.08em;
	padding-top: 0.75rem;
	text-transform: uppercase;
}

/* The footer sits flush under the last section. */
.wp-site-blocks > footer:last-child,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-block-start: 0;
}

/* Breathing room between page numbers. */
.wp-block-query-pagination-numbers .page-numbers {
	padding: 0 0.375em;
}

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