body {
  background-color: #111;
  color: #ddd;
  font-family: monospace, 'Courier New', Courier;
  padding: 2em;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

::selection {
  background: #9d063f;
  color: white;
}

main a {
  color: #ff5a98;
}

header {
  display: flex;
  align-items: first baseline;
  gap: 1rem;
  padding: 0.5rem 1rem 2.5rem 0;
  font-family: sans-serif;
  border-bottom: 1px solid #3c1725;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

header h1 a {
  color: #d7b1bf;
  text-decoration: none;
}

header h1 a:hover,
header h1 a:focus {
  text-decoration: underline;
}

header nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 40px;
}

header nav ul li {
  display: inline-block;
  margin: 0 30px 0 0;
}

header nav a {
  text-decoration: underline;
  color: #d7b1bf;
}

header nav a:hover {
  color: #fff;
  border-bottom-color: #666;
  text-decoration: underline;
}

header nav a.active {
  color: #fff;
}

#links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link {
  padding: 1em;
  margin-bottom: 1em;
  border: 1px solid #3c1725;
  background-color: #171214;
  border-left: 4px solid #9d063f;
}

.link .header {
  margin-bottom: 0.4em;
}

.link .date {
  color: #ff609c;
  margin-right: 1em;
}

.link .title {
  font-weight: bold;
  color: #fff;
}

.link .url {
  margin: 0.2em 0;
}

.link .url::before {
  content: "↳ ";
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.link .url a {
  color: #ffcce0;
  text-decoration: underline;
  word-break: break-all;
}

.link .url a:hover {
  text-decoration: underline;
}

.link .url a.archive {
  font-size: 12px;
  margin-left: 10px;
  color: #ae929d;
}

.link .tags {
  margin-top: 0.4em;
  display: flex;
  flex-wrap: wrap;
}

.link .tag {
  display: inline-block;
  background-color: #1a0d11;
  color: #979294;
  padding: 0.2em 0.5em;
  margin-right: 0.4em;
  border: 1px solid #333;
  border-radius: 3px;
  font-size: 0.9em;
  text-decoration: none;
}

a.expand-all-comments {
  font-size: 12px;
  margin: 2em 0 4em 0;
  display: inline-block;
  text-decoration: none;
}

#links details.show-comment summary {
  background: #420019;
  border: 1px solid black;
  border-radius: 0;
  color: #f9e5ed;
  padding: 7px 5px 7px 15px;
  font-size: 12px;
  margin-top: 1.5em;
  user-select: none;
  width: auto;
  display: inline-block;
  cursor: pointer;
}

#links details.show-comment summary::-webkit-details-marker {
  display: none;
}

#links details.show-comment summary::before {
  content: "▶ Show comment";
  display: inline-block;
  padding-right: 10px;
}

#links details.show-comment[open] summary::before {
  content: "▼ Hide comment";
  padding-right: 10px;
}

footer {
  margin: 10em 0;
  font-size: 0.9em;
  color: #999;
  text-align: center;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 1.5em;
  justify-content: center;
}

footer nav a {
  color: #aea2a7;
  text-decoration: none;
  font-size: 12px;
}

footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

footer blockquote {
  font-style: italic;
  margin-top: 4em;
  font-size: 12px;
  color: #957883;
}

#submit .submit-form {
  background: #111;
}

#submit .form-group {
  margin-bottom: 1em;
}

#submit label {
  display: block;
  margin-bottom: 0.4em;
  color: #ccc;
}

#submit input[type="text"],
#submit input[type="url"] {
  width: calc(100% - 1em);
  padding: 0.5em;
  background: #1a1a1a;
  color: #eee;
  border: 1px solid #333;
  border-radius: 4px;
}

#submit #nonce {
  width: 120px;
  margin-left: 10px;
}

#submit button {
  padding: 0.6em 1.2em;
  background-color: #91004b;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#submit button:hover {
  background-color: #006fd6;
}

#submit .code {
  background: #000;
  padding: 17px;
}

#submit code {
  text-wrap: nowrap;
  text-overflow: unset;
  white-space: pre-wrap;
  background: black;
  color: #75c675;
}

.onlyjs {
  display: none;
}

.pending .link {
  background: #400000 !important;
}

@media (max-width: 600px) {
  header {
    display: block;
  }
  header nav ul {
    padding: 0;
    margin-left: 0px;
    margin-top: 25px;
  }
  footer nav ul {
    gap: 0.85em;
  }
}

.block { display: block; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
