/*
Theme Name: A Turban in Europe
Theme URI: https://www.aturbanineurope.com
Author: Aturbanin Europe
Description: Lightweight editorial block theme for Aturbanin Europe: news, stories and perspectives on Sikh life in Italy and across Europe. No page builder, no plugin dependencies.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aturbanineurope
*/

/* Tricolour accent rule used under the header and above the footer. */
hr.wp-block-separator.ate-tricolour:not(.is-style-dots) {
	width: 100%;
	max-width: none;
	height: 4px;
	opacity: 1;
	background: linear-gradient(90deg, var(--wp--preset--color--green) 0 33.33%, var(--wp--preset--color--paper) 33.33% 66.66%, var(--wp--preset--color--red) 66.66% 100%);
	border: 0;
	margin: 0;
}

.ate-kicker {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Hero: image with a dark scrim so the headline always reads. */
.wp-block-cover.ate-hero { min-height: min(62vh, 560px) !important; }
.wp-block-cover.ate-hero.has-custom-content-position .wp-block-cover__inner-container { width: 100% !important; max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; }
.ate-hero .wp-block-cover__inner-container > .alignwide { max-width: 760px; margin-left: 0 !important; }
.ate-hero .wp-block-cover__image-background { filter: saturate(0.85); }
.ate-hero h1 { text-wrap: balance; }

/* Story cards */
.ate-card { transition: transform .2s ease; }
.ate-card:hover { transform: translateY(-3px); }
.ate-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.ate-card .wp-block-post-title a { text-decoration: none; }
.ate-card .wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Single article reading measure */
.ate-article p { hyphens: auto; }
.ate-article > p:first-of-type::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 3.6em;
	line-height: .85;
	padding: .08em .1em 0 0;
	color: var(--wp--preset--color--red);
}

/* Header navigation on small screens */
@media (max-width: 600px) {
	.ate-header .wp-block-image img { width: 160px !important; height: auto; }
	.ate-article h1, .wp-block-post-title { overflow-wrap: anywhere; hyphens: auto; }
}

/* Section headings on the home page */
.ate-section-head { border-bottom: 2px solid var(--wp--preset--color--ink); padding-bottom: .9rem; margin-bottom: var(--wp--preset--spacing--50) !important; }
.ate-section-head h2 { margin-bottom: 0; }
.ate-more a { font-weight: 600; text-decoration: none; }
.ate-more a:hover { text-decoration: underline; }

/* Lead story + side list */
.ate-lead .wp-block-post-title { line-height: 1.15; }
.ate-list { list-style: none; margin: 0; padding: 0; }
.ate-list > li { padding: 0 0 1.1rem; margin: 0 0 1.1rem; border-bottom: 1px solid var(--wp--preset--color--rule); }
.ate-list > li:last-child { border-bottom: 0; margin-bottom: 0; }
.ate-row .wp-block-post-featured-image { flex: 0 0 120px; margin: 0; }
.ate-row .wp-block-post-featured-image img { width: 120px; height: 80px; object-fit: cover; aspect-ratio: auto; }
.ate-row:hover { transform: none; }

/* Breadcrumbs & article meta */
.ate-breadcrumbs { color: var(--wp--preset--color--ink-soft); }
.ate-breadcrumbs a { color: inherit; text-decoration: none; }
.ate-breadcrumbs a:hover { color: var(--wp--preset--color--red); text-decoration: underline; }
.ate-meta p { margin: 0; }

/* Sources box at the end of articles */
.ate-sources { margin-top: var(--wp--preset--spacing--50); padding: 1.25rem 1.5rem; background: var(--wp--preset--color--white); border-left: 4px solid var(--wp--preset--color--green); font-size: var(--wp--preset--font-size--small); }
.ate-sources h3 { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--x-small); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5rem; }
.ate-sources ul { margin: 0; padding-left: 1.1rem; }
.ate-sources > :first-child::first-letter { all: unset; }

/* Instagram band */
.ate-instagram .ate-ig-icon { color: var(--wp--preset--color--red); flex: 0 0 auto; }
.ate-soon { border: 1px dashed var(--wp--preset--color--ink-soft); padding: .55rem 1rem; margin: 0; color: var(--wp--preset--color--ink-soft); font-weight: 600; }

:where(a):focus-visible { outline: 3px solid var(--wp--preset--color--green); outline-offset: 2px; }
