:root {
  --font-size: max(18px, 1.5vw);
  --font-size-small: max(14px, 1.2vw);
  --font-size-supersmall: max(12px, 0.8vw);
  --font-size-large: max(32px, 3vw);
}

html {
	height: 100%;
	font-size: var(--font-size);
	font-family: sans-serif;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	color: #333;
}

a {
  color: #333;
}

body.grid main p {
  font-size: var(--font-size-small) !important;
}

body.grid main div.content br + p ~ p * {
  font-size: var(--font-size-supersmall) !important;
}

body.nofocus div.content p * {
  color: #99b;
  font-size: var(--font-size-small);
}

header {
  text-align: center;
  margin-bottom: 25px;
  background: #f1f1f2;
}

header a {
  color: #787678;
  font-size: var(--font-size-supersmall);
  display: inline-block;
  padding: 10px;
  text-decoration: none;
}

header a.active {
  text-decoration: underline;
}

header a:hover {
  color: #7bf;
}

header a[href="/?date=new"] {
  border: 1px solid #99b;
  border-radius: 1000px;
  width: 1.3em;
  height: 1.3em;
  padding: 0;
  line-height: 1.3;
  background: #99b;
  color: #fff;
  margin: 0 0.35em;
}

header a[href="/?date=new"]:hover,
header a[href="/?date=new"].active {
  text-decoration: none;
  background: #7bf;
  color: #fff;
  border-color: #7bf;
}

header a.arrow {
  display: inline-block;
  margin: 0;
  line-height: 1;
  transform: scale(2);
  position: relative;
  top: -0.22em;
  text-decoration: none;
  opacity: 0.21;
  pointer-events: none;
}

div.headline.content date {
  display: inline-block;
  color: #fff;
  background: #446;
  padding: 0.25em 0.35em;
  border-radius: 4px;
  font-size: var(--font-size-supersmall) !important;
}

/*body.grid div.headline.content {
  display: none;
}*/

header a.arrow[href] {
  opacity: 1;
  pointer-events: initial;
}

form {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

form input {
/*	pointer-events: none;*/
	/*width: 100%;*/
	height: 50px;
	margin-bottom: 40px;
	text-align: center;
	background: none;
	border: none;
	outline: none;
	background: none;
  font-size: var(--font-size-small);
}

::placeholder {
  opacity: 1;
  color: #99b;
}

small#meta:empty {
	display: none;
}

div.content {
	padding: 50px 10px 50px;
	color: #446;
	font-size: var(--font-size-large);
	text-align: center;
}

body.grid main article div.content {
  padding: 30px 10px 10px;
  padding: 10px;
  padding-bottom: 20px;
}

@media (max-width: 599px) {
  body.grid:not(.grid--reduced) main article div.content:empty {
    display: none;
  }
}

body.grid main article div.content date {
  text-align: left;
  display: block;
  font-size: var(--font-size-supersmall) !important;
}

div.content.Sat,
div.content.Sun {
  opacity: 0.61;
}

div.content * {
	color: #446;
	text-decoration: none;
}

div.content em {
  font-style: normal;
  display: inline-block;
  min-width: 200px;
  color: #446;
}

div.content p {
	margin-bottom: 0;
	margin-top: 0;
  display: grid;
  justify-content: center;
  margin-bottom: 10px;
}

div.content p.mail {
  display: flex;
  margin-bottom: 15px;
}

body.grid--reduced article div.content br,
body.grid--reduced article div.content br + p ~ p {
  display: none;
}

body.grid--reduced article div.content p {
  margin: 20px 0 0;
}

body.grid--reduced article div.content small {
  opacity: 0.41;
}

/*body:not(.grid) div.content br + p + p {
  margin-bottom: 25px;
}*/

@media (min-width: 600px) {
  body:not(.grid):not(.nofocus) div.content br + p {
  	margin-bottom: 45px;
  }
}

div.content br + p ~ p * {
	color: #99b;
  font-size: var(--font-size-small);
}

/*div.content br + p + p ~ p * {
  font-size: var(--font-size-small);
}*/

div.content a:hover,
article a:hover {
	color: #113;
}

div.content small {
	margin-bottom: 6px;
	display: block;
	color: #7bf;
  font-size: var(--font-size-small);
}

/*div.content br + p ~ p > ::before {
  content: "· ";
}*/

div.content.is-ending {
	animation: fadeOut 200ms forwards;
}

body main {
  flex: 1;
  align-self: stretch;
  align-items: flex-start;
  margin-bottom: 50px;
}

body.grid main {
  padding: 0 1em;
}

body.grid main article {
	display: grid;
	gap: 1em;
}

body.grid main article > * {
	border: 1px solid #f1f1f2;
	border-radius: 4px;
}

@media (min-width: 600px) {
	body.grid main article {
	  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	}
}

body.grid.grid--reduced main article {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

@media (max-width: 599px) {

  body.grid.grid--reduced main {
    padding: 2px;
  }

  body.grid.grid--reduced main article div.content {
    padding: 4px;
  }

  body.grid.grid--reduced main article {
    gap: 2px;
  }

  body.grid.grid--reduced main article * {
    word-break: break-all;
  }
}

footer {
	text-align: center;	
	font-size: var(--font-size-supersmall);
	padding: 10px;
	text-align: right;
	color: silver;
}

footer * {
	 color: silver;
}

footer a:not(:hover) {
	 text-decoration: none;
}

@keyframes fadeOut {
	0% { opacity: 1 }
	5% { opacity: 1 }
	100% { opacity: 0 }
}
