@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --veil-rose:     #D4537E;
  --veil-blush:    #FBEAF0;
  --veil-deep:     #72243E;
  --veil-ivory:    #FAF7F4;
  --voyage-ocean:  #185FA5;
  --voyage-seafoam:#1D9E75;
  --voyage-sand:   #F1EFE8;
  --voyage-deep:   #042C53;
  --neutral-dark:  #2C2C2A;
  --neutral-mid:   #888780;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* === BODY — lace texture background === */
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--neutral-dark);
  background-color: var(--veil-ivory);
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4537E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  transition: background-color 1.2s ease;
}

body.voyage-mode {
  background-color: #EDF3F9;
  background-image:
    url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 Q75 20 100 10' stroke='%23185FA5' stroke-width='0.6' stroke-opacity='0.08' fill='none'/%3E%3C/svg%3E");
  background-size: 100px 20px;
}

/* === SCROLL PROGRESS BAR === */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--veil-rose), #ED93B1, var(--voyage-ocean));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* === NAV === */
.nav {
  padding: 1.2rem 2rem;
  border-bottom: 0.5px solid rgba(212,83,126,0.2);
  background: rgba(250,247,244,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 1s ease, border-color 1s ease;
}

body.voyage-mode .nav {
  background: rgba(237,243,249,0.96);
  border-bottom-color: rgba(24,95,165,0.2);
}

.logo a, .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--veil-deep) !important;
  text-decoration: none;
  letter-spacing: 0.02em;
}

#menu a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--neutral-mid) !important;
  text-decoration: none;
  transition: color 0.3s;
}

#menu a:hover { color: var(--veil-rose) !important; }
body.voyage-mode #menu a:hover { color: var(--voyage-ocean) !important; }

/* === HERO === */
.home-info {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
}

/* Fabric weave texture overlay */
.home-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23FAF7F4'/%3E%3Crect width='1' height='4' fill='%23D4537E' fill-opacity='0.06'/%3E%3Crect width='4' height='1' fill='%23D4537E' fill-opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 70% at 50% 10%, rgba(212,83,126,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(237,147,177,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(212,83,126,0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Lace border top */
.home-info::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 200 120'%3E%3Cdefs%3E%3Cpattern id='lace' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='8' fill='none' stroke='%23D4537E' stroke-width='0.5' stroke-opacity='0.2'/%3E%3Ccircle cx='20' cy='20' r='3' fill='none' stroke='%23D4537E' stroke-width='0.4' stroke-opacity='0.15'/%3E%3Cline x1='20' y1='12' x2='20' y2='0' stroke='%23D4537E' stroke-width='0.4' stroke-opacity='0.12'/%3E%3Cline x1='28' y1='20' x2='40' y2='20' stroke='%23D4537E' stroke-width='0.4' stroke-opacity='0.12'/%3E%3Cline x1='12' y1='20' x2='0' y2='20' stroke='%23D4537E' stroke-width='0.4' stroke-opacity='0.12'/%3E%3Cline x1='20' y1='28' x2='20' y2='40' stroke='%23D4537E' stroke-width='0.4' stroke-opacity='0.12'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='120' fill='url(%23lace)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 200px 120px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.home-info-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.home-info-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--veil-deep);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(212,83,126,0.12);
}

.home-info-content p {
  font-size: 1.05rem;
  color: var(--neutral-mid);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* Decorative divider under hero heading */
.home-info-content h1::after {
  content: '— ✦ —';
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.3em;
  color: var(--veil-rose);
  opacity: 0.5;
  margin-top: 1rem;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--veil-rose);
  opacity: 0.55;
  animation: bobble 2.6s ease-in-out infinite;
  z-index: 1;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--veil-rose), transparent);
}

@keyframes bobble {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* === SECTION DIVIDER — wave between hero and posts === */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}

/* === POST CARDS === */
.post-entry {
  background: rgba(255,255,255,0.75);
  border: 0.5px solid rgba(212,83,126,0.15);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

/* Subtle inner texture on cards */
.post-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='transparent'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%23D4537E' fill-opacity='0.025'/%3E%3C/svg%3E");
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

/* Left accent bar */
.post-entry::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--veil-rose), #ED93B1);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  border-radius: 14px 0 0 14px;
}

.post-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212,83,126,0.13), 0 2px 8px rgba(212,83,126,0.06);
  border-color: rgba(212,83,126,0.28);
  background: rgba(255,255,255,0.9);
}

.post-entry:hover::after { transform: scaleY(1); }

body.voyage-mode .post-entry {
  border-color: rgba(24,95,165,0.15);
  background: rgba(255,255,255,0.7);
}

body.voyage-mode .post-entry:hover {
  box-shadow: 0 12px 40px rgba(24,95,165,0.12), 0 2px 8px rgba(24,95,165,0.05);
  border-color: rgba(24,95,165,0.28);
}

body.voyage-mode .post-entry::after {
  background: linear-gradient(to bottom, var(--voyage-ocean), var(--voyage-seafoam));
}

.entry-header { position: relative; z-index: 1; }

.entry-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--veil-deep);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.entry-header h2 a {
  color: inherit !important;
  text-decoration: none;
  transition: color 0.2s;
}

.entry-header h2 a:hover { color: var(--veil-rose) !important; }
body.voyage-mode .entry-header h2 a:hover { color: var(--voyage-ocean) !important; }

.entry-meta {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--neutral-mid);
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}

.entry-content { position: relative; z-index: 1; }
.entry-content p {
  color: #5a5955;
  line-height: 1.8;
  font-size: 0.95rem;
}

.entry-tags a, .post-tags a {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--veil-blush);
  color: var(--veil-deep) !important;
  text-decoration: none;
  margin: 2px;
  transition: background 0.2s, color 0.2s;
  position: relative; z-index: 1;
}

.entry-tags a:hover { background: var(--veil-rose); color: #fff !important; }

body.voyage-mode .entry-tags a {
  background: #deeaf7;
  color: var(--voyage-deep) !important;
}

body.voyage-mode .entry-tags a:hover {
  background: var(--voyage-ocean);
  color: #fff !important;
}

.entry-footer { position: relative; z-index: 1; }
.entry-footer a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--veil-rose) !important;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(212,83,126,0.35);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.entry-footer a:hover { border-color: var(--veil-rose); }
body.voyage-mode .entry-footer a { color: var(--voyage-ocean) !important; }

/* === SINGLE POST === */
.post-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 0.5px solid rgba(212,83,126,0.15);
  margin-bottom: 2.5rem;
  position: relative;
}

.post-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--veil-rose), transparent);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--veil-deep);
  line-height: 1.2;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--veil-deep);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid rgba(212,83,126,0.18);
}

.post-content h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--veil-rose);
  margin: 2rem 0 0.75rem;
}

.post-content a {
  color: var(--veil-rose);
  text-decoration: underline;
  text-decoration-color: rgba(212,83,126,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.post-content a:hover { text-decoration-color: var(--veil-rose); }

.post-content blockquote {
  border-left: 2px solid var(--veil-rose);
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--veil-blush) 0%, rgba(250,247,244,0.5) 100%);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--veil-deep);
  margin: 2rem 0;
}

/* === FOOTER === */
.footer {
  border-top: 0.5px solid rgba(212,83,126,0.18);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: var(--neutral-mid);
  font-family: var(--font-body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='transparent'/%3E%3Crect x='0' y='0' width='1' height='1' fill='%23D4537E' fill-opacity='0.03'/%3E%3C/svg%3E");
}

body.voyage-mode .footer {
  border-top-color: rgba(24,95,165,0.18);
}

.footer a { color: var(--veil-rose) !important; text-decoration: none; }
body.voyage-mode .footer a { color: var(--voyage-ocean) !important; }

/* === ENTRANCE ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home-info-content { animation: fadeUp 1.1s cubic-bezier(0.22,1,0.36,1) 0.15s both; }

.post-entry {
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.post-entry:nth-child(1) { animation-delay: 0.05s; }
.post-entry:nth-child(2) { animation-delay: 0.15s; }
.post-entry:nth-child(3) { animation-delay: 0.25s; }
.post-entry:nth-child(4) { animation-delay: 0.35s; }
.post-entry:nth-child(5) { animation-delay: 0.45s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .home-info { min-height: 80vh; padding: 4rem 1.5rem 5rem; }
  .home-info-content h1 { font-size: 2.4rem; }
  .post-entry { padding: 1.25rem 1.5rem; }
  .entry-header h2 { font-size: 1.3rem; }
}
/* Make entire post card clickable */
article.post-entry {
  position: relative;
  cursor: pointer;
}

article.post-entry .entry-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

article.post-entry .entry-header,
article.post-entry .entry-content,
article.post-entry .entry-footer,
article.post-entry .entry-tags {
  position: relative;
  z-index: 0;
  pointer-events: none;
}
