:root {
  font-family: "MS PGothic", "Osaka", "Yu Gothic", sans-serif;
  color: #111;
  background: #d4d0c8;
  font-size: 14px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background-color: #303330;
  background-image:
    radial-gradient(circle at 12px 12px, rgb(151 143 116 / .72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36px 36px, rgb(141 143 135 / .6) 0 1px, transparent 1.5px),
    linear-gradient(90deg, transparent 11px, rgb(112 113 105 / .34) 11px 12px, transparent 12px 35px, rgb(126 118 96 / .3) 35px 36px, transparent 36px),
    linear-gradient(0deg, transparent 11px, rgb(112 113 105 / .34) 11px 12px, transparent 12px 35px, rgb(126 118 96 / .3) 35px 36px, transparent 36px);
  background-size: 48px 48px;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }
a:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }

.channel-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  width: min(100%, 1160px);
  min-height: 100vh;
  margin: 0 auto;
}

.board-menu {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 5px 5px 8px;
  border-right: 3px ridge #f4f1e9;
  background: #d4d0c8;
  font-size: 12px;
  line-height: 1.35;
}

.board-menu nav { flex: 1; }

.category {
  margin: 0 0 5px;
  padding: 0 0 4px;
  border-bottom: 1px solid #aaa69d;
}

.category h2 {
  margin: 0 0 2px;
  padding: 1px 3px;
  color: #fff;
  background: #394c65;
  font-size: 12px;
  line-height: 1.35;
}

.category ul {
  margin: 0;
  padding: 0 0 0 14px;
  list-style: square;
}

.category li { margin: 1px 0; }
.category a[aria-current="page"] { color: #800000; font-weight: bold; }

.empty-category {
  margin: 2px 3px 0;
  color: #77736b;
  font-size: 10px;
}

.loading-note,
.channel-error {
  color: #706b63;
  font-size: 11px;
}

.channel-error { color: #a00000; }

.human-link {
  display: grid;
  place-items: center;
  width: 78px;
  height: 56px;
  margin: 10px auto 2px;
  border-radius: 2px;
}

.human-link img {
  display: block;
  width: 54px;
  height: auto;
  filter: grayscale(.45) brightness(.78) drop-shadow(-2px 0 1px rgb(0 0 0 / .24));
  transform: rotate(-90deg);
  transition: filter .14s ease;
}

.human-link:hover img,
.human-link:focus-visible img {
  filter: grayscale(.25) brightness(1) drop-shadow(-3px 0 2px rgb(0 0 0 / .3));
  transform: rotate(-90deg);
}

.content-pane {
  min-width: 0;
  min-height: 100vh;
  padding: 13px 18px 30px;
  background: #fffdf4;
}

.mobile-nav { display: none; }
.mobile-copy { display: none; }

.welcome {
  max-width: 760px;
  margin: 34px auto 0;
  line-height: 1.7;
}

.welcome h1 {
  margin: 0 0 12px;
  color: #253c78;
  font-size: 25px;
  font-weight: bold;
}

.welcome hr {
  height: 3px;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #bbb;
}

.welcome-note { color: #666057; font-size: 12px; }

.board-heading {
  margin-bottom: 12px;
  border-bottom: 3px double #777268;
}

.board-heading h1 {
  margin: 0 0 5px;
  color: #8b0000;
  font-size: 24px;
  line-height: 1.25;
}

.board-heading p {
  max-width: 880px;
  margin: 0 0 10px;
  line-height: 1.6;
}

.thread-caption {
  margin: 8px 0 5px;
  color: #4c4740;
  font-size: 12px;
}

.thread-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #8b877e;
  list-style: none;
}

.thread-list li {
  position: relative;
  min-width: 0;
  padding: 5px 88px 5px 4px;
  border-bottom: 1px dotted #aaa69d;
  line-height: 1.4;
}

.thread-list .empty-thread-list {
  display: block;
  color: #706b63;
  font-size: 11px;
}

.thread-main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.thread-count {
  white-space: nowrap;
}

.thread-updated {
  position: absolute;
  top: 6px;
  right: 4px;
  color: #59554e;
  font: 11px "MS Gothic", monospace;
  white-space: nowrap;
}

.board-footnote {
  margin-top: 16px;
  color: #706b63;
  font-size: 11px;
}

.thread-breadcrumbs,
.thread-navigation {
  margin: 0 0 12px;
  color: #59554e;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.thread-heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px double #777268;
}

.thread-heading h1 {
  margin: 0;
  color: #253c78;
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.response-list {
  border-top: 1px solid #8b877e;
}

.response {
  padding: 9px 5px 12px;
  border-bottom: 1px dotted #aaa69d;
  scroll-margin-top: 8px;
}

.response:target {
  background: #fff7d8;
}

.response-meta {
  margin-bottom: 6px;
  color: #535049;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.response-number {
  color: #800000;
  font-weight: bold;
  text-decoration: none;
}

.response-name {
  color: #006400;
  font-weight: bold;
}

.response-body {
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.response-anchor { font-weight: bold; }

.empty-thread {
  margin: 18px 4px;
  color: #706b63;
}

.thread-navigation.bottom {
  margin: 16px 0 0;
  padding-top: 9px;
  border-top: 3px double #777268;
}
@media (max-width: 600px) {
  :root { font-size: 13px; }
  .channel-layout { display: block; }
  .board-menu { display: none; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .content-pane { padding: 9px 8px 22px; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 3px 7px;
    align-items: flex-start;
    margin: -1px 0 12px;
    padding: 3px 2px 5px;
    border-bottom: 1px solid #aaa69d;
    font-size: 12px;
    line-height: 1.5;
  }
  .mobile-nav a { white-space: nowrap; }
  .mobile-nav > a:first-of-type { grid-column: 2; grid-row: 1; }
  .mobile-home-link {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    width: 34px;
    height: 22px;
    place-items: center;
  }
  .mobile-home-link img {
    position: relative;
    top: -3px;
    display: block;
    width: 22px;
    height: auto;
    filter: grayscale(.45) brightness(.78) drop-shadow(1px 1px 1px rgb(0 0 0 / .2));
    transform: rotate(-90deg);
  }
  .mobile-board-list { display: contents; }
  .mobile-board-list summary {
    grid-column: 1;
    grid-row: 1;
    color: #0000ee;
    cursor: pointer;
    list-style: none;
    text-decoration: underline;
    white-space: nowrap;
  }
  .mobile-board-list summary::-webkit-details-marker { display: none; }
  .mobile-board-list ul {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 2px 4px 4px;
    border-top: 1px dotted #aaa69d;
    background: #eeeae0;
  }
  .mobile-board-list ul {
    margin: 0;
    list-style: none;
  }
  .mobile-board-list li { margin: 1px 0; }
  .mobile-board-list a[aria-current="page"] { color: #800000; font-weight: bold; }
  .welcome { margin-top: 15px; }
  .welcome h1, .board-heading h1 { font-size: 19px; }
  .thread-list li { padding: 6px 76px 6px 2px; }
  .thread-updated { top: 7px; right: 2px; font-size: 10px; }
  .thread-heading h1 { font-size: 19px; }
  .response { padding-right: 2px; padding-left: 2px; }
  .response-body { padding-left: 8px; font-size: 14px; }
}
