/*
Theme Name: RimuHosting Editorial
Template: twentytwentytwo
Version: 1.0.3
Description: A clean, text-led editorial child theme for the RimuHosting Blog.
*/

:root {
	--rh-paper: #fcfbf7;
	--rh-ink: #1d2728;
	--rh-accent: #15575c;
	--rh-muted: #667071;
	--rh-rule: #d8dedb;
	--rh-code: #f1f4f2;
	--rh-code-border: #d3dbd7;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--rh-paper);
	color: var(--rh-ink);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks {
	background: var(--rh-paper);
}

a {
	text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
	text-decoration-thickness: 0.075em;
	text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 2px solid var(--rh-accent);
	outline-offset: 3px;
}

/* Header */
.rh-editorial-header-shell {
	border-bottom: 1px solid var(--rh-rule);
}

.rh-editorial-header {
	box-sizing: border-box;
	gap: clamp(1rem, 3vw, 2rem);
	min-height: 76px;
	padding-bottom: clamp(1rem, 2.5vw, 1.65rem);
	padding-top: clamp(1rem, 2.5vw, 1.65rem);
}

.rh-editorial-identity {
	flex-shrink: 1;
	gap: 0.8rem;
	min-width: 0;
}

.rh-editorial-identity .wp-block-site-logo,
.rh-editorial-identity .wp-block-site-title {
	margin: 0;
}

.rh-editorial-identity .wp-block-site-logo img {
	display: block;
}

.rh-editorial-identity .wp-block-site-title {
	font-family: "Source Serif Pro", Georgia, serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-style: italic;
	font-weight: 450;
	letter-spacing: -0.015em;
	line-height: 1;
	white-space: nowrap;
}

.rh-editorial-navigation {
	flex-shrink: 0;
	font-size: 0.95rem;
}

.rh-editorial-navigation .wp-block-navigation-item__content {
	text-decoration: none;
}

.rh-editorial-navigation .wp-block-navigation__responsive-container-open,
.rh-editorial-navigation .wp-block-navigation__responsive-container-close {
	align-items: center;
	height: 44px;
	justify-content: center;
	width: 44px;
}

/* Editorial article */
.rh-editorial-article {
	padding-bottom: clamp(4rem, 8vw, 7rem);
	padding-top: clamp(2.75rem, 6vw, 5.5rem);
}

.rh-editorial-article-header .wp-block-post-title {
	letter-spacing: -0.025em;
	margin-bottom: 1rem;
	margin-top: 0;
}

.rh-editorial-meta,
.rh-editorial-taxonomy,
.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms {
	color: var(--rh-muted);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.88rem;
	line-height: 1.45;
}

.rh-editorial-meta {
	column-gap: 0.9rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
	row-gap: 0.35rem;
}

.rh-editorial-article-header .wp-block-post-featured-image {
	margin-bottom: clamp(2.75rem, 6vw, 5rem);
	margin-top: 0;
}

.rh-editorial-article-header .wp-block-post-featured-image img {
	height: auto;
}

.wp-block-post-content {
	font-family: "Source Serif Pro", Georgia, serif;
	font-size: clamp(1.125rem, 1.4vw, 1.225rem);
	line-height: 1.72;
}

.wp-block-post-content p,
.wp-block-post-content ul,
.wp-block-post-content ol {
	margin-bottom: 1.35em;
	margin-top: 0;
}

.wp-block-post-content li + li {
	margin-top: 0.35em;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	color: var(--rh-ink);
	font-family: "Source Serif Pro", Georgia, serif;
	letter-spacing: -0.012em;
	line-height: 1.18;
	margin-bottom: 0.65em;
	margin-top: 2.15em;
}

.wp-block-post-content h2 {
	font-size: clamp(1.8rem, 3vw, 2.35rem);
	font-weight: 500;
}

.wp-block-post-content h3 {
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-weight: 550;
}

.wp-block-post-content h4 {
	font-size: 1.2rem;
	font-weight: 650;
}

.wp-block-post-content blockquote {
	border-left: 3px solid var(--rh-accent);
	color: #3f4a4b;
	font-size: 1.08em;
	font-style: italic;
	margin-bottom: 1.8em;
	margin-top: 1.8em;
	padding-left: clamp(1rem, 3vw, 1.6rem);
}

.wp-block-post-content figcaption {
	color: var(--rh-muted);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.85rem;
	line-height: 1.45;
	margin-top: 0.65rem;
	text-align: left;
}

.wp-block-separator {
	border-color: var(--rh-rule);
	opacity: 1;
}

/* Code, terminal output and data */
.wp-block-post-content code,
.wp-block-post-content kbd,
.wp-block-post-content samp,
.wp-block-post-content pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.wp-block-post-content :not(pre) > code,
.wp-block-post-content kbd,
.wp-block-post-content samp {
	background: var(--rh-code);
	border: 1px solid var(--rh-code-border);
	border-radius: 3px;
	font-size: 0.84em;
	padding: 0.08em 0.32em;
}

.wp-block-post-content pre,
.wp-block-post-content .wp-block-code,
.wp-block-post-content .wp-block-preformatted,
.wp-syntax {
	background: var(--rh-code);
	border: 1px solid var(--rh-code-border);
	border-radius: 5px;
	box-sizing: border-box;
	color: #152021;
	font-size: 0.9rem;
	line-height: 1.58;
	margin-bottom: 2rem;
	margin-top: 2rem;
	max-width: var(--wp--style--global--content-size);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 1.1rem 1.25rem;
	tab-size: 4;
	white-space: pre;
	-webkit-overflow-scrolling: touch;
}

.wp-block-post-content pre code,
.wp-syntax pre {
	background: transparent;
	border: 0;
	font-size: inherit;
	margin: 0;
	padding: 0;
	white-space: pre;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	border-collapse: collapse;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.92rem;
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--rh-rule);
	padding: 0.65rem 0.8rem;
}

.wp-block-table th {
	background: var(--rh-code);
	text-align: left;
}

.rh-editorial-taxonomy {
	border-top: 1px solid var(--rh-rule);
	margin-top: clamp(3rem, 7vw, 6rem);
	padding-top: 1.25rem;
}

/* Text-led home */
.rh-editorial-home {
	padding-bottom: clamp(4rem, 8vw, 7rem);
	padding-top: clamp(2.75rem, 6vw, 5.5rem);
}

.rh-editorial-home-title {
	font-family: "Source Serif Pro", Georgia, serif;
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	font-weight: 350;
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	margin-top: 0;
}

.rh-editorial-post-list .wp-block-post-template {
	margin: 0;
}

.rh-editorial-post-entry {
	border-top: 1px solid var(--rh-rule);
	padding-bottom: clamp(2.25rem, 5vw, 4rem);
	padding-top: clamp(2.25rem, 5vw, 4rem);
}

.rh-editorial-post-entry .wp-block-post-title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin: 0 0 0.65rem;
	max-width: 52rem;
}

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

.rh-editorial-post-entry .wp-block-post-excerpt {
	font-family: "Source Serif Pro", Georgia, serif;
	font-size: clamp(1.08rem, 1.8vw, 1.22rem);
	line-height: 1.62;
	margin-top: 1.35rem;
	max-width: 44rem;
}

.rh-editorial-post-entry .rh-editorial-meta {
	margin-bottom: 0;
}

.rh-editorial-post-entry .wp-block-post-excerpt__more-link {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
}

.rh-editorial-pagination {
	border-top: 1px solid var(--rh-rule);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding-top: 1.5rem;
}

/* Footer */
.rh-editorial-footer-shell {
	border-top: 1px solid var(--rh-rule);
}

.rh-editorial-footer {
	box-sizing: border-box;
	gap: 1rem;
	padding-bottom: clamp(2rem, 5vw, 4rem);
	padding-top: clamp(2rem, 5vw, 4rem);
}

.rh-editorial-footer .wp-block-site-title {
	font-family: "Source Serif Pro", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 500;
	margin: 0;
}

.rh-editorial-footer .wp-block-navigation {
	font-size: 0.85rem;
}

.rh-editorial-footer-subscribe {
	gap: 0.45rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.85rem;
}

.rh-editorial-footer-subscribe p {
	margin: 0;
}

.rh-editorial-footer-subscribe a {
	font-weight: 650;
}

@media (max-width: 600px) {
	.rh-editorial-header {
		flex-wrap: nowrap;
		min-height: 68px;
	}

	.rh-editorial-identity {
		gap: 0.55rem;
	}

	.rh-editorial-identity .wp-block-site-logo img {
		height: auto;
		width: 42px;
	}

	.rh-editorial-identity .wp-block-site-title {
		font-size: clamp(1.25rem, 6.4vw, 1.55rem);
	}

	.rh-editorial-navigation .wp-block-navigation__responsive-container.is-menu-open {
		padding: 1.25rem;
	}

	.rh-editorial-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.rh-editorial-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: flex-start;
		width: 100%;
	}

	.rh-editorial-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-family: "Source Serif Pro", Georgia, serif;
		font-size: 1.4rem;
	}

	.rh-editorial-article,
	.rh-editorial-home {
		padding-top: 2.35rem;
	}

	.rh-editorial-article-header .wp-block-post-title {
		font-size: clamp(2.45rem, 11vw, 3.15rem);
		line-height: 1.03;
	}

	.rh-editorial-meta {
		margin-bottom: 1.75rem;
	}

	.rh-editorial-article-header .wp-block-post-featured-image {
		margin-bottom: 2.5rem;
	}

	.wp-block-post-content {
		font-size: 1.1rem;
		line-height: 1.68;
	}

	.wp-block-post-content pre,
	.wp-block-post-content .wp-block-code,
	.wp-block-post-content .wp-block-preformatted,
	.wp-syntax {
		font-size: 0.82rem;
		margin-bottom: 1.6rem;
		margin-top: 1.6rem;
		padding: 0.9rem 1rem;
	}

	.rh-editorial-post-entry {
		padding-bottom: 2.4rem;
		padding-top: 2.4rem;
	}

	.rh-editorial-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

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