@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/newsreader-subset.woff2") format("woff2");
}

html {
  font-family: "Newsreader", Georgia, Cambria, serif;
  font-size: 18px;
  line-height: 1.58;
}

body {
  margin: 2rem auto;
  max-width: 820px;
  padding: 0 1rem;
  color: #111;
  background: #fff;
}

h1,
h2,
h3 {
  font-family: "Newsreader", Georgia, Cambria, serif;
  font-weight: 800;
}

h1 {
  font-size: 2.8rem;
  line-height: 1;
  margin: 1.25rem 0 0.85rem;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

a {
  color: #0645ad;
}

header {
  border-color: #ddd;
  border-style: solid;
  border-width: 0;
}

header {
  border-bottom-width: 1px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

header p {
  font-family: "Newsreader", Georgia, Cambria, serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.45rem;
}

nav a {
  margin-right: 1rem;
}

footer {
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 0.95rem;
  margin-top: 3rem;
  padding: 1rem 0 0;
}

footer p {
  margin: 0 0 0.35rem;
}

footer a {
  margin-right: 0.85rem;
}

.home-profile {
  display: block;
}

.profile-photo {
  float: left;
  margin: 0.25rem 1.25rem 0.75rem 0;
  max-width: 165px;
  width: 34%;
}

.profile-photo img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.profile-photo figcaption {
  color: #555;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.home-profile::after {
  clear: both;
  content: "";
  display: table;
}

input[type="text"],
input[type="password"],
select,
textarea {
  box-sizing: border-box;
  font: inherit;
  max-width: 100%;
  width: 100%;
}

button {
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border: 1px solid #ddd;
  padding: 0.35rem;
  text-align: left;
  vertical-align: top;
}

td p {
  margin: 0 0 0.5rem;
}

.inline {
  display: inline;
  margin-left: 0.5rem;
}

.site-image {
  margin: 1.5rem auto;
  text-align: center;
}

.site-image img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.site-image figcaption {
  color: #555;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.post-list {
  list-style: none;
  margin: 1rem 0;
  padding-left: 0;
}

.post-list-item {
  border-top: 2px solid #e5e5e5;
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
}

.post-cover {
  flex: 0 0 220px;
}

.post-cover img {
  display: block;
  height: auto;
  max-width: 220px;
  width: 100%;
}

.post-list-body {
  flex: 1;
  min-width: 0;
}

.post-list-body h2,
.post-list-body h3 {
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.post-list-body h2 {
  font-size: 1.45rem;
}

.post-list-body h3 {
  font-size: 1.15rem;
}

.post-date {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.post-summary {
  margin: 0.4rem 0 0.6rem;
}

.admin-thumb {
  display: block;
  height: auto;
  margin: 0.5rem 0;
  max-width: 220px;
}

.note {
  border: 1px solid #ddd;
  margin: 1rem 0;
  padding: 0.75rem;
}

.marker-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.editor-toolbar {
  background: #f3f3f3;
  border-color: #999;
  opacity: 1;
}

.editor-toolbar button {
  background: #fff;
  border: 1px solid #aaa;
  color: #111;
  font-size: 0;
  min-width: 2.1rem;
  margin: 0 2px 2px 0;
  padding: 0 0.45rem;
  vertical-align: top;
}

.editor-toolbar button::after {
  content: none !important;
}

.editor-toolbar button::before {
  color: #111;
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.editor-toolbar button.bold::before {
  content: "B";
}

.editor-toolbar button.italic::before {
  content: "I";
  font-style: italic;
}

.editor-toolbar button.heading::before {
  content: "H";
}

.editor-toolbar button.unordered-list::before {
  content: "UL";
}

.editor-toolbar button.ordered-list::before {
  content: "OL";
}

.editor-toolbar button.quote::before {
  content: "Q";
}

.editor-toolbar button.code::before {
  content: "{}";
}

.editor-toolbar button.link::before {
  content: "Link";
}

.editor-toolbar button.preview::before {
  content: "View";
}

.editor-toolbar button.side-by-side::before {
  content: "Split";
}

.editor-toolbar button.fullscreen::before {
  content: "Full";
}

.editor-toolbar button:hover,
.editor-toolbar button.active {
  background: #e8e8e8;
  border-color: #555;
  color: #000;
}

.editor-toolbar i.separator {
  border-left-color: #999;
  border-right-color: #fff;
}

.editor-toolbar.fullscreen {
  background: #f3f3f3;
}

.EasyMDEContainer .CodeMirror {
  border-color: #999;
}

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

code {
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.88em;
  padding: 0.08rem 0.28rem;
}

pre {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f2f2f2;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 1.25rem 0;
  overflow-x: auto;
  padding: 1rem;
  tab-size: 2;
  user-select: text;
  white-space: pre;
}

.code-window {
  margin: 1.25rem 0;
  position: relative;
}

.code-window pre {
  margin: 0;
  padding-right: 4.25rem;
}

.code-copy {
  background: #262626;
  border: 1px solid #555;
  border-radius: 5px;
  color: #f5f5f5;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.32rem 0.45rem;
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
}

.code-copy:hover,
.code-copy:focus {
  background: #3a3a3a;
  border-color: #777;
}

pre code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: block;
  font-size: inherit;
  padding: 0;
}

.code-lines {
  counter-reset: code-line;
}

.code-line {
  counter-increment: code-line;
  display: block;
  min-height: 1.55em;
  padding-left: 3.2rem;
  position: relative;
}

.code-line::before {
  color: #858585;
  content: counter(code-line);
  font-variant-numeric: tabular-nums;
  left: 0;
  position: absolute;
  text-align: right;
  user-select: none;
  width: 2.1rem;
}

@media (max-width: 560px) {
  .profile-photo {
    float: none;
    margin: 0 0 1rem;
    max-width: 180px;
    width: 55%;
  }

  .post-list-item {
    display: block;
  }

  .post-cover {
    display: block;
    margin-bottom: 0.5rem;
  }

  .post-cover img {
    max-width: 100%;
  }
}
