:root {
  --bg: #050505;
  --text: #f5f5f5;
  --text-soft: #a3a3a3;
  --font-main: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

.post-title {
    font-size: clamp(1.2rem, 4vw, 2rem); 
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-align: center;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

a:link {
	color: #88ff00;
}

a:visited {
	color: #445c29;
}

.page-shell {
  width: 100%;
  max-width: 720px;
  padding: 3.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
}

header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.site-title {
  font-size: 1.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

section h2 {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  margin: 4rem 0 2rem;
  font-weight: 400;
}

.post-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-item {
  padding: 1rem 0;
  text-align: center;
  width: 100%;
}

.post-meta {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.post-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.post-title a:hover {
  border-bottom-color: var(--text);
}

.post-description {
  font-size: 0.8rem;
  color: var(--text-soft);
  max-width: 550px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.subscribe-widget {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  z-index: 999;
}

.subscribe-widget input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--text-soft);
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
  font-family: inherit;
  margin-bottom: 0.5rem;
}

.subscribe-widget button {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--text);
  background: var(--bg);
  color: var(--text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.subscribe-widget button:hover {
  background: #111;
}

@media (max-width: 480px) {
    img, figure {
        max-width: 90%; 
        margin: 2rem auto;
    }
    
    .post-title {
        font-size: 1.2rem;
        letter-spacing: 0.12em;
        line-height: 1.2;
    }

    .contenedor-imagenes {
        flex-direction: column;
        align-items: center;
    }
    
    .contenedor-imagenes img {
        max-width: 100%;
    }
}

img, figure {
    display: block;
    max-width: 100%; 
    height: auto;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.contenedor-imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

    .post-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

pre {
    background-color: #111 !important;
    padding: 1.5rem;
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
    max-width: 100%;
    border: 1px solid #222;
    border-radius: 4px;
    display: block;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    tab-size: 4;
}

.mjx-chtml, .MathJax_Display, .MathJax {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.MathJax_Display {
    text-align: center !important;
    margin: 2rem 0 !important;
}
