
:root {
	--col-bg: #fffbfb;
	--col-pre: #ccc;
	--col-text: #111;
	--col-primary: #000;
}

html {
	background-color: var(--col-bg);
	font-size: 1.4em;
	font-family: Inter, sans-serif;
	font-feature-settings: 'liga' 1, 'calt' 1, 'dlig' 1, 'ss03' 1, 'tnum' 1;
	font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
}

@supports (font-variation-settings: normal) {
  :root {
		font-family: InterVariable, sans-serif;
		font-feature-settings: 'liga' 1, 'calt' 1, 'dlig' 1, 'ss03' 1, 'tnum' 1;
	}
}

body {
	color: var(--col-text);
	font-size: clamp(0.6rem, 2vw, 1rem);
}

a {
	color: var(--col-primary);
	font-weight: 500;
}

h1 {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	font-size: 2em;
}

h2 {
	margin-top: 0.4em;
	margin-bottom: 0.4em;
	font-size: 1.5em;
}

h3 {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
	font-size: 1.25em;
}

nav h1 span {
	font-weight: 700;
}

nav h1 {
	display: inline;
	font-size: 1em;
}

nav a {
	text-decoration: none;
}

nav {
	font-size: 1.2em;
}

a:hover {
	background-color: var(--col-primary);
	color: var(--col-bg);
	text-decoration: none;
}

hr {
	background-color: var(--col-primary);
	color: var(--col-primary);
	height: 0.2rem;
	border: 0rem sold var(--col-primary);
}

nav {
	margin-top: 5px;
}

img, video {
	max-width: 100%;
}

pre {
	background-color: var(--col-pre);
	padding: 8px;
	overflow-x: scroll;
	font-family: "Noto Sans Mono", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

table {
	border-collapse: collapse;
}

th, td {
	padding: 5px;
	border: solid #ffaa5e 1px;
}

tr:nth-child(even), th {
	background-color: rgba(0, 0, 0, 0.2);
}

@media print {
	.no-print {
		display: none !important;
	}
}

@media (min-width: 80ch) {
	body {
		width: calc(80ch - 2*8px);
		margin: auto;
		margin-top: 8px;
	}
}

nav > a {
	padding-left: 4px;
	padding-right: 4px;
}

.no-aa {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

.header-logo {
	max-height: 1.2rem;
	vertical-align: text-bottom;
	display: inline;
}

.float-right {
	float: right;
}

.webring .articles {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}
.webring .title {
  margin: 0;
}
.webring .article {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  margin: 0.5rem;
  padding: 0.5rem;
  background: var(--col-bg);
  border: solid var(--col-primary);
  min-width: 10rem;
}
.webring .summary {
  font-size: 0.8rem;
  flex: 1 1 0;
}
.webring .attribution {
  text-align: right;
  font-size: 0.8rem;
  color: #555;
}
