/* chandann.in shared theme v1: readable text font + light/dark toggle. Remove the two theme-v1 lines in a page's <head> to undo. */

.hero-desc{font-size:17px;line-height:1.75}.about-text p{font-size:16.5px;line-height:1.8}.project-desc,.card-desc{font-size:14px;line-height:1.65}
.theme-toggle{background:none;border:1px solid var(--border-hover);color:var(--text-muted);width:34px;height:34px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1;margin-left:14px;flex-shrink:0;transition:color .2s,border-color .2s}
.theme-toggle:hover{color:var(--accent);border-color:var(--accent)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* proof strip (homepage) */
.proof{padding:0 48px;position:relative;z-index:2;margin-top:-36px}
.proof-inner{max-width:1100px;margin:0 auto;display:flex;flex-wrap:wrap;gap:10px 28px;align-items:center;justify-content:space-between;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 24px}
.proof-items{display:flex;flex-wrap:wrap;gap:8px 26px;font-size:12px;letter-spacing:.04em;color:var(--text-muted)}
.proof-items b{color:var(--text);font-weight:500}
.proof-cta{display:flex;gap:10px;flex-wrap:wrap}
.proof-cta a{font-size:11px;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;padding:9px 16px;border-radius:var(--radius);border:1px solid var(--accent);color:var(--accent)}
.proof-cta a.solid{background:var(--accent);color:var(--bg)}
.card-img{display:block;width:calc(100% + 56px);margin:-28px -28px 20px;height:170px;object-fit:cover;border-bottom:1px solid var(--border)}
@media(max-width:900px){.proof{padding:0 24px}.card-img{width:calc(100% + 56px)}}
/* ---------- light theme ---------- */
html[data-theme="light"]{color-scheme:light;
--bg:#faf8f5;--bg2:#f2eee7;--bg3:#ebe5da;--bg4:#e3dccd;
--border:rgba(30,25,15,.12);--border-hover:rgba(30,25,15,.28);
--text:#1d1a16;--text-muted:#57514a;--text-dim:#8a8378;
--accent:#c2571a;--accent2:#a34612;--accent-glow:rgba(194,87,26,.1);
--purple:#5b4fb0;--purple-dim:rgba(91,79,176,.1);--green:#2f7d4f;--green-dim:rgba(47,125,79,.1);
--blue:#1f6fb0;--blue-dim:rgba(31,111,176,.1);--red:#b04040;--red-dim:rgba(176,64,64,.1);--yellow:#8a6d10;--yellow-dim:rgba(138,109,16,.12)}
html[data-theme="light"] body::before{opacity:.12}
html[data-theme="light"] nav{background:rgba(250,248,245,.9)}
html[data-theme="light"] .mobile-menu{background:rgba(250,248,245,.98)}
html[data-theme="light"] .grid-bg{background-image:linear-gradient(rgba(0,0,0,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.04) 1px,transparent 1px)}
html[data-theme="light"] .fact-row:hover,html[data-theme="light"] .btn-secondary:hover{background:rgba(0,0,0,.04)}
html[data-theme="light"] .prose,html[data-theme="light"] .faq-a,html[data-theme="light"] .insight-text,html[data-theme="light"] .step-desc,html[data-theme="light"] .result-body,html[data-theme="light"] .src-list{color:#3b362f}
html[data-theme="light"] .toc a{color:var(--text-muted)}
/* the hero image card stays dark in both themes */
.hero-card{background:#0f0e0d}
.hero-card-overlay{background:linear-gradient(transparent,rgba(10,10,10,.95))}
html[data-theme="light"] .hero-card-overlay .stat-num,html[data-theme="light"] .hero-card-overlay .stat-label{color:#f0ede8}
html[data-theme="light"] .hero-card-overlay .stat-label{color:#a8a39b}
html[data-theme="light"] .code-block,html[data-theme="light"] .code-body{background:#1c1a17;color:#ede8df}
html[data-theme="light"] .project-hero .hero-glow{opacity:.5}
@media(max-width:900px){.theme-toggle{margin-left:auto;margin-right:12px}}

/* hero-3d v1 */
.hero-card.hero-3d{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;aspect-ratio:auto!important;height:auto!important;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}
.hero-card.hero-3d::before{content:'';position:absolute;left:6%;right:6%;top:6%;bottom:22%;background:radial-gradient(closest-side,rgba(232,124,58,.30),transparent 72%);filter:blur(14px);z-index:0;pointer-events:none}
.hero-card.hero-3d::after{content:'';position:absolute;left:18%;right:18%;bottom:15%;height:7%;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent 75%);z-index:0;pointer-events:none}
.hero-card.hero-3d img{position:relative;z-index:1;width:auto!important;height:auto!important;max-width:100%;max-height:min(540px,62vh);object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 22px 26px rgba(0,0,0,.45))}
.hero-card.hero-3d .hero-card-overlay{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;background:none!important;padding:1rem 0 0!important;margin-top:.5rem;z-index:2;width:100%}
html[data-theme="light"] .hero-card.hero-3d::before{background:radial-gradient(closest-side,rgba(232,124,58,.20),transparent 72%)}
html[data-theme="light"] .hero-card.hero-3d::after{background:radial-gradient(closest-side,rgba(40,30,20,.30),transparent 75%)}
html[data-theme="light"] .hero-card.hero-3d img{filter:drop-shadow(0 20px 22px rgba(60,40,20,.30))}

/* hero-3d stats v1 */
html[data-theme="light"] .hero-card.hero-3d .stat-num{color:#1b1b1f!important}
html[data-theme="light"] .hero-card.hero-3d .stat-num[style]{color:var(--accent)!important}
html[data-theme="light"] .hero-card.hero-3d .stat-label{color:#55555c!important}

/* layout fixes v1 */
@media(min-width:901px){
nav .nav-links{position:absolute!important;left:50%;top:50%;transform:translate(-50%,-50%);margin:0!important}
nav .nav-logo{margin-right:auto}
nav .nav-cta{margin-left:auto}
nav .theme-toggle{margin-left:14px}
}
.content-wrap{max-width:876px!important}
.byline{margin:28px 0 32px!important}
.stat-num{font-weight:700!important;letter-spacing:-.02em!important;font-variant-numeric:lining-nums tabular-nums;white-space:normal;text-wrap:balance;line-height:1.15}
.stat-card .stat-num{font-size:26px!important}

/* light bars v1 */
html[data-theme="light"] .controls-bar{background:rgba(250,248,244,.95)!important;border-color:rgba(30,25,15,.12)!important}

/* toggle v2 */
.theme-toggle{width:40px!important;height:40px!important;font-size:0!important;line-height:0!important;border-radius:50%!important;background-repeat:no-repeat!important;background-position:center!important;background-size:20px 20px!important;cursor:pointer;transition:border-color .2s,background-color .2s,transform .2s}
.theme-toggle:hover{border-color:var(--accent)!important;transform:rotate(12deg)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-theme="dark"] .theme-toggle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e4dc' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E")!important}
html[data-theme="light"] .theme-toggle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2622' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E")!important}

/* one font system v1: Syne headings, DM Mono text, no mixing inside a paragraph */
.post-body,.post-body p,.post-body li,.post-body td,.post-body th,.post-body div,.post-subtitle,.post-body .insight-text,.post-body .faq-a,.post-body .faq-q{font-family:'DM Mono',monospace}
.post-body h2,.post-body h3,.post-body .stat-num,.post-body .insight-title{font-family:'Syne',sans-serif}
p em,li em,td em,.faq-a em,.post-body em,.post-body i,.post-subtitle em{font-family:inherit!important}
p a,li a,td a,.faq-a a,.post-body a,p code,li code,p strong,li strong,p b,li b{font-family:inherit!important}
body.covid,.covid-page{font-family:'DM Mono',monospace}

/* one font system v1b */
.prose,.prose p,.prose li,.prose a,.prose em,.prose code,.faq-a,.faq-a *,main li,section li,.post-body li{font-family:'DM Mono',monospace}
strong,b{font-family:inherit!important}

/* one font system v1c */
.post-body li,.post-body ul li,.post-body ol li,.prose li,main ul li,main ol li{font-family:'DM Mono',monospace!important}
