/*
Theme Name: 行雲小品 Sky Blue
Theme URI: https://diary.skynovel.info/
Author: Michael Leung
Author URI: https://diary.skynovel.info/
Description: 天空藍主題 — a sky-blue diary theme for 行雲小品, my Brisbane life & food blog. Clouds, gradients, colourful category badges, featured post layout and a three-widget sidebar. Traditional Chinese first, fully responsive, no build step.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xingyun-skyblue
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--sky-50: #f0f9ff;
	--sky-100: #e0f2fe;
	--sky-200: #bae6fd;
	--sky-300: #7dd3fc;
	--sky-400: #38bdf8;
	--sky-500: #0ea5e9;
	--sky-600: #0284c7;
	--sky-700: #0369a1;
	--blue-600: #2563eb;
	--cyan-200: #a5f3fc;
	--cyan-300: #67e8f9;

	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--slate-800: #1e293b;

	--amber-400: #fbbf24;
	--orange-100: #ffedd5;
	--orange-200: #fed7aa;
	--orange-600: #ea580c;

	--radius: 0.75rem;
	--radius-2xl: 1rem;
	--radius-3xl: 1.5rem;

	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--shadow-sky: 0 4px 6px -1px rgb(186 230 253 / 0.9), 0 2px 4px -2px rgb(186 230 253 / 0.9);

	--content-width: 72rem;
	--sidebar-width: 320px;

	--font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--sky-50);
	color: var(--slate-700);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	border: 0;
}

svg {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

a {
	color: var(--sky-600);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, gap 0.15s ease;
}

a:hover,
a:focus {
	color: var(--sky-700);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--sky-500);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--slate-800);
	font-weight: 700;
	line-height: 1.35;
}

p {
	margin: 0 0 1.25em;
}

ul,
ol {
	padding-left: 1.5em;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.25rem 1.25rem;
	border-left: 4px solid var(--sky-300);
	background: var(--sky-50);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--slate-600);
	font-style: italic;
}

code,
kbd,
pre,
samp {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.9em;
}

code {
	padding: 0.15em 0.4em;
	background: var(--sky-100);
	border-radius: 0.35rem;
	color: var(--sky-700);
}

pre {
	overflow-x: auto;
	margin: 1.5em 0;
	padding: 1.25rem;
	background: var(--slate-800);
	border-radius: var(--radius);
	color: #e2e8f0;
	line-height: 1.6;
}

pre code {
	padding: 0;
	background: none;
	color: inherit;
}

hr {
	height: 1px;
	margin: 2.5em 0;
	border: 0;
	background: var(--sky-100);
}

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

th,
td {
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--sky-100);
	text-align: left;
}

th {
	background: var(--sky-50);
	color: var(--slate-700);
}

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.65rem 1.25rem;
	background: #fff;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-md);
	color: var(--sky-700);
	font-weight: 600;
}

.skip-link:focus {
	top: 0;
}

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

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

/* ==========================================================================
   4. Layout shell
   ========================================================================== */

.xy-container {
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 640px) {
	.xy-container {
		padding: 0 1.5rem;
	}
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1 0 auto;
	padding: 3rem 1rem;
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
}

@media (min-width: 640px) {
	.site-content {
		padding: 3rem 1.5rem;
	}
}

.content-grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.content-grid.has-sidebar {
		grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
	}
}

/* ==========================================================================
   5. Site header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--sky-100);
	background-color: rgb(255 255 255 / 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
}

.site-brand__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-2xl);
	background-image: linear-gradient(to bottom right, var(--sky-400), var(--blue-600));
	box-shadow: var(--shadow-sky);
	color: #fff;
	overflow: hidden;
}

.site-brand__mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-brand__text {
	line-height: 1.25;
}

.site-brand__title {
	display: block;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	background-image: linear-gradient(to right, var(--sky-600), var(--blue-600));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.site-brand__tagline {
	display: block;
	margin: 0;
	color: var(--sky-500);
	font-size: 0.75rem;
}

/* Primary navigation */

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 500;
}

.main-navigation a {
	display: block;
	padding: 0.5rem 0.875rem;
	border-radius: 9999px;
	color: var(--slate-600);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	background: var(--sky-50);
	color: var(--sky-600);
}

/* Sub-menus */

.main-navigation li {
	position: relative;
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	z-index: 60;
	display: block;
	min-width: 12rem;
	padding: 0.4rem;
	background: #fff;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.35rem);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

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

.main-navigation .sub-menu a {
	border-radius: 0.5rem;
	white-space: nowrap;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Header search */

.header-search {
	position: relative;
}

.header-search .search-field {
	width: 11rem;
	height: 2.25rem;
	padding: 0 0.75rem 0 2.25rem;
	border: 1px solid var(--sky-200);
	border-radius: 9999px;
	background: var(--sky-50);
	color: var(--slate-700);
	font-family: inherit;
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search .search-field:focus {
	border-color: var(--sky-400);
	background: #fff;
	box-shadow: 0 0 0 3px var(--sky-100);
}

.header-search__icon {
	position: absolute;
	top: 50%;
	left: 0.75rem;
	transform: translateY(-50%);
	color: var(--sky-400);
	pointer-events: none;
}

.header-search .search-submit {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
}

/* Menu toggle */

.menu-toggle {
	display: none;
	padding: 0.5rem;
	border: 0;
	border-radius: 9999px;
	background: none;
	color: var(--sky-600);
	cursor: pointer;
	line-height: 0;
}

.menu-toggle:hover {
	background: var(--sky-50);
}

@media (max-width: 767px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 0.75rem 1rem 1rem;
		border-bottom: 1px solid var(--sky-100);
		background: #fff;
		box-shadow: var(--shadow-lg);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.main-navigation .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 0.85rem;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

@media (max-width: 639px) {
	.header-search {
		display: none;
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	background-image: linear-gradient(to bottom right, var(--sky-400), var(--sky-300) 55%, var(--cyan-200));
}

.hero__cloud {
	position: absolute;
	color: rgb(255 255 255 / 0.3);
	pointer-events: none;
}

.hero__cloud--1 {
	top: 2rem;
	left: -1.5rem;
	width: 6rem;
	height: 6rem;
}

.hero__cloud--2 {
	top: 1rem;
	right: 4rem;
	width: 4rem;
	height: 4rem;
	color: rgb(255 255 255 / 0.4);
}

.hero__cloud--3 {
	right: 33%;
	bottom: 2.5rem;
	width: 3rem;
	height: 3rem;
	color: rgb(255 255 255 / 0.25);
}

.hero__cloud--4 {
	bottom: 1rem;
	left: 25%;
	width: 5rem;
	height: 5rem;
	color: rgb(255 255 255 / 0.2);
}

.hero__glow {
	position: absolute;
	border-radius: 9999px;
	filter: blur(64px);
	pointer-events: none;
}

.hero__glow--1 {
	top: -5rem;
	right: -5rem;
	width: 16rem;
	height: 16rem;
	background: rgb(103 232 249 / 0.4);
}

.hero__glow--2 {
	bottom: -6rem;
	left: 33%;
	width: 14rem;
	height: 14rem;
	background: rgb(14 165 233 / 0.3);
}

.hero__inner {
	position: relative;
	padding-top: 4rem;
	padding-bottom: 4rem;
}

@media (min-width: 640px) {
	.hero__inner {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.25);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
}

.hero__title {
	margin: 1rem 0 0;
	color: #fff;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

@media (min-width: 640px) {
	.hero__title {
		font-size: 3rem;
	}
}

.hero__description {
	max-width: 36rem;
	margin: 1rem 0 0;
	color: var(--sky-50);
	font-size: 1.125rem;
	line-height: 1.75;
}

.hero__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.9);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: var(--shadow-sm);
	color: var(--slate-700);
	font-size: 0.875rem;
	font-weight: 500;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__pill:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	color: var(--slate-700);
}

.hero__pill-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 9999px;
}

.hero__wave {
	display: block;
	width: 100%;
	height: auto;
	color: var(--sky-50);
}

/* Compact hero used on archives / single / pages */

.page-hero {
	position: relative;
	overflow: hidden;
	background-image: linear-gradient(to bottom right, var(--sky-500), var(--sky-400) 55%, var(--cyan-300));
}

.page-hero__inner {
	position: relative;
	padding-top: 2.75rem;
	padding-bottom: 2.75rem;
}

.page-hero__title {
	margin: 0;
	color: #fff;
	font-size: 1.875rem;
	font-weight: 700;
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

.page-hero__subtitle {
	margin: 0.65rem 0 0;
	max-width: 42rem;
	color: var(--sky-50);
	font-size: 0.95rem;
}

.page-hero__subtitle p:last-child {
	margin-bottom: 0;
}

/* Breadcrumb-ish meta line inside compact hero */

.page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-top: 0.85rem;
	color: rgb(240 249 255 / 0.95);
	font-size: 0.8125rem;
}

.page-hero__meta a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Breadcrumb trail */

.breadcrumb {
	padding: 0.85rem 0 0;
	color: var(--slate-500);
	font-size: 0.8125rem;
}

.breadcrumb a {
	color: var(--sky-600);
}

.breadcrumb a:hover {
	color: var(--sky-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.breadcrumb .breadcrumb_last {
	color: var(--slate-700);
	font-weight: 600;
}

/* ==========================================================================
   7. Post list
   ========================================================================== */

.post-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	min-width: 0;
}

.post-grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Card — shared */

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: var(--sky-200);
	box-shadow: var(--shadow-lg);
}

.post-card__thumb {
	display: block;
	overflow: hidden;
	background: var(--sky-100);
}

.post-card__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s ease;
}

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

.post-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.25rem;
}

@media (min-width: 640px) {
	.post-card__body {
		padding: 1.5rem;
	}
}

.post-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
}

.post-card__title a {
	color: var(--slate-800);
}

.post-card:hover .post-card__title a {
	color: var(--sky-600);
}

.post-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin: 0.75rem 0 0;
	color: var(--slate-600);
	font-size: 0.875rem;
	line-height: 1.7;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--sky-600);
	font-size: 0.875rem;
	font-weight: 600;
}

.post-card__more:hover {
	gap: 0.625rem;
	color: var(--sky-700);
}

/* Card — featured */

.post-card--featured {
	position: relative;
	border-radius: var(--radius-3xl);
	box-shadow: var(--shadow-md);
}

.post-card--featured:hover {
	transform: none;
	box-shadow: var(--shadow-xl);
}

.post-card--featured .post-card__thumb img {
	aspect-ratio: 2 / 1;
}

.post-card--featured .post-card__body {
	padding: 1.5rem;
}

@media (min-width: 640px) {
	.post-card--featured .post-card__body {
		padding: 2rem;
	}
}

.post-card--featured .post-card__title {
	font-size: 1.5rem;
}

@media (min-width: 640px) {
	.post-card--featured .post-card__title {
		font-size: 1.875rem;
	}
}

.post-card--featured .post-card__excerpt {
	-webkit-line-clamp: unset;
	line-clamp: unset;
	margin-top: 1rem;
	font-size: 1rem;
}

.post-card__flag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: var(--amber-400);
	box-shadow: var(--shadow);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

/* Placeholder when there is no featured image */

.post-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 3 / 2;
	background-image: linear-gradient(to bottom right, var(--sky-300), var(--sky-500));
	color: rgb(255 255 255 / 0.6);
}

.post-card--featured .post-thumb-placeholder {
	aspect-ratio: 2 / 1;
}

/* ==========================================================================
   8. Entry meta & badges
   ========================================================================== */

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-top: 0.75rem;
	color: var(--slate-500);
	font-size: 0.75rem;
}

@media (min-width: 640px) {
	.post-card--featured .entry-meta {
		font-size: 0.875rem;
	}
}

.entry-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.entry-meta__item svg {
	color: var(--sky-400);
}

.entry-meta a {
	color: inherit;
}

.entry-meta a:hover {
	color: var(--sky-600);
}

.badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.badge {
	display: inline-block;
	padding: 0.125rem 0.625rem;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.6;
	transition: filter 0.15s ease;
}

.badge:hover {
	filter: brightness(0.95);
}

.badge--sky      { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge--emerald  { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.badge--orange   { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.badge--violet   { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.badge--rose     { background: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.badge--cyan     { background: #cffafe; color: #0e7490; border-color: #a5f3fc; }
.badge--amber    { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge--pink     { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }
.badge--teal     { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.badge--indigo   { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.badge--purple   { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.badge--fuchsia  { background: #fae8ff; color: #a21caf; border-color: #f5d0fe; }
.badge--lime     { background: #ecfccb; color: #4d7c0f; border-color: #d9f99d; }
.badge--blue     { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }

/* Pill colours used by the hero highlight chips */

.pill-icon--sky    { background: #e0f2fe; color: #0284c7; }
.pill-icon--orange { background: #ffedd5; color: #ea580c; }
.pill-icon--teal   { background: #ccfbf1; color: #0d9488; }
.pill-icon--pink   { background: #fce7f3; color: #db2777; }

/* ==========================================================================
   9. Buttons
   ========================================================================== */

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	border: 0;
	border-radius: 9999px;
	background-image: linear-gradient(to right, var(--sky-500), var(--blue-600));
	box-shadow: var(--shadow-sky);
	color: #fff;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: gap 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
	gap: 0.75rem;
	box-shadow: var(--shadow-lg);
	color: #fff;
	filter: brightness(1.03);
}

.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--sky-200);
	border-radius: 9999px;
	background: #fff;
	color: var(--slate-600);
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
	border-color: var(--sky-400);
	color: var(--sky-600);
}

/* ==========================================================================
   10. Single post / page content
   ========================================================================== */

.entry-card {
	overflow: hidden;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-md);
}

.entry-card__media img {
	display: block;
	width: 100%;
	max-height: 30rem;
	object-fit: cover;
}

.entry-card__body {
	padding: 1.5rem;
}

@media (min-width: 640px) {
	.entry-card__body {
		padding: 2.25rem;
	}
}

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

@media (min-width: 640px) {
	.entry-title {
		font-size: 2.125rem;
	}
}

.entry-content {
	margin-top: 1.75rem;
	color: var(--slate-600);
	font-size: 1.0625rem;
	line-height: 1.9;
	word-wrap: break-word;
}

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

.entry-content h2 {
	margin-top: 2em;
	font-size: 1.5rem;
}

.entry-content h3 {
	margin-top: 1.75em;
	font-size: 1.25rem;
}

.entry-content h4 {
	margin-top: 1.5em;
	font-size: 1.1rem;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--sky-300);
}

.entry-content a:hover {
	text-decoration-color: var(--sky-600);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
	max-width: 100%;
}

/* Footer of a single entry: tags + edit link */

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sky-100);
}

.entry-footer__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--slate-500);
}

/* Page links for <!--nextpage--> */

.page-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.page-links a,
.page-links > span:not(.page-links-title) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--sky-200);
	border-radius: 9999px;
	background: #fff;
}

.page-links > span:not(.page-links-title) {
	background-image: linear-gradient(to bottom right, var(--sky-500), var(--blue-600));
	border-color: transparent;
	color: #fff;
}

/* Post-to-post navigation */

.post-navigation {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.post-navigation {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	height: 100%;
	padding: 1rem 1.25rem;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-2xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: var(--slate-700);
	font-weight: 600;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
	border-color: var(--sky-300);
	box-shadow: var(--shadow-md);
	color: var(--sky-700);
}

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

.post-navigation .nav-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--sky-500);
	font-size: 0.75rem;
	font-weight: 500;
}

.post-navigation .nav-next .nav-label {
	justify-content: flex-end;
}

/* Author box */

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.author-box img {
	border-radius: var(--radius-2xl);
}

.author-box__name {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.author-box__bio {
	margin: 0;
	color: var(--slate-600);
	font-size: 0.875rem;
}

/* ==========================================================================
   11. WordPress core alignment & caption classes
   ========================================================================== */

.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin: 1.5rem auto;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

.entry-content::after,
.comment-content::after {
	content: "";
	display: block;
	clear: both;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5rem;
}

.wp-caption img {
	display: block;
}

.wp-caption-text,
.wp-block-image figcaption,
.gallery-caption {
	margin-top: 0.5rem;
	color: var(--slate-500);
	font-size: 0.8125rem;
	text-align: center;
}

.sticky .post-card {
	border-color: var(--sky-300);
	box-shadow: var(--shadow-md);
}

.bypostauthor > .comment-body .comment-author-name::after {
	content: "作者";
	margin-left: 0.5rem;
	padding: 0.05rem 0.5rem;
	border-radius: 9999px;
	background: var(--sky-100);
	color: var(--sky-700);
	font-size: 0.6875rem;
}

.gallery {
	display: grid;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.gallery img {
	width: 100%;
	border-radius: var(--radius);
}

/* ==========================================================================
   12. Sidebar widgets
   ========================================================================== */

.site-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.widget {
	overflow: hidden;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.widget__title,
.widget .widget-title,
.widget .widgettitle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.875rem 1.25rem;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	background-image: linear-gradient(to right, var(--sky-500), var(--blue-600));
}

.widget__body,
.widget > ul,
.widget > ol,
.widget > div,
.widget > p,
.widget > form,
.widget > select {
	padding: 1.25rem;
}

.widget > ul,
.widget > ol {
	padding-left: 1.25rem;
	margin: 0;
	list-style: none;
}

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

/* Accent variants applied to consecutive widget areas */

.widget--accent-teal .widget__title,
.widget--accent-teal .widget-title,
.widget--accent-teal .widgettitle {
	background-image: linear-gradient(to right, #14b8a6, #059669);
}

.widget--accent-violet .widget__title,
.widget--accent-violet .widget-title,
.widget--accent-violet .widgettitle {
	background-image: linear-gradient(to right, #8b5cf6, #9333ea);
}

.widget--accent-orange .widget__title,
.widget--accent-orange .widget-title,
.widget--accent-orange .widgettitle {
	background-image: linear-gradient(to right, #fb923c, #ea580c);
}

/* About widget */

.about-widget__row {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.about-widget__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: var(--radius-2xl);
	background-image: linear-gradient(to bottom right, var(--sky-400), var(--blue-600));
	box-shadow: var(--shadow-sky);
	color: #fff;
}

.about-widget__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-widget__text {
	margin: 0;
	color: var(--slate-600);
	font-size: 0.875rem;
	line-height: 1.75;
}

.rss-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 1rem;
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	background: var(--orange-100);
	color: var(--orange-600);
	font-size: 0.75rem;
	font-weight: 600;
}

.rss-chip:hover {
	background: var(--orange-200);
	color: var(--orange-600);
}

/* Category list */

.category-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.category-list li + li {
	margin-top: 0.375rem;
}

.category-list__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.375rem 0.5rem;
	border-radius: var(--radius);
}

.category-list__link:hover {
	background: var(--sky-50);
}

.category-list__count {
	color: var(--slate-400);
	font-size: 0.75rem;
}

.category-list__link:hover .category-list__count {
	color: var(--sky-600);
}

/* Tag cloud */

.tag-cloud,
.widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag-chip,
.widget .tagcloud a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	box-shadow: var(--shadow-sm);
	color: #fff !important;
	font-size: 0.75rem !important;
	font-weight: 500;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tag-chip:hover,
.widget .tagcloud a:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	color: #fff;
}

/* Core tag-cloud / tag-cloud-block widgets have no .tag-chip--n class, so they
   need a background of their own or they render white-on-white. */

.widget .tagcloud a,
.widget .wp-block-tag-cloud a {
	background: #0ea5e9;
}

.widget .tagcloud a:nth-of-type(6n + 2),
.widget .wp-block-tag-cloud a:nth-of-type(6n + 2) { background: #fb923c; }

.widget .tagcloud a:nth-of-type(6n + 3),
.widget .wp-block-tag-cloud a:nth-of-type(6n + 3) { background: #10b981; }

.widget .tagcloud a:nth-of-type(6n + 4),
.widget .wp-block-tag-cloud a:nth-of-type(6n + 4) { background: #a78bfa; }

.widget .tagcloud a:nth-of-type(6n + 5),
.widget .wp-block-tag-cloud a:nth-of-type(6n + 5) { background: #06b6d4; }

.widget .tagcloud a:nth-of-type(6n + 6),
.widget .wp-block-tag-cloud a:nth-of-type(6n + 6) { background: #ec4899; }

.tag-chip--0  { background: #0ea5e9; }
.tag-chip--1  { background: #fb923c; }
.tag-chip--2  { background: #fbbf24; }
.tag-chip--3  { background: #10b981; }
.tag-chip--4  { background: #818cf8; }
.tag-chip--5  { background: #60a5fa; }
.tag-chip--6  { background: #06b6d4; }
.tag-chip--7  { background: #14b8a6; }
.tag-chip--8  { background: #fb7185; }
.tag-chip--9  { background: #a78bfa; }
.tag-chip--10 { background: #a855f7; }
.tag-chip--11 { background: #f87171; }
.tag-chip--12 { background: #ec4899; }
.tag-chip--13 { background: #e879f9; }
.tag-chip--14 { background: #84cc16; }
.tag-chip--15 { background: #64748b; }

/* Facebook page plugin */

.widget--accent-facebook .widget__title {
	background-image: linear-gradient(to right, #4267b2, #2d4373);
}

.fb-page-embed {
	display: flex;
	justify-content: center;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--sky-50);
}

.fb-page-embed iframe {
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* Calendar */

.widget--calendar .widget__body {
	padding-top: 0.85rem;
}

#wp-calendar {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.8125rem;
	table-layout: fixed;
}

#wp-calendar caption {
	padding-bottom: 0.65rem;
	color: var(--slate-700);
	font-weight: 600;
	text-align: center;
}

#wp-calendar th,
#wp-calendar td {
	padding: 0.3rem 0;
	border: 0;
	text-align: center;
}

#wp-calendar th {
	background: none;
	color: var(--sky-600);
	font-size: 0.75rem;
	font-weight: 600;
}

#wp-calendar tbody td {
	color: var(--slate-500);
}

#wp-calendar tbody td a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 9999px;
	background-image: linear-gradient(to bottom right, var(--sky-400), var(--sky-600));
	color: #fff;
	font-weight: 600;
}

#wp-calendar tbody td a:hover {
	filter: brightness(1.08);
	color: #fff;
}

#wp-calendar td#today {
	color: var(--sky-700);
	font-weight: 700;
}

#wp-calendar tfoot td {
	padding-top: 0.65rem;
}

#wp-calendar tfoot #prev {
	text-align: left;
}

#wp-calendar tfoot #next {
	text-align: right;
}

#wp-calendar tfoot a {
	color: var(--sky-600);
	font-weight: 600;
}

/* Advertising slot */

.ad-slot {
	display: flex;
	justify-content: center;
	overflow: hidden;
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.ad-slot .adsbygoogle {
	width: 100%;
	min-width: 0;
}

/* Generic widget lists (recent posts, archives, meta, …) */

.widget li {
	padding: 0.3rem 0;
	font-size: 0.875rem;
}

.widget li a {
	color: var(--slate-600);
}

.widget li a:hover {
	color: var(--sky-600);
}

.widget .children,
.widget .sub-menu {
	padding-left: 1rem;
	list-style: none;
}

.widget select {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--sky-200);
	border-radius: var(--radius);
	background: var(--sky-50);
	font-family: inherit;
	font-size: 0.875rem;
}

.widget_search .search-form,
.widget_block .wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.5rem;
}

.widget .search-field,
.widget .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 2.375rem;
	padding: 0 0.85rem;
	border: 1px solid var(--sky-200);
	border-radius: 9999px;
	background: var(--sky-50);
	font-family: inherit;
	font-size: 0.875rem;
	outline: none;
}

.widget .search-field:focus,
.widget .wp-block-search__input:focus {
	border-color: var(--sky-400);
	background: #fff;
	box-shadow: 0 0 0 3px var(--sky-100);
}

.widget .search-submit,
.widget .wp-block-search__button {
	padding: 0 1rem;
	border: 0;
	border-radius: 9999px;
	background-image: linear-gradient(to right, var(--sky-500), var(--blue-600));
	color: #fff;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   13. Pagination
   ========================================================================== */

.pagination .nav-links,
.comments-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding-top: 0.5rem;
	font-size: 0.875rem;
}

.pagination .page-numbers,
.comments-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	border: 1px solid var(--sky-200);
	border-radius: 9999px;
	background: #fff;
	color: var(--slate-600);
	font-weight: 500;
	transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pagination .page-numbers:hover,
.comments-pagination .page-numbers:hover {
	border-color: var(--sky-400);
	color: var(--sky-600);
}

.pagination .page-numbers.current,
.comments-pagination .page-numbers.current {
	border-color: transparent;
	background-image: linear-gradient(to bottom right, var(--sky-500), var(--blue-600));
	box-shadow: var(--shadow-sky);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* ==========================================================================
   14. Comments
   ========================================================================== */

.comments-area {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
	.comments-area {
		padding: 2rem;
	}
}

.comments-title,
.comment-reply-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
}

.comments-title svg,
.comment-reply-title svg {
	color: var(--sky-400);
}

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

.comment-list .children {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--sky-100);
	list-style: none;
}

.comment-body {
	padding: 1rem 0;
}

.comment-list > li + li {
	border-top: 1px solid var(--sky-100);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
}

.comment-meta img {
	border-radius: 9999px;
}

.comment-author-name {
	color: var(--slate-800);
	font-size: 0.9375rem;
	font-weight: 600;
}

.comment-metadata {
	color: var(--slate-400);
	font-size: 0.75rem;
}

.comment-metadata a {
	color: inherit;
}

.comment-content {
	color: var(--slate-600);
	font-size: 0.9375rem;
}

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

.reply a,
.comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: var(--sky-50);
	color: var(--sky-600);
	font-size: 0.75rem;
	font-weight: 600;
}

.reply a:hover {
	background: var(--sky-100);
}

.comment-awaiting-moderation {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--orange-600);
	font-size: 0.8125rem;
}

.no-comments {
	color: var(--slate-500);
	font-size: 0.9375rem;
}

/* Comment form */

.comment-form {
	display: grid;
	gap: 1rem;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--slate-700);
	font-size: 0.8125rem;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--sky-200);
	border-radius: var(--radius);
	background: var(--sky-50);
	color: var(--slate-700);
	font-family: inherit;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--sky-400);
	background: #fff;
	box-shadow: 0 0 0 3px var(--sky-100);
}

.comment-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.comment-form .form-submit {
	margin: 0;
}

.comment-form input[type="submit"] {
	padding: 0.65rem 1.5rem;
	border: 0;
	border-radius: 9999px;
	background-image: linear-gradient(to right, var(--sky-500), var(--blue-600));
	box-shadow: var(--shadow-sky);
	color: #fff;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover {
	box-shadow: var(--shadow-lg);
}

.comment-form .comment-notes,
.comment-form .comment-form-cookies-consent {
	color: var(--slate-500);
	font-size: 0.8125rem;
}

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

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

/* ==========================================================================
   15. Search / 404 / empty states
   ========================================================================== */

.no-results {
	padding: 2.5rem 1.5rem;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: #fff;
	box-shadow: var(--shadow-sm);
	text-align: center;
}

.no-results__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	border-radius: 9999px;
	background-image: linear-gradient(to bottom right, var(--sky-400), var(--blue-600));
	color: #fff;
}

.no-results__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.no-results__text {
	margin: 0 auto 1.5rem;
	max-width: 32rem;
	color: var(--slate-600);
	font-size: 0.9375rem;
}

.no-results .search-form {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	max-width: 24rem;
	margin: 0 auto;
}

.no-results .search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid var(--sky-200);
	border-radius: 9999px;
	background: var(--sky-50);
	font-family: inherit;
	font-size: 0.875rem;
	outline: none;
}

.no-results .search-submit {
	padding: 0 1.25rem;
	border: 0;
	border-radius: 9999px;
	background-image: linear-gradient(to right, var(--sky-500), var(--blue-600));
	color: #fff;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.no-results__actions {
	margin: 1.5rem 0 0;
}

.error-404__code {
	margin: 0;
	background-image: linear-gradient(to right, var(--sky-500), var(--blue-600));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 4.5rem;
	font-weight: 700;
	line-height: 1;
}

/* ==========================================================================
   16. Site footer
   ========================================================================== */

.site-footer {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	margin-top: 4rem;
	background-image: linear-gradient(to bottom right, var(--sky-600), var(--sky-500) 55%, var(--blue-600));
	color: #fff;
}

.site-footer__wave {
	display: block;
	width: 100%;
	height: auto;
	color: var(--sky-50);
}

.site-footer__cloud {
	position: absolute;
	color: rgb(255 255 255 / 0.1);
	pointer-events: none;
}

.site-footer__cloud--1 {
	right: 2.5rem;
	bottom: 1.5rem;
	width: 5rem;
	height: 5rem;
}

.site-footer__cloud--2 {
	left: 4rem;
	bottom: 4rem;
	width: 3rem;
	height: 3rem;
}

.site-footer__inner {
	position: relative;
	padding-top: 2.5rem;
	padding-bottom: 2rem;
}

/* Linking columns */

.site-footer__widgets {
	display: grid;
	gap: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.15);
}

@media (min-width: 640px) {
	.site-footer__widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.site-footer__widgets {
		grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr;
		gap: 2.5rem;
	}
}

.footer-widget {
	min-width: 0;
}

.footer-widget__title {
	margin: 0 0 0.9rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid rgb(255 255 255 / 0.25);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
}

.footer-widget__text {
	margin: 0;
	color: var(--sky-100);
	font-size: 0.8125rem;
	line-height: 1.8;
}

.footer-widget__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.footer-widget__social a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.75rem;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.15);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.footer-widget__social a:hover {
	background: rgb(255 255 255 / 0.28);
	color: #fff;
}

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

.footer-list li + li {
	margin-top: 0.55rem;
}

.footer-list a {
	display: block;
	color: var(--sky-100);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.footer-list a:hover {
	color: #fff;
}

.footer-list time {
	display: block;
	margin-top: 0.15rem;
	color: rgb(224 242 254 / 0.65);
	font-size: 0.6875rem;
}

.footer-list--counted a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.footer-list--counted span {
	flex-shrink: 0;
	color: rgb(224 242 254 / 0.6);
	font-size: 0.6875rem;
}

.footer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.footer-tags a {
	padding: 0.2rem 0.6rem;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 9999px;
	color: var(--sky-100);
	font-size: 0.6875rem;
}

.footer-tags a:hover {
	background: rgb(255 255 255 / 0.2);
	color: #fff;
}

/* Widgets dropped into the footer area by the user */

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

.footer-widget li {
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
}

.footer-widget a {
	color: var(--sky-100);
}

.footer-widget a:hover {
	color: #fff;
}

/* Bottom bar */

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.75rem;
}

.site-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
}

.site-footer__brand:hover {
	color: #fff;
}

.site-footer__tagline {
	margin: 0;
	color: var(--sky-100);
	font-size: 0.875rem;
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.footer-navigation a {
	color: var(--sky-100);
}

.footer-navigation a:hover {
	color: #fff;
}

.site-footer__social {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.15);
	color: #fff;
}

.site-footer__social a:hover {
	background: rgb(255 255 255 / 0.25);
	color: #fff;
}

/* Legal line */

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.15);
}

.site-footer__copyright {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	color: #bae6fd;
	font-size: 0.75rem;
}

.site-footer__copyright a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer__copyright a:hover {
	color: #fff;
}

.site-footer__meta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	font-size: 0.75rem;
}

.site-footer__meta a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: #bae6fd;
}

.site-footer__meta a:hover {
	color: #fff;
}

/* ==========================================================================
   17. Cookie consent banner
   ========================================================================== */

.consent-banner {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 90;
	margin: 0 auto;
	max-width: 44rem;
	padding: 1.15rem 1.35rem;
	border: 1px solid var(--sky-100);
	border-radius: var(--radius-3xl);
	background: rgb(255 255 255 / 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--shadow-xl);
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.consent-banner[hidden] {
	display: none;
}

.consent-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.consent-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
}

.consent-banner__text {
	flex: 1 1 18rem;
	margin: 0;
	color: var(--slate-600);
	font-size: 0.8125rem;
	line-height: 1.7;
}

.consent-banner__text a {
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.consent-banner__actions {
	display: flex;
	flex-shrink: 0;
	gap: 0.5rem;
}

.consent-banner__actions .btn-ghost,
.consent-banner__actions .btn-primary {
	padding: 0.5rem 1.1rem;
	font-size: 0.8125rem;
	cursor: pointer;
}

.consent-banner__actions .btn-primary:hover {
	gap: 0.5rem;
}

@media (max-width: 480px) {
	.consent-banner__actions {
		width: 100%;
	}

	.consent-banner__actions button {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ==========================================================================
   18. Admin bar offset
   ========================================================================== */

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

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
