/*
Theme Name: 66w/
Theme URI: https://66w.jp/
Author: すっしー
Description: 福祉・介護の現場と技術をつなぐ、個人開発者のためのブロックテーマ。
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: 66w
*/

/* Keep visual defaults at low specificity so editor settings take priority. */
:where(body) {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

:where(a:hover) {
	text-decoration-thickness: 2px;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
}

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

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

.wp-site-blocks > main {
	flex: 1;
	min-width: 0;
}

:where(.site-header) {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid #e8edf1;
}

:where(.site-header-inner) {
	min-height: 76px;
}

:where(.site-navigation .wp-block-navigation-item__content) {
	text-decoration: none;
}

:where(.site-main) {
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(4.5rem, 10vw, 8rem);
}

:where(.page-heading) {
	margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

:where(.eyebrow) {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:where(.page-heading h1, .entry-header h1) {
	margin-top: 0;
	margin-bottom: 0;
	letter-spacing: -0.045em;
}

:where(.entry-content, .wp-block-post-title, .wp-block-site-title) {
	overflow-wrap: anywhere;
}

:where(.post-list) {
	margin-top: 0;
}

:where(.post-list > li) {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5ebef;
}

:where(.post-list > li:first-child) {
	border-top: 1px solid #e5ebef;
}

:where(.post-meta a) {
	text-decoration: none;
}

:where(.post-list .wp-block-post-title) {
	margin-top: 0.55rem;
	margin-bottom: 0.45rem;
	line-height: 1.55;
}

:where(.post-list .wp-block-post-title a:hover) {
	text-decoration: underline;
}

:where(.post-list .wp-block-post-excerpt) {
	margin-top: 0.45rem;
	margin-bottom: 0;
}

:where(.post-list .wp-block-post-excerpt__more-link) {
	font-weight: 600;
}

:where(.entry-header) {
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

:where(.entry-header .post-meta) {
	margin-top: 1rem;
}

:where(.entry-content > :first-child) {
	margin-top: 0;
}

:where(.entry-content > :last-child) {
	margin-bottom: 0;
}

:where(.entry-content h2) {
	margin-top: 2.8em;
	padding-bottom: 0.45em;
	border-bottom: 1px solid #dce5eb;
}

:where(.entry-content h2)::before {
	content: "";
	display: inline-block;
	width: 0.28em;
	height: 0.85em;
	margin-right: 0.55em;
	border-radius: 2px;
	background: var(--wp--preset--color--sand);
	vertical-align: -0.05em;
}

:where(.entry-content h3) {
	margin-top: 2.2em;
}

:where(.entry-content blockquote) {
	margin-right: 0;
	margin-left: 0;
}

:where(.entry-content pre, .wp-block-code) {
	max-width: 100%;
	overflow-x: auto;
}

.wp-block-code > code {
	white-space: pre;
}

:where(.entry-content figure.wp-block-table) {
	max-width: 100%;
	overflow-x: auto;
}

:where(.wp-block-button__link) {
	transition: transform 160ms ease;
}

:where(.wp-block-button__link:hover) {
	transform: translateY(-1px);
}

:where(.pagination) {
	margin-top: 2.5rem;
}

:where(.pagination a) {
	text-decoration: none;
}

:where(.post-navigation > *) {
	flex: 1 1 16rem;
	min-width: 0;
	overflow-wrap: anywhere;
}

:where(.site-footer) {
	border-top: 1px solid #e4eaef;
}

:where(.site-footer-inner) {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

:where(.site-footer-note) {
	color: var(--wp--preset--color--muted);
}

:where(.not-found-code) {
	color: var(--wp--preset--color--navy);
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 1;
}

:where(.pattern-accent) {
	border-left: 3px solid var(--wp--preset--color--sand);
}

:where(.wp-block-search__input) {
	min-width: 0;
	padding: 0.8rem 1rem;
	border: 1px solid #cbd6df;
	border-radius: 4px;
}

:where(.wp-block-search__button) {
	border: 0;
}

@media (max-width: 600px) {
	:where(.site-header-inner) {
		min-height: 68px;
	}

	:where(.site-main) {
		padding-top: 3rem;
	}

	:where(.post-list > li) {
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(.wp-block-button__link) {
		transition: none;
	}
}
