@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --ivory:        #FDFAF4;
  --cream:        #F5EDD8;
  --gold:         #C8A96B;
  --gold-deep:    #A8824A;
  --gold-light:   #D4B483;
  --espresso:     #2C1F14;
  --mahogany:     #6B4F2A;
  --sand:         #E8DFC8;
  --midnight:     #1A1209;
  --butter:       #F0E6CC;
}

body {
  background-color: var(--ivory);
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

html {
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

/* Hero image slow zoom animation */
/* Hero image slow zoom animation — registered as a Tailwind utility so it's not purged */
@layer utilities {
  @keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
  }

  .animate-zoom-in {
    animation: zoomIn 10s ease-in-out infinite alternate both;
    will-change: transform;
    transform-origin: center center;
  }
}

/* Homepage opening animation */
/* Blue screen behind the logo */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #596065;
  overflow: hidden;
}

/* White background page, initially closed at the top */ 
/*Remove if white background opening downward*/
.intro-loader::before {  
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ffffff;
  transform: scaleY(0);
  transform-origin: top;
}

/* White page opens downward from the top */
/*Remove if white background opening downward*/
.intro-loader--opening::before {
  animation: whitePageOpen 600ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.intro-loader__logo {
  position: relative;
  z-index: 2;
  width: min(180px, 55vw);
  height: auto;
  object-fit: contain;
  animation: introLogoMove 1.6s ease-in-out forwards;
}

/* Once white fills the screen, it moves upward to reveal the homepage */
/*Remove the white screen lifting upward*/
.intro-loader--leave {
  animation: introPageLeave 700ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introLogoMove {
  0% {
    opacity: 0;
    transform: translateY(38px);
  }

  20% {
    opacity: 1;
  }

  55% {
    transform: translateY(-32px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whitePageOpen {    /*Remove if white background opening downward*/
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes introPageLeave {   /*Remove the white screen lifting upward*/
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader {
    display: none;
  }
}


/* blogs section */
@keyframes marquee {

0% {
transform: translateX(100%);
}

100% {
transform: translateX(-100%);
}

}


.animate-marquee {

animation: marquee 18s linear infinite;

}

/* ================================
   Blog Column Rich Content
================================ */

.blog-column-content {
  text-align: center;
}

.blog-column-content p,
.blog-column-content h1,
.blog-column-content h2,
.blog-column-content h3,
.blog-column-content h4,
.blog-column-content h5,
.blog-column-content h6 {
  text-align: center;
}

.blog-column-content ul,
.blog-column-content ol {
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto 0;
  padding-left: 1.5rem;
  text-align: left;
}

.blog-column-content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.blog-column-content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.blog-column-content li {
  margin: 0;
  padding: 5px 0;
  line-height: 1.75;
}

.blog-column-content li p {
  display: inline;
  margin: 0;
  padding: 0;
}

