/* thesecond.day — translucent-frost, evolved-minimal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    color: #3a4a5a;
    background-color: #ffffff;
    line-height: 1.75;
    font-size: 17px;
    position: relative;
    min-height: 100vh;
}

/* Marble watermark - radial gradients at very low opacity */
.marble-watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(168, 192, 212, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(106, 138, 106, 0.03) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(216, 228, 239, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 20%, rgba(168, 192, 212, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 70%, rgba(242, 246, 249, 0.04) 0%, transparent 50%);
}

/* Single-column layout */
.content-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid #d8e4ef;
}

.site-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 2.4rem;
    color: #3a4a5a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.site-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #a8c0d4;
}

/* Entry sections */
.entry {
    margin-bottom: 64px;
    position: relative;
}

.entry-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #3a4a5a;
    margin-bottom: 20px;
}

.entry p {
    margin-bottom: 20px;
}

/* Leaf-organic margin motifs */
.leaf-margin::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 8px;
    width: 24px;
    height: 24px;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a8a6a' stroke-width='1'%3E%3Cpath d='M12 2C8 6 4 10 4 14c0 4 3.5 8 8 8s8-4 8-8c0-4-4-8-8-12z'/%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M12 8c-2 2-4 4-4 6'/%3E%3Cpath d='M12 12c2 2 4 3 4 5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Pull quotes */
.pull-quote {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    color: #6a8a6a;
    border-left: 3px solid #d8e4ef;
    padding: 16px 0 16px 24px;
    margin: 32px 0;
    font-style: italic;
}

/* Code blocks */
.code-block {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.88rem;
    background-color: #f2f6f9;
    border: 1px solid #d8e4ef;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 28px 0;
    overflow-x: auto;
    line-height: 1.6;
    color: #3a4a5a;
}

/* Key terms - zoom-focus */
.key-term {
    position: relative;
    color: #3a4a5a;
    font-weight: 600;
    border-bottom: 1px dotted #a8c0d4;
    cursor: default;
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: inline-block;
}

.key-term:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(58, 74, 90, 0.1);
    background-color: rgba(216, 228, 239, 0.4);
    border-radius: 2px;
}

/* Zoom tooltip */
.zoom-tooltip {
    position: fixed;
    background: #ffffff;
    border: 1px solid #d8e4ef;
    border-radius: 4px;
    padding: 12px 16px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #3a4a5a;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(58, 74, 90, 0.12);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 100;
}

.zoom-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #d8e4ef;
}

.footer-text {
    font-size: 0.9rem;
    color: #a8c0d4;
    text-align: center;
}

/* Responsive */
@media (max-width: 800px) {
    .leaf-margin::before {
        display: none;
    }

    .content-column {
        padding: 48px 20px;
    }

    .site-title {
        font-size: 1.8rem;
    }
}
