/* yongzoon.xyz - Zen Maximalist Contemplation */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #e8b84b (accent gold), #f5f0e8 (warm off-white), #6c757d (muted gray) */
/* Fonts: Jost (substitute for Futura), Space Grotesk, Inter */

:root {
  --deep-base: #1a1a2e;
  --primary-blue: #4a90d9;
  --accent-gold: #e8b84b;
  --warm-white: #f5f0e8;
  --muted-gray: #6c757d;
  --font-heading: 'Jost', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--warm-white);
  color: var(--deep-base);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Celestial Canvas Background */
#celestial-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.95) 0%, rgba(245, 240, 232, 0) 100%);
  transition: background 0.4s ease;
}

#main-nav.scrolled {
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(26, 26, 46, 0.08);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-heading);
}

.brand-symbol {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--deep-base);
}

.brand-dot {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--deep-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
  width: 100%;
}

/* Underline Draw Animation */
[data-underline] {
  position: relative;
  display: inline;
}

[data-underline]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-underline].drawn::after {
  width: 100%;
}

/* Star Celestial */
.star-celestial {
  color: var(--accent-gold);
  font-size: 1rem;
  display: inline-block;
  animation: starPulse 3s ease-in-out infinite;
}

.star-celestial.small {
  font-size: 0.7rem;
  opacity: 0.6;
}

@keyframes starPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem 3rem;
  position: relative;
}

.hero-botanical {
  width: 100%;
  max-width: 360px;
}

.botanical-svg {
  width: 100%;
  height: auto;
}

.botanical-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 3s ease forwards;
}

.botanical-leaf {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 2s;
}

.botanical-flower, .botanical-flower-inner {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 2.5s;
}

.petal-line {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 3s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 4rem 3rem;
}

.hero-content {
  max-width: 480px;
}

.hero-issue {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-gray);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 2rem;
}

.title-line {
  display: block;
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: -0.02em;
  color: var(--deep-base);
}

.title-line:last-child {
  color: var(--primary-blue);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-gray);
  margin-bottom: 2rem;
  max-width: 380px;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--deep-base);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-text {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-gray);
}

.scroll-indicator svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Magazine Spread Sections */
.magazine-spread {
  position: relative;
  z-index: 1;
}

.spread-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.spread-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.label-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.4;
}

.label-text {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-gray);
}

.spread-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.spread-content.spread-reverse {
  grid-template-columns: 2fr 1fr;
}

.spread-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--deep-base);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.spread-title.light {
  color: var(--warm-white);
}

/* Zone Colors */
.zone-blue {
  background-color: var(--warm-white);
  border-top: 1px solid rgba(74, 144, 217, 0.15);
}

.zone-gold {
  background-color: #faf7f0;
  border-top: 1px solid rgba(232, 184, 75, 0.2);
}

.zone-deep {
  background-color: var(--deep-base);
  color: var(--warm-white);
}

.zone-warm {
  background-color: var(--warm-white);
  border-top: 1px solid rgba(26, 26, 46, 0.08);
}

/* Contemplation Section */
.col-narrow {
  min-width: 0;
}

.col-wide {
  min-width: 0;
}

.col-full {
  grid-column: 1 / -1;
}

.constellation-decoration {
  margin-bottom: 2rem;
}

.constellation-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.zen-quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--deep-base);
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.5rem;
}

.text-columns {
  column-count: 2;
  column-gap: 2.5rem;
}

.text-columns p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--deep-base);
  margin-bottom: 1.2rem;
  break-inside: avoid;
}

/* Botanical Gallery */
.botanical-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.gallery-card {
  background: rgba(245, 240, 232, 0.6);
  border: 1px solid rgba(26, 26, 46, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.1);
}

.gallery-botanical {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.gallery-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-gray);
}

.gallery-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted-gray);
  font-style: italic;
}

/* Sidebar */
.sidebar-text {
  position: sticky;
  top: 6rem;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--deep-base);
  margin-bottom: 1.5rem;
}

.sidebar-text p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-gray);
  margin-bottom: 1.5rem;
}

.sidebar-stars {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  padding: 1.5rem 0;
}

/* Celestial Section */
.celestial-spread {
  text-align: center;
}

.celestial-text {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.celestial-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
}

.constellation-map {
  margin: 0 auto 3rem;
  overflow: visible;
}

.constellation-map-svg {
  width: 100%;
  max-width: 800px;
  height: auto;
}

.constellation-label {
  font-family: var(--font-accent);
  font-size: 10px;
  fill: rgba(245, 240, 232, 0.5);
  text-anchor: middle;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.constellation-group circle {
  transition: r 0.3s ease;
}

.constellation-group:hover circle {
  filter: drop-shadow(0 0 4px rgba(232, 184, 75, 0.6));
}

.constellation-group:hover line {
  opacity: 0.9 !important;
  stroke-width: 1;
}

.celestial-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.detail-card {
  padding: 1.5rem;
  border: 1px solid rgba(245, 240, 232, 0.1);
  transition: border-color 0.3s ease;
}

.detail-card:hover {
  border-color: rgba(232, 184, 75, 0.3);
}

.detail-card .star-celestial {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.detail-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--warm-white);
  margin-bottom: 0.6rem;
}

.detail-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.6);
}

/* Archive Grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.archive-item {
  padding: 2rem;
  border: 1px solid rgba(26, 26, 46, 0.06);
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
}

.archive-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-gold);
  opacity: 0.3;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.archive-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--deep-base);
  margin-bottom: 0.8rem;
}

.archive-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted-gray);
  margin-bottom: 1.2rem;
}

.archive-line {
  width: 40px;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width 0.4s ease;
}

.archive-item:hover .archive-line {
  width: 80px;
}

/* Footer */
#site-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 3rem 3rem;
  text-align: center;
  background-color: var(--warm-white);
  border-top: 1px solid rgba(26, 26, 46, 0.06);
}

.footer-botanical {
  margin-bottom: 2rem;
}

.footer-botanical-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--deep-base);
  margin-bottom: 0.8rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted-gray);
}

.footer-divider {
  color: var(--accent-gold);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 8rem 2rem 2rem;
  }

  .hero-right {
    padding: 2rem;
  }

  .spread-content,
  .spread-content.spread-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .text-columns {
    column-count: 1;
  }

  .botanical-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .celestial-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #main-nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .spread-grid {
    padding: 4rem 2rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-botanical {
    max-width: 250px;
  }

  .botanical-gallery {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .label-number {
    font-size: 3rem;
  }

  .spread-grid {
    padding: 3rem 1.5rem;
  }
}