@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #f7fbf8;
  --ink: #0e1a14;
  --leaf: #2f8f5b;
  --moss: #93c7a1;
  --gold: #c3a56a;
  --stone: #e5efe9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  overflow-x: hidden;
}

.font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.48s ease-out forwards;
}

header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

button,
a {
  transition: all 0.3s ease;
  cursor: pointer;
}

input:focus,
textarea:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--stone);
}

::-webkit-scrollbar-thumb {
  background: var(--leaf);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--moss);
}

#mobileMenu {
  transition: all 0.3s ease;
}

#cookiePopup {
  transition: transform 0.3s ease-in-out;
}

img {
  transition: opacity 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  scroll-margin-top: 100px;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary ~ * {
  animation: fadeIn 0.3s ease-out;
}

input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
