/* --- Base full-width body --- */
body {
    margin: 0;
    padding: 0;
    background: #f7f9fc;  /* soft gray background for premium look */
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Centered content card (the white-paper style) --- */
.page {
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* --- Typography --- */
h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0f172a;
}

h2 {
    font-size: 1.9rem;
    margin-top: 2.5rem;
    color: #1e3a8a;
    font-weight: 600;
}

h3 {
    font-size: 1.35rem;
    margin-top: 1.8rem;
    color: #334155;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1rem 0;
    color: #4b5563;
}

/* --- Lists --- */
ul, ol {
    padding-left: 24px;
    margin: 1rem 0 1.5rem;
    color: #4b5563;
}

li {
    margin-bottom: 0.6rem;
}

/* --- Abstract box --- */
.abstract {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 24px 28px;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* --- Insight / highlight box --- */
.insight-box {
    background: #f0fff4;
    border-left: 6px solid #16a34a;
    padding: 22px 24px;
    border-radius: 8px;
    margin: 35px 0;
}

/* --- Code blocks (dark theme only) --- */
pre[class*="language-"] {
    background: #1e1e1e !important;
    color: #e6e6e6 !important;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.4rem 0;
    font-size: 0.95rem;
}

/* Inline code */
code {
    background: #e5e7eb;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.93rem;
    color: #d53f8c;
}

/* --- Read Next Section --- */
.read-next {
    margin-top: 60px;
    padding: 32px 28px;
    border-radius: 10px;
    background: #f8fafc; /* soft blue-gray */
    border: 1px solid #e2e8f0;
}

.read-next h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.35em;
    color: #1e293b; /* slate-800 */
    font-weight: 700;
}

.read-next ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.read-next li {
    margin-bottom: 14px;
}

.read-next a {
    text-decoration: none;
    font-size: 1.05em;
    color: #2563eb; /* blue-600 */
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.read-next a:hover {
    color: #1e40af; /* blue-800 */
    padding-left: 4px; /* subtle slide */
}
