:root {
    --text-color: #1a2536;
    --accent-bright: #4f96d6;
    --accent-glow: #db7698;
    --bg-dark: #ffffff;
    --grid-color: rgba(100, 181, 246, 0.05);
    --border-color: rgba(26, 37, 54, 0.08);
}

html {
    overflow: hidden;
}

html.intro-done {
    overflow: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 70% 30%, #fcd6e2 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, #d4ebfc 0%, transparent 60%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

#intro-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 72% 28%, #fcd6e2 0%, transparent 58%),
        radial-gradient(circle at 22% 76%, #d4ebfc 0%, transparent 58%),
        radial-gradient(circle at 50% 50%, #ffffff 0%, #fbfbfd 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-verse {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text-color);
    font-size: clamp(16px, 2.4vw, 26px);
    text-align: center;
    max-width: 760px;
    padding: 0 32px;
    letter-spacing: 0.02em;
    line-height: 1.7;
    filter: blur(22px);
    opacity: 0;
    transform: scale(1.04);
    animation: introReveal 7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

#intro-verse .intro-ref {
    display: block;
    margin-top: 22px;
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-bright);
    opacity: 0.8;
}

@keyframes introReveal {
    0% {
        filter: blur(22px);
        opacity: 0;
        transform: scale(1.04);
    }
    28% {
        filter: blur(0px);
        opacity: 1;
        transform: scale(1);
    }
    75% {
        filter: blur(0px);
        opacity: 1;
        transform: scale(1);
    }
    100% {
        filter: blur(18px);
        opacity: 0;
        transform: scale(0.97);
    }
}

#site-content {
    opacity: 0;
    transition: opacity 1.8s ease;
}

#site-content.visible {
    opacity: 1;
}

main {
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    padding: 100px 40px 40px 40px;
    position: relative;
    z-index: 10;
    flex: 1;
}

header {
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    filter: blur(12px) brightness(0);
    opacity: 0;
    animation: blackBlurReveal 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes blackBlurReveal {
    0% {
        filter: blur(12px) brightness(0);
        opacity: 0;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
    }
    100% {
        filter: blur(0px) brightness(1);
        opacity: 1;
        transform: scale(1);
    }
}

.audio-player-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(26, 37, 54, 0.03);
    border: 1px solid rgba(26, 37, 54, 0.05);
    transition: all 0.3s ease;
    user-select: none;
}

.audio-player-wrapper:hover {
    background: rgba(26, 37, 54, 0.06);
    border-color: rgba(26, 37, 54, 0.1);
}

.audio-control-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--text-color);
}

.audio-control-btn svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.audio-player-wrapper:hover .audio-control-btn svg {
    transform: scale(1.1);
}

.waveform-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 14px;
    width: 25px;
}

.waveform-bar {
    width: 3px;
    height: 100%;
    background-color: var(--accent-bright);
    border-radius: 2px;
    transform: scaleY(0.25);
    transform-origin: bottom;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.audio-player-wrapper.playing .waveform-bar {
    background-color: var(--accent-glow);
    animation: bounceWave 0.8s ease-in-out infinite alternate;
}

.audio-player-wrapper.playing .waveform-bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 0.6s; }
.audio-player-wrapper.playing .waveform-bar:nth-child(2) { animation-delay: 0.3s; animation-duration: 0.8s; }
.audio-player-wrapper.playing .waveform-bar:nth-child(3) { animation-delay: 0.0s; animation-duration: 0.7s; }
.audio-player-wrapper.playing .waveform-bar:nth-child(4) { animation-delay: 0.4s; animation-duration: 0.9s; }
.audio-player-wrapper.playing .waveform-bar:nth-child(5) { animation-delay: 0.2s; animation-duration: 0.6s; }

@keyframes bounceWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

#about-container {
    font-weight: 400;
    text-align: left;
    margin-bottom: 80px;
}

.slide-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    transition: height 2.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide-inner {
    display: flex;
    flex-direction: column;
    transition: transform 2.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.lang-block {
    box-sizing: border-box;
    width: 100%;
    opacity: 0.25;
    filter: blur(3px);
    transition: opacity 2.2s ease, filter 2.2s ease;
}

.lang-block.active {
    opacity: 1;
    filter: blur(0px);
}

.lang-block.en {
    font-family: 'Inter', sans-serif;
}

.lang-block.he {
    font-family: 'Heebo', sans-serif;
    direction: rtl;
    text-align: right;
    letter-spacing: 0.03em;
}

p {
    margin: 0;
    opacity: 1;
}

#about-container a {
    color: #1b6cb4;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid rgba(27, 108, 180, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

#about-container a:hover {
    color: #c44d73;
    border-bottom-color: transparent;
    text-shadow: 0 0 8px rgba(196, 77, 115, 0.2);
}

#blog-container {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    display: flex;
    gap: 40px;
}

.blog-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.blog-sidebar h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 20px 0;
    color: var(--text-color);
    opacity: 0.8;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(26, 37, 54, 0.04);
    transition: all 0.3s ease;
}

.post-title {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.post-date {
    font-size: 9px;
    color: rgba(26, 37, 54, 0.4);
    display: block;
    margin-top: 2px;
}

.post-item:hover .post-title,
.post-item.active .post-title {
    opacity: 1;
    color: #1b6cb4;
}

.blog-content {
    flex-grow: 1;
    min-width: 0;
}

.markdown-render {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.015em;
}

.markdown-render h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.markdown-render .meta {
    font-size: 10px;
    color: rgba(26, 37, 54, 0.4);
    margin-bottom: 28px;
    display: block;
    letter-spacing: 0.05em;
}

.markdown-render h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 14px 0;
}

.markdown-render h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 22px 0 10px 0;
    display: flex;
    align-items: center;
}

.markdown-render h3::before {
    content: "—";
    margin-right: 8px;
    color: var(--accent-bright);
    font-weight: 400;
}

.markdown-render p {
    margin-bottom: 18px;
    color: var(--text-color);
    opacity: 0.95;
}

.markdown-render ul, .markdown-render ol {
    margin: 0 0 18px 0;
    padding-left: 24px;
}

.markdown-render li {
    margin-bottom: 8px;
}

.markdown-render img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.markdown-render code {
    font-family: monospace;
    background: rgba(26, 37, 54, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.markdown-render pre {
    background: rgba(26, 37, 54, 0.03);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin: 24px 0;
}

.markdown-render pre code {
    background: none;
    padding: 0;
    font-size: 12px;
}

.markdown-render blockquote {
    margin: 24px 0;
    padding-left: 18px;
    border-left: 3px solid var(--accent-bright);
    color: rgba(26, 37, 54, 0.75);
    font-style: italic;
}

@media(max-width: 768px) {
    #blog-container {
        flex-direction: column;
        gap: 30px;
    }
    .blog-sidebar {
        width: 100%;
    }
}

footer {
    font-family: 'Inter', sans-serif;
    padding: 24px 32px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 10;
    color: rgba(26, 37, 54, 0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

footer a {
    color: var(--accent-bright);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #c44d73;
}