body {
  font-family: monospace;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0;
  margin: auto;
  padding: 0 1rem;
  text-align: justify;
  background: black;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #ffffff;
  min-width: 320px;
  max-width: 700px;
  color-scheme: dark;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 1.6em;
  font-weight: bold;
  margin: 0;
  line-height: 20px;
}

h2, h3, h4, h5, h6 {
  font-size: inherit;
}

/* separación entre nav y el h1/h2 de contenido */
main h1,
main h2 {
  margin-top: 1.5rem;
}

header {
  margin-top: 3rem;
  margin-bottom: 0;
  padding: 0;
}
a {
  color: #e3e2e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fffff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 1rem;
}

nav a {
  margin-right: 10px;
  color: #f0f0f0 !important;
  font-weight: bold;
  transition: all 0.2s ease;
}

nav a:hover {
  color: #6300FF !important;
}

main {
  padding: 0;
}

hr {
  border: none;
  height: 1px;
  background-color: #2a2a2a;
  opacity: 0.3;
  margin: 1rem 0;
}

pre.meta {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
pre, code small {
  font-family: monospace, monospace;
  font-size: 11px;
  line-height: 13px;
  background: black;
  white-space: pre;
  margin: 0;
  padding: 0 0 0 0.5rem;
}

div.highlight pre,
div.highlight code {
  background: none !important;
  color: inherit !important;
}

blockquote {
  font-style: italic;
  padding-left: 1rem;
  border-left: 2px solid #4c4cff;
}

img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

ul, ol {
  list-style: none;
}

footer {
  padding: 0;
}

/* ── responsive-pre: arte ASCII / neofetch ── */

.responsive-pre {
  font-family: monospace, monospace;
  font-size: 11px;
  line-height: 1.3;
  white-space: pre;
  overflow-x: auto;
  display: block;
  max-width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* ── 404 ── */

.error-404 {
  padding: 2rem 0;
  text-align: left;
}

.error-code {
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 1rem;
  color: #cc2a4b;
}

.error-404 p {
  margin: 1rem 0;
}

.error-nav {
  margin: 1.5rem 0;
}

.error-nav a {
  margin-right: 8px;
  color: #4c4cff;
}

.error-nav a:hover {
  color: #ffffff;
}

.ascii {
  color: #777;
  margin-top: 1.5rem;
}

/* ── footer ── */

.footer-info {
  margin-top: 2rem;
  color: #666;
}

.footer-info a {
  color: #cc2a4b;
}

/* ── social ── */

.social {
  color: #6300FF;
  display: inline-block;
  margin: 0;
}

.social:hover {
  color: #9a5cff;
}

a.social code small {
  color: inherit !important;
  font-size: smaller !important;
  font-weight: bold;
  unicode-bidi: isolate;
  display: inline !important;
  margin: 0 !important;
  white-space: nowrap;
  letter-spacing: -1px;
}

/* ── mobile ── */

@media (max-width: 600px) {
  body {
    font-size: 11px;
    margin: 0;
    padding: 0 0.8rem;
    max-width: 100%;
    line-height: 16px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  h1 {
    font-size: 1.3em;
  }

  textarea, input {
    font-size: 14px;
  }

  header {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  blockquote {
    padding-left: 0.1rem;
    border-left-width: 1px;
  }

  nav a {
    font-size: 1em;
  }

  pre code small {
    font-size: 1em;
  }

  .responsive-pre {
    font-size: 6px;
    line-height: 1.2;
    overflow-x: auto;
    white-space: pre;
    display: block;
    max-width: 100%;
    padding: 0.2rem 0;
    -webkit-overflow-scrolling: touch;
  }

  div.highlight pre {
    font-size: 8px;
    line-height: 1.3;
    padding: 0.3rem 0.2rem;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  iframe {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 0 auto;
  }
}
/* ── search ── */
#ss,#sr,#sr a{font-family:monospace,monospace;font-size:11px;}
#ss{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);color:#aaa;padding:2px 6px;outline:none;width:220px;margin-left:auto;}
#ss::placeholder{color:#444;}
#sr{display:none;position:absolute;right:0;top:100%;width:232px;background:rgba(10,10,10,0.97);border:1px solid rgba(255,255,255,0.1);border-top:none;z-index:99;max-height:280px;overflow-y:auto;}
#sr.sr-on{display:block;}
.sr-i{display:block;padding:2px 6px;color:#aaa;text-decoration:none;line-height:1.5;}
.sn{display:block;color:#555;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sr-i mark,.sn mark{background:none;color:#ff0000;}
nav{position:relative;overflow:visible;}
@media(max-width:600px){#ss{width:70px;margin-left:0;margin-top:6px;}#sr{width:200px;right:0;left:auto;}}
nav #ss:hover, nav #ss:focus { color: #aaa !important; text-shadow: none !important; }
/* ── avatar ── */

.pfp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 1.5rem 0 2rem;
}

#avatar {
  width: 150px;
  height: 150px;
  border-radius: 2px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid #2a2a2a;
  margin: 0;
}

.avatar-caption {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #666;
  text-transform: lowercase;
}
