* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: monospace;
    background: url('/img/background_light.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #2c4021;
}

a {
    color: #8FA1AB;
    text-decoration: none;
}

.grid-container {
    display: grid;
    grid-template-areas:
        "header header header"
        "left scrap-main scrap-index"
        "left scrap-main scrap-index";
    grid-template-columns: 120px 1fr 200px;
    gap: 3px;
    max-width: 900px;
    margin: 40px auto;
    padding: 3px;
    background-color: #f5ffeb;
    color: #47574A;
    border: 3px solid #47574A;
    border-radius: 8px;
}

/* Header */
.header {
    grid-area: header;
    text-align: left;
    border: 3px solid #47574A;
    background-color: #a4b98e;
    padding: 5px;
    padding-left: 15px;
    color: #404040;
    
    
}

.header h1 {
    font-family: 'Caveat';
    font-size: 2.5rem;
    color: #3f503b;
    background-color: a4b98e;
    letter-spacing: 0.5px;
}

.header-link {
    color: inherit;
    text-decoration: none;
    display: block;
}


/* Sidebar izquierda */
.sidebar-left {
    grid-area: left;
    border-radius: 5px;
    display: flex;
    max-width: 120px;
    flex-direction: column;
    justify-content: space-between;
}

.index {
    grid-area: left;
    background-color: #47574A;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    max-width: 120px;
    flex-direction: column;
    justify-content: space-between;
    color: #ece4d9;
    height: fit-content;
}

.index a {
    display: block;
    background-color: #47574A;
    color: #ece4d9;
    padding: 0.1px 3px;
    border-radius: 5px;
    text-align: left;
    font-family: 'Caveat';
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 10px;

    /* Efecto de relieve 3D con dos sombras */
    box-shadow: 1px 1px 0 #2c4021, -1px -1px 0 #606963;
    transition: all 0.1s ease-in-out;
    position: relative;
    top: 0;
    left: 0;
}

.index a:hover {
    /* Efecto de hundido */
    box-shadow: 1px 1px 0 #606963, -1px -1px 0 #2c4021;
    transition: all 0.1s ease-in-out;
    position: relative;
    top: 0;
    left: 0;
    letter-spacing: 1px;
}

.index h2 {
    color: #ece4d9;
    text-decoration: none;
    margin-bottom: 6px;
}


.index h3 {
    color: #ece4d9;
    text-decoration: underline;
}

.index ul {
    list-style-type: none;
}

.index li {
    margin: 5px 0;
}


/* Main (entrada) */
.scrap-main {
    grid-area: scrap-main;
    border: 2px solid #47574a;
    background: #ece4d9;
    border-radius: 6px;
    padding: 14px;
}

.scrap-main article {
    display: flow-root;
}

.entry-header {
    margin-bottom: 8px;
}
.entry-title {
    font-family: "Caveat";
    font-size: 1.8rem;
    color: #47574a;
}
.entry-meta {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 2px;
}
.entry-tags {
    font-style: italic;
}

.entry-figure {
    background: #fff;
    border: 2px solid #47574a;
    border-radius: 6px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 10px 10px 10px 10px;
    margin: 0 12px 8px 0;
    max-width: 480px;
    float: left;
    
}

.entry-figure img {
  width: 200px;
  height: auto;                 
  display: block;
}
.entry-figure figcaption {
    font-family: "Caveat";
    margin-top: 6px;
    color: #47574a;
}

.entry-content {
    font-family: "Caveat";
    font-size: 1.05rem;
    line-height: 1.45;
}
.entry-content p + p {
    margin-top: 0.6rem;
}


/* Responsive: en móvil, la imagen arriba y texto debajo */
@media (max-width: 700px) {
  .entry-figure {
    float: none;
    width: 100%;
    margin: 0 0 10px 0;
  }
}



/* Índice */
.scrap-index {
    grid-area: scrap-index;
    border: 2px solid #47574a;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 10px;
}
.scrap-index h3 {
    font-weight: bold;
    text-decoration: underline;
    color: #47574a;
    margin-bottom: 6px;
}
#entry-index {
    list-style: none;
}
#entry-index li {
    margin: 0.25rem 0;
}
#entry-index time {
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
}
#entry-index a.is-active { 
  text-decoration: underline;  
  font-weight:bolder;
  color: #6b7b6e;
}


/* Extras */
.custom-bullets {
    list-style: none;
    padding-left: 0;
}

.custom-bullets li::before {
    content: "✦"; /* o "→", "–", "🌱", etc */
    color: #47574a;
    margin-right: 3px;
    font-size: 0.7rem;
}