:root {
    color-scheme: light;
}

::selection {
    background: rgba(200, 169, 107, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

a,
button,
input,
select,
textarea {
    transition-duration: 180ms;
    transition-property: background-color, border-color, color, box-shadow, opacity, transform;
    transition-timing-function: ease;
}

.reveal {
    opacity: 0;
    transform: translateY(46px) scale(0.975);
    transition: opacity 920ms cubic-bezier(0.22, 1, 0.36, 1), transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

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

.hero-reveal {
    animation: heroFadeUp 1050ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-reveal-delay {
    animation: heroImageIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.float-soft {
    animation: floatSoft 6s ease-in-out infinite;
}

.interactive-lift {
    will-change: transform;
}

.interactive-lift:hover {
    box-shadow: 0 22px 52px rgba(15, 39, 64, 0.16);
    transform: translateY(-8px);
}

.article-content img,
.hero-image {
    transition: transform 600ms ease, filter 600ms ease;
}

a:hover .hero-image,
.article-content img:hover {
    transform: scale(1.015);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(36px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(34px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.nav-link {
    position: relative;
    width: fit-content;
}

.nav-link::after {
    background: #C8A96B;
    bottom: -6px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    width: 100%;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.article-content {
    color: #27323A;
    font-size: 1.0625rem;
    line-height: 1.9;
}

.article-content p,
.article-content blockquote,
.article-content h2,
.article-content h3 {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.article-content h2 {
    color: #163A59;
    font-size: clamp(1.55rem, 2.3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 2.8rem;
}

.article-content h3 {
    color: #0F2740;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    margin-top: 2rem;
}

.article-content blockquote {
    border-left: 4px solid #C8A96B;
    color: #163A59;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.45;
    margin-bottom: 2rem;
    margin-top: 2rem;
    padding-left: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 1.3rem auto;
    max-width: 760px;
    padding-left: 1.4rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-top: 0.55rem;
    padding-left: 0.2rem;
}

.article-content a {
    color: #163A59;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #C8A96B;
    text-underline-offset: 4px;
}

.article-content figure {
    margin: 2rem auto;
    max-width: 980px;
}

.article-content img {
    border-radius: 2px;
    box-shadow: 0 18px 45px rgba(15, 39, 64, 0.10);
    height: auto;
    margin: 2rem auto;
    max-width: 100%;
}

.article-content figcaption {
    color: #8B8F97;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0.75rem auto 0;
    max-width: 760px;
    text-align: center;
}

.article-content strong,
.article-content b {
    color: #163A59;
    font-weight: 800;
}

#richEditor {
    min-height: 430px;
}

#richEditor .ql-editor {
    color: #27323A;
    font-size: 1rem;
    line-height: 1.8;
    min-height: 390px;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
    border-color: rgba(22, 58, 89, 0.15);
}

.ql-toolbar.ql-snow {
    border-radius: 2px 2px 0 0;
}

.ql-container.ql-snow {
    border-radius: 0 0 2px 2px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hero-image {
    background: #D8CBB8;
    object-fit: cover;
}

textarea {
    min-height: 360px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767px) {
    #mainMenu.open {
        display: block;
    }
}
