/*
 * sathwikmamidi.com
 * Single-column minimal: sans base, mono metadata, whitespace over rules.
 */

:root {
    --bg: #fcfcfc;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --faint: #e4e4e4;
    --accent: #0e7c5b;
    --sans: 'Instrument Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

html { font-size: 16px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 700px;
    margin: 0 auto;
    padding: 4.5rem 2rem 3rem;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--faint);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 1px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--faint);
}

h1 {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.role {
    color: var(--muted);
    margin-top: 0.15rem;
}

.channels {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.4rem;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.channels a {
    color: var(--muted);
    text-decoration: none;
}

.channels a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

/* Sections */
section { margin-bottom: 3.75rem; }

h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.count { color: var(--accent); }

/* About */
.about p { margin-bottom: 1rem; }
.about p:last-child { margin-bottom: 0; }

/* Projects */
.project {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.project:last-child { margin-bottom: 0; }

.project-body { flex: 1; min-width: 0; }

.project h3 {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.project h3 a { text-decoration: none; }

.project h3 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.project-body > p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.45rem;
}

.plinks { margin-left: 0.9rem; }

.plinks a {
    font-family: var(--mono);
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--faint);
    text-underline-offset: 3px;
}

.plinks a + a { margin-left: 0.7rem; }

.plinks a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.shot {
    flex-shrink: 0;
    line-height: 0;
}

.shot img {
    width: 128px;
    height: 80px;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--faint);
    border-radius: 2px;
}

/* More work: definition list */
.index dt {
    font-weight: 500;
    font-size: 0.95rem;
}

.index dt a { text-decoration: none; }

.index dt a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.index dd {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.index dd:last-child { margin-bottom: 0; }

.index dd .plinks { font-size: 0.75rem; margin-left: 0.4rem; }

/* Footer */
footer {
    border-top: 1px solid var(--faint);
    padding-top: 1.25rem;
}

footer p {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
    .page { padding: 3rem 1.4rem 2.5rem; }

    header { margin-bottom: 3rem; }

    .avatar { width: 56px; height: 56px; }

    section { margin-bottom: 3rem; }

    .project {
        flex-direction: row-reverse;
        gap: 1rem;
    }

    .shot img {
        width: 88px;
        height: 58px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --ink: #e6e6e6;
        --muted: #969696;
        --faint: #2c2c2c;
        --accent: #3fb98a;
    }

    .shot img { filter: brightness(0.92); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
