/* ============================================
   A little scrappy — subtle early-2000s touches
   ============================================ */

.navbar {
  border-bottom-style: dashed;
}

.page-content a {
  text-decoration-style: dotted;
}

.post-item {
  transition: background-color 0.15s ease;
}
.post-item:hover {
  background-color: rgba(0, 63, 255, 0.03);
}

blockquote {
  border-left-style: dashed;
}

.author .author-name {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.04);
}

.footer .footer_copyright {
  font-family: Consolas, monospace;
  letter-spacing: 0.02em;
}

.footer_social-icons::after {
  content: "~";
  display: block;
  margin-top: 0.4rem;
  font-family: Consolas, monospace;
  font-size: 14px;
  color: #6b7886;
  opacity: 0.5;
  animation: gentle-pulse 3s ease-in-out infinite;
}

.page-content a:visited {
  color: #7b2d8b;
}

.menu .menu-link {
  position: relative;
}
.menu .menu-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.3rem;
  height: 1px;
  border-bottom: 1px dashed currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.menu .menu-link:hover::after {
  opacity: 0.5;
}

.page-content img {
  border: 1px solid #ececec;
  padding: 2px;
}

hr {
  border-style: groove;
  border-width: 2px;
}

p > code,
li > code {
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

::selection {
  background: #3367d6;
  color: #fff;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.15; }
}

.post-item .post-item-title a:hover {
  cursor: crosshair;
}

/* Dark mode */
html.dark .post-item:hover {
  background-color: rgba(119, 168, 253, 0.04);
}
html.dark .author .author-name {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}
html.dark .footer_social-icons::after {
  color: #767f87;
}
html.dark .page-content a:visited {
  color: #c084cf;
}
html.dark .page-content img {
  border-color: #1b1d25;
}
html.dark hr {
  border-color: #4a4d56;
}
html.dark p > code,
html.dark li > code {
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}
html.dark ::selection {
  background: #5292ff;
  color: #131418;
}

@media (prefers-color-scheme: dark) {
  html:not(.dark):not(.light) .post-item:hover {
    background-color: rgba(119, 168, 253, 0.04);
  }
  html:not(.dark):not(.light) .author .author-name {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  }
  html:not(.dark):not(.light) .footer_social-icons::after {
    color: #767f87;
  }
  html:not(.dark):not(.light) .page-content a:visited {
    color: #c084cf;
  }
  html:not(.dark):not(.light) .page-content img {
    border-color: #1b1d25;
  }
  html:not(.dark):not(.light) hr {
    border-color: #4a4d56;
  }
  html:not(.dark):not(.light) p > code,
  html:not(.dark):not(.light) li > code {
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  html:not(.dark):not(.light) ::selection {
    background: #5292ff;
    color: #131418;
  }
}

/* ============================================
   Scrappy Lab — Listing page
   ============================================ */
.scrappy-lab-listing {
  margin-top: 30px;
}

.scrappy-lab-row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  border: 1px solid #ececec;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}
.scrappy-lab-row + .scrappy-lab-row {
  margin-top: 30px;
}
.scrappy-lab-row:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: inherit;
}
.scrappy-lab-row__thumb {
  flex-shrink: 0;
  width: 160px;
}
.scrappy-lab-row__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.scrappy-lab-row__body {
  flex: 1;
  min-width: 0;
}
.scrappy-lab-row__title {
  margin: 0 0 15px 0;
  font-size: 1.15rem;
}
.scrappy-lab-row__summary {
  margin: 0 0 15px 0;
  color: #6b7886;
  font-size: 15px;
  line-height: 1.6;
}
.scrappy-lab-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scrappy-lab-row__tag {
  display: inline-block;
  font-size: 14px;
  padding: 2px 10px;
  border-radius: 4px;
  background-color: #d8dbe2;
  color: #333638;
}

@media screen and (max-width: 768px) {
  .scrappy-lab-row {
    flex-direction: column;
  }
  .scrappy-lab-row__thumb {
    width: 100%;
  }
}

/* Scrappy Lab — Detail page */
.scrappy-lab-detail__hero {
  margin-top: 30px;
}
.scrappy-lab-detail__hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ececec;
}
.scrappy-lab-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}
.scrappy-lab-detail__tag {
  display: inline-block;
  font-size: 14px;
  padding: 2px 10px;
  border-radius: 4px;
  background-color: #d8dbe2;
  color: #333638;
}
.scrappy-lab-detail__link {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #ececec;
}
.scrappy-lab-detail__link a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  background-color: #d8dbe2;
  color: #333638;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}
.scrappy-lab-detail__link a:hover {
  background-color: #d2c7c7;
}

/* Dark mode — Scrappy Lab */
html.dark .scrappy-lab-row {
  border-color: #1b1d25;
}
html.dark .scrappy-lab-row:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
html.dark .scrappy-lab-row__summary {
  color: #767f87;
}
html.dark .scrappy-lab-row__tag {
  background-color: #2d2d2d;
  color: #c2c4ca;
}
html.dark .scrappy-lab-detail__hero img {
  border-color: #1b1d25;
}
html.dark .scrappy-lab-detail__tag {
  background-color: #2d2d2d;
  color: #c2c4ca;
}
html.dark .scrappy-lab-detail__link {
  border-color: #1b1d25;
}
html.dark .scrappy-lab-detail__link a {
  background-color: #2d2d2d;
  color: #c2c4ca;
}
html.dark .scrappy-lab-detail__link a:hover {
  background-color: #4a4d56;
}

@media (prefers-color-scheme: dark) {
  html:not(.dark):not(.light) .scrappy-lab-row {
    border-color: #1b1d25;
  }
  html:not(.dark):not(.light) .scrappy-lab-row:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }
  html:not(.dark):not(.light) .scrappy-lab-row__summary {
    color: #767f87;
  }
  html:not(.dark):not(.light) .scrappy-lab-row__tag {
    background-color: #2d2d2d;
    color: #c2c4ca;
  }
  html:not(.dark):not(.light) .scrappy-lab-detail__tag {
    background-color: #2d2d2d;
    color: #c2c4ca;
  }
  html:not(.dark):not(.light) .scrappy-lab-detail__link {
    border-color: #1b1d25;
  }
  html:not(.dark):not(.light) .scrappy-lab-detail__link a {
    background-color: #2d2d2d;
    color: #c2c4ca;
  }
  html:not(.dark):not(.light) .scrappy-lab-detail__link a:hover {
    background-color: #4a4d56;
  }
}
