:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f7f7f7;
  --text: #191919;
  --muted: #666;
  --border: #e2e2e2;
  --link: #1859a9;
  --content-width: 45rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.4rem;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.14em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  outline: 0.18rem solid var(--link);
  outline-offset: 0.18rem;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--background);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-content,
.site-footer {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: center;
  padding-block: 1rem 0.5rem;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  border-radius: 50%;
}

.site-content {
  min-height: 50vh;
}

.posts {
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 2rem;
  line-height: 1.35;
}

.posts li + li {
  margin-top: 1rem;
}

.posts a {
  color: var(--text);
}

.article-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-head h1 {
  margin: 2.5rem 0 0.25rem;
  font-size: 2rem;
  line-height: 1.15;
  text-wrap: balance;
}

.article-head time {
  color: var(--muted);
  font-size: 1.3rem;
}

.article-content {
  overflow-wrap: break-word;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.2em;
  line-height: 1.25;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
}

blockquote {
  margin-inline: 0;
  padding: 0.75rem 1rem;
  border-inline-start: 0.25rem solid var(--border);
  background: var(--surface);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

:not(pre) > code {
  padding: 0.1em 0.3em;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--surface);
  font-size: 0.88em;
}

.article-content pre {
  margin: 2rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.5;
}

div.sourceCode {
  margin: 2rem 0;
}

div.sourceCode pre {
  margin: 0;
}

iframe {
  width: 100%;
  height: 31.25rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
}

.site-footer {
  margin-top: 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.not-found {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 34rem) {
  div.sourceCode,
  .article-content > pre {
    margin-inline: -0.5rem;
  }

  div.sourceCode pre,
  .article-content > pre {
    border-radius: 0;
  }
}

