﻿:root {
    color-scheme: light;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f8fbfd 0%, #f6f9fc 100%);
}

body.lightbox-open {
    overflow: hidden;
}

.site-main {
    position: relative;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0) 32%),
        radial-gradient(circle at 88% 26%, rgba(14, 116, 144, 0.07), rgba(14, 116, 144, 0) 28%);
}

.site-main > section {
    position: relative;
}

.site-main > section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 2rem));
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.1), rgba(16, 185, 129, 0.35), rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.site-main > section:nth-of-type(even)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.site-main .bg-white.border,
.site-main .bg-white.border-slate-200 {
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 14px 28px rgba(15, 23, 42, 0.05);
    transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.site-main .bg-white.border:hover,
.site-main .bg-white.border-slate-200:hover {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08), 0 20px 36px rgba(15, 23, 42, 0.09);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.site-main h2 {
    letter-spacing: 0.01em;
}

.site-main h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #0ea5a4);
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

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

input, textarea, select {
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.image-zoom-trigger {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.image-zoom-trigger:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.35);
    outline-offset: 3px;
}

.image-zoom-trigger img {
    transition: transform 180ms ease;
}

.image-zoom-trigger:hover img {
    transform: scale(1.02);
}

.image-lightbox-image {
    background: #fff;
}
