:root {
  color-scheme: light;
  --page: #f1f1ee;
  --ink: #2d2d2d;
  --muted: #686868;
  --line: #c6c6bd;
  --ubuntu: #dd4814;
  --aubergine: #5e2750;
  --header: #efefeb;
  --post: #fff;
  --quote: #f7f4ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 13px/1.45 Verdana, Arial, Helvetica, sans-serif;
}

a {
  color: #245d92;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: linear-gradient(#6e315f, var(--aubergine));
  border-bottom: 4px solid var(--ubuntu);
  color: #fff;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(16px, calc((100vw - 1120px) / 2));
}

.brand,
.brand:hover {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.quick-search {
  display: flex;
  gap: 6px;
  min-width: min(420px, 52vw);
}

input,
button {
  border: 1px solid #9f9f97;
  border-radius: 3px;
  font: inherit;
  min-height: 32px;
}

input {
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  width: 100%;
}

button {
  background: linear-gradient(#f28b5d, var(--ubuntu));
  border-color: #b83b11;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 6px 12px;
}

.thread-wrap {
  margin: 14px auto 32px;
  max-width: 1120px;
  padding: 0 12px;
}

.breadcrumbs,
.thread-tools {
  background: #dfdfd8;
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.breadcrumbs {
  color: var(--muted);
}

.breadcrumbs span {
  margin: 0 4px;
}

.thread-title {
  background: var(--header);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 14px 16px;
}

.thread-title h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.thread-title p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.thread-tools {
  border-top: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  text-align: right;
}

.post {
  background: var(--post);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-top: 12px;
  max-width: 100%;
}

.post-user {
  background: #ecece6;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
}

.avatar {
  align-items: center;
  background: var(--aubergine);
  border: 3px solid #fff;
  color: #fff;
  display: flex;
  font-size: 20px;
  font-weight: 700;
  height: 58px;
  justify-content: center;
  margin-bottom: 10px;
  width: 58px;
}

.post-user h2 {
  font-size: 14px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.post-user p {
  color: var(--muted);
  margin: 0;
}

.post-head {
  background: #f5f5f1;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 10px;
}

.post-body {
  min-width: 0;
}

.content {
  font-size: 14px;
  min-height: 120px;
  min-width: 0;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  padding: 14px 16px 20px;
  word-break: break-word;
}

.content p {
  margin: 0 0 12px;
}

.content blockquote {
  background: var(--quote);
  border: 1px solid #d9d0a9;
  border-left: 4px solid #c7a23a;
  color: #333;
  margin: 0 0 14px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  overflow-x: auto;
  padding: 10px 12px;
  word-break: break-word;
}

.content pre {
  background: #272822;
  color: #f8f8f2;
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.content code {
  font-family: "Ubuntu Mono", Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content ul,
.content ol {
  margin: 0 0 14px 24px;
  padding: 0;
}

.home {
  margin: 12vh auto 0;
  max-width: 720px;
  padding: 0 16px;
}

.home.compact {
  margin-top: 8vh;
}

.brand-mark {
  color: var(--ubuntu);
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.home h1 {
  color: var(--aubergine);
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.home p {
  color: var(--muted);
  font-size: 15px;
}

.lookup {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.lookup input {
  font-size: 15px;
  min-height: 42px;
}

.lookup button {
  white-space: nowrap;
}

.form-message {
  color: #8a3a16;
}

.archive-note {
  margin-top: 18px;
}

.recent {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
}

.recent-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.recent h2 {
  color: var(--aubergine);
  font-size: 18px;
  margin: 0;
}

.link-button {
  background: transparent;
  border: 0;
  color: #245d92;
  min-height: 0;
  padding: 0;
}

.recent-empty {
  color: var(--muted);
  margin-top: 10px;
}

.recent-table-wrap {
  margin-top: 10px;
  max-width: 100%;
  overflow-x: auto;
}

.recent-table {
  background: #fff;
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.recent-table th,
.recent-table td {
  border: 1px solid var(--line);
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.recent-table th {
  background: #dfdfd8;
  color: #444;
}

.recent-table th:nth-child(1),
.recent-table td:nth-child(1) {
  width: 62%;
}

.recent-table th:nth-child(2),
.recent-table td:nth-child(2) {
  width: 23%;
}

.recent-table th:nth-child(3),
.recent-table td:nth-child(3) {
  width: 15%;
}

.recent-table a,
.recent-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .topbar,
  .lookup {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search {
    min-width: 0;
    width: 100%;
  }

  .post {
    grid-template-columns: 1fr;
  }

  .thread-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-user {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 12px;
  }

  .post-user p {
    grid-column: 2;
  }

  .post-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    font-size: 13px;
    padding: 12px;
  }

  .content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 9px 10px;
  }

  .recent-table th:nth-child(2),
  .recent-table td:nth-child(2),
  .recent-table th:nth-child(3),
  .recent-table td:nth-child(3) {
    display: none;
  }

  .recent-table th:nth-child(1),
  .recent-table td:nth-child(1) {
    width: 100%;
  }
}
