@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--base: #FFE3D8;
	--text: #555;
	
	--base-dark: oklch(from var(--base)
		0.2
		clamp(0, c/2, 1)
		h
	);
	--text-dark: #CCC;
	
	color-scheme: light dark;
	--color-scheme: light;
	container-name: root;
}
@media (prefers-color-scheme: dark) {
	:root {
		--color-scheme: dark;
	}
}
:root:has(.theme-selector [value="light"]:checked) {
	color-scheme: light;
	--color-scheme: light;
}
:root:has(.theme-selector [value="dark"]:checked) {
	color-scheme: dark;
	--color-scheme: dark;
}


html {
	background-color: #FFE3D8;
	background-color: var(--base);
	background-color: light-dark(var(--base), var(--base-dark));
}

/* This doesn't seem to work */
@container root style(--color-scheme: light) {
	html {
		background-image: url('/res/website_bg.jpg');
		background-position: top;
		background-repeat: repeat-x;
		background-size: 960px 320px;
	}
}

html, body {
	color: #555;
	color: var(--text);
    color: light-dark(var(--text), var(--text-dark));
    font-family: "Montserrat", sans-serif;
	margin-bottom: 0;
	padding-bottom: 0;
}

html[lang="en"] *[lang="jp"],
html[lang="jp"] *[lang="en"]
{
	display: none;
}
.lang-selector {
	position: absolute;
	top: -1.5em;
	right: 0;
	margin: 0;
	font-size: 0.85em;
}
.lang-selector li {
	display: inline-block;
	margin-left: 5px;
}
.lang-selector li:first-child {
	margin-left: 0;
}
.lang-selector li a {
	display: inline-block;
	padding: 4px 9px;
	background: light-dark(rgba(255,255,255,0.5), rgb(0 0 0 / .5));
	border-radius: 5px;
}
.lang-selector li a:hover {
	background: light-dark( rgb(255 255 255 / 0.9), rgb(0 0 0 / 0.9));
}
html[lang="en"] .lang-selector .lang-en a,
html[lang="jp"] .lang-selector .lang-jp a
{
	font-weight: bold;
	text-decoration: none;
}



.theme-selector {
	position: absolute;
	top: -1.5em;
	left: 0;
	margin: 0;
	font-size: 0.85em;
}
.theme-selector label input {
	display: none;
}
.theme-selector label span {
  color: transparent;
  text-shadow: 0 0 0 #888;
  /*text-shadow: 0 0 0 light-dark(#888, #888);*/
}




body {

}
body > .container {
	position: relative;
}
a {
	color: #111;
    color: light-dark(#111, #EEE);
}

.title_compo {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	padding-bottom: 30px;
	border-bottom: 2px solid rgba(255,255,255,0.8);
	margin-bottom: 15px;
}
h1 {
    text-align: center;
	display: flex;
	flex-flow: column nowrap;
	margin: 0;
}
h1 span.en {
	font-size: 0.5em;
}
h2 {
	margin-top: 30px;
	border-top: 2px solid rgba(255,255,255,0.7);
	padding-top: 15px;
}


.link_showcase {
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255,255,255,0.8);
	margin-bottom: 15px;
}
.link_showcase ul {
	display: flex;
	flex-flow: row wrap;
	margin: 0;
	padding: 0;
	list-style-type: none;
	justify-content: space-evenly;
}
.link_showcase li {
	display: block;
}
.link_showcase a {
	display: block;
	background: light-dark(rgba(255,255,255,0.4), rgb(0 0 0 / 0.4));
	padding: 7px 12px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 1.2em;
}
.link_showcase a:hover {
	background: rgba(255,255,255,0.8);
}
.link_showcase img {
	display: inline-block;
	height: 1em;
	margin-right: 0.2em;
}
.link_showcase span {}



#sections {
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255,255,255,0.8);
	margin-bottom: 30px;
}
#sections ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}
#sections ul li {
	display: block;
}
#sections ul li a {
	text-decoration: none;
}
#sections ul li a span {
	text-decoration: underline;
}








.container {
    width: 90%;
	margin: 0 auto;
}
body > .container {
	margin: 2em auto;
}
@media screen and (min-width: 640px) {
	.container {
		width: 600px;
	}
}


.avatar {
	border-radius: 100%;
	border: 2px solid white;
	float: right;
	width: 70px;
	height: 70px;
	margin-left: 7px;
}


.bsky_icon {
	display: inline;
	height: 1em;
	vertical-align: -2px;
	margin-right: 3px;
}

ul.progress {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
ul.progress li {
	position: relative;
	height: 18px;
	background: rgba(255,255,255,0.3);
	font-size: 9px;
	line-height: 18px;
	margin-bottom: 3px;
	box-sizing: content-box;
	color: black;
	border-radius: 6px;
}
ul.progress li > span:first-child {
	position: absolute;
	display: block;
	top: 2px;
	left: 2px;
	bottom: 2px;
	right: 2px;
	z-index: 1;
}
ul.progress li > span:first-child > span {
	display: block;
	background: #EE7;
	box-shadow: inset 0 0 1px rgba(0,0,0,0.6);
	height: 100%;
	border-radius: 4px;
	width: 0%;
}
ul.progress li.complete > span:first-child > span {
	background: #FCB;
}
ul.progress li > span.label {
	position: absolute;
	top: 0;
	left: 8px;
	z-index: 2;
}
ul.progress li > span.value {
	position: absolute;
	top: 0;
	right: 8px;
	z-index: 2;
}
.timestamp {
	font-size: 11px;
	font-style: italic;
}
/*
@media (prefers-color-scheme: dark) {
	html, body {
		background: #111;
		color: #ECC;
	}
	a {
		color: #FFF;
	}
	.title_compo, h2 {
		border-color: #FFE3D8;
	}
}
*/



.bluesky_gallery {
	columns: 2;
	display: none;
}
@media (max-width: 540px) {
	.bluesky_gallery {
		columns: 1;
	}
}


.gallery {
	margin: 0 -4px;
}
.gallery .card {
	width: calc(100% - 8px);
	box-sizing: border-box;
	min-height: 270px;
	padding: 8px;
	border: 1px solid #777;
	border: 1px solid light-dark(rgba(255,255,255, 0.6), #666);
	border-radius: 9px;
	background: #777;
	background: light-dark(rgba(255,255,255, 0.3), rgba(255,255,255, 0.1));
	box-shadow: 0px 0px 3px rgba(0,0,0,0.2);
	margin: 0 4px 8px 4px;

	@media (min-width: 430px) {
		width: calc(50% - 8px);
	}
}
.gallery .thumbBox {
	width: 100%;
	height: 170px;
	box-sizing: border-box;
	background: #777;
	background: light-dark(rgba(255,255,255, 0.3), rgba(255,255,255, 0.1));
	border-top-left-radius: 9px;
	border-top-right-radius: 9px;
}
.gallery .thumbBox a {
	display: block;
	width: 100%;
	height: 100%;
	text-align: center;
}
.gallery .thumbBox a img {
	vertical-align: middle;
}
.gallery .detailBox {
	padding: 6px;
	font-size: 0.8em;
}
.gallery .title {
	font-weight: bold;
}
.gallery .thumb {
	max-width: 100%;
	max-height: 100%;
}

.gallery .links {
	list-style-type: none;
	padding-left: 0;
}
.gallery .links li {
	display: inline-block;
	border-radius: 17px;
	border: 1px solid light-dark(rgba(255,255,255, 0.7), rgba(0,0,0, 0.7));
	background: light-dark(rgba(255,255,255,0.5), rgba(0,0,0,0.3));
	margin: 0 3px 3px 0;
}
.gallery .links li:hover {
	background-color: light-dark(white, black);
	border-color: var(--base);
}
.gallery .links a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 2px 5px;
	text-decoration: none;
}




footer {
	margin-top: 1em;
	background: rgba(255,255,255,0.4);
	font-size: 0.8em;
}
body > footer > .container {
	padding: 1em 0;
}


