html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: #C4A77D40;
  color: #3D3229;
}

::-moz-selection {
  background-color: #C4A77D40;
  color: #3D3229;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F0EB;
}

::-webkit-scrollbar-thumb {
  background: #C4A77D80;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C4A77DA0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #C4A77D80 #F5F0EB;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

.article-content {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #3D3229;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Lora', Georgia, serif;
  color: #2A221A;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.625rem;
}

.article-content h3 {
  font-size: 1.375rem;
}

.article-content p {
  margin-bottom: 1.25em;
}

.article-content a {
  color: #8B7355;
  text-decoration: underline;
  text-decoration-color: #C4A77D60;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-content a:hover {
  text-decoration-color: #8B7355;
}

.article-content strong,
.article-content b {
  font-weight: 600;
  color: #2A221A;
}

.space-y-2.5 b {
  font-weight: 500;
  color: #2A221A;
  margin-right: 2px;
}

.article-content em,
.article-content i {
  font-style: italic;
  color: #6B5E50;
}

.article-content ul,
.article-content ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content ul li::marker {
  color: #C4A77D;
}

.article-content ol li::marker {
  color: #C4A77D;
  font-weight: 600;
}

.article-content blockquote {
  border-left: 3px solid #C4A77D;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background-color: #FFF8E7;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: #6B5E50;
}

.article-content code {
  background-color: #F5F0EB;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #8B7355;
}

.article-content pre {
  background-color: #2A221A;
  color: #F5F0EB;
  padding: 1.25em 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-content tg-spoiler {
  background-color: #3D322920;
  filter: blur(5px);
  cursor: pointer;
  transition: filter 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
  display: inline;
  -webkit-user-select: none;
  user-select: none;
}

.article-content tg-spoiler.revealed {
  filter: none !important;
  background-color: transparent !important;
  user-select: text !important;
  cursor: text;
}

.article-content img {
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.article-content hr {
  border: none;
  border-top: 1px solid #E8DFD5;
  margin: 2em 0;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

.check-animate .check-path {
  animation: checkDraw 0.6s ease-out 0.2s forwards;
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.success-ring {
  animation: successRing 0.8s ease-out forwards;
}

@keyframes successRing {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-enter {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

@media (min-width: 640px) {
  .modal-enter {
    transform: none !important;
    scale: 1 !important;
    opacity: 1 !important;
  }
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(196, 167, 125, 0.15);
}

.input-error {
  border-color: #C47D7D !important;
  box-shadow: 0 0 0 3px rgba(196, 125, 125, 0.15) !important;
}

.header-scrolled {
  background-color: rgba(255, 253, 247, 0.95) !important;
  box-shadow: 0 1px 3px rgba(61, 50, 41, 0.06);
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.floating-hidden {
  transform: translateY(100px);
  opacity: 0;
}

textarea {
  transition: height 0.15s ease;
}

@media print {
  header, footer, #floating-cta, #booking-modal {
    display: none !important;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }
}