/*
  Layout Styles
  Section structure, containers, grid
*/

/* ===== Core Layout Styles ===== */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.poetic-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30vh 2rem 5vh;
}

/* Seamless Horizon Nav */
.navbar-minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: all 0.6s var(--ease-poetic);
  /* Initially transparent with no border */
  border-bottom: 0.5px solid transparent;
  padding: 1rem 0;
}

.nav-pill {
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.navbar-minimal.is-scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
}

.navbar-minimal a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: all 0.3s var(--ease-poetic);

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 16px;
  margin: 0 -8px;
  border-radius: 10px;
  background: transparent;
}

.navbar-minimal a:hover {
  opacity: 1;
  background: var(--color-hover-glow);
}

.nav-logo {
  font-weight: 600 !important;
  opacity: 0.8 !important;
  font-size: 14px !important;
}

.nav-icon {
  height: 20px;
  width: 20px;
  object-fit: contain;
  border-radius: 4px;
}

/* Narrative Stanza Spacing - Expanded for chapter-like separation */
.narrative-stanza {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6rem; /* Increased significantly for a rhythmic, airy flow */
  width: 100%;
}

.narrative-stanza:last-child {
  margin-bottom: 0;
}

.narrative-stanza .poetic-text {
  margin-bottom: 0.5rem;
}

.narrative-stanza .poetic-text:last-child {
  margin-bottom: 0;
}

/* Narrative flow spacing */
.narrative-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Minimalist Text-based Download Section */
.download-minimalist {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  margin-top: 12rem;
  width: 100%;
  padding-bottom: 2rem;
}

.download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 180px; /* Adjusted to fit the even narrower link width */
}

.download-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: all 0.3s var(--ease-poetic);

  display: flex;
  align-items: center;
  justify-content: center;
  
  width: 140px; /* Reduced further as lowercase text is narrower */
  height: 40px;  /* Slightly reduced height for smaller text */
  border-radius: 10px;
  background: transparent;
  box-sizing: border-box;
}

.download-link:hover {
  opacity: 1;
  background: var(--color-hover-glow);
}

.price-tag {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.3;
  margin-top: 1rem;
  color: var(--color-text);
}

.bullet-divider {
  font-size: 24px;
  color: var(--color-text);
  opacity: 0.15;
  margin-top: 10px; /* Aligns visually with the link text baseline */
  user-select: none;
}

footer {
  width: 100%;
  max-width: 800px;
  padding: 3rem 2rem 4vh;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 0.5px solid rgba(0, 0, 0, 0.05);
}
