/* Rovin Singh — shared styles (light, card-based) */
:root {
    --ink: #0f172a;
    --body: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --accent-soft: #f0fdfa;
    --link: #1d4ed8;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04);
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --heading: "Sora", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -.02em; }
.brand, .venture b, .topic b, .journey .yr, .notfound .code { font-family: var(--heading); }
p { margin: 0; }
em, i, cite, address, dfn, var { font-style: normal; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 940px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 8px 12px; background: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(248, 250, 252, .9); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--body); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: #eef2f6; }
@media (max-width: 680px) {
    .nav .wrap { gap: 8px; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 480px) { .brand-name { display: none; } }

/* Buttons, chips, tags */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
.chip svg { width: 14px; height: 14px; color: var(--accent); }

/* Cards & sections */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding-top: 48px; }
.section > h2, .sec-head h2 { font-size: 20px; margin-bottom: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-head a { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }

/* Profile hero */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-top: 8px; padding: 36px; }
.profile .photo { width: 156px; height: 156px; border-radius: 18px; object-fit: cover; }
.profile h1 { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 4px; }
.profile .sub { font-size: 16px; }
.profile .chips { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.socials { display: flex; gap: 4px; margin-left: 4px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.socials a:hover { color: var(--ink); background: #eef2f6; }
.socials svg { width: 18px; height: 18px; }

/* Ventures */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.venture { display: flex; gap: 14px; align-items: flex-start; padding: 20px; text-decoration: none; color: inherit; transition: border-color .15s; }
a.venture:hover { border-color: #cbd5e1; }
.logo { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.venture b { display: block; color: var(--ink); font-weight: 600; }
.venture small { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.venture p { margin-top: 4px; font-size: 14px; }
.venture .ext { margin-left: auto; color: var(--muted); font-size: 14px; }
.venture .ext-li { flex: 0 0 auto; color: #0a66c2; }
.venture .ext-li svg { width: 18px; height: 18px; display: block; }

/* About + facts */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.about .text { padding: 24px; display: grid; gap: 14px; }
.about .text strong { color: var(--ink); font-weight: 600; }
.facts { padding: 6px 22px; }
.fact { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .ico { flex: 0 0 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fact .ico svg { width: 17px; height: 17px; }
.fact b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.fact span { font-size: 13.5px; color: var(--muted); }

/* Journey */
.journey { padding: 8px 24px; }
.journey ol { list-style: none; margin: 0; padding: 0; }
.journey li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.journey li:last-child { border-bottom: 0; }
.journey .yr { color: var(--ink); font-weight: 700; }
.journey li.now .yr { color: var(--accent); }

/* Topics */
.topic { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.topic b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: -6px; }
.topic p { font-size: 14px; }
.topic .chips { gap: 6px; }
.topic .chip { padding: 3px 9px; font-size: 12.5px; }
.topic .more { margin-top: auto; padding-top: 4px; color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }
.topic .more:hover { text-decoration: underline; }

/* Article teaser */
.post { display: flex; gap: 20px; align-items: center; padding: 22px 24px; text-decoration: none; color: inherit; transition: border-color .15s; }
.post > div { flex: 1; }
.post:hover { border-color: #cbd5e1; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.post .meta { font-size: 13px; color: var(--muted); }
.post h3 { font-size: 18px; margin: 4px 0 6px; color: var(--link); }
.post p { font-size: 14.5px; }
.post .arrow { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--link); }
.post .arrow svg { width: 18px; height: 18px; }

/* Contact */
.contact { padding: 28px; }
.contact blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 18px; line-height: 1.5; }
.contact cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 56px; padding: 24px 0 36px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Article ---------- */
.article-head { margin-top: 8px; padding: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-head .tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.22; letter-spacing: -.03em; }
.deck { margin-top: 14px; font-size: 1.08rem; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline .role { font-size: 13.5px; color: var(--accent); font-weight: 500; }
.byline .meta { font-size: 13px; color: var(--muted); }

.sheet { margin-top: 14px; padding: clamp(22px, 5vw, 44px); }
.content { font-size: 1.05rem; line-height: 1.8; }
.content > * + * { margin-top: 1.15rem; }
.content strong, .content em { color: var(--ink); }
.content strong { font-weight: 600; }
.content h2 { font-size: clamp(1.3rem, 2.8vw, 1.55rem); margin-top: 2.4rem; }
.content h3 { font-size: 1.12rem; margin-top: 1.8rem; }
.content h2[id] { scroll-margin-top: 36px; }
.lead { padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.content blockquote { margin: 1.6rem 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.content blockquote p { color: var(--ink); font-size: 1.15rem; line-height: 1.5; }
.glance { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.glance h2 { margin: 0 !important; padding: 12px 18px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 12.5px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.glance dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.glance dt, .glance dd { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.glance dt { color: var(--ink); font-weight: 600; white-space: nowrap; }
.glance dl > :nth-last-child(-n+2) { border-bottom: 0; }
.toc { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.toc summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 15px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.career-note { padding: 20px 22px; border: 1px solid #99f6e4; border-radius: 12px; background: var(--accent-soft); }
.career-note .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.career-note h2 { margin: 6px 0 8px !important; font-size: 1.2rem !important; }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lesson { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.lesson .n { color: var(--accent); font-size: 13px; font-weight: 700; }
.lesson h4 { font-size: 15.5px; margin: 4px 0; }
.lesson p { font-size: 14.5px; line-height: 1.6; }
.faq details { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 600; line-height: 1.5; }
.faq details p { margin-top: 6px; font-size: 15px; }

.after { margin-top: 24px; display: grid; gap: 18px; }
.tags h3, .share > span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tags h3 { margin-bottom: 10px; }
.tags div { display: flex; flex-wrap: wrap; gap: 8px; }
.tags div span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share > span { margin-right: 4px; }
.share a, .share button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: #cbd5e1; }
.note { display: flex; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14.5px; }
.note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.note strong { color: var(--ink); }
.author { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px; }
.author img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; }
.author .kick { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author h3 { font-size: 18px; margin: 2px 0; }
.author .role { color: var(--accent); font-size: 14px; font-weight: 600; }
.author .bio { margin-top: 6px; font-size: 14.5px; }
.author .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.author .links a { text-decoration: none; }
.author .links a:hover { text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.back svg { width: 17px; height: 17px; }

/* ---------- 404 ---------- */
.notfound { margin-top: 8px; padding: 48px 28px; text-align: center; }
.notfound .code { font-size: clamp(4rem, 16vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.notfound h1 { margin-top: 10px; font-size: 26px; }
.notfound p { max-width: 42ch; margin: 8px auto 0; }
.notfound .actions { justify-content: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .about { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .profile { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .profile .photo { width: 96px; height: 96px; border-radius: 16px; }
    .profile h1 { font-size: 26px; }
    .grid-2, .grid-3, .lessons { grid-template-columns: 1fr; }
    .post { padding: 18px 20px; }
    .post { gap: 14px; }
    .post .arrow { flex-basis: 34px; height: 34px; }
    .contact { padding: 22px; }
    .about .text, .journey { padding-left: 20px; padding-right: 20px; }
    .article-head { padding: 22px; }
    .narrow, .wrap { padding: 0 16px; }
    .glance dl { grid-template-columns: 1fr; }
    .glance dt { padding-bottom: 0; border-bottom: 0; }
    .glance dd { padding-top: 2px; }
    .author { grid-template-columns: 1fr; }
    .author img { width: 72px; height: 72px; }
    .site-footer nav a, .author .links a, .toc ol a { display: inline-block; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
