@look.css

/* General styles */

html {
	background-color: #FFF;
	color: #222;
	font-family: Georgia, Gelasio, serif;
	font-size: 1.25em;
	line-height: 1.5;
}
body {
	margin: auto;
	max-width: 40em;
	padding: 1em;
	position: relative;
}
aside,
blockquote > cite,
details,
footer,
header,
main {
	display: block;
}
b,
blockquote > cite,
figcaption,
h1,
h2,
h3,
hgroup > h1 + p,
hgroup > h2 + p,
hgroup > h3 + p,
table,
._label {
	font-family: Helvetica, Arial, Arimo, sans-serif;
}
code,
pre {
	font-family: "Andale Mono", "Droid Sans Mono", "Lucida Console", monospace, monospace;
	font-size-adjust: 0.48;
	line-height: 1.4;
}
blockquote,
details,
dl,
fieldset,
figure,
h1,
h2,
h3,
hr,
:not(li) > ol,
p,
pre,
table,
:not(li) > ul,
[role=note] {
	margin: 1.5rem auto;
}


/* Main heading */

h1,
hgroup > h1 + p {
	border-bottom: 1px solid;
	padding-bottom: 1rem;
	text-align: center;
}
h1 {
	font-size: 1.5rem;
	line-height: 1.2;
}
h1 > br + span {
	display: inline-block;
	font-size: 1rem;
	line-height: 1.5;
	padding-top: .2em;
}
hgroup > h1 {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
hgroup > h1 + p {
	margin-top: .2em;
}


/* Section headings */

h2 {
	font-size: 1.3em;
	line-height: 1.3;
}
h3 {
	font-size: 1.15em;
	line-height: 1.4;
}
h2 > br + span,
h3 > br + span {
	display: inline-block;
	font-size: 1rem;
	line-height: 1.5;
	padding-top: .15em;
}
hgroup > h2,
hgroup > h3 {
	margin-bottom: 0;
}
hgroup > h2 + p,
hgroup > h3 + p {
	margin-top: .15em;
}


/* Expandable-section headings */

details:not([open]) > summary,
details:not([open]) > summary h2,
details:not([open]) > summary h3 {
	color: #00E;
	font: inherit;
}
summary > * {
	cursor: pointer;
	display: inline;
}


/* Section breaks */

hr {
	border: none;
	margin-left: auto;
	margin-right: auto;
	width: 50%;
}
._h2 {
	border-top: thin solid;
}
._h3 {
	border-top: thin dashed;
}


/* Quotations */

blockquote {
	border-left: 3px solid #888;
	margin-right: 3px;
	padding: 0 .7em;
}
blockquote > cite {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: -1.1em;
	text-align: center;
}
q {
	quotes: '"' '"' "'" "'";
}
q:lang(de) {
	quotes: '„' '“' '‚' '‘';
}
q:lang(en) {
	quotes: '“' '”' '‘' '’';
}


/* Figures */

figure {
	display: table;
}
figure > :first-child img,
figure > img,
figure > video,
:not(span) > svg {
	border: none;
	display: block;
	height: auto;
	max-width: 100%;
}
figcaption {
    caption-side: bottom;
    display: table-caption;
	margin-top: .4em;
	text-align: center;
}


/* Lists */

._skip {
	list-style-type: none;
}


/* Tables */

table {
	border-collapse: collapse;
	display: table;
}
td,
th {
	border: solid thin #222;
	padding: .3em .5em;
	text-align: left;
}
colgroup:first-child {
	border-right: solid medium #222;
}
thead {
	border-bottom: solid medium #222;
}


/* Forms */

fieldset {
	border: none;
	padding: 0;
}
legend {
	padding: 0 0 .5em;
}
legend, fieldset {
	display: block;
	width: 100%;
	white-space: normal;
}
fieldset > span {
	display: flex;
	flex-direction: column-reverse;
}
fieldset > span + br {
	display: none;
}
fieldset > span textarea,
fieldset > span input[type=text] {
	font: inherit;
}


/* Code */

code {
	background-color: #F8F8F8;
	padding: .2em;
	white-space: pre-wrap;
}
pre > code {
	display: block;
	overflow-y: hidden;
	overflow-x: auto;
	padding: .5em .7em;
	white-space: unset;
}


/* Text file */

._plain {
	white-space: pre-wrap;
}


/* Footnotes */

[role=note] {
	font-size: smaller;
}
[role=note] > hr {
	border-top: thin solid;
	margin: 2rem auto 0 0;
	max-width: 6em;
}
[role=note] > hr + * {
	margin-top: .3em;
}


/* Alignment */

._left {
	text-align: left;
}
._center {
	text-align: center;
}
._right {
	text-align: right;
}
._justify {
	text-align: justify;
}
._mid {
	margin: 0 auto;
	width: fit-content;
}
._align :not(._align) {
	text-align: inherit;
}
._columns {
	columns: 3 14em;
}
._row {
	column-span: all;
}
._float {
	margin: 0 0 .5em 0;
}
._port {
	clear: left;
	float: left;
	margin-right: 1em;
}
._starboard {
	clear: right;
	float: right;
	margin-left: 1em;
}
._clear {
	clear: both;
}


/* Emphasis */

b {
	font-size-adjust: 0.52;
	font-weight: bold;
	line-height: normal;
}
i {
	font-style: italic;
}
u {
	text-decoration: underline;
}


/* Crossed out */

s {
	text-decoration: line-through;
}
s s {
	text-decoration-style: double;
}


/* Hints */

span[title] {
	cursor: help;
	text-decoration: dotted underline;
	-webkit-text-decoration: dotted underline;
}


/* Links */

:link {
	color: #00E;
}
:visited {
	color: #551A8B;
}
:link:active,
:visited:active {
	color: #F00;
}
:link,
:visited {
	cursor: pointer;
	text-decoration: underline;
}
sup a {
	line-height: 0;
	text-decoration: none;
}


/* Math */

div[role=math] {
	align-items: center;
	display: flex;
}
div[role=math] > :first-child {
	flex-grow: 1;
}
._label {
	flex-grow: 0;
	padding-left: 1em;
}


/* The End */