/*
Theme Name: A Couple of Stars
Theme URI: https://jorgesv.com
Author: Jorge Sánchez Vega
Author URI: https://jorgesv.com
Description: Un tema editorial de bloques, ligero y sereno, diseñado para publicar ideas con claridad.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a-couple-of-stars
Tags: blog, block-patterns, block-styles, full-site-editing, accessibility-ready, translation-ready, one-column, custom-colors, custom-menu, editor-style, featured-images, rtl-language-support, threaded-comments, wide-blocks
*/

/*
 * Most design tokens and block styles live in theme.json so they remain editable
 * in Global Styles. This small stylesheet only handles interactions and responsive
 * details that theme.json cannot express elegantly.
 */

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

.site-shell {
	min-height: 100svh;
}

.site-header {
	position: relative;
	z-index: 10;
}

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

.site-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--contrast);
}

.site-intro {
	min-height: clamp(15rem, 38vh, 28rem);
	align-content: end;
}

.eyebrow {
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.editorial-list .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--50);
}

.editorial-list .wp-block-post:first-child {
	border-top: 0;
	padding-top: 0;
}

.editorial-list .wp-block-post-title a {
	text-decoration: none;
}

.editorial-list .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.editorial-list .wp-block-post-excerpt__more-link {
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-left: 0.2rem;
	text-decoration: none;
}

.editorial-list .wp-block-post-excerpt__more-link::after,
.is-style-arrow-link a::after {
	content: " ↗";
}

.post-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.post-meta a {
	color: inherit;
}

.reading-column :where(p, li) {
	text-wrap: pretty;
}

.single-entry > .entry-rail {
	box-sizing: border-box;
	margin-inline: auto !important;
	max-width: var(--wp--style--global--content-size);
	width: 100%;
}

.single-entry .entry-header > * {
	margin-inline-start: 0 !important;
}

.single-entry .single-title {
	font-weight: 600;
	margin-inline: 0 auto !important;
	max-width: 100%;
	text-indent: -0.025em;
	text-wrap: balance;
}

.single-entry .single-deck {
	font-size: clamp(1.12rem, 1.8vw, 1.3rem) !important;
	font-weight: 400;
	line-height: 1.55;
	margin-inline: 0 auto !important;
	max-width: 38rem;
	text-wrap: pretty;
}

.single-entry .reading-column {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.75;
}

.single-entry .entry-footer > * {
	margin-inline-start: 0;
}

.reading-column > :where(h2, h3, h4) {
	scroll-margin-top: 2rem;
}

.reading-column > h2 {
	margin-top: var(--wp--preset--spacing--70);
}

.reading-column > h3 {
	margin-top: var(--wp--preset--spacing--60);
}

.reading-column :where(img, video) {
	height: auto;
}

.wp-block-quote.is-style-plain {
	border-left: 0;
	padding-left: 0;
}

.wp-block-quote.is-style-plain p {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}

.wp-block-separator {
	opacity: 1;
}

.wp-block-search__input {
	min-width: 0;
}

.wp-block-search__button {
	cursor: pointer;
}

.wp-block-comments-query-loop,
.wp-block-post-comments-form {
	margin-top: var(--wp--preset--spacing--70);
}

.comments-area {
	color: var(--wp--preset--color--contrast);
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 88%, transparent);
	font-size: 0.94rem;
	font-weight: 400;
	line-height: 1.65;
}

.comments-area :where(.wp-block-comments-title, .comment-reply-title) {
	font-size: clamp(1.3rem, 2vw, 1.6rem) !important;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.comments-area :where(.wp-block-comment-author-name, .wp-block-comment-date) {
	font-size: var(--wp--preset--font-size--small);
}

.comments-area .wp-block-comment-content {
	color: var(--wp--preset--color--muted);
}

.comments-area :where(input:not([type="submit"]), textarea) {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 3px;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	padding: 0.75rem;
}

.comments-area textarea {
	min-height: 10rem;
}

.wp-block-comment-template {
	padding-left: 0;
}

.wp-block-comment-template li {
	list-style: none;
}

.newsletter-page .wp-block-post-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin-bottom: var(--wp--preset--spacing--40);
}

.newsletter-shortcode-host {
	margin-top: var(--wp--preset--spacing--40);
}

.newsletter-shortcode-host > :first-child {
	margin-top: 0;
}

.newsletter-shortcode-host > :where(ul, ol) {
	list-style: none;
	padding-left: 0;
}

.newsletter-shortcode-host > :where(ul, ol) > li,
.newsletter-shortcode-host :where(article, [class*="newsletter-item"], [class*="newsletter-post"]) {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--50);
}

.newsletter-shortcode-host > :where(ul, ol) > li:first-child {
	border-top: 0;
	padding-top: 0;
}

.newsletter-shortcode-host :where(img) {
	aspect-ratio: 3 / 2;
	border-radius: 3px;
	display: block;
	filter: saturate(0.88);
	height: auto;
	object-fit: cover;
	max-width: 100%;
}

.newsletter-shortcode-host :where(h2, h3) {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 600;
	line-height: 1.22;
	margin-block: var(--wp--preset--spacing--20);
	text-wrap: balance;
}

.newsletter-shortcode-host :where(h2, h3) a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.newsletter-shortcode-host :where(h2, h3) a:hover,
.newsletter-shortcode-host :where(h2, h3) a:focus-visible {
	color: var(--wp--preset--color--link);
}

.newsletter-shortcode-host :where(p) {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.newsletter-shortcode-host :where(time, [class*="date"], [class*="meta"]) {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-author {
	align-items: center;
	font-size: 0.95rem;
}

.wp-block-post-author__avatar img {
	border-radius: 50%;
}

.wp-block-post-author__byline,
.wp-block-post-author__bio {
	color: var(--wp--preset--color--muted);
}

.reading-column table {
	border-collapse: collapse;
	font-size: 0.95rem;
	width: 100%;
}

.reading-column :where(th, td) {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.7rem;
	text-align: left;
	vertical-align: top;
}

.reading-column th {
	font-weight: 600;
}

.reading-column :where(input:not([type="submit"]), textarea, select) {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 3px;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	max-width: 100%;
	padding: 0.7rem;
}

.reading-column :where(iframe, embed, object) {
	max-width: 100%;
}

.reading-column .wp-block-gallery img {
	border-radius: 3px;
}

.site-footer {
	margin-block-start: var(--wp--preset--spacing--60);
}

.site-footer a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--contrast);
}

.not-found-code {
	font-size: clamp(6rem, 20vw, 14rem);
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 0.8;
}

@media (max-width: 700px) {
	.site-header {
		padding-top: var(--wp--preset--spacing--40) !important;
	}

	.site-intro {
		min-height: clamp(13rem, 32vh, 20rem);
	}

	.single-entry .single-title {
		font-size: 2.25rem !important;
	}

	.single-entry .single-deck {
		font-size: 1.08rem !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		padding: var(--wp--preset--spacing--50);
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: flex-start;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
		align-items: flex-start;
		width: 100%;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container .wp-block-navigation-item {
		align-items: flex-start;
		justify-content: flex-start;
		margin-inline: 0;
		width: 100%;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		box-sizing: border-box;
		font-size: var(--wp--preset--font-size--large);
		text-align: left;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
