body {
  margin: 0;
  padding: 0 10px;
  color: #000;
  background: #ddd;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

a,
a:visited,
a:hover,
a:active {
  color: #0000ee;
}

.page {
  max-width: 820px;
  margin: 0 auto;
}

header {
  min-height: 76px;
  text-align: center;
}

.page-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin: 10px auto 6px;
  image-rendering: auto;
}

.site-logo {
  display: block;
  width: 160px;
  max-width: 160px;
  height: auto;
  margin: 8px auto 0;
  mix-blend-mode: multiply;
}

.site-logo-large {
  width: 360px;
  max-width: min(360px, 82vw);
  margin-top: 24px;
}

pre.site-logo {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.15;
  white-space: pre;
}

pre.site-logo-large {
  margin-top: 24px;
}

.site-logo-mobile {
  display: none;
}

.server-note {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 14px 16px;
  overflow: hidden;
  color: #d3d7cf;
  background: #300a24;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(10px, 2.9vw, 18px);
  font-weight: normal;
  line-height: 1.3;
  text-align: left;
  white-space: pre;
}

.terminal-heading {
  color: #eeeeec;
  font-weight: bold;
}

.terminal-status,
.terminal-user {
  color: #8ae234;
  font-weight: bold;
}

.terminal-copy {
  color: #d3d7cf;
}

.terminal-path {
  color: #729fcf;
  font-weight: bold;
}

.cursor {
  display: inline-block;
  width: 1ch;
  height: 0.95em;
  background: #eeeeec;
  vertical-align: -0.1em;
  animation: terminal-cursor 1.25s steps(1, end) infinite;
}

@keyframes terminal-cursor {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

h1 {
  margin: 0;
  font-size: 36px;
}

h2 {
  font-size: 22px;
}

.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 70px;
  max-width: 760px;
  margin: 8px auto 32px;
}

.landing-directory {
  border-top: 1px solid #999;
  padding-top: 26px;
  margin-top: 18px;
}

.home-header h1 {
  margin-top: 14px;
}

.home-intro {
  max-width: 620px;
  margin: 12px auto 0;
  text-align: center;
}

.home-directory {
  min-height: 190px;
}

.search-bar {
  margin: 18px auto 0;
  max-width: 420px;
}

.search-bar input {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #777;
  background: #f4f4f4;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
}

ul {
  margin: 0;
  padding-left: 28px;
}

li {
  margin-bottom: 18px;
}

li > a {
  font-size: 17px;
  font-weight: bold;
}

li p {
  margin: 0;
  font-size: 14px;
}

.directory-link {
  display: block;
  text-decoration: underline;
}

.directory-link.has-icon {
  text-decoration: none;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.layout-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.directory-link strong,
.directory-link span {
  display: block;
}

.directory-link strong {
  font-size: 17px;
}

.directory-link span {
  font-size: 14px;
  font-weight: normal;
  text-decoration: underline;
}

.link-copy strong {
  text-decoration: underline;
}

.content {
  min-height: 300px;
  padding: 12px 16px 28px;
  border-top: 1px solid #999;
}

.notice,
.card,
.chart {
  border: 1px solid #999;
  background: #eee;
}

.notice {
  padding: 12px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.card {
  padding: 12px;
  text-align: center;
}

.card strong {
  display: block;
  font-size: 21px;
}

.chart {
  width: 100%;
  height: 220px;
}

.chart polyline {
  fill: none;
  stroke: #0000ee;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart line {
  stroke: #bbb;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.muted {
  font-size: 14px;
}

.lead {
  font-size: 20px;
}

.form-layout {
  max-width: 560px;
}

.form-layout label {
  display: block;
  margin: 14px 0 4px;
  font-weight: bold;
}

.form-layout input,
.form-layout select,
.form-layout textarea,
.form-layout button {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #777;
  background: #f4f4f4;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

.form-layout textarea {
  resize: vertical;
}

.form-layout button {
  width: auto;
  margin-top: 14px;
  background: #e4e4e4;
  cursor: pointer;
}

.journal-photo {
  margin: 20px 0;
}

.journal-photo .photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #777;
  background: #ccc;
}

.journal-photo img,
.journal-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-photo figcaption {
  padding-top: 5px;
  font-size: 14px;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery figure {
  margin: 0;
}

.sample-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border: 1px solid #777;
  background: #ccc;
  font-family: monospace;
}

.sample-image img,
.sample-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  padding-top: 5px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

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

blockquote {
  margin: 16px 0;
  padding: 6px 14px;
  border-left: 3px solid #999;
  color: #333;
}

blockquote p {
  margin: 0;
}

th,
td {
  padding: 7px;
  border: 1px solid #777;
  text-align: left;
}

th {
  background: #ccc;
}

.faq h3,
.log h3 {
  margin-bottom: 4px;
}

.faq h3 + p,
.log h3 + p {
  margin-top: 0;
}

.log article {
  border-bottom: 1px dotted #777;
}

.search-results article {
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px dotted #777;
}

.search-results h3 {
  margin-bottom: 4px;
}

.plain-text-layout {
  line-height: 1.7;
}

.plain-block,
.terminal-block {
  padding: 12px;
  border: 1px solid #999;
  background: #eee;
}

.plain-block p {
  margin: 0 0 12px;
}

.plain-block p:last-child {
  margin-bottom: 0;
}

.terminal-block {
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.timeline-layout article {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dotted #777;
}

.timeline-layout h3 {
  margin-bottom: 4px;
}

.maintenance-layout .notice {
  max-width: 620px;
  margin: 0 auto;
}

.landing-layout {
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.profile-image {
  display: block;
  width: 100%;
  height: auto;
}

.error-layout {
  text-align: center;
}

.sitemap-list ul {
  margin-top: 8px;
}

.tree-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 44px;
  margin-top: 22px;
}

.tree-block h2 {
  margin-bottom: 8px;
}

.tree-list {
  margin: 0;
  padding: 12px;
  border: 1px solid #999;
  background: #eee;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.tree-list a,
.tree-list a:visited,
.tree-list a:hover,
.tree-list a:active {
  color: #0000ee;
  text-decoration: underline;
}

.sitemap-tree {
  max-width: 560px;
}

footer {
  padding: 14px 0 10px;
  border-top: 1px solid #999;
  text-align: center;
}

footer p {
  margin: 7px 0;
}

@media (max-width: 620px) {
  h1 {
    padding-top: 8px;
    font-size: 29px;
  }

  .directory,
  .summary,
  .about-grid,
  .tree-grid {
    grid-template-columns: 1fr;
  }

  .directory {
    gap: 0;
  }

  pre.site-logo-large {
    display: none;
  }

  pre.site-logo-mobile {
    display: block;
    max-width: 100%;
    margin-top: 14px;
    font-size: 14px;
  }

  .server-note {
    margin-top: 14px;
    padding: 8px 6px;
  }
}
