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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-parchment: #fbf9f5;
  --bg-panel: rgba(255, 255, 255, 0.96);
  --border-subtle: #ded7ca;
  --border-active: #96774a;
  --bronze-champagne: #96774a;
  --text-primary: #111013;
  --text-muted: #38363e;
}

/* Offset for fixed sticky header when clicking anchor links */
#calculator, #philosophy, #compatibility, #resultSection {
  scroll-margin-top: 100px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-parchment);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Luxury Editorial Single-Line Brand Logo */
.brand-title-single {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #19181b;
  line-height: 1;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.brand-title-single:hover {
  color: #96774a;
}

.text-zinc-850 {
  color: #1f1d24;
}

.text-zinc-750 {
  color: #37353f;
}

.text-zinc-650 {
  color: #4f4c57;
}

/* Editorial Minimalist Cards */
.editorial-card {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(90, 70, 45, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card-hover:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(90, 70, 45, 0.10);
}

/* Subtle Architectural Grid Background */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(140, 115, 80, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 115, 80, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Atmospheric Ambience */
.ambient-halo-1 {
  position: absolute;
  top: -100px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(205, 180, 140, 0.16) 0%, rgba(251, 249, 245, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-halo-2 {
  position: absolute;
  top: 600px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(160, 190, 215, 0.14) 0%, rgba(251, 249, 245, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Element Understated Tone Pills (High-Contrast Editorial) */
.pill-wood  { background: rgba(56, 128, 77, 0.10); color: #1e5c33; border: 1px solid rgba(30, 92, 51, 0.35); font-weight: 500; }
.pill-fire  { background: rgba(199, 74, 44, 0.10); color: #9c2b12; border: 1px solid rgba(156, 43, 18, 0.35); font-weight: 500; }
.pill-earth { background: rgba(184, 134, 11, 0.10); color: #7d5904; border: 1px solid rgba(125, 89, 4, 0.35); font-weight: 500; }
.pill-metal { background: rgba(100, 116, 139, 0.12); color: #334155; border: 1px solid rgba(51, 65, 85, 0.35); font-weight: 500; }
.pill-water { background: rgba(30, 110, 175, 0.10); color: #134e80; border: 1px solid rgba(19, 78, 128, 0.35); font-weight: 500; }

/* Pillar Column Minimalist Box */
.pillar-cell {
  border: 1px solid #ded7ca;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(90, 70, 45, 0.04);
  border-radius: 12px;
  padding: 16px 12px;
  transition: all 0.2s ease;
}

.pillar-cell:hover {
  border-color: rgba(150, 119, 74, 0.6);
  box-shadow: 0 4px 16px rgba(90, 70, 45, 0.09);
}

/* Watermark Ancient Emblem */
.glyph-watermark {
  font-family: 'Cormorant Garamond', serif;
  opacity: 0.06;
  color: #19181b;
  user-select: none;
  pointer-events: none;
}

/* AdSlot Minimalist */
.ad-slot-placeholder {
  border: 1px dashed rgba(150, 125, 90, 0.35);
  background: rgba(255, 255, 255, 0.8);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #5b5866;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Dossier Modal / Report Styling */
.dossier-modal-backdrop {
  background: rgba(25, 24, 27, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dossier-paper {
  background: #ffffff;
  border: 1px solid rgba(180, 160, 130, 0.35);
  box-shadow: 0 25px 80px rgba(60, 45, 25, 0.16);
}

/* Print Optimization for PDF Export */
@media print {
  body {
    background: #ffffff !important;
    color: #19181b !important;
  }
  header, footer, #calculator, #compatibility, #philosophy, .ad-slot-placeholder, .dossier-actions, .ambient-halo-1, .ambient-halo-2, .bg-grid-pattern {
    display: none !important;
  }
  #dossierModal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    inset: auto !important;
  }
  .dossier-paper {
    background: #ffffff !important;
    color: #19181b !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}
