/* Firma del poema: título grande */
.sig-title {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(2.2rem, 2vw + 2rem, 3.2rem);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
.poem-header-title-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.poem-title-align {
  text-align: left;
  margin: 0;
  flex: 1;
}

@media (max-width: 600px) {
  .poem-header-title-nav {
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }
  .poem-title-align {
    font-size: clamp(1.6rem, 2vw + 1.5rem, 2.2rem);
    margin: 0;
    line-height: 1.1;
  }
}

:root{
  --maxw: 900px;
  --poem-size: clamp(1.15rem, 1.1rem + 1vw, 1.6rem);
  --title-size: clamp(2.0rem, 1.5rem + 2vw, 3.2rem);
  --ink: #fbfbf8;
  --muted: #aaa;
  --bg: #111;
}

body{
  background: var(--bg);
  color: var(--ink);
}

.poems-index{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.poem-page {
	padding: 3rem 0.25rem 4rem;
	margin: 0;
}

.poem-title, .index-title{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: var(--title-size);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
}

.index-subtitle{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  margin-top: 0.25rem;
}

.poem-body{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: var(--poem-size);
  line-height: 1.85;
  white-space: normal;
  margin: 2rem 0 0;
}

.poem-signature{
  margin-top: 3rem;
  text-align: center;
}

.sig-author{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(1.4rem, 1.3rem + 1vw, 2rem);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.sig-meta{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
}


.poem-container {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

.poem-main {
  max-width: var(--maxw);
  flex-grow: 1;
  width: 100%;
  min-height: 75vh;
}



.poem-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
}

.poem-title-align {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
    font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
    font-size: clamp(2.6rem, 2.2rem + 3vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem 0;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem 0.15rem 0.25rem;
  }
  .poem-title-align {
    font-size: 1.1rem;
    margin: 0 0.25rem;
  }
}

.poem-nav {
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  color: var(--muted);
  text-decoration: none;
  user-select: none;
  outline: none;
}

.poem-nav:focus {
  outline: none;
  box-shadow: none;
}

.poem-nav:active {
  outline: none;
  box-shadow: none;
}

.poem-nav svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .poem-header-nav {
    gap: 0.5rem;
    padding: 0.5rem 0.25rem;
  }
  .poem-nav {
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
  .poem-title {
    font-size: 1.3rem;
    margin: 0 0.5rem;
  }
}

.poem-nav:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.poem-nav svg {
  width: 28px;
  height: 28px;
}

.poem-nav-footer {
  text-align: center;
  padding: 2rem 0;
}

.poem-back {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
}

.poems-list{
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.poem-item{
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
  transition: background-color 0.2s ease-in-out;
}

.poem-item:hover {
  background-color: rgba(255,255,255,0.08);
}

.poem-link, .poem-link:visited, .poem-link:hover{
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
}

.poem-link-title{
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: 1.35rem;
  transition: all 0.2s ease-in-out;
}

.poem-item:hover .poem-link-title {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.poem-link-meta{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
}

.fade-enter{
  opacity: 0;
  transform: translateY(8px);
}

.fade-enter.is-in{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.fade-enter.is-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.language-switcher {
  padding: 1rem;
  text-align: center;
}

.language-switcher ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.language-switcher a {
  color: var(--muted);
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.language-switcher a:hover {
  color: var(--ink);
}

.poem-style-left {
  text-align: left;
}

.poem-style-right {

  text-align: right;

}

    font-size: clamp(2.2rem, 2vw + 2rem, 3.2rem);
  text-align: center;

}

.poem-style-justify {
  text-align: justify;
}
