/*
Theme Name: Orekey Theme
Theme URI: https://orekey.jp/
Author: Orekey
Description: A dark, image-first block theme for the Orekey keyboard photo community.
Version: 0.2.1
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: orekey-theme
*/

:root {
	--orekey-bg: #05070a;
	--orekey-bg-soft: #081019;
	--orekey-surface: #0b1016;
	--orekey-surface-high: #121a24;
	--orekey-surface-low: #070a0f;
	--orekey-line: rgba(143, 162, 184, 0.2);
	--orekey-line-strong: rgba(56, 211, 255, 0.42);
	--orekey-text: #edf4fb;
	--orekey-muted: #94a4b7;
	--orekey-dim: #637286;
	--orekey-accent: #38d3ff;
	--orekey-accent-deep: #0d8ed6;
	--orekey-gold: #d9aa4a;
	--orekey-safe: #5fd48b;
	--orekey-danger: #ff6f79;
	--orekey-radius: 8px;
	--orekey-radius-small: 5px;
	--orekey-shadow: 0 20px 58px rgba(0, 0, 0, 0.42);
	--orekey-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
	--orekey-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}
html {
	background: var(--orekey-bg);
	min-width: 320px;
	overflow-x: hidden;
}

body {
	background:
		linear-gradient(180deg, rgba(56, 211, 255, 0.07), transparent 320px),
		linear-gradient(140deg, rgba(217, 170, 74, 0.035), transparent 460px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		var(--orekey-bg);
	background-size: auto, auto, 72px 72px, auto;
	color: var(--orekey-text);
	font-family: var(--orekey-font);
	margin: 0;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

html.orekey-lightbox-active,
body.orekey-lightbox-active {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
	outline: 2px solid rgba(56, 211, 255, 0.86);
	outline-offset: 3px;
}

button,
input,
textarea,
select {
	font: inherit;
}

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

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

.wp-block-group,
.wp-block-query,
.wp-block-post-template,
.wp-block-template-part {
	min-width: 0;
}

.wp-block-post-title a,
.wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-date,
.wp-block-post-author-name,
.wp-block-post-comments-link,
.wp-block-comment-date {
	color: var(--orekey-muted);
	font-family: var(--orekey-mono);
	font-size: 0.76rem;
}

.orekey-brand {
	align-items: center;
	display: flex;
	gap: 12px;
	margin: 0;
}

.orekey-brand::before {
	background:
		radial-gradient(circle at 25% 25%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 50% 25%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 75% 25%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 25% 50%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 50% 50%, var(--orekey-accent) 0 2px, transparent 3px),
		radial-gradient(circle at 75% 50%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 25% 75%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 50% 75%, #dce9f5 0 2px, transparent 3px),
		radial-gradient(circle at 75% 75%, #dce9f5 0 2px, transparent 3px),
		linear-gradient(145deg, rgba(56, 211, 255, 0.14), rgba(13, 142, 214, 0.04));
	border: 1px solid rgba(56, 211, 255, 0.48);
	border-radius: var(--orekey-radius);
	box-shadow: 0 0 28px rgba(56, 211, 255, 0.12);
	content: "";
	flex: 0 0 38px;
	height: 38px;
	width: 38px;
}

.orekey-brand-text {
	gap: 0;
}

.orekey-brand-text .wp-block-site-title {
	font-family: var(--orekey-mono);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
}

.orekey-brand-text .wp-block-site-tagline {
	color: var(--orekey-muted);
	font-size: 11px;
	line-height: 1.4;
	margin: 4px 0 0;
}

/* Home shell and persistent navigation. */
.orekey-home-shell {
	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	margin: 0 auto;
	max-width: 2040px;
	min-height: 100vh;
	width: 100%;
}

.orekey-sidebar {
	background: rgba(5, 7, 10, 0.9);
	border-right: 1px solid var(--orekey-line);
	box-shadow: 18px 0 42px rgba(0, 0, 0, 0.22);
	height: 100vh;
	padding: 24px 18px;
	position: sticky;
	top: 0;
	z-index: 25;
}

.orekey-sidebar-inner > .orekey-brand {
	margin-bottom: 28px;
}

.orekey-nav-label {
	color: var(--orekey-muted);
	font-family: var(--orekey-mono);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin: 22px 0 8px;
	text-transform: uppercase;
}

.orekey-nav-group,
.orekey-nav-group .wp-block-navigation__container {
	align-items: stretch;
	gap: 2px;
	width: 100%;
}

.orekey-nav-link {
	border: 1px solid transparent;
	border-radius: var(--orekey-radius-small);
	color: var(--orekey-muted);
	font-size: 14px;
	min-height: 42px;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
	width: 100%;
}

.orekey-nav-link > .wp-block-navigation-item__content {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: space-between;
	padding: 9px 12px;
	width: 100%;
}

.orekey-nav-link:hover,
.orekey-nav-link.is-active {
	background: rgba(56, 211, 255, 0.08);
	border-color: rgba(56, 211, 255, 0.24);
	color: var(--orekey-text);
}

.orekey-nav-link.is-active > .wp-block-navigation-item__content::after {
	background: var(--orekey-accent);
	border-radius: 50%;
	box-shadow: 0 0 14px rgba(56, 211, 255, 0.72);
	content: "";
	height: 7px;
	width: 7px;
}

.orekey-side-panel {
	background: linear-gradient(180deg, rgba(18, 26, 36, 0.94), rgba(8, 12, 17, 0.94));
	border: 1px solid var(--orekey-line);
	border-radius: var(--orekey-radius);
	margin-top: 12px;
	padding: 14px;
}

.orekey-side-panel-safe {
	background: linear-gradient(180deg, rgba(28, 51, 39, 0.52), rgba(8, 12, 17, 0.94));
	border-color: rgba(95, 212, 139, 0.24);
}

.orekey-side-panel h3 {
	font-size: 13px;
	margin: 0 0 7px;
}

.orekey-side-panel p {
	color: var(--orekey-muted);
	font-size: 12px;
	line-height: 1.75;
	margin: 0;
}

.orekey-main {
	margin: 0;
	max-width: 1680px;
	overflow-x: hidden;
	padding: 22px min(3.5vw, 42px) 56px;
	width: 100%;
}

.orekey-page-content {
	min-width: 0;
}

.orekey-page-content > .wp-block-post-content {
	margin: 0;
}

/* Search and account actions. */
.orekey-topbar {
	align-items: center;
	backdrop-filter: blur(14px);
	background: linear-gradient(180deg, rgba(5, 7, 10, 0.97), rgba(5, 7, 10, 0.78) 72%, transparent);
	border-bottom: 1px solid rgba(143, 162, 184, 0.08);
	display: flex;
	gap: 10px;
	padding: 0 0 16px;
	position: sticky;
	top: 0;
	z-index: 20;
}

.orekey-search {
	flex: 1 1 auto;
	margin: 0;
}

.orekey-search .wp-block-search__inside-wrapper {
	background: rgba(8, 12, 17, 0.84);
	border: 1px solid var(--orekey-line);
	border-radius: var(--orekey-radius-small);
	min-height: 46px;
	padding: 4px 6px 4px 14px;
}

.orekey-search .wp-block-search__input {
	background: transparent;
	border: 0;
	color: var(--orekey-text);
	min-width: 0;
	outline: 0;
}

.orekey-search .wp-block-search__input::placeholder {
	color: var(--orekey-dim);
}

.orekey-search .wp-block-search__button {
	background: rgba(56, 211, 255, 0.1);
	border: 1px solid rgba(56, 211, 255, 0.22);
	color: var(--orekey-accent);
	margin: 0;
	padding: 8px 11px;
}

.orekey-topbar .wp-block-buttons {
	gap: 0;
}

.orekey-top-button,
.orekey-top-button > .wp-block-navigation-item__content,
.orekey-top-button > .wp-block-button__link,
.orekey-top-button.wp-block-loginout a {
	align-items: center;
	background: rgba(8, 12, 17, 0.72);
	border: 1px solid var(--orekey-line);
	border-radius: var(--orekey-radius-small);
	color: var(--orekey-muted);
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
	white-space: nowrap;
}

.orekey-top-button:hover,
.orekey-top-button:hover > .wp-block-navigation-item__content,
.orekey-top-button:hover > .wp-block-button__link,
.orekey-top-button.wp-block-loginout a:hover {
	border-color: var(--orekey-line-strong);
	color: var(--orekey-text);
}

.orekey-top-button.is-primary,
.orekey-top-button.is-primary > .wp-block-navigation-item__content,
.orekey-top-button.is-primary > .wp-block-button__link {
	background: linear-gradient(180deg, #79e8ff, var(--orekey-accent));
	border-color: rgba(56, 211, 255, 0.64);
	box-shadow: 0 12px 30px rgba(56, 211, 255, 0.18);
	color: #03141c;
}

.orekey-top-button.is-primary:hover {
	transform: translateY(-1px);
}

/* Dynamic recommendations. */
.orekey-recommend-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
	margin: 12px 0 18px;
}

.orekey-recommend-card {
	background: var(--orekey-surface-low);
	border: 1px solid rgba(56, 211, 255, 0.18);
	border-radius: var(--orekey-radius);
	box-shadow: var(--orekey-shadow);
	height: clamp(330px, 31vw, 430px);
	overflow: hidden;
	position: relative;
}

.orekey-recommend-card:hover {
	border-color: rgba(56, 211, 255, 0.36);
}

.orekey-rec-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	left: 18px;
	position: absolute;
	right: 18px;
	top: 16px;
	z-index: 5;
}

.orekey-rec-head p {
	color: var(--orekey-accent);
	font-family: var(--orekey-mono);
	font-size: 12px;
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
}

.orekey-rec-head p:last-child {
	color: rgba(237, 244, 251, 0.62);
	font-size: 11px;
}

.orekey-rec-query,
.orekey-rec-query > .orekey-rec-track {
	height: 100%;
}

.orekey-rec-query {
	overflow: hidden;
}

.orekey-rec-track {
	cursor: grab;
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	touch-action: pan-y;
	transition: transform 520ms cubic-bezier(0.22, 0.9, 0.2, 1);
	user-select: none;
	width: 100%;
}

.orekey-rec-track.is-dragging {
	cursor: grabbing;
	transition: none;
}

.orekey-rec-track > li {
	flex: 0 0 100%;
	height: 100%;
	margin: 0;
	max-width: 100%;
	min-width: 0;
}

.orekey-rec-slide {
	background: repeating-linear-gradient(90deg, #111923 0 32px, #1a2430 32px 38px, #070a0f 38px 43px);
	height: 100%;
	margin: 0;
	position: relative;
}

.orekey-rec-slide::after {
	background:
		linear-gradient(90deg, rgba(5, 7, 10, 0.84), rgba(5, 7, 10, 0.22) 64%, rgba(5, 7, 10, 0.56)),
		linear-gradient(180deg, rgba(5, 7, 10, 0.06), rgba(5, 7, 10, 0.86));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.orekey-rec-image,
.orekey-rec-image a,
.orekey-rec-image img {
	height: 100%;
	inset: 0;
	margin: 0;
	position: absolute;
	width: 100%;
}

.orekey-rec-image img {
	object-fit: cover;
}

.orekey-rec-copy {
	bottom: 22px;
	left: 22px;
	max-width: calc(100% - 44px);
	position: absolute;
	right: 22px;
	z-index: 2;
}

.orekey-rec-copy .wp-block-post-title {
	font-size: clamp(2rem, 4vw, 4.2rem);
	font-weight: 850;
	line-height: 1.12;
	margin: 0;
	max-width: 920px;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.orekey-recommend-card.is-week .orekey-rec-copy .wp-block-post-title {
	font-size: clamp(1.45rem, 2.35vw, 2.35rem);
	max-width: 620px;
}

.orekey-rec-copy .wp-block-post-excerpt {
	color: rgba(237, 244, 251, 0.78);
	font-size: 13px;
	line-height: 1.7;
	margin: 10px 0 0;
	max-width: 680px;
}

.orekey-rec-copy .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.orekey-meta-line {
	align-items: center;
	color: rgba(237, 244, 251, 0.76);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 8px;
	margin-top: 12px;
}

.orekey-meta-line > * {
	margin: 0;
}

.orekey-meta-line .taxonomy-category a {
	background: linear-gradient(180deg, #ffe094, var(--orekey-gold));
	border-radius: 999px;
	color: #160f05;
	display: inline-flex;
	font-family: var(--orekey-mono);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	padding: 5px 8px;
}

.orekey-photo-badge {
	background: rgba(5, 7, 10, 0.64);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(237, 244, 251, 0.82);
	font-family: var(--orekey-mono);
	font-size: 11px;
	padding: 4px 8px;
	position: absolute;
	right: 18px;
	top: 52px;
	z-index: 3;
}

.orekey-rec-controls {
	bottom: 16px;
	display: flex;
	gap: 4px;
	position: absolute;
	right: 18px;
	z-index: 5;
}

.orekey-rec-controls button {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.32);
	cursor: pointer;
	height: 28px;
	padding: 0;
	position: relative;
	width: 24px;
}

.orekey-rec-controls button::before {
	background: currentColor;
	border-radius: inherit;
	content: "";
	height: 7px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background 180ms ease, box-shadow 180ms ease, width 180ms ease;
	width: 7px;
}

.orekey-rec-controls button:hover,
.orekey-rec-controls button:focus-visible {
	color: rgba(56, 211, 255, 0.72);
}

.orekey-rec-controls button.is-active::before {
	background: var(--orekey-accent);
	box-shadow: 0 0 14px rgba(56, 211, 255, 0.62);
	width: 20px;
}

/* Filters and the real WordPress post feed. */
.orekey-filter-row {
	align-items: center;
	gap: 10px;
	justify-content: space-between;
	margin: 0 0 18px;
}

.orekey-filter-set,
.orekey-filter-set .wp-block-navigation__container {
	gap: 8px;
}

.orekey-filter {
	background: rgba(8, 12, 17, 0.76);
	border: 1px solid var(--orekey-line);
	border-radius: var(--orekey-radius-small);
	color: var(--orekey-muted);
	font-size: 13px;
	min-height: 36px;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.orekey-filter > .wp-block-navigation-item__content {
	padding: 7px 13px;
}

.orekey-filter.is-active,
.orekey-filter:hover {
	background: rgba(56, 211, 255, 0.1);
	border-color: rgba(56, 211, 255, 0.36);
	color: var(--orekey-text);
}

.orekey-section-meta,
.orekey-feed-count {
	color: var(--orekey-accent);
	font-family: var(--orekey-mono);
	font-size: 11px;
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
}

.orekey-feed-head {
	align-items: end;
	border-bottom: 1px solid rgba(143, 162, 184, 0.12);
	gap: 18px;
	justify-content: space-between;
	margin: 8px 0 16px;
	padding-bottom: 14px;
}

.orekey-feed-head h2 {
	font-size: clamp(1.32rem, 1.8vw, 1.72rem);
	line-height: 1.25;
	margin: 5px 0 0;
}

.orekey-feed-head > p {
	color: var(--orekey-muted);
	font-size: 13px;
	line-height: 1.75;
	margin: 0;
	max-width: 520px;
}

.orekey-feed {
	column-count: 3;
	column-gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.orekey-feed > li {
	break-inside: avoid;
	display: inline-block;
	margin: 0 0 16px;
	width: 100%;
}

.orekey-post-card {
	background: linear-gradient(180deg, rgba(11, 16, 22, 0.98), rgba(7, 10, 14, 0.98));
	border: 1px solid rgba(143, 162, 184, 0.16);
	border-radius: var(--orekey-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.orekey-post-card:hover {
	border-color: rgba(56, 211, 255, 0.36);
	box-shadow: 0 18px 54px rgba(0, 0, 0, 0.4);
	transform: translateY(-3px);
}

.orekey-card-image {
	background: repeating-linear-gradient(90deg, #141b25 0 28px, #202b39 28px 34px, #090c11 34px 40px);
	margin: 0;
	overflow: hidden;
}

.orekey-card-image a {
	display: block;
}

.orekey-card-image img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	transition: filter 180ms ease, transform 280ms ease;
	width: 100%;
}

.orekey-feed > li:nth-child(5n + 1) .orekey-card-image img,
.orekey-feed > li:nth-child(5n + 4) .orekey-card-image img {
	aspect-ratio: 4 / 5;
}

.orekey-feed > li:nth-child(7n) .orekey-card-image img {
	aspect-ratio: 3 / 4;
}

.orekey-post-card:hover .orekey-card-image img {
	filter: saturate(1.04) brightness(1.08);
	transform: scale(1.015);
}

.orekey-card-body {
	background: linear-gradient(180deg, rgba(11, 16, 22, 0.92), rgba(7, 10, 14, 0.98));
	padding: 15px;
}

.orekey-card-body .wp-block-post-title {
	font-size: 15.5px;
	line-height: 1.55;
	margin: 0 0 9px;
	text-wrap: pretty;
}

.orekey-card-meta {
	align-items: center;
	color: var(--orekey-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 8px;
}

.orekey-card-meta > * {
	margin: 0;
}

.orekey-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 13px;
}

.orekey-tags a {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(143, 162, 184, 0.16);
	border-radius: 999px;
	color: var(--orekey-muted);
	display: inline-flex;
	font-size: 11px;
	margin: 0 2px 4px 0;
	padding: 4px 7px;
}

.orekey-card-body .wp-block-post-excerpt {
	border-top: 1px solid rgba(143, 162, 184, 0.14);
	color: var(--orekey-muted);
	font-size: 12px;
	line-height: 1.7;
	margin: 0;
	padding-top: 12px;
}

.orekey-card-body .wp-block-post-excerpt__excerpt {
	margin: 0 0 8px;
}

.orekey-card-body .wp-block-post-excerpt__more-link {
	color: var(--orekey-accent);
	font-family: var(--orekey-mono);
	font-size: 11px;
	font-weight: 800;
}

.orekey-pagination,
.orekey-post-adjacent {
	border-top: 1px solid rgba(143, 162, 184, 0.14);
	color: var(--orekey-muted);
	margin-top: 20px;
	padding-top: 18px;
}

.orekey-pagination a,
.orekey-post-adjacent a {
	border: 1px solid var(--orekey-line);
	border-radius: var(--orekey-radius-small);
	display: inline-flex;
	padding: 9px 12px;
}

.orekey-empty-state {
	align-items: center;
	color: var(--orekey-muted);
	display: flex;
	height: 100%;
	justify-content: center;
	margin: 0;
	min-height: 220px;
	padding: 32px;
	text-align: center;
}

/* Single post and real WordPress content. */
.orekey-post-page {
	min-height: 100vh;
}

.orekey-post-shell {
	margin: 0 auto;
	max-width: 1560px;
	min-height: 100vh;
	padding: 22px min(3.5vw, 42px) 64px;
	width: 100%;
}

.orekey-post-topbar,
.orekey-site-header {
	align-items: center;
	backdrop-filter: blur(14px);
	background: linear-gradient(180deg, rgba(5, 7, 10, 0.97), rgba(5, 7, 10, 0.8) 74%, transparent);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 0 0 16px;
	position: sticky;
	top: 0;
	z-index: 30;
}

.orekey-post-nav,
.orekey-post-nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.orekey-post-layout {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) 340px;
}

.orekey-post-main {
	min-width: 0;
}

.orekey-detail-panel {
	background: linear-gradient(180deg, rgba(11, 16, 22, 0.98), rgba(7, 10, 14, 0.98));
	border: 1px solid rgba(143, 162, 184, 0.16);
	border-radius: var(--orekey-radius);
	box-shadow: var(--orekey-shadow);
	overflow: hidden;
}

.orekey-detail-hero {
	background: var(--orekey-surface-low);
	margin: 0;
	position: relative;
}

.orekey-detail-hero::after {
	background: rgba(5, 7, 10, 0.66);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	bottom: 18px;
	color: rgba(237, 244, 251, 0.84);
	content: "クリックで全画面";
	font-family: var(--orekey-mono);
	font-size: 11px;
	pointer-events: none;
	position: absolute;
	right: 18px;
	z-index: 2;
	padding: 5px 9px;
}

.orekey-detail-hero img {
	aspect-ratio: 16 / 9;
	cursor: zoom-in;
	display: block;
	min-height: clamp(300px, 39vw, 520px);
	object-fit: cover;
	width: 100%;
}

.orekey-detail-body {
	padding: 24px;
}

.orekey-detail-eyebrow {
	align-items: center;
	color: var(--orekey-accent);
	display: inline-flex;
	font-family: var(--orekey-mono);
	font-size: 12px;
	font-weight: 800;
	gap: 7px;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.orekey-detail-eyebrow::before {
	background: var(--orekey-accent);
	content: "";
	height: 1px;
	margin-right: 3px;
	width: 30px;
}

.orekey-detail-title {
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 860;
	line-height: 1.14;
	margin: 0 0 12px;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.orekey-detail-lead {
	color: var(--orekey-muted);
	font-size: 15px;
	line-height: 1.95;
	margin: 18px 0 0;
	max-width: 820px;
}

.orekey-detail-lead .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.orekey-article-panel,
.orekey-comment-panel {
	margin-top: 18px;
	padding: 24px;
}

.orekey-single-content {
	font-size: 16px;
	line-height: 1.95;
}

.orekey-single-content > * {
	margin-block: 0 1.25rem;
}

.orekey-single-content p {
	color: #c5d0dc;
}

.orekey-single-content h2,
.orekey-single-content h3 {
	margin-top: 2em;
	text-wrap: pretty;
}

.orekey-single-content figure {
	margin-inline: 0;
}

.orekey-single-content img {
	border: 1px solid rgba(143, 162, 184, 0.16);
	border-radius: var(--orekey-radius);
	cursor: zoom-in;
	display: block;
	max-height: 82vh;
	object-fit: contain;
	width: auto;
}

.orekey-single-content figcaption {
	color: var(--orekey-muted);
	font-size: 12px;
	line-height: 1.7;
	margin-top: 7px;
}

.orekey-single-content .wp-block-embed {
	border: 1px dashed rgba(56, 211, 255, 0.34);
	border-radius: var(--orekey-radius);
	padding: 12px;
}

.orekey-post-side {
	display: grid;
	gap: 14px;
	position: sticky;
	top: 82px;
}

.orekey-side-card {
	padding: 16px;
}

.orekey-side-card h2 {
	font-size: 16px;
	margin: 0 0 13px;
}

.orekey-author-card {
	align-items: center;
	display: grid;
	gap: 4px 12px;
	grid-template-columns: 54px 1fr;
}

.orekey-author-card .wp-block-post-author__avatar {
	grid-row: 1 / span 2;
}

.orekey-author-card .avatar {
	border: 1px solid rgba(56, 211, 255, 0.42);
	border-radius: 50%;
}

.orekey-author-card .wp-block-post-author__byline,
.orekey-author-card .wp-block-post-author__bio {
	color: var(--orekey-muted);
	font-size: 12px;
	margin: 0;
}

.orekey-author-card .wp-block-post-author__name {
	font-weight: 800;
	margin: 0;
}

.orekey-author-card .wp-block-post-author__bio {
	grid-column: 1 / -1;
	line-height: 1.7;
	margin-top: 8px;
}

.orekey-privacy-note {
	background: rgba(95, 212, 139, 0.055);
	border: 1px solid rgba(95, 212, 139, 0.22);
	border-radius: var(--orekey-radius-small);
	color: var(--orekey-muted);
	font-size: 12px;
	line-height: 1.75;
	margin: 0;
	padding: 13px;
}

.orekey-related-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.orekey-related-list > li {
	margin: 0;
}

.orekey-related-link {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 76px 1fr;
}

.orekey-related-thumb,
.orekey-related-thumb a {
	display: block;
	margin: 0;
}

.orekey-related-thumb img {
	aspect-ratio: 4 / 3;
	border-radius: var(--orekey-radius-small);
	display: block;
	object-fit: cover;
	width: 76px;
}

.orekey-related-link .wp-block-post-title {
	font-size: 12px;
	line-height: 1.55;
	margin: 0;
	text-wrap: pretty;
}

.orekey-comments h2 {
	font-size: 1.45rem;
	margin-top: 0;
}

.orekey-comment {
	border-top: 1px solid rgba(143, 162, 184, 0.14);
	display: grid;
	gap: 8px;
	padding: 16px 0;
}

.orekey-comment-meta {
	align-items: center;
	gap: 9px;
}

.orekey-comment .avatar {
	border-radius: 50%;
}

.orekey-comment p {
	color: var(--orekey-muted);
}

.orekey-comments .comment-respond {
	border-top: 1px solid rgba(143, 162, 184, 0.14);
	margin-top: 18px;
	padding-top: 18px;
}

.orekey-comments input:not([type="submit"]),
.orekey-comments textarea {
	background: rgba(5, 7, 10, 0.52);
	border: 1px solid var(--orekey-line);
	border-radius: var(--orekey-radius-small);
	color: var(--orekey-text);
	padding: 12px;
	width: 100%;
}

.orekey-comments input[type="submit"] {
	background: rgba(56, 211, 255, 0.12);
	border: 1px solid rgba(56, 211, 255, 0.48);
	color: var(--orekey-text);
	cursor: pointer;
	font-weight: 800;
	min-height: 44px;
	padding: 0 18px;
}

/* Accessible, script-created image viewer. */
.orekey-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(16px);
	display: none;
	flex-direction: column;
	gap: 12px;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 1000;
}

.orekey-lightbox.is-open {
	display: flex;
}

.orekey-lightbox-photo {
	border: 1px solid rgba(56, 211, 255, 0.3);
	border-radius: var(--orekey-radius);
	box-shadow: 0 30px 110px rgba(0, 0, 0, 0.72);
	height: min(78vh, 820px);
	object-fit: contain;
	order: 1;
	width: min(92vw, 1320px);
}

.orekey-lightbox-close,
.orekey-lightbox-arrow {
	background: rgba(11, 16, 22, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--orekey-radius-small);
	color: var(--orekey-text);
	cursor: pointer;
	position: fixed;
	z-index: 1001;
}

.orekey-lightbox-close {
	font-size: 24px;
	height: 44px;
	right: 20px;
	top: 20px;
	width: 44px;
}

.orekey-lightbox-count {
	background: rgba(11, 16, 22, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: var(--orekey-text);
	font-family: var(--orekey-mono);
	font-size: 13px;
	order: 2;
	padding: 5px 13px;
}

.orekey-lightbox-arrow {
	font-size: 32px;
	height: 62px;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
}

.orekey-lightbox-arrow.is-prev {
	left: 20px;
}

.orekey-lightbox-arrow.is-next {
	right: 20px;
}

.orekey-lightbox-caption {
	color: var(--orekey-muted);
	font-size: 13px;
	line-height: 1.7;
	max-width: min(92vw, 860px);
	order: 3;
	text-align: center;
}

.orekey-mobile-tabs {
	display: none;
}

/* Archive and simple fallback pages. */
.orekey-site-header,
.orekey-site-footer,
.wp-site-blocks > main:not(.orekey-main) {
	margin-inline: auto;
	max-width: 1480px;
	padding-inline: min(3.5vw, 42px);
}

.orekey-site-header {
	padding-top: 18px;
}

.orekey-site-footer {
	border-top: 1px solid var(--orekey-line);
	color: var(--orekey-muted);
	font-size: 12px;
	margin-top: 40px;
	padding-block: 24px;
}

@media (min-width: 1880px) {
	.orekey-feed {
		column-count: 4;
	}
}

@media (max-width: 1180px) {
	.orekey-home-shell {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.orekey-sidebar {
		padding: 18px 12px;
	}

	.orekey-sidebar .orekey-brand {
		justify-content: center;
	}

	.orekey-sidebar .orekey-brand-text,
	.orekey-sidebar .orekey-nav-label,
	.orekey-sidebar .orekey-side-panel {
		display: none;
	}

	.orekey-nav-link {
		font-size: 0;
		min-height: 44px;
	}

	.orekey-nav-link > .wp-block-navigation-item__content {
		justify-content: center;
		padding: 0;
	}

	.orekey-nav-link > .wp-block-navigation-item__content::before {
		background: var(--orekey-muted);
		border-radius: 3px;
		content: "";
		height: 17px;
		width: 17px;
	}

	.orekey-nav-link.is-active > .wp-block-navigation-item__content::after {
		display: none;
	}

	.orekey-nav-link:hover > .wp-block-navigation-item__content::before,
	.orekey-nav-link.is-active > .wp-block-navigation-item__content::before {
		background: var(--orekey-accent);
	}

	.orekey-recommend-grid {
		grid-template-columns: 1fr;
	}

	.orekey-feed {
		column-count: 2;
	}

	.orekey-post-layout {
		grid-template-columns: 1fr;
	}

	.orekey-post-side {
		position: static;
	}
}

@media (max-width: 820px) {
	body {
		padding-bottom: 64px;
	}

	.orekey-home-shell {
		display: block;
	}

	.orekey-sidebar {
		display: none;
	}

	.orekey-main,
	.orekey-post-shell {
		max-width: 100%;
		overflow-x: hidden;
		padding: 14px 14px 40px;
	}

	.orekey-topbar {
		position: relative;
	}

	.orekey-topbar > .orekey-top-button,
	.orekey-topbar > .wp-block-buttons {
		display: none;
	}

	.orekey-recommend-card {
		height: 300px;
	}

	.orekey-rec-copy {
		bottom: 20px;
		left: 18px;
		max-width: calc(100% - 36px);
		right: 18px;
	}

	.orekey-rec-copy .wp-block-post-title,
	.orekey-recommend-card.is-week .orekey-rec-copy .wp-block-post-title {
		font-size: clamp(1.55rem, 7vw, 2rem);
		line-height: 1.18;
	}

	.orekey-rec-copy .wp-block-post-excerpt {
		display: none;
	}

	.orekey-filter-set {
		overflow-x: auto;
		padding-bottom: 4px;
		width: 100%;
	}

	.orekey-filter-set .wp-block-navigation__container {
		flex-wrap: nowrap;
		width: max-content;
	}

	.orekey-feed-head {
		align-items: start;
		display: grid;
		gap: 8px;
	}

	.orekey-feed-head > p {
		font-size: 12px;
	}

	.orekey-feed {
		column-count: 1;
	}

	.orekey-card-image img,
	.orekey-feed > li:nth-child(n) .orekey-card-image img {
		aspect-ratio: 4 / 3;
	}

	.orekey-post-topbar {
		align-items: flex-start;
		position: relative;
	}

	.orekey-post-topbar .orekey-brand-text,
	.orekey-site-header .orekey-brand-text {
		display: none;
	}

	.orekey-post-nav {
		overflow-x: auto;
		padding-bottom: 4px;
		width: calc(100% - 52px);
	}

	.orekey-post-nav .wp-block-navigation__container {
		flex-wrap: nowrap;
		width: max-content;
	}

	.orekey-post-nav .orekey-top-button,
	.orekey-post-nav .orekey-top-button > .wp-block-navigation-item__content {
		font-size: 12px;
		min-height: 40px;
		padding-inline: 12px;
	}

	.orekey-detail-hero img {
		min-height: 240px;
	}

	.orekey-detail-body,
	.orekey-article-panel,
	.orekey-comment-panel,
	.orekey-side-card {
		padding: 16px;
	}

	.orekey-detail-title {
		font-size: clamp(1.72rem, 8vw, 2.2rem);
	}

	.orekey-single-content {
		font-size: 15px;
	}

	.orekey-mobile-tabs {
		background: rgba(5, 7, 10, 0.95);
		backdrop-filter: blur(18px);
		border-top: 1px solid var(--orekey-line);
		bottom: 0;
		display: flex;
		left: 0;
		position: fixed;
		right: 0;
		z-index: 40;
	}

	.orekey-mobile-tabs .wp-block-navigation__container {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		width: 100%;
	}

	.orekey-mobile-tabs .wp-block-navigation-item {
		color: var(--orekey-muted);
		font-size: 12px;
		justify-content: center;
		min-height: 58px;
	}

	.orekey-mobile-tabs .wp-block-navigation-item__content {
		display: grid;
		height: 100%;
		place-items: center;
		width: 100%;
	}

	.orekey-mobile-tabs .is-active {
		color: var(--orekey-accent);
	}

	.orekey-lightbox {
		padding: 12px;
	}

	.orekey-lightbox-photo {
		height: min(72vh, 640px);
	}

	.orekey-lightbox-arrow {
		bottom: 58px;
		top: auto;
		transform: none;
	}
}

@media (max-width: 420px) {
	.orekey-main,
	.orekey-post-shell {
		padding-left: 10px;
		padding-right: 10px;
	}

	.orekey-rec-head {
		left: 16px;
		right: 16px;
	}

	.orekey-photo-badge {
		right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}
}
