@charset "UTF-8";

:root {
	color-scheme: light dark;
	supported-color-schemes: light dark;
	
	--text-background-color: #fff;
	--text-foreground-color: hsl(0,0%,10%);
	
	--link-color: #1a2;
	--link-hover-color: #1ec816;
}

* {
	margin: 0;
	padding: 0;
	line-height: 1.0;
	font-weight: inherit;
	font-style:  inherit;
	text-spacing: ideograph-alpha;  /* https://drafts.csswg.org/css-text-4/#text-spacing */
}

img {
	border: none;
}

/* font override */
body,
header,
main,
footer {
	font: 14px -apple-system, 'Helvetica Neue', sans-serif;
	font-weight: 400;
}

/* body */
body {
	color: var(--text-foreground-color);
	
	background: var(--text-background-color);
	padding: 15px 20px;
}


a {
	text-decoration: none;
	transition: -webkit-filter 0.3s;
}
ul li {
	list-style: none;
}



/* anchors */
a:link,
a:visited {
	color: var(--link-color);
}
a:hover {
	color: var(--link-hover-color);
}
a:not([href]) {
	color: inherit;
}
a > sup {
	color: hsl(0,0%,50%);
	font-size: 70%;
	margin: 0 1px;
}



main h1 {
	font-weight: 600;
}


main h2,
main h3,
main h4,
main dt {
	font-weight: 300;
}

/* basic spacing */
main p,
main dd,
main li {
	line-height: 1.6;
}
main h1,
main h2,
main h3,
main h4,
main dt {
	line-height: 1.4;
}

main p {
	margin: 1em 0;
}
section {
	margin: 2em 0 3em;
}
section > section {
	margin: 1em 0;
}

/* list marker */
main ul li {
	list-style-type: circle;
	margin-left: 1.5em;
}
main li+li {
	margin-top: 0.2em;
}

/* table */
table {
	border-spacing: 0;
	border-collapse: collapse;
}
table tr > * {
	padding: 0.2em 0.5em;
	line-height: 1.5;
}
table thead tr > * {
	font-weight: 500;
	border-bottom: 0.5px solid hsla(0,0%,0%,.8);
}
table tbody tr > * {
	border-bottom: 0.5px solid hsla(0,0%,0%,.08);
}

/* footnote */
bsection > footer > ol,
article > footer > ol,
main > footer > ol {
	font-size: 85%;
	margin-left: 20px;
}

/* code */
code {
	font: 94% 'SF Mono', Menlo, monospace;
	color: hsla(0,0%,0%,.8);
	background-color: hsl(0,0%,98%);
	border: 1px solid hsl(0,0%,93%);
	border-radius:2px;
	padding:0.1em 0.3em;
}
pre code {
	display: block;
	width: 80%;
	padding: 0.3em 1em;
	line-height: 1.6;
}

/* other styles */
strong {
	font-weight: bold;
}



/* header */
body > header {
	font-size: 19px;
	font-weight: 700;
	color: hsl(0,0%,11%);
	min-height: 16px;
	clear:both;
	margin-bottom: 20px;
}
body > header a {
	color: inherit !important;
	background: transparent !important;
	
	position: relative;
/*	transition: all 0.3s ease; */
	display: inline-block;
}

body > header > a:first-child {
	font-size: 40px;
}
body > header > a:first-child::before {
	display: inline-block;
	content: '';
	width: 48px;
	height: 48px;
	background:url('../images/see5-64@2x.png');
	background-size: 48px;
	vertical-align: -8px;
	margin-right: 15px;
}
body > header > nav {
	text-align: right;
	font-weight: 600;
	position: absolute;
	top: 8px;
	right: 0;
	text-align: right;
	padding: 1em 2em;
}
body > header > nav li {
	display: inline;
	margin: 0 0.4em;
}
body > header > nav > ul > li > a > img {
	width: 28px;
	height: 28px;
}


/* main */
main {
	margin: 30px auto;
	width: 80%;
	max-width: 1000px;
}

/* footer */
body > footer {
	font-size: 13px;
	text-align: center;
	margin-top: 40px;
}

body > footer > p {
	padding: 2px;
}


/* faq */
section#faq > section > h3 {
	font-weight: 700;
	margin: 20px 0px 5px;
	padding: 0px;
}

section#faq > section > p {
	margin: 0px;
	padding: 0px;
}

.feature-icon {
	width: 48px;
	height: 48px;
	float: left;
	padding-top: 4px;
	background-repeat: no-repeat;
	background-position: center;
}

.feature-icon-autocomplete     { background-image: url(../images/feature/FeatureAutocomplete.svg); }
.feature-icon-blockedit        { background-image: url(../images/feature/FeatureBlockedit.svg); }
.feature-icon-changehighlight  { background-image: url(../images/feature/FeatureChangeHighlight.svg); }
.feature-icon-collaboration    { background-image: url(../images/feature/FeatureCollaboration.svg); }
.feature-icon-darkmode         { background-image: url(../images/feature/FeatureDarkMode.svg); }
.feature-icon-folding          { background-image: url(../images/feature/FeatureFolding.svg); }
.feature-icon-scripting        { background-image: url(../images/feature/FeatureScripting.svg); }
.feature-icon-search           { background-image: url(../images/feature/FeatureSearch.svg); }
.feature-icon-seetool          { background-image: url(../images/feature/FeatureSeeTool.svg); }
.feature-icon-splitandnew      { background-image: url(../images/feature/FeatureSplitAndNew.svg); }
.feature-icon-syntax           { background-image: url(../images/feature/FeatureSyntax.svg); }
.feature-icon-syntaxstyle      { background-image: url(../images/feature/FeatureSyntaxStyle.svg); }
.feature-icon-syntaxstyle      { background-image: url(../images/feature/FeatureSyntaxStyle.svg); }
.feature-icon-undo             { background-image: url(../images/feature/FeatureUndo.svg); }
.feature-icon-webpreview       { background-image: url(../images/feature/FeatureWebPreview.svg); }

.social-github {
	width: 28px;
	height: 28px;
	background-image: url(../images/github.svg);
}


header > a,
a .social-github,
a .social-twitter,
a .social-mastodon {
	transition: all 0.15s;
}

header > a:hover {
	transform: scale(1.02);
}

a:hover .social-github,
a:hover .social-twitter,
a:hover .social-mastodon {
	transform: scale(1.1);
}

.social-mastodon {
	width: 28px;
	height: 28px;
	background-image: url(../images/mastodon.svg);
}

.social-twitter {
	width: 28px;
	height: 28px;
	background-image: url(../images/twitter.svg);
}


@media (prefers-color-scheme: dark) {
	
	:root {
		--text-foreground-color: #ddd;
		--text-background-color: #111;
		--link-color: #71df78;
		--link-hover-color: #1ec816;
	}

	.feature-icon-autocomplete     { background-image: url(../images/dark/feature/FeatureAutocomplete.svg); }
	.feature-icon-blockedit        { background-image: url(../images/dark/feature/FeatureBlockedit.svg); }
	.feature-icon-changehighlight  { background-image: url(../images/dark/feature/FeatureChangeHighlight.svg); }
	.feature-icon-collaboration    { background-image: url(../images/dark/feature/FeatureCollaboration.svg); }
	.feature-icon-darkmode         { background-image: url(../images/dark/feature/FeatureDarkMode.svg); }
	.feature-icon-folding          { background-image: url(../images/dark/feature/FeatureFolding.svg); }
	.feature-icon-scripting        { background-image: url(../images/dark/feature/FeatureScripting.svg); }
	.feature-icon-search           { background-image: url(../images/dark/feature/FeatureSearch.svg); }
	.feature-icon-seetool          { background-image: url(../images/dark/feature/FeatureSeeTool.svg); }
	.feature-icon-splitandnew      { background-image: url(../images/dark/feature/FeatureSplitAndNew.svg); }
	.feature-icon-syntax           { background-image: url(../images/dark/feature/FeatureSyntax.svg); }
	.feature-icon-syntaxstyle      { background-image: url(../images/dark/feature/FeatureSyntaxStyle.svg); }
	.feature-icon-syntaxstyle      { background-image: url(../images/dark/feature/FeatureSyntaxStyle.svg); }
	.feature-icon-undo             { background-image: url(../images/dark/feature/FeatureUndo.svg); }
	.feature-icon-webpreview       { background-image: url(../images/dark/feature/FeatureWebPreview.svg); }

	.social-github {
		background-color: #ccc;
		border-radius: 5px;	
	}

/* anchors */
	a:not([href]) {
		color: inherit;
	}
	a > sup {
		color: hsl(0,0%,50%);
		font-size: 70%;
		margin: 0 1px;
	}

	code {
		color: #fff;
		background-color: #333;
		border-color: #555;
	}
	
	body > header {
		color: #eee;
	}
	
}
