/* ==========================================================================
   PALETTE - taken from your lily pond image.
   The whole site is built from these 5 variables, so if later on you want
   to tweak a tone, you change it here once.
   ========================================================================== */
:root {
  --c-dark:   #0A3323; /* dark green - edges, vignette */
  --c-mid:    #105666; /* midnight green - body of water */
  --c-moss:   #839958; /* moss green - lily pads */
  --c-cream:  #F7F4D5; /* beige - moonlight, main text, sparkles */
  --c-rose:   #D3968C; /* old rose - lotus flower, accents, hover */
  --c-gold:   #C6A15B; /* muted gold - hover accent on the menu */

  --font-display: "Cormorant Garamond", serif;
  --font-body:    "Literata", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
}

body {
  background-color: var(--c-dark); /* fallback while the image loads */
  color: var(--c-cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.bg-blur {
  position: fixed;
  inset: -60px; /* bigger than the screen so the blurred edges never show */
  z-index: -2;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(10, 51, 35, 0.55) 0%, rgba(10, 51, 35, 0.18) 55%, transparent 75%),
    url("background.jpg");
  background-size: cover, 420px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  filter: blur(6px);
}

/* used only on diario-yayauhco.html, swaps in the lily-of-the-valley illustration */
.bg-blur-diario {
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(10, 51, 35, 0.55) 0%, rgba(10, 51, 35, 0.18) 55%, transparent 75%),
    url("diario-background.jpg");
  background-size: cover, 400px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
}

/* used only on cuentos-nanatzcayan.html. Unlike the other two backgrounds,
   this one is a single framed botanical illustration rather than a small
   repeating pattern, so it's shown once, scaled to cover the screen
   (no repeat/tiling). The blur is lighter (4px vs 6px) and the vignette
   is a touch more transparent so the flowers and berries stay legible
   through it instead of dissolving into pure texture. */
.bg-blur-cuentos {
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(10, 51, 35, 0.45) 0%, rgba(10, 51, 35, 0.12) 55%, transparent 75%),
    url("cuentos-background.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  filter: blur(4px);
}

/* ==========================================================================
   CONTENT
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem clamp(1.5rem, 5vw, 4rem) 2rem;
}

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--c-cream);
}

.tagline {
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(247, 244, 213, 0.8);
  margin: 0 0 2.5rem;
}

.placeholder-nav {
  display: flex;
  gap: 2.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.placeholder-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-heaven {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-rose);
  transition: color 0.3s ease;
}

.nav-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--c-cream);
  transition: color 0.3s ease;
}

.placeholder-nav a:hover,
.placeholder-nav a:focus-visible {
  border-color: var(--c-gold);
}

.placeholder-nav a:hover .nav-heaven,
.placeholder-nav a:focus-visible .nav-heaven {
  color: var(--c-gold);
}

/* custom tooltip, replaces the browser's default title="" tooltip */
.placeholder-nav a[data-tooltip] {
  position: relative;
}

.placeholder-nav a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  background-color: var(--c-dark);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(10, 51, 35, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
  margin-bottom: 0.6rem;
}

.placeholder-nav a[data-tooltip]:hover::after,
.placeholder-nav a[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* small screens */
@media (max-width: 480px) {
  .placeholder-nav { gap: 1.5rem; }
}

/* ==========================================================================
   INFO SECTION - beige strip with the calendar + note card
   ========================================================================== */
.info-section {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem 4rem;
}

.info-panel {
  width: 100%;
  max-width: 1600px;
  background-color: rgba(247, 244, 213, 0.35);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 3rem 2.5rem;
}

/* --- left column (calendar + currently) --- */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- calendar --- */
.calendar-card {
  width: 340px;
  background-color: var(--c-cream);
  border: 2px dashed var(--c-moss);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.2);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.cal-deco {
  color: var(--c-gold);
  font-size: 0.9rem;
}

.cal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--c-mid);
  text-transform: capitalize;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dayname {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--c-rose);
  padding-bottom: 0.35rem;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--c-moss);
  border-radius: 6px;
}

.cal-empty { visibility: hidden; }

.cal-today {
  background-color: var(--c-rose);
  color: var(--c-cream);
  font-weight: 700;
}

/* --- currently card --- */
.currently-card {
  width: 280px;
  background-color: var(--c-cream);
  border: 2px dashed var(--c-moss);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.2);
}

.currently-header {
  background-color: var(--c-mid);
  color: var(--c-cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  padding: 0.6rem;
}

.currently-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.currently-item {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--c-moss);
  margin: 0;
}

.currently-item strong {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--c-mid);
}

/* --- note card --- */
.note-card {
  flex: 1 1 320px;
  max-width: 620px;
  background-color: rgba(131, 153, 88, 0.55);
  color: var(--c-mid);
  border: 2px dashed rgba(16, 86, 102, 0.35);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.25);
}

.note-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.note-card .note-date {
  width: 100%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--c-dark);
  margin: 0 0 1rem;
}

.note-card p:last-child {
  margin-bottom: 0;
}

.note-preview {
  width: 100%;
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
}

.note-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, rgba(131, 153, 88, 0) 0%, rgba(131, 153, 88, 0.85) 85%);
  pointer-events: none;
}

.note-more {
  align-self: flex-end;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--c-dark);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.note-more:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* --- entries feed (homepage preview of up to 4 recent diary entries) --- */
.entries-feed {
  flex: 1 1 320px;
  max-width: 620px;
  max-height: 640px;
  background-color: rgba(131, 153, 88, 0.55);
  border: 2px dashed rgba(16, 86, 102, 0.35);
  border-radius: 14px;
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.25);
}

.entries-feed::-webkit-scrollbar {
  width: 8px;
}

.entries-feed::-webkit-scrollbar-thumb {
  background-color: rgba(16, 86, 102, 0.35);
  border-radius: 8px;
}

.feed-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(16, 86, 102, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feed-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.feed-date {
  width: 100%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--c-dark);
  margin: 0 0 0.6rem;
}

.feed-preview {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-mid);
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-more {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--c-dark);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.feed-more:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

@media (max-width: 700px) {
  .info-section { padding: 2.5rem 1rem; }
  .info-panel { padding: 2rem 1.5rem; border-radius: 16px; }
  .left-column, .right-column { width: 100%; align-items: center; }
  .calendar-card, .currently-card, .guestbook-card { width: 100%; max-width: 320px; }
}

/* --- right column (guestbook) --- */
.right-column {
  display: flex;
  flex-direction: column;
  width: 520px;
}

.guestbook-card {
  width: 100%;
  background-color: var(--c-cream);
  border: 2px dashed var(--c-moss);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.2);
}

.guestbook-header {
  background-color: var(--c-mid);
  color: var(--c-cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  padding: 0.6rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.guestbook-embed {
  padding: 0;
  height: 420px;
  overflow-x: auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.guestbook-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.guestbook-placeholder {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--c-moss);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CURSOR - the peony as the mouse pointer
   ========================================================================== */
html {
  cursor: url("cursor-flower.png") 16 16, auto;
}

/* ==========================================================================
   DIARY PAGE (diario.html) - Sexto cielo
   ========================================================================== */
.page-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem clamp(1.5rem, 5vw, 4rem) 3rem;
}

.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-rose);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.3s ease;
}

.back-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.back-link:hover {
  color: var(--c-gold);
}

.page-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-rose);
  margin: 0 0 0.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--c-cream);
  margin: 0 0 1rem;
}

.page-subtitle {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(247, 244, 213, 0.8);
  margin: 0;
}

.diary-list {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.entry-link {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--c-mid);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(16, 86, 102, 0.25);
  transition: color 0.3s ease;
}

.entry-link:last-child {
  border-bottom: none;
}

.entry-link:hover {
  color: var(--c-gold);
}

.diary-entry {
  width: 100%;
  max-width: 680px;
  background-color: rgba(131, 153, 88, 0.82);
  color: var(--c-mid);
  border: 2px dashed rgba(16, 86, 102, 0.35);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.25);
  scroll-margin-top: 2rem;
}

.diary-entry .entry-date {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--c-dark);
  margin: 0 0 1rem;
}

.diary-entry p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.diary-entry p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   STORIES (cuentos-nanatzcayan.html) - Octavo cielo
   ========================================================================== */

/* --- left column index: story titles instead of dates --- */
.story-index-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px dashed rgba(16, 86, 102, 0.25);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-mid);
  text-align: left;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.story-index-link:last-child {
  border-bottom: none;
}

.story-index-link:hover,
.story-index-link:focus-visible {
  color: var(--c-gold);
}

/* --- preview cards feed --- */
.stories-feed {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* dark green + gold instead of the diary's moss green — reads as "night"
   rather than "day", and stays legible over the busier cuentos background
   since it's nearly opaque instead of translucent */
.story-card {
  width: 100%;
  max-width: 680px;
  background-color: rgba(10, 51, 35, 0.92);
  border: 2px dashed var(--c-gold);
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 10px 30px rgba(10, 51, 35, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(10, 51, 35, 0.5);
  outline: none;
}

.story-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-gold);
  margin: 0 0 0.5rem;
}

.story-date {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-rose);
  margin: 0 0 1rem;
}

.story-preview {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-cream);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-more {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--c-gold);
  border-bottom: 1px solid var(--c-gold);
  padding-bottom: 1px;
}

/* --- full-story pop-up --- */
.story-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(10, 51, 35, 0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.story-modal-overlay.is-open {
  display: flex;
}

.story-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background-color: var(--c-dark);
  border: 2px dashed var(--c-gold);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--c-cream);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.story-modal-close:hover,
.story-modal-close:focus-visible {
  color: var(--c-gold);
}

.story-modal-scroll {
  overflow-y: auto;
  padding: 3rem 2.75rem 2.5rem;
}

.story-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.story-modal-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(198, 161, 91, 0.4);
  border-radius: 8px;
}

.story-modal-date {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-rose);
  margin: 0 0 0.5rem;
}

.story-modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--c-gold);
  margin: 0 0 1.75rem;
}

.story-modal-body p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-cream);
  margin: 0 0 1.25rem;
}

.story-modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .story-modal-scroll { padding: 2.75rem 1.5rem 2rem; }
}
