/* Global begin */

:root {
  color-scheme: light dark;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: calc(80ch + 2rem);
  margin: 0 auto;
  padding: 1rem;
  font: 1rem/1.6 monospace;
  overflow-wrap: break-word;
  background: light-dark(#ffffff, #151515);
  color: light-dark(#222222, #dddddd);
}

/* Global end */

/* Site header begin */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li::before { content: "[ " / ""; }
nav li + li::before { content: ":: [ " / ""; }
nav li::after { content: " ]" / ""; }

nav a { text-decoration: none; }
nav a:hover,
nav a:focus-visible { text-decoration: underline; }

/* Site header end */

/* Site content begin */

main {
  flex-grow: 1;
}

#title-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1rem;
}

main img {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
  padding: 0.75rem;
  background: light-dark(#f4f4f4, #1f1f1f);
}

code, pre {
  font-size: 1em;
}

table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid light-dark(#cccccc, #444444);
}

a {
  color: light-dark(#0645ad, #8ab4f8);
}

ul {
  list-style-type: square;
}

li p {
  margin: 0 0 1rem;
}

/* Site content end */

/* Site footer begin */

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid light-dark(#cccccc, #444444);
  font-size: 0.875em;
}

footer p {
  margin: 0.25rem 0;
}

/* Site footer end */
