/* Paleta sepia general */
:root {
  --bg: #f1e6d6;
  --bg-soft: #eadcc7;
  --paper: #f8f1e6;
  --border: #b6946b;
  --text: #3f2a18;
  --text-soft: #6f5239;
  --accent: #7b5737;
  --accent-dark: #5b3d24;
  --shadow: rgba(74, 46, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 20px;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
    var(--bg);
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 6rem 1rem 2rem;
  background: rgba(248, 241, 230, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-title {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.site-title,
.site-title:visited,
.site-title:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--accent-dark);
}

.main-nav a.active,
.main-nav a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero,
.content-panel {
  width: 100%;
  display: block;

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 30px var(--shadow);
}

.hero {
  margin: 0 0 1.5rem 0;
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0;
  font-size: 2.25rem;
}

.lead {
  margin: 0.8rem 0 0;
  max-width: 65ch;
  color: var(--text-soft);
}

.content-panel {
  padding: 1.5rem;
}

.section-heading h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.section-heading p {
  margin-top: 0;
  color: var(--text-soft);
}

.posts-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  padding: 1rem 1.1rem;
  background: #fffaf2;
  border: 1px solid #d3b18a;
  border-radius: 14px;
}

.post-card h3 {
  margin: 0 0 0.45rem;
}

.post-meta {
  margin: 0 0 0.55rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.post-summary {
  margin: 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: bold;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent-dark);
  font-size: 1.2rem;
  cursor: pointer;
}

.arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.index-list {
  margin: 0;
  padding-left: 1.2rem;
}

.index-list li + li {
  margin-top: 0.7rem;
}

.index-list a {
  color: var(--accent-dark);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-soft);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barra social fija a la derecha */
.social-bar {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-bar a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: rgba(248, 241, 230, 0.96);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 10px 24px var(--shadow);
}

.social-bar svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-dark);
}

.post-page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.post-article {
  width: 100%;
  margin: 0 auto;

  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 30px var(--shadow);
}

.post-article h1 {
  margin-top: 0;
}

.post-article p {
  max-width: 60ch;
}

.post-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-weight: bold;
}

@media (max-width: 820px) {
  .site-header {
    padding-right: 4.75rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4.75rem 1rem 1rem;
  }

  .page-shell {
    padding: 1rem;
  }

  .hero,
  .content-panel,
  .post-article {
    padding: 1.2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .social-bar {
    right: 0.6rem;
  }

  .social-bar a {
    width: 44px;
    height: 44px;
  }
}


.post-nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.post-nav-prev,
.post-nav-next {
  width: 50%;
}

.post-nav-next {
  text-align: right;
}

/* Footer: */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--accent-dark);
}