* {
  box-sizing: border-box;
}

:root {
  --background: #fff;
  --text: #334;
  --accent: #0d76bd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: linear-gradient(45deg, black, #222);
    --text: #eee;
    --accent: #0d76bd;
  }
}

body {
  color: var(--text);
  background: var(--background);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35em;
  padding: 2em;
  max-width: 72ch;
  position: relative;
  margin: 0;
  min-height: 100vh;
}

article {
  hyphens: auto;
}

aside {
  border: 3px solid #eee;
  padding: 0 1ch;
  position: relative;
}
aside::before {
  content: 'ASIDE';
  font-size: 0.5em;
  font-weight: bold;
  position: absolute;
  top: 0;  left: 0;
  padding: 0 2ch 0.5ch;
  line-height: 1;
  background: #eee;
}
time {
  white-space: nowrap;
}

h1 {
  color: var(--text);
  font-weight: 400;
  font-size: 1.60em;
  line-height: 1;
  margin: 0;
}
h2 {
  font-size: 1.36em;
  margin-top: 1.5em; }
h3 { font-size: 1.17em }

h1.main-title {
  font-size: 2em;
  font-weight: 700; }
h1.main-title + .subtitle {
  display: block;
  opacity: 0.7;
  line-height: 1;
  margin: 0.3em 0 2rem 0rem;
}
.subtitle .self {
  color: var(--text);
  font-weight: 400;
}
h1.main-title > a {
  opacity: 0.3;
  position: absolute;
  left: 0.3em;
  text-decoration: none;
  color: var(--text);
}
h1.main-title > a:hover { opacity: 1; }

small.tag {
  font-size: 0.8em;
  opacity: 0.4;
}

ol.posts {
  list-style: decimal-leading-zero;
  padding-left: 5.5ch;
  position: relative;
}
ol.posts li::before {
  position: absolute;
  left: 0;
  content: "№"
}
li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}
.reply {
  display: none;
}
.reply--show {
  display: block; /* not a `list-item` so it's not counted. */
}
ol.posts li.reply.reply--show::before {
  content: ''
}

.margin {
  position: relative;
  float: right;
  right: 0;
  width: 29.3333%;
  padding-left: 30px;
}
@media screen and (min-width: 145ch) {
  .margin {
    position: absolute;
    right: -29.3333%;
  }
}

@media print {
  body {
    font-size: 16px;
    max-width: none;
  }
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
article a, p a {
	background-color: #0d76bd20;
  padding: 0 3px;
}

blockquote {
  font-size: 120%;
  padding: 1em 0 1em 1.5em;
  margin: 0;
  border-left: 10px solid lightgray;
}
blockquote > *:first-child { margin-top: 0; }
blockquote > *:last-child { margin-bottom: 0; }
blockquote::after {
    content: "";
    clear: both;
    display: block;
}

img {
  max-width: 100%;
}
img ~ small {
  display: block;
  opacity: 0.8;
  text-align: center;
}

hr {
  margin: 2em auto;
}

.fr {
  float: right;
  text-align: right;
}
.clear::after {
  content: "";
  clear: both;
  display: table;
}

[dim] {
  opacity: 0.6;
}

.webmention-post .url {
  width: 450px;
}
