/*
Theme Name: Rota Serbest
Theme URI: https://www.wpdenizi.com/rota-serbest
Author: WP Denizi
Author URI: https://www.wpdenizi.com
Description: Block-based (FSE) theme for freelancers and personal brands: a home page that introduces you with your availability, a portfolio of case studies with a category filter, service packages with a price table, a multi-step quote form with file upload, booking a call on a free time, resume and skills that print as a PDF, client names, testimonials and quick contact. Six concepts (designer, developer, photographer, coach, translator, tutor); locally hosted fonts.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rota-serbest
Update URI: https://www.wpdenizi.com/rota-serbest
Domain Path: /languages
Tags: portfolio, blog, full-site-editing, block-patterns, block-styles, style-variations, wide-blocks, editor-style, custom-colors, custom-menu, featured-images, translation-ready, accessibility-ready, one-column
*/

/*
 * Styles live in theme.json. This file only holds the few rules
 * theme.json cannot express.
 */

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	z-index: 100000;
}

/* Card: is-style-rota-card block style (functions.php) */
.is-style-rota-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--card);
}

/* Secondary button: is-style-outline */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--line-strong);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--contrast);
}

/* Accent button: for the single main call on a page */
.wp-block-button.is-style-rota-accent > .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

/* Badge: is-style-rota-badge (paragraph) */
.is-style-rota-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

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

.rota-plain-list {
	list-style: none;
}

.rota-plain-list a,
.rs-footer a,
.rs-header .wp-block-navigation a,
.rs-post-title a,
.wp-block-post-title a {
	text-decoration: none;
}

.rota-plain-list a:hover,
.rs-footer a:hover,
.rs-post-title a:hover,
.wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Breathing room above headings inside page and post content. */
.wp-block-post-content > :is(h2, h3):not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--70);
}

/* Header */
.rs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base-2) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.admin-bar .rs-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .rs-header {
		top: 0;
	}
}

.rs-brand .wp-block-site-title {
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.rs-brand .wp-block-site-title a {
	text-decoration: none;
}

.rs-header .wp-block-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.rs-header .wp-block-navigation a:hover,
.rs-header .wp-block-navigation .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

.rs-header .wp-block-navigation__responsive-container-open {
	min-width: 44px;
	min-height: 44px;
}

.rs-header-cta .wp-block-button__link {
	padding: 0.625rem 1.125rem;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 781px) {
	.rs-hide-mobile {
		display: none !important;
	}
}

/* Sections */
.rs-band {
	border-top: 1px solid var(--wp--preset--color--line);
}

.rs-lead {
	max-width: 60ch;
	color: var(--wp--preset--color--contrast-2);
}

/* Blog cards */
.rs-posts .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--lg);
}

.rs-posts .wp-block-post {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

/* Single project */
.rs-project-head .wp-block-post-excerpt {
	color: var(--wp--preset--color--contrast-2);
}

.rs-project-cover img {
	border-radius: var(--wp--custom--radius--lg);
}

.rs-sticky {
	position: sticky;
	top: 96px;
}

.rs-project-body .wp-block-gallery img,
.rs-project-body .wp-block-image img {
	border-radius: var(--wp--custom--radius--md);
}

/* Footer */
.rs-footer .wp-block-navigation a {
	min-height: 32px;
	display: inline-flex;
	align-items: center;
}

.rs-cta-band h2 {
	text-wrap: balance;
}

.rs-cta-band .rs-btn-ghost {
	color: var(--wp--preset--color--on-dark);
	border-color: color-mix(in srgb, var(--wp--preset--color--on-dark) 45%, transparent);
}

.rs-cta-band .rs-btn-ghost:hover {
	border-color: var(--wp--preset--color--on-dark);
	color: var(--wp--preset--color--on-dark);
}

.rs-footer .rs-qc a {
	color: var(--wp--preset--color--on-dark);
	border-color: color-mix(in srgb, var(--wp--preset--color--on-dark) 35%, transparent);
}

.rs-footer .rs-qc a:hover {
	border-color: var(--wp--preset--color--on-dark);
}

.rs-cta-band .rs-btn-primary {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

.rs-cta-band .rs-btn-primary:hover {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--on-accent);
}

.wp-block-comment-content p {
	margin: 0.25rem 0;
}

.comment-respond textarea {
	width: 100%;
}

@media (max-width: 781px) {
	.rs-sticky {
		position: static;
	}
}

@media print {
	.rs-header,
	.rs-footer,
	.wp-block-template-part,
	.rota-cookie,
	.rota-top {
		display: none !important;
	}

	body {
		background: #fff !important;
	}

	.wp-block-post-title {
		display: none;
	}
}

/* Header stays on one row: when the menu does not fit next to the name and
   the tools (tablets, long menus), the menu button is used instead (0.1.2). */
@media (min-width: 600px) {
	header .wp-block-navigation .wp-block-navigation__container {
		flex-wrap: nowrap;
	}

	header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
		white-space: nowrap;
	}
}

header.rota-nav-collapsed .wp-block-navigation {
	margin-left: auto;
}

header.rota-nav-collapsed .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: flex;
}

header.rota-nav-collapsed .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	display: none;
}

/* Phone menu: even rows (the 44px tap height applies to the inline menu only). */
.rs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation a {
	display: block;
	min-height: 0;
}
