

body {
  font-family: 'Inter tight', sans-serif;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background: 
    url('media/wallpaper.HEIC') no-repeat center center / cover,
    radial-gradient(circle at center, white, white);

  z-index: -1; /* behind the content */
}

h1, h2 {
  color: #4c5348;
}

article {
  max-width: 650px;
  margin: 1rem auto;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 10rem) clamp(3rem, 5vw, 9rem) clamp(1rem, 5vw, 10rem);
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0);
}

article h1,
article h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

article p.date {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 400;
  color: #666;
  text-align: right;
  margin-top: 2rem;
  font-style: italic;
}

article .read-more {
  display: inline-block;
  padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
  margin-top: 1rem;
  background-color: gray;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.3s;
  float: right;
}

article .read-more:hover {
  background-color: black;
}

p {
  font-size: inherit; /* ya fluye del body */
  line-height: inherit;
}

q {
  text-align: center;
  font-style: italic;
}

blockquote {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-left: clamp(0.5rem, 5%, 2rem);
  margin-right: clamp(0.5rem, 5%, 2rem);
  padding: 0;
  border: none;
}

.excerpt {
  white-space: pre-wrap; /* preserves line breaks */
}

.no-style-link {
  color: inherit;       /* keep the parent text color */
  text-decoration: none; /* remove underline */
  font-weight: inherit;  /* keep normal weight */
  font-style: inherit;   /* keep italics if any */
  cursor: inherit;       /* default cursor, optional */
}

a {
  color: black;
}

a:hover {
  color: gray;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 15, 17, 0);
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* permite que nav baje en móvil */
}

header p {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.logo-img {
  height: clamp(3rem, 8vw, 7rem);
  width: auto;
}

nav {
  display: flex;
  gap: clamp(0.5rem, 5%, 2rem);
  flex-wrap: wrap;
  justify-content: center;
}

nav a:link, nav a:visited {
  margin-right: 1rem;
  text-decoration: none;
  color: white;
}
nav a:hover {
  color: #8ee8d0;
}

.logo {
  color: rgba(255, 255, 255, 1);
  font-weight: bold;
  font-size: 1.5rem;
}
.logo span{
  color: rgba(15, 15, 17, 0.5);
}

header.sticky-active {
  background: 
    url('media/wallpaper.HEIC') no-repeat center center / cover,
    radial-gradient(circle at center, #48442b, #b7b18b);
}

header.sticky-active .logo {
  color: #54a0ff;
}

/* Used when it used to be a text header
header.sticky-active .logo h1 {
  font-size: 1.5rem;
  line-height: 1;            /* reduce la altura de línea *//*
  margin: 0;                 /* elimina margen externo *//*
  padding: 0;                /* elimina espacio interno *//*
}
*/

header.sticky-active .logo-img {
  height: 2.5rem; /* Ajusta según necesites */
  width: auto;  /* Mantiene la proporción */
  display: block;
}

header.sticky-active .logo p {
  opacity: 0;
  font-size: 0;
}

header.sticky-active .logo span{
  color: white;
}
