/*!
Theme Name: SxryS
Theme URI: https://example.com/sxrys
Author: SxryS
Author URI: https://example.com
Description: A light and airy WordPress theme with a gentle dreamy touch: soft lavender and blush gradients, frosted-glass header, rounded cards and a clean, readable layout. Features a blog grid, sidebar and footer widgets, custom colors, sticky posts, threaded comments, translation and RTL support.
Version: 1.2.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sxrys
Tags: custom-background, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, rtl-language-support, sticky-post, theme-options, blog, news, footer-widgets, block-styles, wide-blocks, editor-style

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

SxryS is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom properties
# Generic
	- Normalize (trimmed)
	- Box sizing
# Base
	- Dreamy background
	- Typography
	- Elements
	- Links
	- Forms & buttons
# Layout
	- Containers
	- Content / sidebar grid
# Components
	- Header & navigation
	- Header search
	- Posts and pages (cards)
	- Single post
	- Pagination
	- Comments
	- Widgets
	- Footer & back-to-top
	- 404 page
# Media
	- Captions
	- Galleries
# Blocks (Gutenberg)
# Plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
	- Motion (reveal, float, reduced motion)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom properties
--------------------------------------------------------------*/
:root {
	--sx-c-bg: #faf8ff;
	--sx-c-bg-soft: #f4efff;
	--sx-c-surface: #ffffff;
	--sx-c-text: #3a3154;
	--sx-c-text-soft: #716a8e;
	--sx-c-text-faint: #9d96ba;
	--sx-c-accent: #8a6cf0;
	--sx-c-accent-deep: #6d4ae0;
	--sx-c-accent-soft: #f2a3c8;
	--sx-c-mint: #7fd6cf;
	--sx-c-danger: #e0557c;
	--sx-c-border: rgba(126, 100, 226, 0.16);
	--sx-c-border-strong: rgba(126, 100, 226, 0.3);

	--sx-grad: linear-gradient(135deg, var(--sx-c-accent) 0%, var(--sx-c-accent-soft) 100%);
	--sx-grad-soft: linear-gradient(135deg, rgba(138, 108, 240, 0.1) 0%, rgba(242, 163, 200, 0.12) 100%);

	--sx-radius-sm: 10px;
	--sx-radius-md: 16px;
	--sx-radius-lg: 22px;
	--sx-radius-pill: 999px;

	--sx-shadow-sm: 0 4px 14px rgba(109, 74, 224, 0.08);
	--sx-shadow-md: 0 10px 30px rgba(109, 74, 224, 0.12);
	--sx-shadow-lg: 0 18px 44px rgba(109, 74, 224, 0.16);
	--sx-glow: 0 8px 24px rgba(138, 108, 240, 0.35);

	--sx-font-heading: "Quicksand", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--sx-font-body: "Nunito", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--sx-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

	--sx-max-w: 1140px;
	--sx-max-w-narrow: 800px;
	--sx-header-h: 76px;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize (trimmed)
--------------------------------------------- */
html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--sx-header-h) + 24px);
}

body {
	margin: 0;
	overflow-x: hidden;
}

main {
	display: block;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

pre {
	font-family: var(--sx-font-mono);
	font-size: 0.95em;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: 700;
}

code,
kbd,
samp {
	font-family: var(--sx-font-mono);
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none !important;
}

/* Box sizing
--------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Dreamy background
--------------------------------------------- */
body {
	background-color: var(--sx-c-bg);
	background-image:
		radial-gradient(44rem 44rem at 108% -10%, rgba(178, 139, 240, 0.16), transparent 62%),
		radial-gradient(36rem 36rem at -14% 24%, rgba(242, 163, 200, 0.14), transparent 60%),
		radial-gradient(32rem 32rem at 82% 108%, rgba(127, 214, 207, 0.12), transparent 62%);
	background-attachment: fixed;
	color: var(--sx-c-text);
	font-family: var(--sx-font-body);
	font-size: 1rem;
	line-height: 1.75;
}

::selection {
	background: rgba(138, 108, 240, 0.25);
	color: var(--sx-c-text);
}

/* Soft custom scrollbar */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(138, 108, 240, 0.35) transparent;
}

*::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background: rgba(138, 108, 240, 0.35);
	border-radius: var(--sx-radius-pill);
}

*::-webkit-scrollbar-thumb:hover {
	background: rgba(138, 108, 240, 0.55);
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--sx-c-text);
	font-family: var(--sx-font-body);
	font-size: 1rem;
	line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	color: var(--sx-c-text);
	font-family: var(--sx-font-heading);
	font-weight: 700;
	line-height: 1.3;
	margin: 1.6em 0 0.6em;
}

h1 {
	font-size: 2.1rem;
}

h2 {
	font-size: 1.7rem;
}

h3 {
	font-size: 1.35rem;
}

h4 {
	font-size: 1.15rem;
}

h5 {
	font-size: 1.05rem;
}

h6 {
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	border: 0;
	margin: 0 0 1.5em;
	padding: 1.4em 1.6em;
	background: var(--sx-grad-soft);
	border-radius: var(--sx-radius-md);
	border-inline-start: 4px solid;
	border-image: var(--sx-grad) 1;
}

blockquote p:last-of-type {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: 0.8em;
	font-size: 0.9em;
	color: var(--sx-c-text-soft);
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #2c2645;
	border-radius: var(--sx-radius-md);
	color: #eae6ff;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.4em 1.6em;
}

code,
kbd,
tt,
var {
	font-family: var(--sx-font-mono);
}

:not(pre) > code {
	background: rgba(138, 108, 240, 0.1);
	border-radius: 6px;
	color: var(--sx-c-accent-deep);
	padding: 0.15em 0.45em;
}

kbd {
	background: var(--sx-c-bg-soft);
	border: 1px solid var(--sx-c-border);
	border-bottom-width: 3px;
	border-radius: 6px;
	padding: 0.15em 0.5em;
}

abbr,
acronym {
	border-bottom: 1px dotted var(--sx-c-text-faint);
	cursor: help;
}

mark,
ins {
	background: rgba(242, 163, 200, 0.45);
	border-radius: 4px;
	padding: 0 0.2em;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
hr {
	background-color: var(--sx-c-border);
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em;
	padding-inline-start: 1.6em;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 0 1.5em 1.5em;
}

embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	border-collapse: collapse;
	margin: 0 0 1.5em;
	width: 100%;
}

th {
	font-family: var(--sx-font-heading);
}

th,
td {
	border-bottom: 1px solid var(--sx-c-border);
	padding: 0.7em 0.9em;
	text-align: start;
}

thead th {
	background: var(--sx-c-bg-soft);
	border-bottom: 2px solid var(--sx-c-border-strong);
}

/* Links
--------------------------------------------- */
a {
	color: var(--sx-c-accent-deep);
	text-decoration: none;
	transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus,
a:active {
	color: var(--sx-c-accent);
}

.entry-content a,
.comment-content a,
.page-content a,
.entry-summary a {
	background-image: linear-gradient(transparent 62%, rgba(138, 108, 240, 0.22) 62%);
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.entry-content a:hover,
.entry-content a:focus,
.comment-content a:hover,
.comment-content a:focus,
.page-content a:hover,
.page-content a:focus,
.entry-summary a:hover,
.entry-summary a:focus {
	background-image: linear-gradient(transparent 62%, rgba(242, 163, 200, 0.5) 62%);
	color: var(--sx-c-accent-deep);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--sx-c-accent);
	outline-offset: 2px;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms & buttons
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
	appearance: none;
	background: var(--sx-grad);
	border: 1px solid transparent;
	border-radius: var(--sx-radius-pill);
	box-shadow: var(--sx-shadow-sm);
	color: #ffffff;
	cursor: pointer;
	font-family: var(--sx-font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.75em 1.6em;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	box-shadow: var(--sx-glow);
	filter: saturate(1.1);
	transform: translateY(-2px);
}

button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
.wp-block-button__link:active {
	transform: translateY(0);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	background-color: var(--sx-c-surface);
	border: 1.5px solid var(--sx-c-border);
	border-radius: var(--sx-radius-md);
	color: var(--sx-c-text);
	padding: 0.65em 0.95em;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	border-color: var(--sx-c-accent);
	box-shadow: 0 0 0 4px rgba(138, 108, 240, 0.15);
	outline: none;
}

select {
	background-color: var(--sx-c-surface);
	border: 1.5px solid var(--sx-c-border);
	border-radius: var(--sx-radius-sm);
	color: var(--sx-c-text);
	padding: 0.5em 0.8em;
}

textarea {
	width: 100%;
}

::placeholder {
	color: var(--sx-c-text-faint);
	opacity: 1;
}

/* Search form (shared by header, widgets, 404) */
.search-form {
	display: flex;
	gap: 10px;
}

.search-form label {
	flex: 1 1 auto;
}

.search-form .search-field {
	width: 100%;
}

.search-form .search-submit {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 6px;
	justify-content: center;
}

.search-form .search-submit svg {
	height: 1em;
	width: 1em;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* Containers
--------------------------------------------- */
.container {
	margin-inline: auto;
	max-width: var(--sx-max-w);
	padding-inline: 20px;
	width: 100%;
}

.site-main {
	padding-block: 40px 72px;
}

/* Content / sidebar grid */
.content-area {
	display: grid;
	gap: 44px;
	grid-template-columns: minmax(0, 1fr) 320px;
}

.content-area.no-sidebar,
body.no-sidebar .content-area {
	grid-template-columns: minmax(0, 1fr);
}

.single-area,
.page-area {
	margin-inline: auto;
	max-width: var(--sx-max-w-narrow);
	padding-inline: 20px;
	width: 100%;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header & navigation
--------------------------------------------- */
.site-header {
	background: rgba(250, 248, 255, 0.82);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid var(--sx-c-border);
	position: sticky;
	top: 0;
	transition: box-shadow 0.25s ease, transform 0.3s ease;
	z-index: 1000;
}

.site-header.is-scrolled {
	box-shadow: var(--sx-shadow-md);
}

/* Hidden while scrolling down; JS removes it on scroll-up or hover near the top. */
.site-header.is-hidden {
	transform: translateY(-110%);
}

.site-header::before {
	background: var(--sx-grad);
	content: "";
	display: block;
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.site-header-inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: var(--sx-header-h);
}

/* Branding */
.site-branding {
	align-items: center;
	display: flex;
	flex: 0 1 auto;
	gap: 14px;
	min-width: 0;
}

.custom-logo-link {
	display: inline-flex;
	flex: 0 0 auto;
}

.custom-logo {
	border-radius: var(--sx-radius-md);
	display: block;
	max-height: 52px;
	width: auto;
}

.site-title {
	font-family: var(--sx-font-heading);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	white-space: nowrap;
}

.site-title a {
	background: var(--sx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--sx-c-text);
	-webkit-text-fill-color: transparent;
	text-decoration: none;
}

@supports not (background-clip: text) {
	.site-title a {
		-webkit-text-fill-color: currentColor;
		color: var(--sx-c-accent-deep);
	}
}

.site-description {
	color: var(--sx-c-text-soft);
	font-size: 0.85rem;
	line-height: 1.4;
	margin: 0;
}

/* Primary navigation */
.main-navigation {
	flex: 1 1 auto;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation ul ul {
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-md);
	box-shadow: var(--sx-shadow-md);
	display: block;
	inset-inline-start: 0;
	opacity: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	visibility: hidden;
	z-index: 99999;
}

.main-navigation ul ul ul {
	inset-inline-start: 100%;
	top: 0;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul,
.main-navigation ul li:focus-within > ul {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.main-navigation ul ul a {
	padding: 10px 14px;
	width: 220px;
}

.main-navigation li {
	position: relative;
}

/* Dropdown caret: rotates when the submenu opens. */
.main-navigation .menu-item-has-children > a::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	display: inline-block;
	height: 5px;
	margin-inline-start: 6px;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
	vertical-align: middle;
	width: 5px;
}

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation .menu-item-has-children.focus > a::after,
.main-navigation .menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg) translateY(2px);
}

.main-navigation a {
	color: var(--sx-c-text);
	display: block;
	font-family: var(--sx-font-heading);
	font-weight: 600;
	padding: 10px 16px;
	text-decoration: none;
}

.main-navigation > ul > li > a {
	position: relative;
}

/* Soft pill that fades and slides in on hover/focus (top level only). */
.main-navigation > ul > li > a::before {
	background: rgba(138, 108, 240, 0.12);
	border-radius: var(--sx-radius-pill);
	content: "";
	inset: 4px 0;
	opacity: 0;
	position: absolute;
	transform: scaleX(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-navigation > ul > li > a:hover::before,
.main-navigation > ul > li > a:focus::before {
	opacity: 1;
	transform: scaleX(1);
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--sx-c-accent-deep);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: rgba(138, 108, 240, 0.12);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-accent-deep);
}

/* Menu toggle (mobile) */
.menu-toggle {
	align-items: center;
	background: rgba(138, 108, 240, 0.12);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	box-shadow: none;
	color: var(--sx-c-accent-deep);
	display: inline-flex;
	font-size: 0.9rem;
	gap: 8px;
	padding: 0.55em 1.1em;
}

.menu-toggle:hover,
.menu-toggle:focus {
	box-shadow: var(--sx-shadow-sm);
	transform: none;
}

.menu-toggle .menu-icon {
	display: inline-block;
	position: relative;
	width: 16px;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after,
.menu-toggle .menu-icon span {
	background: currentColor;
	border-radius: 2px;
	content: "";
	display: block;
	height: 2px;
	position: absolute;
	transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
	width: 16px;
}

.menu-toggle .menu-icon::before {
	top: -5px;
}

.menu-toggle .menu-icon span {
	top: -1px;
}

.menu-toggle .menu-icon::after {
	top: 3px;
}

.main-navigation.toggled .menu-icon::before {
	transform: translateY(4px) rotate(45deg);
}

.main-navigation.toggled .menu-icon span {
	opacity: 0;
}

.main-navigation.toggled .menu-icon::after {
	transform: translateY(-4px) rotate(-45deg);
}

/* Header actions */
.header-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

/* Without JavaScript the toggle would be a dead control, hide it. */
html.no-js .search-toggle {
	display: none;
}

.search-toggle {
	align-items: center;
	background: rgba(138, 108, 240, 0.12);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	box-shadow: none;
	color: var(--sx-c-accent-deep);
	display: inline-flex;
	height: 42px;
	justify-content: center;
	padding: 0;
	width: 42px;
}

.search-toggle:hover,
.search-toggle:focus,
.search-toggle[aria-expanded="true"] {
	background: var(--sx-grad);
	box-shadow: var(--sx-shadow-sm);
	color: #ffffff;
	transform: none;
}

.search-toggle svg {
	height: 18px;
	width: 18px;
}

/* Header search panel */
.header-search {
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid var(--sx-c-border);
	box-shadow: var(--sx-shadow-md);
	padding-block: 16px;
}

.header-search .search-form {
	max-width: 560px;
	margin-inline: auto;
}

/* Mobile navigation panel */
@media screen and (max-width: 767px) {

	.site-header-inner {
		flex-wrap: wrap;
		gap: 12px;
		padding-block: 10px;
	}

	.main-navigation {
		flex-basis: 100%;
		order: 10;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation ul {
		background: var(--sx-c-surface);
		border: 1px solid var(--sx-c-border);
		border-radius: var(--sx-radius-md);
		box-shadow: var(--sx-shadow-md);
		margin-top: 8px;
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		padding: 0 8px;
		transform: translateY(-6px);
		transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.35s ease;
	}

	.main-navigation.toggled ul {
		display: block;
		max-height: 100vh;
		opacity: 1;
		padding: 8px;
		transform: none;
	}

	.main-navigation ul ul {
		box-shadow: none;
		inset-inline-start: auto;
		opacity: 1;
		padding: 0 0 0 16px;
		position: static;
		transform: none;
		visibility: visible;
	}

	.main-navigation ul ul a {
		width: auto;
	}
}

@media screen and (min-width: 768px) {

	.menu-toggle {
		display: none;
	}

	.main-navigation > ul {
		display: flex;
		flex-wrap: wrap;
		gap: 2px;
		justify-content: flex-end;
	}
}

/* Admin bar offset */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {

	body.admin-bar .site-header {
		top: 46px;
	}
}

/* Posts and pages (cards)
--------------------------------------------- */
.sticky {
	display: block;
}

.page-header {
	margin-bottom: 28px;
}

.page-title {
	font-size: 1.9rem;
	margin: 0 0 10px;
}

.archive-description {
	color: var(--sx-c-text-soft);
}

.archive-description p {
	margin-bottom: 0;
}

.posts-grid {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.posts-grid.no-sidebar,
body.no-sidebar .posts-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Entry card */
.entry-card {
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-lg);
	box-shadow: var(--sx-shadow-sm);
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-card:hover {
	box-shadow: var(--sx-shadow-lg);
	transform: translateY(-5px);
}

.entry-card .post-thumbnail {
	aspect-ratio: 16 / 9;
	display: block;
	margin: 0;
	overflow: hidden;
	position: relative;
}

.entry-card .post-thumbnail::after {
	background: linear-gradient(180deg, rgba(58, 49, 84, 0) 55%, rgba(58, 49, 84, 0.18) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.entry-card .post-thumbnail img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	width: 100%;
}

.entry-card:hover .post-thumbnail img {
	transform: scale(1.05);
}

.entry-card .post-thumbnail.placeholder {
	align-items: center;
	background: var(--sx-grad-soft);
	display: flex;
	justify-content: center;
}

.entry-card .post-thumbnail.placeholder .placeholder-icon {
	background: var(--sx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 2.6rem;
	line-height: 1;
}

.entry-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 22px 24px 24px;
}

.entry-card .entry-title {
	font-size: 1.3rem;
	line-height: 1.35;
	margin: 0;
}

.entry-card .entry-title a {
	color: var(--sx-c-text);
}

.entry-card .entry-title a:hover,
.entry-card .entry-title a:focus {
	color: var(--sx-c-accent-deep);
}

.entry-card .entry-summary {
	color: var(--sx-c-text-soft);
	flex: 1 1 auto;
	margin: 0;
}

.entry-card .entry-summary p {
	margin-bottom: 0;
}

/* Sticky post highlight */
.entry-card.sticky {
	border-color: var(--sx-c-border-strong);
	box-shadow: var(--sx-shadow-md), inset 0 0 0 2px rgba(138, 108, 240, 0.08);
	position: relative;
}

.entry-card.sticky::before {
	background: var(--sx-grad);
	border-radius: var(--sx-radius-pill);
	color: #ffffff;
	content: "✦";
	font-size: 0.85rem;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	line-height: 1;
	padding: 6px 10px;
	position: absolute;
	z-index: 2;
}

/* Front page hero
--------------------------------------------- */
.front-hero {
	background:
		radial-gradient(38rem 38rem at 88% 8%, rgba(138, 108, 240, 0.18), transparent 62%),
		radial-gradient(30rem 30rem at 6% 90%, rgba(242, 163, 200, 0.16), transparent 60%);
	overflow: hidden;
	padding-block: 84px 56px;
	position: relative;
	text-align: center;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.front-hero-inner {
	position: relative;
}

.hero-title {
	background: var(--sx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(2.3rem, 6vw, 3.6rem);
	line-height: 1.15;
	margin: 0 0 16px;
}

@supports not (background-clip: text) {
	.hero-title {
		color: var(--sx-c-accent-deep);
	}
}

.hero-subtitle {
	color: var(--sx-c-text-soft);
	font-size: 1.15rem;
	margin: 0 auto;
	max-width: 560px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 28px;
}

.hero-btn {
	align-items: center;
	background: var(--sx-grad);
	border-radius: var(--sx-radius-pill);
	box-shadow: var(--sx-shadow-md);
	color: #ffffff;
	display: inline-flex;
	font-family: var(--sx-font-heading);
	font-size: 1rem;
	font-weight: 700;
	gap: 8px;
	padding: 0.8em 2em;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus {
	box-shadow: var(--sx-glow);
	color: #ffffff;
	filter: saturate(1.1);
	transform: translateY(-2px);
}

.hero-btn svg {
	height: 1em;
	width: 1em;
}

/* Decorative blobs and sparkles */
.hero-decoration {
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.hero-blob {
	border-radius: 50%;
	filter: blur(64px);
	position: absolute;
}

.hero-blob-1 {
	background: #b28bf0;
	height: 340px;
	opacity: 0.45;
	right: -70px;
	top: -90px;
	width: 340px;
}

.hero-blob-2 {
	background: #f2a3c8;
	bottom: -60px;
	height: 260px;
	left: -50px;
	opacity: 0.35;
	width: 260px;
}

.hero-sparkle {
	animation: sxrys-float 6s ease-in-out infinite;
	color: rgba(138, 108, 240, 0.75);
	position: absolute;
}

.hero-sparkle-1 {
	font-size: 1.6rem;
	left: 10%;
	top: 22%;
}

.hero-sparkle-2 {
	animation-delay: 1.4s;
	font-size: 1.1rem;
	right: 8%;
	top: 58%;
}

.hero-sparkle-3 {
	animation-delay: 2.2s;
	font-size: 0.9rem;
	left: 22%;
	top: 78%;
}

/* Latest posts section */
.front-main {
	padding-top: 24px;
}

/* Music player on the front page (SxryS Music Player plugin) */
.front-player {
	padding-block: 8px 16px;
}

.front-player .container {
	max-width: 760px;
}

.front-player .sxry-player .aplayer {
	border-radius: var(--sx-radius-lg);
	box-shadow: var(--sx-shadow-md);
}

/* Latest posts */
.latest-posts {
	padding-bottom: 8px;
}

.section-header {
	margin-bottom: 28px;
	text-align: center;
}

.section-title {
	display: inline-block;
	font-size: 1.9rem;
	margin: 0;
	position: relative;
}

.section-title::after {
	background: var(--sx-grad);
	border-radius: var(--sx-radius-pill);
	bottom: -10px;
	content: "";
	height: 4px;
	left: 30%;
	position: absolute;
	right: 30%;
}

/* Entry meta shared */
.entry-meta,
.entry-footer {
	color: var(--sx-c-text-faint);
	font-size: 0.85rem;
}

.entry-meta a,
.entry-footer a {
	color: var(--sx-c-text-soft);
}

.entry-meta a:hover,
.entry-meta a:focus,
.entry-footer a:hover,
.entry-footer a:focus {
	color: var(--sx-c-accent-deep);
}

.entry-meta > span,
.entry-footer > span {
	align-items: center;
	display: inline-flex;
	gap: 5px;
	margin-inline-end: 14px;
}

.entry-meta svg,
.entry-footer svg {
	flex: 0 0 auto;
	height: 14px;
	width: 14px;
}

/* Category badges */
.cat-links a,
.entry-cats a {
	background: rgba(138, 108, 240, 0.1);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-accent-deep);
	display: inline-block;
	font-family: var(--sx-font-heading);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 2px 4px 2px 0;
	padding: 4px 12px;
	transition: background 0.2s ease, color 0.2s ease;
}

.cat-links a:hover,
.cat-links a:focus,
.entry-cats a:hover,
.entry-cats a:focus {
	background: var(--sx-grad);
	color: #ffffff;
}

.updated:not(.published) {
	display: none;
}

/* Read more button */
.read-more {
	align-self: flex-start;
	background: rgba(138, 108, 240, 0.1);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-accent-deep);
	display: inline-flex;
	font-family: var(--sx-font-heading);
	font-size: 0.9rem;
	font-weight: 700;
	gap: 6px;
	margin-top: 6px;
	padding: 0.5em 1.2em;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.read-more:hover,
.read-more:focus {
	background: var(--sx-grad);
	box-shadow: var(--sx-shadow-sm);
	color: #ffffff;
	transform: translateY(-2px);
}

.read-more svg {
	flex: 0 0 auto;
	height: 1em;
	width: 1em;
}

/* Without JavaScript the back-to-top button is a dead control, hide it. */
html.no-js .back-to-top {
	display: none;
}

/* Single post / page
--------------------------------------------- */
.single-main {
	padding-block: 44px 72px;
}

.entry-header .entry-cats {
	margin-bottom: 14px;
}

.single-main .entry-title,
.page-area .entry-title {
	font-size: 2.3rem;
	line-height: 1.25;
	margin: 0 0 14px;
}

.single-main .entry-meta {
	align-items: center;
	border-bottom: 1px dashed var(--sx-c-border);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 26px;
	padding-bottom: 18px;
}

.entry-meta .author-avatar img {
	border-radius: 50%;
	vertical-align: middle;
}

.post-thumbnail {
	border-radius: var(--sx-radius-lg);
	box-shadow: var(--sx-shadow-md);
	display: block;
	margin: 0 0 30px;
	overflow: hidden;
}

.post-thumbnail img {
	display: block;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 0 0 1.5em;
}

.entry-content {
	font-size: 1.06rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.page-links {
	clear: both;
	margin: 1.5em 0;
}

.page-links a,
.page-links .post-page-numbers {
	background: rgba(138, 108, 240, 0.1);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-accent-deep);
	display: inline-block;
	font-family: var(--sx-font-heading);
	font-weight: 600;
	margin: 0 4px;
	padding: 0.2em 0.9em;
}

.page-links .post-page-numbers.current {
	background: var(--sx-grad);
	color: #ffffff;
}

/* Single footer: tags */
.entry-footer {
	border-top: 1px dashed var(--sx-c-border);
	margin-top: 26px;
	padding-top: 18px;
}

/* Post navigation (prev / next single posts) */
.post-navigation {
	margin: 44px 0;
}

.post-navigation .nav-links {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-navigation a {
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-md);
	box-shadow: var(--sx-shadow-sm);
	color: var(--sx-c-text);
	display: block;
	padding: 18px 20px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-navigation a:hover,
.post-navigation a:focus {
	border-color: var(--sx-c-border-strong);
	box-shadow: var(--sx-shadow-md);
	color: var(--sx-c-accent-deep);
	transform: translateY(-3px);
}

.post-navigation .nav-subtitle {
	color: var(--sx-c-text-faint);
	display: block;
	font-family: var(--sx-font-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.post-navigation .nav-title {
	font-family: var(--sx-font-heading);
	font-weight: 700;
}

.post-navigation .nav-next {
	text-align: end;
}

/* Author box */
.author-box {
	align-items: flex-start;
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-lg);
	box-shadow: var(--sx-shadow-sm);
	display: flex;
	gap: 20px;
	margin: 40px 0;
	padding: 26px;
}

.author-box .author-avatar {
	flex: 0 0 auto;
}

.author-box .author-avatar img {
	border: 3px solid var(--sx-c-surface);
	border-radius: 50%;
	box-shadow: var(--sx-shadow-sm);
}

.author-box .author-name {
	font-size: 1.15rem;
	margin: 0 0 6px;
}

.author-box .author-bio {
	color: var(--sx-c-text-soft);
	font-size: 0.95rem;
	margin: 0;
}

/* Pagination
--------------------------------------------- */
.pagination,
.posts-navigation {
	margin-top: 44px;
}

.pagination .nav-links,
.posts-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination .page-numbers,
.posts-navigation .page-numbers {
	align-items: center;
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-text-soft);
	display: inline-flex;
	font-family: var(--sx-font-heading);
	font-weight: 600;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 0 14px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus,
.pagination .page-numbers.current,
.posts-navigation .page-numbers:hover,
.posts-navigation .page-numbers:focus,
.posts-navigation .page-numbers.current {
	background: var(--sx-grad);
	border-color: transparent;
	box-shadow: var(--sx-shadow-sm);
	color: #ffffff;
}

.pagination .page-numbers.dots,
.posts-navigation .page-numbers.dots {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--sx-c-text-faint);
}

/* Comments
--------------------------------------------- */
.comments-area {
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-lg);
	box-shadow: var(--sx-shadow-sm);
	margin-top: 44px;
	padding: 28px;
}

.comments-title {
	font-size: 1.4rem;
	margin: 0 0 20px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-inline-start: 28px;
}

.comment-body {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	padding: 22px 0;
}

.comment-list > li + li > .comment-body,
.comment-list .children > li + li > .comment-body {
	border-top: 1px dashed var(--sx-c-border);
}

.comment-body .comment-avatar {
	flex: 0 0 auto;
}

.comment-body .avatar {
	border: 2px solid var(--sx-c-surface);
	border-radius: 50%;
	box-shadow: var(--sx-shadow-sm);
}

.comment-content-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.comment-meta {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
}

.comment-author {
	font-family: var(--sx-font-heading);
	font-weight: 700;
}

.comment-author .fn a {
	color: var(--sx-c-text);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	color: var(--sx-c-text-faint);
	font-size: 0.8rem;
}

.comment-metadata a {
	color: var(--sx-c-text-faint);
}

.comment-metadata a:hover,
.comment-metadata a:focus {
	color: var(--sx-c-accent-deep);
}

.comment-content {
	margin-top: 8px;
}

.comment-content a {
	word-wrap: break-word;
}

.comment-content > *:last-child {
	margin-bottom: 0;
}

.comment .reply {
	margin-top: 10px;
}

.comment .reply a,
#cancel-comment-reply-link {
	background: rgba(138, 108, 240, 0.1);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-accent-deep);
	display: inline-block;
	font-family: var(--sx-font-heading);
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.35em 1em;
}

.comment .reply a:hover,
.comment .reply a:focus,
#cancel-comment-reply-link:hover,
#cancel-comment-reply-link:focus {
	background: var(--sx-grad);
	color: #ffffff;
}

.bypostauthor > .comment-body {
	background: rgba(138, 108, 240, 0.05);
	border-radius: var(--sx-radius-md);
	padding-inline: 14px;
}

.bypostauthor > .comment-body .comment-author::after {
	background: var(--sx-grad);
	border-radius: var(--sx-radius-pill);
	color: #ffffff;
	content: "作者";
	font-size: 0.7rem;
	font-weight: 700;
	margin-inline-start: 8px;
	padding: 2px 10px;
	vertical-align: middle;
}

html[lang^="en"] .bypostauthor > .comment-body .comment-author::after,
html[lang="en-US"] .bypostauthor > .comment-body .comment-author::after {
	content: "Author";
}

.comment-awaiting-moderation {
	background: rgba(242, 163, 200, 0.2);
	border-radius: var(--sx-radius-sm);
	color: var(--sx-c-danger);
	font-size: 0.85rem;
	margin: 10px 0 0;
	padding: 8px 14px;
}

.no-comments,
.comment-notes,
.logged-in-as {
	color: var(--sx-c-text-soft);
	font-size: 0.9rem;
}

/* Comment form */
.comment-form {
	background: var(--sx-c-bg-soft);
	border-radius: var(--sx-radius-md);
	margin-top: 26px;
	padding: 24px;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	display: block;
}

.comment-form label {
	color: var(--sx-c-text-soft);
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 6px;
}

.comment-form .required {
	color: var(--sx-c-danger);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: var(--sx-c-surface);
}

.comment-form .form-submit {
	margin-bottom: 0;
	text-align: end;
}

.comment-form-cookies-consent {
	align-items: center;
	display: flex;
	gap: 8px;
}

.comment-form-cookies-consent input {
	margin: 0;
}

/* Widgets
--------------------------------------------- */
.widget-area {
	align-self: start;
	display: grid;
	gap: 26px;
}

.widget {
	background: var(--sx-c-surface);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-lg);
	box-shadow: var(--sx-shadow-sm);
	font-size: 0.92rem;
	margin: 0;
	overflow: hidden;
	padding: 22px 24px;
}

.widget-title {
	font-size: 1.05rem;
	margin: 0 0 16px;
	padding-inline-start: 12px;
	position: relative;
}

.widget-title::before {
	background: var(--sx-grad);
	border-radius: var(--sx-radius-pill);
	content: "";
	height: 70%;
	inset-block-start: 15%;
	inset-inline-start: 0;
	position: absolute;
	width: 4px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	border-bottom: 1px dashed var(--sx-c-border);
	padding: 8px 0;
}

.widget ul li:last-child {
	border-bottom: 0;
}

.widget ul li a {
	color: var(--sx-c-text-soft);
}

.widget ul li a:hover,
.widget ul li a:focus {
	color: var(--sx-c-accent-deep);
}

.widget select {
	max-width: 100%;
	width: 100%;
}

.widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.widget .tag-cloud-link {
	background: rgba(138, 108, 240, 0.1);
	border: 1px solid var(--sx-c-border);
	border-radius: var(--sx-radius-pill);
	color: var(--sx-c-accent-deep);
	font-size: 0.8rem !important;
	padding: 4px 12px;
}

.widget .tag-cloud-link:hover,
.widget .tag-cloud-link:focus {
	background: var(--sx-grad);
	color: #ffffff;
}

.widget_calendar table {
	margin: 0;
}

.widget_calendar caption {
	font-family: var(--sx-font-heading);
	font-weight: 700;
	padding: 4px;
}

.widget_recent_entries .post-date {
	color: var(--sx-c-text-faint);
	display: block;
	font-size: 0.8rem;
}

.widget_rss .rss-widget-icon {
	display: none;
}

.widget_rss .rsswidget {
	font-family: var(--sx-font-heading);
	font-weight: 700;
}

.widget_rss .rss-date {
	color: var(--sx-c-text-faint);
	display: block;
	font-size: 0.8rem;
}

/* Footer & back-to-top
--------------------------------------------- */
.site-footer {
	background: linear-gradient(180deg, #2c2545 0%, #241e3a 100%);
	color: #b9b1dd;
	margin-top: 24px;
	position: relative;
}

.site-footer::before {
	background: var(--sx-grad);
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.site-footer a {
	color: #d9d2f7;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #ffffff;
}

.footer-widgets {
	display: grid;
	gap: 34px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-block: 52px 40px;
}

.footer-widgets .widget {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

.footer-widgets .widget-title {
	color: #f3f0ff;
}

.footer-widgets .widget ul li {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-widgets .widget ul li a {
	color: #b9b1dd;
}

.footer-widgets .widget ul li a:hover,
.footer-widgets .widget ul li a:focus {
	color: #ffffff;
}

.footer-widgets .widget .tag-cloud-link {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.1);
	color: #d9d2f7;
}

.footer-widgets .widget .tag-cloud-link:hover,
.footer-widgets .widget .tag-cloud-link:focus {
	background: var(--sx-grad);
}

.footer-widgets .widget select,
.footer-widgets .widget input {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.1);
	color: #f3f0ff;
}

.site-info {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.88rem;
	gap: 4px 10px;
	justify-content: space-between;
	padding-block: 20px;
}

.site-info p {
	margin: 0;
}

.site-info .footer-heart {
	color: #f2a3c8;
}

.back-to-top {
	align-items: center;
	background: var(--sx-grad);
	border-radius: 50%;
	bottom: 26px;
	box-shadow: var(--sx-glow);
	color: #ffffff;
	display: flex;
	font-size: 1.1rem;
	height: 48px;
	inset-inline-end: 26px;
	justify-content: center;
	opacity: 0;
	padding: 0;
	position: fixed;
	transform: translateY(16px);
	transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	visibility: hidden;
	width: 48px;
	z-index: 999;
}

.back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
	box-shadow: var(--sx-glow), 0 0 0 5px rgba(138, 108, 240, 0.2);
	transform: translateY(-3px);
}

.back-to-top svg {
	height: 20px;
	width: 20px;
}

/* 404 page
--------------------------------------------- */
.error-404 {
	margin-inline: auto;
	max-width: 620px;
	padding-block: 60px;
	text-align: center;
}

.error-code {
	animation: sxrys-float 5s ease-in-out infinite;
	background: var(--sx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--sx-font-heading);
	font-size: clamp(5rem, 18vw, 9rem);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 12px;
}

.error-404 .page-title {
	font-size: 1.7rem;
	margin: 0 0 12px;
}

.error-404 .page-content > p {
	color: var(--sx-c-text-soft);
}

.error-404 .search-form {
	margin: 24px 0;
}

.error-404 .home-link {
	background: var(--sx-grad);
	border-radius: var(--sx-radius-pill);
	box-shadow: var(--sx-shadow-sm);
	color: #ffffff;
	display: inline-block;
	font-family: var(--sx-font-heading);
	font-weight: 700;
	padding: 0.7em 1.8em;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-404 .home-link:hover,
.error-404 .home-link:focus {
	box-shadow: var(--sx-glow);
	color: #ffffff;
	transform: translateY(-2px);
}

.error-404 .widget {
	text-align: start;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	border-radius: var(--sx-radius-md);
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	color: var(--sx-c-text-soft);
	font-size: 0.85rem;
	margin: 0.8em 0 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	gap: 12px;
}

.gallery-item {
	display: inline-block;
	margin: 0;
	text-align: center;
	width: 100%;
}

.gallery-item img {
	border-radius: var(--sx-radius-sm);
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
	font-size: 0.85rem;
}

/*--------------------------------------------------------------
# Blocks (Gutenberg)
--------------------------------------------------------------*/

.entry-content > .alignwide,
.entry-content > .alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.entry-content > .alignwide {
	margin-inline: calc(50% - min(46vw, 800px));
}

.wp-block-image img,
.wp-block-gallery img {
	border-radius: var(--sx-radius-md);
}

.wp-block-quote {
	background: var(--sx-grad-soft);
	border: 0;
	border-inline-start: 4px solid var(--sx-c-accent);
	border-radius: var(--sx-radius-md);
	margin: 0 0 1.5em;
	padding: 1.4em 1.6em;
}

.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
	font-size: 1.25em;
}

.wp-block-quote cite {
	color: var(--sx-c-text-soft);
}

.wp-block-pullquote {
	border-block: 3px solid var(--sx-c-border-strong);
	color: var(--sx-c-text);
	padding: 2em 0;
}

.wp-block-pullquote cite {
	color: var(--sx-c-text-soft);
	text-transform: none;
}

.wp-block-separator {
	border-bottom: 2px solid var(--sx-c-border);
}

.wp-block-separator.is-style-dots {
	border-bottom: 0;
}

.wp-block-button__link {
	border-radius: var(--sx-radius-pill);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--sx-c-accent);
	color: var(--sx-c-accent-deep);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: var(--sx-grad);
	border-color: transparent;
	color: #ffffff;
}

/* Search block: match the theme's pill search form look */
.wp-block-search__inside-wrapper {
	gap: 10px;
}

.wp-block-search__input {
	border-radius: var(--sx-radius-pill);
}

.wp-block-search__button {
	border-radius: var(--sx-radius-pill);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: rgba(138, 108, 240, 0.05);
}

.wp-block-code {
	background: #2c2645;
	border-radius: var(--sx-radius-md);
	color: #eae6ff;
	padding: 1.4em 1.6em;
}

.wp-block-preformatted {
	font-family: var(--sx-font-mono);
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .pagination,
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--sx-c-surface);
	border-radius: var(--sx-radius-sm);
	box-shadow: var(--sx-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--sx-c-accent-deep);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	inset-inline-start: 6px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Motion
--------------------------------------------- */

/* Scroll-reveal (JS adds .js on <html>, IntersectionObserver adds .is-visible). */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

.js .posts-grid > .reveal:nth-child(2) {
	transition-delay: 0.08s;
}

.js .posts-grid > .reveal:nth-child(3) {
	transition-delay: 0.16s;
}

.js .posts-grid > .reveal:nth-child(4) {
	transition-delay: 0.24s;
}

.js .posts-grid > .reveal:nth-child(5) {
	transition-delay: 0.32s;
}

.js .posts-grid > .reveal:nth-child(6) {
	transition-delay: 0.4s;
}

@keyframes sxrys-float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-12px);
	}
}

/* Responsive
--------------------------------------------- */
@media screen and (max-width: 1024px) {

	.content-area {
		gap: 30px;
		grid-template-columns: minmax(0, 1fr) 280px;
	}

	.posts-grid.no-sidebar,
	body.no-sidebar .posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 860px) {

	.content-area {
		grid-template-columns: minmax(0, 1fr);
	}

	.widget-area {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 640px) {

	.posts-grid,
	.posts-grid.no-sidebar,
	body.no-sidebar .posts-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-main .entry-title,
	.page-area .entry-title {
		font-size: 1.8rem;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.comments-area {
		padding: 20px;
	}

	.comment-list .children {
		padding-inline-start: 14px;
	}

	.author-box {
		flex-direction: column;
	}

	.widget-area {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-meta > span,
	.entry-footer > span {
		margin-inline-end: 10px;
	}
}

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
