:root {
  --menu-item-height        : 2.0rem;
  --menu-item-padding-top   : 0.5rem;
  --menu-item-padding-right : 1.0rem;
  --menu-item-padding-bottom: 0.5rem;
  --menu-item-padding-left  : 1.0rem;

  --menu-height : calc(var(--menu-item-height) + var(--menu-item-padding-bottom) + var(--menu-item-padding-top));
  --footer-height           : 2.0rem;

  --padding-top             : 1.0rem;
  --padding-below           : 2.0rem;

  --menu-item-padding:
    var(--menu-item-padding-top)
    var(--menu-item-padding-right)
    var(--menu-item-padding-bottom)
    var(--menu-item-padding-left);
}

body {
  margin: auto;
  padding-left: 1em;
  padding-right: 1em;
  padding-top: calc(var(--menu-height) + var(--padding-top));
  padding-bottom: calc(var(--footer-height) + var(--padding-below));

  line-height: 1.5;
}

h1[id],
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
  scroll-margin-top: calc(var(--menu-height) + var(--padding-top));
}

.title { font-size: 1.1em; }

.article-meta {
  text-align: center;
  text-decoration: none;
  background: #eee;
  padding: 5px;
  border-radius: 5px;
}

hr {
  border-style: dashed;
  color: #ddd;
}

.menu {
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #555;
/**/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
/**/
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
/**/
  padding: 0.5rem 0.5rem;
  box-sizing: border-box;
/**/
  z-index: 1000;
}
.menu-group {
  display: flex;
  gap: 0.5rem;
/**/
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-group.left {
  justify-self: start;
}
.menu-group.center {
  justify-self: center;
}
.menu-group.right {
  justify-self: end;
}
.menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--menu-item-padding);
  height: var(--menu-item-height);
  background: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.menu li a:hover {
  background: #555;
}

footer {
  padding: 1.0rem 1.0rem 1.0rem 1.0rem;
  color: black;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #555;
/**/
  text-align: center;
/**/
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
/**/
  z-index: 1000;
}
footer a { text-decoration: none; }

pre {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  overflow-x: auto;
}
code { background: #f9f9f9; }
pre code { background: none; }

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; }

img, iframe, video { max-width: 100%; }

main { hyphens: auto; }

blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}
