/* divyaprakash.si: founder page for Divyaprakash Jha.
   Concept: an editorial "manuscript" with a margin index, set in a serif, and an orbit motif
   (two ventures crossing one shared foundation). System fonts only, no external requests.
   Status tones are set at run time by site.js; the tone for a verified platform is "verified". */

:root {
  color-scheme: light dark;
  /* light: cool porcelain paper and blue-black ink (kept apart from the cream papers of the sibling sites) */
  --paper: #eef0f2;
  --card: #fafbfc;
  --ink: #191c23;
  --muted: #4e5461;
  --rule: #d3d7dd;
  --rule-strong: #a3a9b3;
  --accent: #a3311a;
  --accent-ink: #ffffff;
  --ge: #8a6400;
  --as: #2b4fae;
  --ind: #4e5461;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 40rem;
  --radius: 4px;

  /* status chip tones (light) */
  --t-verified-fg: #1d5a3a; --t-verified-bg: #dcefe3; --t-verified-b: #9ccbad;
  --t-beta-fg: #7a4a00;     --t-beta-bg: #f8e9c8;     --t-beta-b: #e0c27e;
  --t-demo-fg: #5a2f7a;     --t-demo-bg: #ece2f5;     --t-demo-b: #c8afdf;
  --t-building-fg: #1c4a7a; --t-building-bg: #dde8f5; --t-building-b: #a6c1e3;
  --t-planned-fg: #444851;  --t-planned-bg: #e3e6ea;  --t-planned-b: #bcc2cb;
  --t-offline-fg: #8a1f1f;  --t-offline-bg: #f6dddd;  --t-offline-b: #e0a9a9;
  --t-unknown-fg: #444851;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121317;
    --card: #1a1c22;
    --ink: #ede6d9;
    --muted: #aaa293;
    --rule: #2d2f37;
    --rule-strong: #474a55;
    --accent: #f0875e;
    --accent-ink: #121317;
    --ge: #e2b84a;
    --as: #8fb0ff;
    --ind: #aaa293;

    --t-verified-fg: #9fe0b8; --t-verified-bg: #17301f; --t-verified-b: #2f5a3d;
    --t-beta-fg: #f3cf86;     --t-beta-bg: #33270f;     --t-beta-b: #5e4a1f;
    --t-demo-fg: #d6b6f0;     --t-demo-bg: #2a1f35;     --t-demo-b: #4d3a61;
    --t-building-fg: #a9cbf2; --t-building-bg: #16253a; --t-building-b: #2c4870;
    --t-planned-fg: #cfc8ba;  --t-planned-bg: #26272c;  --t-planned-b: #45474f;
    --t-offline-fg: #f3a9a9;  --t-offline-bg: #3a1a1a;  --t-offline-b: #6a3030;
    --t-unknown-fg: #cfc8ba;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 1rem; top: -10rem; z-index: 10;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 1rem;
  padding: .6rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 1rem; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40em) { .wrap { padding-inline: 1.5rem; } }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow, .num, .meta {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.lede { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); line-height: 1.45; max-width: var(--measure); }
.small { font-size: .95rem; color: var(--muted); }

/* ---------------------------------------------------------------- masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .4rem 1.5rem; padding-block: .85rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none; font-size: 1.1rem; letter-spacing: .01em;
}
.wordmark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.mark-ring { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.mark-tilt { fill: none; stroke: var(--rule-strong); stroke-width: 1.2; }
.mark-dot { fill: var(--accent); }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1rem 1.25rem;
  font-family: var(--sans); font-size: .95rem;
}
.nav a {
  display: inline-block; color: var(--ink); text-decoration: none;
  padding-block: .4rem .3rem; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; align-items: center; }
@media (min-width: 56em) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; padding-block: 4.5rem 4rem; }
}
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 6.2vw, 5.75rem);
  line-height: .98; letter-spacing: -.025em; margin: .3em 0 .45em;
}
.hero h1 span { display: block; }
.hero h1 .surname { font-style: italic; color: var(--accent); }
.hero p { max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin-top: 1.75rem; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.3;
  padding: .75rem 1.15rem; border-radius: var(--radius); text-decoration: none;
}
.btn:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.text-link { font-family: var(--sans); font-size: 1rem; }

.orbit { margin: 0; justify-self: center; width: 100%; max-width: 26rem; }
.orbit svg { display: block; width: 100%; height: auto; }
.orbit figcaption { font-family: var(--mono); font-size: .75rem; line-height: 1.6; color: var(--muted); margin-top: .9rem; }
.legend { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; }
.sw-ge { background: var(--ge); }
.sw-as { background: var(--as); }
.sw-ind { background: var(--ind); }
.sw-core { background: transparent; border: 2px solid var(--accent); }

/* orbit art */
.ring-ge, .ring-as, .ring-ind, .ring-core, .ring-core2 { fill: none; }
.ring-ge { stroke: var(--ge); stroke-width: 1.6; }
.ring-as { stroke: var(--as); stroke-width: 1.6; }
.ring-ind { stroke: var(--ind); stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.ring-core { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.ring-core2 { stroke: var(--ink); stroke-width: 1.4; }
.core { fill: var(--accent); }
.dot-ge { fill: var(--ge); }
.dot-as { fill: var(--as); }
.dot-ind { fill: var(--ind); }
.dot-ge, .dot-as, .dot-ind { stroke: var(--paper); stroke-width: 3; }
.spin { transform-box: view-box; transform-origin: 200px 200px; }
.spin-ge { animation: spin 160s linear infinite; }
.spin-as { animation: spin 210s linear infinite reverse; }
.spin-ind { animation: spin 280s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- manuscript (margin index + body) */
.manuscript { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 3rem; }
.manuscript > * { min-width: 0; }
.index { display: none; }
@media (min-width: 60em) {
  .manuscript { grid-template-columns: 11rem minmax(0, 1fr); gap: 3.5rem; }
  .index { display: block; border-right: 1px solid var(--rule); }
  .index ol {
    position: sticky; top: 2rem; list-style: none; margin: 0; padding: 2.75rem 1rem 0 0;
    font-family: var(--sans); font-size: .92rem;
  }
  .index li + li { margin-top: .55rem; }
  .index a { color: var(--ink); text-decoration: none; display: flex; gap: .6rem; align-items: baseline; }
  .index a:hover { color: var(--accent); }
  .index .num { font-size: .7rem; }
}

.sec { padding-block: 2.75rem; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.sec:first-child { border-top: 0; }
.sec > p { max-width: var(--measure); }
/* section mark: a small orbit (ring + core) before the number, echoing the hero drawing */
.sec h2 .num { display: flex; align-items: center; gap: .6rem; color: var(--accent); margin-bottom: .6rem; }
.sec h2 .num::before {
  content: ""; flex: none; width: .95rem; height: .95rem; border-radius: 50%;
  border: 1.5px solid currentColor; background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px);
}
.sec h2 .num::after { content: ""; flex: none; width: 2.25rem; border-top: 1px solid currentColor; opacity: .55; }
.more { font-family: var(--sans); font-size: 1rem; margin: 1.5rem 0 0; }

/* ventures (home) */
.ventures { display: grid; gap: 2rem; margin-top: 1.75rem; }
@media (min-width: 46em) { .ventures { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.venture { border-top: 3px solid var(--v, var(--ind)); padding-top: 1rem; }
.venture h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.venture p { font-size: 1.05rem; }
.v-ge { --v: var(--ge); }
.v-as { --v: var(--as); }
.v-ind { --v: var(--ind); }
.kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }

/* ledger of platforms (home) */
.ledger { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: .1rem 1rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--rule);
}
.ledger .name { font-size: 1.15rem; grid-column: 1; grid-row: 1; }
.ledger .dom { grid-column: 1; grid-row: 2; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ledger .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (min-width: 46em) {
  .ledger li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 7.5rem; }
  .ledger .dom { grid-column: 2; grid-row: 1; }
  .ledger .chip { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* status chips */
.chip {
  --fg: var(--t-unknown-fg); --bg: transparent; --b: var(--rule-strong);
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .72rem; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 999px; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 1px solid var(--b);
}
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.chip[data-tone="unknown"] { border-style: dashed; }
.chip[data-tone="unknown"]::before { background: transparent; border: 1px solid currentColor; }
.chip[data-tone="verified"] { --fg: var(--t-verified-fg); --bg: var(--t-verified-bg); --b: var(--t-verified-b); }
.chip[data-tone="beta"]     { --fg: var(--t-beta-fg);     --bg: var(--t-beta-bg);     --b: var(--t-beta-b); }
.chip[data-tone="demo"]     { --fg: var(--t-demo-fg);     --bg: var(--t-demo-bg);     --b: var(--t-demo-b); }
.chip[data-tone="building"] { --fg: var(--t-building-fg); --bg: var(--t-building-bg); --b: var(--t-building-b); }
.chip[data-tone="planned"]  { --fg: var(--t-planned-fg);  --bg: var(--t-planned-bg);  --b: var(--t-planned-b); }
.chip[data-tone="offline"]  { --fg: var(--t-offline-fg);  --bg: var(--t-offline-bg);  --b: var(--t-offline-b); }

.feed { font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: var(--muted); margin: 1rem 0 0; max-width: var(--measure); }

/* approach */
.steps { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.75rem; }
@media (min-width: 46em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.steps li { border-top: 1px solid var(--ink); padding-top: .9rem; }
.steps .num { display: block; color: var(--accent); margin-bottom: .45rem; }
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: 1rem; color: var(--muted); margin: 0; }

/* contact */
.contact-card {
  margin-top: 1.5rem; padding: 1.5rem; max-width: var(--measure);
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.contact-card p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-block: 2.75rem 1.25rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.25rem); line-height: 1; letter-spacing: -.02em; margin: .35em 0 .45em; }
.page-body { padding-block: 1rem 3.5rem; }

.vhead { display: flex; align-items: center; gap: .75rem; }
.vhead::before {
  content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; flex: none;
  border: 2px solid var(--v, var(--ind)); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 10px var(--v, var(--ind));
}
.hub { font-family: var(--sans); font-size: 1rem; }

.cards {
  list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.card {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--v, var(--ind));
  border-radius: var(--radius); padding: 1.15rem 1.15rem 1rem;
}
.card h3 { margin: 0; font-size: 1.35rem; }
.card p { margin: 0; font-size: 1rem; }
.card .note { font-size: .92rem; color: var(--muted); font-style: italic; }
.card .foot {
  margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--rule);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
}
.card .foot a { font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; }

.key { display: grid; gap: .6rem; margin: 1.25rem 0 0; max-width: 46rem; }
.key div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.key dt { margin: 0; }
.key dd { margin: 0; font-size: .95rem; color: var(--muted); }

/* now page: timeline */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 1.75rem; border-left: 1px solid var(--rule-strong); max-width: 46rem; }
.timeline > li { position: relative; padding-bottom: 1.6rem; }
.timeline > li:last-child { padding-bottom: .25rem; }
.timeline > li::before {
  content: ""; position: absolute; left: calc(-1.75rem - 6px); top: .5rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
}
.timeline.build > li::before { border-color: var(--ind); }
.timeline h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.timeline p { margin: 0; font-size: 1rem; }
.item-name { font-size: 1.15rem !important; margin-bottom: .2rem !important; }
.item-desc { color: var(--muted); }

.tally { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: .75rem; margin: 1.25rem 0 0; max-width: 46rem; }
.tally div {
  display: flex; flex-direction: column-reverse; gap: .2rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .75rem .9rem;
}
.tally dt { margin: 0; }
.tally dd { margin: 0; font-size: 2rem; line-height: 1.1; }

/* 404 */
.lost { padding-block: 4rem 5rem; max-width: var(--measure); }
.lost h1 { font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem); line-height: 1.05; margin: .3em 0 .5em; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2rem 2.75rem; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 1rem 2.5rem; }
@media (min-width: 46em) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.site-foot p { margin: 0 0 .6rem; }
.site-foot a { color: var(--ink); }
.foot-nav { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* ---------------------------------------------------------------- motion and print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-ge, .spin-as, .spin-ind { animation: none; }
}
@media print {
  .masthead nav, .index, .actions, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
