/* ============================================================
   PORTFOLIO + BLOG — hoja de estilos
   Paleta:
     --paper     #F7F5F0  fondo
     --ink       #1C1C1A  texto principal
     --mist      #8A8A82  texto secundario / meta
     --sage      #A8D5BA  acento 1 (verde del flyer)
     --periwinkle#5B6EF0  acento 2 (azul del flyer, links)
   Tipografía:
     Fraunces  -> títulos, nav, la firma del sitio
     Inter     -> texto de cuerpo, fechas, meta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500&display=swap');
@font-face { font-family: 'Homemade Apple'; src: url('typog/homemade-apple/HomemadeApple.ttf') format('truetype'); }
@font-face { font-family: 'Cardinal'; src: url('assets/fonts/Cardinal.ttf') format('truetype'); }

:root {
  --paper: #F7F5F0;
  --ink: #1C1C1A;
  --mist: #8A8A82;
  --sage: #A8D5BA;
  --periwinkle: #5B6EF0;
  --nav-width: 260px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='2' y='24' font-size='26' fill='%231C1C1A'%3E%E2%9A%9C%3C/text%3E%3C/svg%3E") 16 16, auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a, button, .umbral, .hotspot, .gallery-item {
  cursor: inherit;
}

a {
  color: var(--periwinkle);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- layout: sidebar + main ---------- */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--nav-width);
  flex-shrink: 0;
  padding: 48px 32px;
  border-right: 1px solid rgba(28,28,26,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

.mark {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.site-name {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 500;
}

.site-tagline {
  font-size: 0.85rem;
  color: var(--periwinkle);
  margin-top: 4px;
  font-style: italic;
}

nav.primary-nav {
  margin-top: 40px;
}

nav.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.primary-nav li { margin-bottom: 10px; }

nav.primary-nav a {
  color: var(--ink);
  font-size: 0.95rem;
}

nav.primary-nav a.active {
  color: var(--periwinkle);
}

nav.primary-nav a:hover { text-decoration: underline; }

.section-label {
  color: var(--mist);
  font-size: 0.8rem;
  margin: 28px 0 8px 0;
}
.section-label:first-child { margin-top: 0; }

.sidebar-footer {
  font-size: 0.8rem;
  color: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

main {
  flex: 1;
  padding: 64px 56px;
  max-width: 760px;
}

/* ---------- home / intro ---------- */

.intro h1 {
  font-size: 3.rem;
  max-width: 20ch;
  font-family: 'Homemade Apple', cursive;
  color:white
}

.intro p {
  max-width: 62ch;
  margin-top: 18px;
}

/* ---------- project index ---------- */

.index-list {
  margin-top: 48px;
  border-top: 1px solid rgba(28,28,26,0.12);
}

.index-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(28,28,26,0.12);
}

.index-item .name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
}

.index-item .desc {
  color: var(--mist);
  font-size: 0.9rem;
  flex: 1;
  text-align: right;
}

.index-item .year {
  color: var(--mist);
  font-size: 0.85rem;
  width: 3.5em;
  text-align: right;
}

/* ---------- blog list ---------- */

.post-list { margin-top: 40px; }

.post-list-item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(28,28,26,0.12);
}

.post-list-item .date {
  color: var(--mist);
  font-size: 0.82rem;
}

.post-list-item .title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-top: 4px;
}

.post-list-item .excerpt {
  color: var(--ink);
  opacity: 0.75;
  font-size: 0.92rem;
  margin-top: 6px;
  max-width: 60ch;
}

/* ---------- single post ---------- */

.post-header .date {
  color: var(--mist);
  font-size: 0.85rem;
}

.post-header h1 {
  margin-top: 6px;
  font-size: 1.9rem;
}

.post-body {
  margin-top: 32px;
  max-width: 62ch;
}

.post-body p { margin: 0 0 18px 0; }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* ---------- responsive ---------- */
.bg-image { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('assets/casa/cementerio.jpg'); background-size: cover; background-position: center; z-index: 0; } .bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(247, 245, 240, 0.55); z-index: 1; } .layout { position: relative; z-index: 2; }
.house-wrap { position: relative; width: 100vw; margin: 0; } .house-img { width: 100%; height: auto; display: block; } .hotspot { position: absolute; display: block; background: rgba(230, 48, 0, 0.35); }
@media (max-width: 820px) {
   .hotspot[href="memorias.html"] { left: 12.6% !important; width: 29.3% !important; } .hotspot[href="escuchas.html"] { left: 0% !important; top: 67% !important; width: 20% !important; height: 14% !important; }.hotspot[href="archivos.html"] { left: 9.4% !important; width: 29.3% !important; } .hotspot[href="pensamientos.html"] { left: 45.1% !important; width: 16.3% !important; } .hotspot[href="trabajo.html"] { left: 76% !important; width: 22.8% !important; }
  .house-wrap { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; margin: 0; } .house-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
  }
  .sidebar-footer { display: none; }
  nav.primary-nav { margin-top: 0; }
  nav.primary-nav ul { display: flex; flex-wrap: wrap; gap: 10px 16px; }
  .section-label { display: none; }
  main { padding: 40px 24px; }
  .index-item .desc { display: none; }
  .site-title { position: absolute; left: 4%; top: 42%; font-family: 'Cardinal', serif; font-size: 3rem; color: #5B6EF0; z-index: 3; margin: 0; }
}
