/* ============================================
   SV Advanced Computing — Site Styles
   Aesthetic: Academic research lab / technical journal
   ============================================ */

:root {
    /* Warm parchment palette */
    --bg:           #faf8f4;
    --bg-alt:       #f2efe8;
    --bg-code:      #edeae3;
    --text:         #2c2c2c;
    --text-muted:   #6b6560;
    --text-light:   #918a82;
    --accent:       #8b3a3a;
    --accent-hover: #a14444;
    --border:       #d6d0c6;
    --border-light: #e5e0d8;

    /* Typography */
    --font-serif:   'Crimson Pro', 'Georgia', serif;
    --font-sans:    'Source Sans 3', 'Helvetica Neue', sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;

    /* Sizing */
    --content-width: 740px;
    --wide-width:    960px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    color: var(--text);
    background: var(--bg);
    line-height: 1.72;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 2rem;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.logo-mark {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--bg);
    background: var(--text);
    padding: 0.2em 0.45em;
    border-radius: 2px;
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    gap: 1.8rem;
}

.site-nav a {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.015em;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--accent);
}

/* ---- Hero ---- */
.hero {
    padding: 4rem 2rem 3.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.hero-pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 600px;
}

/* ---- Sections ---- */
.site-main {
    flex: 1;
}

.section {
    padding: 3rem 2rem;
    max-width: var(--wide-width);
    margin: 0 auto;
}

.section + .section {
    border-top: 1px solid var(--border-light);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text);
}

.heading-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 0.5rem;
    letter-spacing: 0.05em;
}

/* ---- Post List ---- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.post-card:last-child {
    border-bottom: none;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.post-meta time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}

.post-tags {
    display: flex;
    gap: 0.4rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.15em 0.5em;
    border-radius: 2px;
}

.post-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.post-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-summary {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Focus Grid ---- */
.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.focus-item {
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    background: var(--bg);
}

.focus-item h3 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.focus-item p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Article (Posts & Pages) ---- */
.article {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.article-summary {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.8rem;
}

.article-author {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Article Body */
.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.article-body h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 2rem 0 0.8rem;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.2rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.3rem;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--accent-hover);
}

.article-body blockquote {
    border-left: 3px solid var(--border);
    padding: 0.5rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-code);
    padding: 0.15em 0.35em;
    border-radius: 2px;
}

.article-body pre {
    background: #2a2a2a;
    color: #e0ddd5;
    padding: 1.2rem 1.4rem;
    border-radius: 3px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.55;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.article-body th, .article-body td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-body img {
    max-width: 100%;
    border-radius: 3px;
    margin: 1.5rem 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.article-footer a {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
}

.article-footer a:hover {
    color: var(--accent);
}

/* ---- Services/Rates page specifics ---- */
.article-body .service-block {
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 3px;
}

/* ---- Author Photo ---- */
.author-photo {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 180px;
}

.author-photo img {
    width: 100%;
    border-radius: 50%;
    border: 2px solid var(--border);
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-entity {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.footer-loc {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-light);
}

.footer-right a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    html { font-size: 16px; }

    .header-inner {
        flex-direction: column;
        gap: 0.8rem;
    }

    .site-nav { gap: 1.2rem; }

    .hero h1 { font-size: 1.8rem; }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}
