/* Jarvis site v0.3.0 — unified light theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #fafafa;
    color: #444;
    min-height: 100dvh;
    -webkit-text-size-adjust: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Decorative gradient orbs — subtle background interest */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}
body::before {
    width: 500px; height: 500px;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
}
body::after {
    width: 400px; height: 400px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%);
}

/* Thin accent bar at top */
body > .page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
    z-index: 10;
}

a { color: #4f46e5; text-decoration: none; }
a:hover { color: #6366f1; }

.page {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    position: relative;
}
.page-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100dvh;
    padding: 4rem 1.25rem 2rem;
}
.page-centered .page { padding: 0; }

/* Back link */
.back {
    display: inline-block;
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.back:hover { color: #4f46e5; }

/* Typography */
h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.03em;
}
h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    margin: 2.5rem 0 0.8rem;
}
h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 1.5rem 0 0.5rem;
}
p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.8rem; }
strong { color: #222; }

/* Lists */
ul, ol { padding-left: 1.3rem; margin-bottom: 1rem; }
li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.3rem; }

/* Code */
code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: #f0eef5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #444;
}
pre {
    background: #f7f6fb;
    border: 1px solid #e8e5f0;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #555;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.82rem;
}
th { text-align: left; color: #666; font-weight: 500; padding: 0.5rem 0.8rem; border-bottom: 1px solid #e5e0f0; }
td { padding: 0.5rem 0.8rem; border-bottom: 1px solid #f0f0f0; color: #555; }

/* Cards — glass effect */
.card, a.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 90px;
}
a.card:hover {
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 4px 20px rgba(79,70,229,0.08);
    transform: translateY(-1px);
}
a.card:active { transform: translateY(0); }
.card-icon { font-size: 1.6rem; margin-bottom: 0.4rem; line-height: 1; }
.card-title { font-size: 0.9rem; font-weight: 600; color: #111; margin-bottom: 0.2rem; }
.card-desc { font-size: 0.75rem; color: #888; line-height: 1.4; }

/* Grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Project list (vertical) */
.projects { display: flex; flex-direction: column; gap: 0.75rem; }
a.project {
    display: block;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
a.project:hover {
    border-color: rgba(99,102,241,0.2);
    box-shadow: 0 4px 20px rgba(79,70,229,0.08);
    transform: translateY(-1px);
}
a.project:active { transform: translateY(0); }
.project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.project-name { font-size: 0.95rem; font-weight: 600; color: #111; }
.project-desc { font-size: 0.82rem; color: #888; line-height: 1.5; }

/* Tags */
.tag {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(79,70,229,0.08);
    color: #4f46e5;
}
.tag-launched {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}
.tag-ideation {
    background: rgba(156,163,175,0.1);
    color: #9ca3af;
}

/* CTA button */
.cta-button {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    margin: 0.5rem 0 1.5rem;
}
.cta-button:hover { background: #4338ca; color: #fff; transform: translateY(-1px); }
.cta-button:active { transform: translateY(0); }

/* Callout box */
.callout {
    background: rgba(79,70,229,0.04);
    border-left: 3px solid rgba(79,70,229,0.2);
    padding: 0.8rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

/* Section divider */
.section-divider { border: none; border-top: 1px solid #eee; margin: 2.5rem 0; }

/* Intro text */
.intro { font-size: 0.88rem; color: #666; line-height: 1.6; margin-bottom: 2rem; }
.subtitle { font-size: 0.88rem; color: #666; font-style: italic; margin-bottom: 2.5rem; }
.note { font-size: 0.82rem; color: #888; font-style: italic; margin-bottom: 2rem; }
.tldr { background: rgba(79,70,229,0.04); border-left: 3px solid rgba(79,70,229,0.2); padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; margin-bottom: 2rem; font-size: 0.88rem; color: #555; line-height: 1.6; }

/* Footer */
.footer { margin-top: 2rem; font-size: 0.78rem; color: #bbb; text-align: center; }
.footer a { color: #999; text-decoration: none; }
.footer a:hover { color: #4f46e5; }
.version { font-size: 0.65rem; color: #ccc; margin-top: 0.3rem; text-align: center; }

/* Mobile */
@media (max-width: 480px) {
    .page { padding: 1.5rem 1rem; }
    .page-centered { padding-top: 2rem; }
    h1 { font-size: 1.5rem; }
    .grid { gap: 0.5rem; }
    a.card, a.project { padding: 1rem; }
    a.card { min-height: 76px; }
    .card-title { font-size: 0.88rem; }
    .card-desc { font-size: 0.75rem; }
    pre { font-size: 0.72rem; padding: 0.8rem; }
    table { font-size: 0.75rem; }
    body::before { width: 300px; height: 300px; }
    body::after { width: 250px; height: 250px; }
}
@media (max-width: 480px) {
    .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 320px) {
    .grid { grid-template-columns: 1fr; }
}
