/**
 * Styles for the fifth version of Aaronweb.net.
 * (C) Aaron van Geffen 2013—2020
 * DO NOT COPY OR RE-USE WITHOUT EXPLICIT WRITTEN PERMISSION. THANK YOU.
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Klee+One:wght@400&display=swap');

body {
	font: 300 16px/1.7 'Source Sans Pro', 'Klee One', sans-serif;
	padding: 0 0 3em;
	margin: 0;
	background: #99BFCE 0 -50% fixed;
	background-image: radial-gradient(ellipse at top, #c3dee5 0%, #92b9ca 55%, #365e77 100%);
}


body:lang(ja-jp) {
	font-family: 'Klee One' !important;
}

header {
	overflow: auto;
}

a {
	color: #2A566C;
	text-decoration: none;
}
p a {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}
a:hover {
	color: #222;
	text-decoration-style: solid;
}


h1, h2, h3, h4, h5, h6 {
	font-family: 'Encode Sans', serif;
	line-height: 1.4;
}


/* Logo
---------*/
h1#logo {
	color: #fff;
	float: left;
	font-size: 50px;
	margin: 40px 0 50px 10px;
	padding: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
h1#logo a {
	text-decoration: none;
	color: inherit;
	transition-duration: 0.25s;
}
h1#logo a:hover {
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}
h1#logo span.name {
	padding-right: 7px;
}
h1#logo span.area:before {
	content: '|';
	font-weight: 400;
	letter-spacing: 7px;
}

/* Navigation
---------------*/
ul#mainNav {
	margin: 55px 10px 0 0;
	padding: 0;
	float: right;
	list-style: none;
}
ul#mainNav li {
	float: left;
}
ul#mainNav li a {
	color: #fff;
	display: block;
	float: left;
	font-size: 20px;
	margin: 0 0 0 32px;
	padding: 10px 0;
	text-decoration: none;
	text-decoration-style: solid;
	text-underline-offset: 1rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
	transition-duration: 0.5s;
}
ul#mainNav li a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(255, 255, 255, 0.9);
	text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}


/* Form styles
----------------*/
.form-control {
	font-weight: 300;
}
.form-control:focus, .form-select:focus {
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 153, 0.25);
	border-color: #729aae;
}
.form-check-input:checked {
	background-color: #567e94;
	border-color: #567e94;
}
.btn-primary {
	--bs-btn-bg: #729aae;
	--bs-btn-border-color: #729aae;
	--bs-btn-hover-bg: #567e94;
	--bs-btn-hover-border-color: #567e94;
	--bs-btn-active-bg: #3c5e71;
	--bs-btn-active-border-color: #3c5e71;
	--bs-btn-disabled-bg: #a2c5d3;
	--bs-btn-disabled-border-color: #a2c5d3;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}


/* Pagination styles
----------------------*/
.pagination-md {
	--bs-pagination-padding-x: 1.3rem;
	--bs-pagination-padding-y: 0.75rem;
	--bs-pagination-font-size: 1.15rem;
	--bs-pagination-border-radius: 0;
}
.pagination {
	--bs-pagination-active-bg: #eee;
	--bs-pagination-active-border-color: #ddd;
	--bs-pagination-active-color: #2a566c;
	--bs-pagination-color: #2a566c;
	--bs-pagination-disabled-bg: var(--bs-body-bg);
	--bs-pagination-focus-color: #2a566c;
	--bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 153, 0.25);
	--bs-pagination-hover-color: #2a566c;
}
.container > .pagination li {
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.pagination .wildcard {
	cursor: pointer;
}

/* Blog and project index
---------------------------*/
.blogindex,
.projectindex {
	--bs-gutter-x: 2rem;
	--bs-gutter-y: 2rem;
	margin-bottom: 2rem;
}
.blogindex .blog,
.projectindex .project {
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	transition-duration: 0.25s;
}
.blogindex .blog:hover,
.projectindex .project:hover {
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}
.blogindex .blog img {
	aspect-ratio: 3.2;
	border: none;
	width: 100%;
}
.projectindex .project img {
	aspect-ratio: 2;
	border: none;
	width: 100%;
}
.blogindex .blog div,
.projectindex .project div {
	margin-bottom: 0.5em;
}
.blogindex .blog section {
	padding: 20px;
}
.projectindex .project section {
	padding: 20px 20px 15px;
}
.blogindex .blog h3,
.projectindex .project h3 {
	background: #fff;
	font-size: 18px;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.blogindex .blog:hover h3,
.projectindex .project:hover h3 {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.blogindex .blog p,
.projectindex .project p {
	color: #000;
	margin-bottom: 0;
	max-height: calc(1.7em * 3);
	overflow: hidden;
	text-overflow: ellipsis;
}


/* Content boxes
------------------*/
.content-box {
	background-color: #fff;
	margin: 0 auto 2rem;
	padding: 2rem;
	box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}


/* Photo index pages
----------------------*/
.tiled-header > a {
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	display: inline-block;
	font-size: 18px;
	line-height: 2.2;
	margin: 0 0 1.5% 0;
	overflow: hidden;
	padding: 6px 22px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

div.polaroid {
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	line-height: 0;
	position: relative;
}

div.polaroid figure {
	margin-bottom: 0;
}

div.polaroid img {
	background: url('../images/nothumb.svg') center no-repeat;
	border: none;
	object-fit: cover;
	width: 100%;
}
div.polaroid figcaption {
	color: #000;
	margin: 0;
	font-family: 'Encode Sans', serif;
	font-size: 18px;
	line-height: 18px;
	padding: 20px 5px;
	text-overflow: ellipsis;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
}
div.polaroid a {
	display: block;
	text-decoration: none;
	transition-duration: 0.25s;
}
div.polaroid a:hover {
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}


/* Homepage and widgets
------------------------*/
.homepage-splash,
.homepage-columns {
	--bs-gutter-x: 2rem;
}
.homepage-splash .content-box {
	padding: 1.5rem;
}
.homepage-splash img {
	box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
@media (min-width: 992px) {
	.homepage-splash img {
		width: 282px;
	}
}
@media (min-width: 1200px) {
	.homepage-splash img {
		width: 227px;
	}
}
@media (min-width: 1400px) {
	.homepage-splash p {
		font-size: 1.25rem;
	}
	.homepage-splash img {
		width: 270px;
	}
}

.widget_blogpost,
.widget_photo,
.homepage-splash img {
	transition-duration: 0.25s;
}
.widget_blogpost:hover,
.homepage-splash img:hover {
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.widget_blogpost {
	background: #fff;
	padding: 1.4rem;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	margin-bottom: 2rem;
	overflow: hidden;
}
.widget_blogpost h3 {
	font-size: 18px;
	margin-bottom: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.widget_blogpost:hover h3 {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.widget_blogpost .blog_blurb {
	color: inherit;
	text-decoration: none !important;
}
.widget_blogpost p {
	margin: 0;
	max-height: calc(1.7em * 3);
	overflow: hidden;
	text-overflow: ellipsis;
}
.widget_blogpost .entry-meta {
	margin-bottom: 0.5em;
}

/* Photo widget */
.widget_photo {
	position: relative;
	margin-bottom: 2rem;
}
.widget_photo.polaroid figcaption {
	background: rgba(255, 255, 255, 0.5);
	color: #fff;
	font-size: 18px;
	left: 0;
	line-height: 2.25;
	max-width: 69%;
	padding: 0 0.7rem;
	position: absolute;
	text-overflow: ellipsis;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
	top: 0.925rem;
}
.widget_photo a {
	overflow: hidden;
}
@media (min-width: 992px) and (max-width: 1400px) {
	.widget_photo.polaroid img {
		height: 187px;
		width: auto;
	}
	.widget_photo.polaroid figcaption {
		font-size: 14px;
		max-width: 100%;
		padding: 0.15rem 1.25rem;
		top: 0;
	}
}


/* Blog post
--------------*/
.blogheader {
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	height: auto;
	line-height: 0;
	margin: 0;
	max-height: 300px;
	position: relative;
	width: 100%;
}
.blogheader img {
	max-width: 100%;
	height: auto;
}

.blogcontent {
	background: #fff;
	box-sizing: content-box;
	margin: 0 auto;
	padding: 40px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	position: relative;
}
.blogcontent p, .page p {
	margin: 1em auto;
	text-align: justify;
	word-break: initial;
}
.page {
	background: #fff;
	padding: 40px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hasheader .blogcontent {
	margin-top: -50px;
	width: 1050px;
}
.hasheader .blogcontent h2 {
	margin-top: 1em;
}

.blogcontent h1,
.blogcontent h2,
.blogcontent h3,
.blogcontent h4,
.blogcontent .entry-meta,
.blogcontent p,
.blogcontent pre,
.blogcontent ul,
.blogcontent ol {
	width: 750px;
}

.blogcontent h2, .page h2 {
	font-size: 21px;
}

.blogcontent h2.entry-title {
	font-weight: 600;
	font-size: 40px;
	margin: 0.6em auto 0.2em;
}

.blogcomments h2 {
	font-weight: 500;
	font-size: 24px;
	margin: 0 auto 0.2em;
}

.blogcontent h3, .page h3 {
	font-weight: 500;
	font-size: 22px;
	margin: 1.5em auto 0;
	color: #39617A;
}
.page h2.entry-title {
	font-weight: 600;
	font-size: 30px;
	margin: 0;
}

.blogcontent h4, .page h4 {
	font-weight: 500;
	font-size: 18px;
	margin: 2em auto 0.2em;
	color: #426A82;
}

.blogcontent .entry-meta {
	margin: 0 auto 2em;
}
.page .entry-meta {
	margin: 2em 0 0;
}

.blogcontent em, .page em {
	font-style: italic;
	font-weight: 300;
}
.blogcontent strong, .page strong {
	font-weight: 400;
}

.blogcontent ul,
.blogcontent ol {
	margin: 0 auto;
}

.entry-meta a {
	color: #777;
	margin-right: 0.35em;
	text-decoration: none;
}
.entry-meta a:hover {
	color: #000 !important;
}
.entry-meta a > i {
	margin-right: 0.1em;
}

figure.gallery {
	margin: 2.5em auto;
}
figure.gallery > .gallery-row {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	width: auto;
}
figure.gallery > .gallery-row > .gallery-item {
	padding: 0;
	margin: 0 17px 17px 0;
	line-height: 0;
}
figure.gallery > .gallery-row > .gallery-item:last-child {
	margin-right: 0;
}
figure.gallery img, img.blog_image {
	box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
	max-width: 100%;
	height: auto;
}
figure.gallery a:last-child {
	margin-right: 0;
}

figure.inline_image {
	margin: 2.5em auto;
	text-align: center;
}
figure.inline_image img {
	height: auto;
	max-width: 90%;
}

.exif {
	color: #777;
	font-size: 0.9em;
	margin-top: 0.5em;
}

section pre, section blockquote {
	background: none repeat scroll 0 0 #f6f9fc;
	border-left: 3px solid #9CC7DD;
	display: block;
	margin: 2em auto;
	overflow: auto;
	padding: 0.5em 1em;
}
section pre, tt, code {
	font-family: 'Inconsolata', 'DejaVu Sans Mono', monospace;
}

/* Blog pager
---------------*/
.blogpager {
	height: 42px;
	margin: 2em auto;
	position: relative;
	width: 750px;
}
.hasheader .blogpager {
	width: 800px;
}
.blogpager a {
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
	font-size: 18px;
	padding: 12px 25px;
}
.previous_post {
	left: 0;
	position: absolute;
}
.previous_post:before {
	content: "< ";
}
.next_post {
	right: 0;
	position: absolute;
}
.next_post:after {
	content: " >";
}

/* Blog comments
------------------*/
.blogcomments {
	margin: 0 auto;
	width: 750px;
}
.hasheader .blogcomments {
	width: 802px;
}
.comment {
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	margin-top: 2em;
	padding: 25px;
	position: relative;
}
.comment img {
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	position: absolute;
	top: 20px;
	left: -40px;
	z-index: -10;
}
.comment p {
	margin-bottom: 0;
}
.comment .entry-meta {
	color: #777;
}
.comment-author {
	font-weight: bold;
}

.comment-level-0.comment-0 img {
	top: 65px;
}
.comment-level-0.comment-0 .entry-meta {
	margin-top: 20px;
}
.comment-level-1 {
	margin-left: 40px;
}
.comment-level-2 {
	margin-left: 80px;
}

#comment-form dt {
	display: none;
}
#comment-form dl, #comment-form dd {
	margin: 0.5em 0 0;
}
#comment-form .field-name, #comment-form .field-email, #comment-form .field-website {
	float: left;
	width: 33%;
}
#comment-form dd input {
	width: 100%;
}
#comment-form textarea {
	width: 98.3%;
}
#comment-form .button-strip {
	text-align: right;
}


/* Projects
-------------*/
.screenshots img {
	background: #fff;
	border-radius: 2px;
	border: 1px solid #ddd;
	box-shadow: none;
	margin: 0 1em 1em 0;
	padding: 2px;
}
.screenshots a:hover img {
	border-color: #79A;
}
.changelog {
	list-style: none;
	padding: 0 0 0 0.5em;
}
.changelog tt {
	font-weight: bold;
}


/* About page
---------------*/
.about-photo {
	float: right;
	margin: 0 0 2em 2em;
}


/* Footer
-----------*/
footer {
	clear: both;
	color: #fff;
	font-size: 13px;
	font-weight: 1.7;
	padding: 40px 0 0;
	text-align: center;
	overflow: auto;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
footer a {
	color: inherit;
}
footer a:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}


.btn-red {
	background: #eebbaa;
	border-color: #cc9988;
}
.btn-red:hover, .btn-red:focus {
	border-color: #bb7766;
	color: #000;
}
.btn-red:focus:not(:active) {
	box-shadow: 0px 0px 0px 2px rgba(241, 70, 104, 0.25);
}


/* Responsive: smaller screens, tablets in landscape
------------------------------------------------------*/
@media only screen and (max-width: 1200px) {
	#wrapper, header {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
	}

	.blogheader {
		border-left: none;
	}
	.hasheader .blogcontent {
		border-top: none;
	}

	.blogcontent, .hasheader .blogcontent {
		padding: 25px 0;
		width: 100%;
	}
	.hasheader .blogcontent {
		margin-top: 0;
	}
	.blogcontent iframe {
		max-width: 100%;
		height: auto;
	}
}


/* Responsive: even smaller screens, tablets
----------------------------------------------*/
@media only screen and (max-width: 1080px) {
	.blogindex .nothumb,
	.projectindex .nothumb {
		display: none;
	}
	.blogindex .blog img,
	.projectindex .project img {
		border-left: none;
		position: static;
		width: 100%;
		height: auto;
	}
	.blogindex .blog section,
	.projectindex .project section {
		clear: both;
		position: static;
	}
}


/* Responsive: even smaller screens, tablets
----------------------------------------------*/
@media only screen and (max-width: 840px) {
	.blogcontent, .page {
		margin: 0 !important;
		padding: 15px !important;
		width: auto !important;
	}

	.blogcontent h1,
	.blogcontent h2,
	.blogcontent h3,
	.blogcontent h4,
	.blogcontent .entry-meta,
	.blogcontent p,
	.blogcontent pre,
	.blogcontent ul,
	.blogcontent ol {
		width: auto;
	}

	.blogpager, .blogcomments {
		margin-left: 0 !important;
		width: 100% !important;
	}
	.blogpager a {
		padding: 12px 15px;
	}

	#comment-form .field-name, #comment-form .field-email, #comment-form .field-website {
		float: none;
		width: 98.5%;
	}

	.homepage_widgets .widget, .errorpage .widget {
		float: none;
		padding: 5%;
		margin: 2em 0;
		width: 90%;
	}

	/* Photo widget */
	.homepage_widgets .widget_photo {
		padding: 0;
		width: 100%;
	}

	.widget_tag_cloud {
		display: none;
	}
}


/* Styling for the photo pages
--------------------------------*/
#photo_frame {
	text-align: center;
}
#photo_frame a {
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	cursor: -moz-zoom-in;
	display: inline-block;
	width: 100%;
}
#photo_frame a img {
	border: none;
	display: block;
	height: auto;
	width: 100%;
}

#previous_photo, #next_photo {
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	color: #262626;
	font-size: 3rem;
	line-height: 0.5;
	padding: 2rem 0.5rem;
	position: fixed;
	text-decoration: none;
	top: calc(50% - 5rem);
}
span#previous_photo, span#next_photo {
	opacity: 0.25;
}
a#previous_photo:hover, a#next_photo:hover {
	background: #eee;
	color: #000;
}
#previous_photo {
	border-top-right-radius: 0.5rem;
	border-bottom-right-radius: 0.5rem;
	left: 0;
}
#next_photo {
	border-top-left-radius: 0.5rem;
	border-bottom-left-radius: 0.5rem;
	right: 0;
}

#sub_photo h2, #sub_photo h3, #photo_exif_box h3 {
	font-weight: 600;
	font-size: 22px;
	line-height: 30px;
	margin: 0 0 10px;
}
#sub_photo h3 {
	font-size: 16px;
}

#sub_photo #tag_list, #sub_photo #post_list {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
#sub_photo #tag_list li {
	display: inline;
	padding-right: 0.75em;
}

#photo_exif_box dt {
	font-weight: bold;
	float: left;
	clear: left;
	width: 120px;
}
#photo_exif_box dt:after {
	content: ':';
}
#photo_exif_box dd {
	float: left;
	margin: 0;
}


/* Responsive: smartphone in portrait or landscape
----------------------------------------------------*/
@media (max-width: 767px) {
	h1#logo {
		font-size: 42px;
		float: none;
		margin: 1em 0 0.5em;
		text-align: center;
	}

	ul#mainNav {
		float: none;
		padding: 0;
		margin: 2em 0 2.5em;
		text-align: center;
		overflow: hidden;
	}
	ul#mainNav li,
	ul#mainNav li a {
		display: inline;
		float: none;
	}
	ul#mainNav li a {
		float: none;
		font-size: 16px;
		margin-left: 6px;
		padding: 15px 4px;
	}

	.blogindex li,
	.projectindex li {
		float: none;
		margin-right: 0 !important;
		width: auto;
	}
	.blogindex li img,
	.projectindex li img {
		height: auto;
		width: 100%;
	}

	.blogcontent h2.entry-title {
		font-size: 30px;
		margin-top: 0;
	}

	.entry-meta .entry-tag {
		display: none;
	}
	.entry-meta .entry-tag:nth-child(3) {
		display: inline-block;
	}

	.table_pagination .page-number, .table_pagination .page-padding {
		display: none;
	}
	.pagination {
		box-shadow: none;
		height: 52px;
		display: block;
		position: relative;
	}
	.pagination .page-number, .pagination .page-padding {
		display: none;
	}
	.pagination .page-link {
		border-radius: var(--bs-pagination-border-radius) !important;
	}
	.pagination > :first-child, .pagination > :last-child {
		box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
		display: inline-block;
		position: absolute;
	}
	.pagination > :first-child {
		left: 0;
	}
	.pagination > :last-child {
		right: 0;
	}

	.tiled-header > a {
		font-size: 14px;
		margin: 0 0 3.5% 0;
	}
	div.polaroid figcaption {
		font-size: 14px;
		padding: 10px 5px 5px;
	}

	.photo-index {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	#previous_photo, #next_photo {
		display: none;
	}

	#sub_photo, #photo_exif_box {
		float: none;
		margin: 30px 0;
		padding: 10px;
		width: auto;
	}

	.about-photo {
		float: none;
		margin: 1.5em 0;
		text-align: center;
	}
	.about-photo img {
		max-width: 100%;
	}
}
