/* Hallmark · checked: 2026-11-26 · genre: editorial (inferred)
 * floor: 0 FAIL · fixed: 13 (7a, 19, 20, 26a, 34, 40, 47a, 48, 50, 62, 63, 67, 76) · reflex fixed: 24b, 26b, 38iii, 64 · structural: printed (9, 42, 58, 59, 78)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 47b · one frame, the working ask box inside · the console answers real questions from this site's own projects and notes */
/* Hallmark · dismissed 46a · "25% faster" is Adarsh's own figure from his résumé (Monday.com reporting at Dossani Paradise) */
/* Hallmark · answered F7 · the cards are one family on purpose: now, roles, projects and roadmap share a surface so the page reads as one notebook */
/* Hallmark · dropped nav-resume · now rendered inside #nav-extra so build.mjs can bake it; the same résumé link, shown when resumeUrl is set */
/* Hallmark · dropped photo · now rendered inside #photo-slot so build.mjs can bake it; the same profile image with its alt text */

/* Colors follow the visitor's system appearance (iOS / macOS / Android light or dark mode). */
:root {
  /* Light: cool white + indigo. Change --accent to recolor the site. */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --sunken: #eff1f8;
  --text: #0f1530;
  --muted: #4a5172;
  --faint: #5c6383;
  --border: #e0e4f0;
  --accent: #4338ca;        /* indigo: 7.6:1 on white */
  --accent-soft: #eceafd;
  --accent-line: #c4c0f4;
  --accent-ink: #ffffff;    /* text on a solid accent fill */
  --glow: #8b8ff8;          /* background glow + effects */
  --focus: var(--accent);
  --good: var(--accent);
  --good-soft: var(--accent-soft);
  --card-shadow: 0 1px 2px rgb(20 24 70 / .04);

  /* The ask box: the one deep-indigo surface, in both modes */
  --console: #15193a; --console-text: #dfe2ff; --console-bright: #ffffff; --console-line: #262b55;
  --console-edge: #2c3263; --console-muted: #a7acda; --console-dim: #8d93c4;
  --console-chip: #1d2250; --console-chip-line: #353b70;
  --console-glow: 0 40px 80px -40px rgb(30 30 110 / .55), 0 0 0 6px rgb(67 56 202 / .07);

  --shadow: rgb(20 24 70 / .12);
  --radius: 10px;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: deep navy + soft indigo */
    --bg: #0b0e1d;
    --surface: #131731;
    --sunken: #181d3b;
    --text: #e8eaff;
    --muted: #a9aed3;
    --faint: #9097bf;
    --border: #252a4b;
    --accent: #a5a8ff;      /* 8.6:1 on the dark background */
    --accent-soft: #1f2452;
    --accent-line: #3e4486;
    --accent-ink: #0f1530;
    --glow: #5b5ff0;
    --card-shadow: none;
    --console: #10142e; --console-line: #232850; --console-edge: #343a72;
    --console-chip: #191e46; --console-chip-line: #353b70;
    --console-glow: 0 40px 80px -40px rgb(0 0 0 / .8), 0 0 0 6px rgb(165 168 255 / .06);
    --shadow: rgb(0 0 0 / .45);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: var(--border) var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
time, .metric dd, .rm-status { font-variant-numeric: tabular-nums; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
:empty:is(#about-personal, #nav-extra, #photo-slot) { display: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Focus: instant, visible on every interactive element */
:where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* Pressed and disabled */
:where(.btn, .filter, .run, .suggestions button, .log-more):active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* BACKGROUND: a soft glow that eases toward the cursor (script.js, mouse only).
   Without JS, on touch, or with reduced motion it rests as a static glow behind the hero. */
.bg-fx {
  --x: 72vw; --y: 180px; --fx-on: 1;
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
/* the glow */
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px circle at var(--x) var(--y),
    color-mix(in srgb, var(--glow) 13%, transparent),
    color-mix(in srgb, var(--glow) 4%, transparent) 45%,
    transparent 70%);
  opacity: var(--fx-on); transition: opacity .6s ease;
}

/* CARD SPOTLIGHT: the edge of each card nearest the cursor picks up the accent.
   script.js sets --mx/--my per card (pointer:fine only); otherwise nothing shows. */
:where(.console, .now-item, .role, .eval, .play, .roadmap li, .kv) { position: relative; }
:where(.console, .now-item, .role, .eval, .play, .roadmap li, .kv)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px),
    color-mix(in srgb, var(--accent) 75%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--spot-on, 0); transition: opacity .4s ease;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.repo { text-decoration: none; font-size: .9rem; font-weight: 600; font-family: var(--font-mono); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.intro-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px -8px var(--shadow);
}
.pill {
  font-size: .8rem; padding: 4px 12px; border-radius: 999px;
  color: var(--good); background: var(--good-soft); font-weight: 500;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.headline { color: var(--accent); font-size: 1rem; font-weight: 500; margin-top: 12px; }
.tagline { font-size: 1.12rem; color: var(--muted); margin-top: 16px; max-width: 520px; }
.links { margin-top: 28px; }

/* ASK BOX: the one monospace surface, because it is a real input console */
.console {
  background: var(--console); color: var(--console-text); border-radius: 14px;
  border: 1px solid var(--console-edge); overflow: hidden;
  font-family: var(--font-mono);
}
.console-bar { padding: 8px 16px; font-size: .78rem; color: var(--console-muted); border-bottom: 1px solid var(--console-line); }
.console-input { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.prompt { color: var(--accent); font-weight: 600; }
.console-input input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--console-bright);
  font: inherit; font-size: .92rem;
}
.console-input input::placeholder { color: var(--console-dim); }
.run {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 4px 12px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 12px; }
.suggestions button {
  background: var(--console-chip); color: var(--console-muted); border: 1px solid var(--console-chip-line); border-radius: 999px;
  font: inherit; font-size: .76rem; padding: 4px 12px; cursor: pointer;
}
.suggestions button:hover { border-color: var(--accent); color: var(--console-bright); }
.console-out {
  min-height: 152px; max-height: 300px; overflow-y: auto;
  padding: 16px; border-top: 1px solid var(--console-line); font-size: .84rem; line-height: 1.7;
  white-space: pre-wrap;
}
.console-out .q { color: var(--console-muted); }
.console-out .meta { color: var(--console-dim); font-size: .78rem; }
.console-out .cursor { display: inline-block; width: 8px; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-out .refs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; white-space: normal; }
.console-out .refs a {
  color: var(--accent); text-decoration: none; border: 1px solid var(--accent-line); border-radius: 8px;
  padding: 2px 8px; font-size: .78rem;
}
.console-out .refs a:hover { background: var(--accent-soft); }
.console-note { font-family: var(--font-body); font-size: .78rem; color: var(--console-dim); padding: 12px 16px; border-top: 1px solid var(--console-line); }

/* PAGE LAYOUT */
.card-layout { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.toc {
  position: sticky; top: 88px; align-self: start;
  display: flex; flex-direction: column; gap: 4px; font-size: .85rem;
}
.toc-title { color: var(--faint); margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); padding: 4px 12px; border-left: 2px solid var(--border); }
.toc a:hover, .toc a.active { color: var(--accent); border-left-color: var(--accent); }

.section { padding: 44px 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: 0; padding-top: 8px; }
.section h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 24px; }
.section h2:has(+ .sub) { margin-bottom: 4px; }
.sub { font-size: .9rem; color: var(--faint); margin-bottom: 24px; }
.sub a { color: var(--accent); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 680px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; padding: 4px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* NOW */
.now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.now-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.now-item .k { font-size: .85rem; font-weight: 600; color: var(--accent); }
.now-item p { margin-top: 4px; font-size: .95rem; }

/* ABOUT */
.group-title { font-size: .95rem; font-weight: 600; color: var(--muted); margin: 8px 0 12px; }
.group-title .count { color: var(--faint); font-weight: 500; margin-left: 4px; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.role { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.role h4 { font-size: .96rem; margin-bottom: 4px; }
.role p { color: var(--muted); font-size: .88rem; }
.background { margin-top: 24px; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kv dt, .kv dd { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .93rem; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.kv dt { background: var(--sunken); color: var(--muted); font-size: .85rem; font-weight: 500; }

/* SKILLS */
.skills { display: grid; gap: 16px; }
.skill-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: start; }
.skill-row .k { font-size: .85rem; font-weight: 500; color: var(--muted); padding-top: 4px; }

/* FILTERS */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 4px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .82rem;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* PROJECTS */
.evals { display: grid; gap: 16px; }
.evals .group-title:not(:first-child) { margin-top: 16px; }
.eval {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.eval.no-img { grid-template-columns: minmax(0, 1fr); }
.eval:hover { border-color: var(--accent-line); }
.eval.flash { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.eval-img { width: 100%; height: 100%; min-height: 168px; object-fit: cover; background: var(--sunken); display: block; }
.eval-body { padding: 20px 24px; }
.eval-id { font-size: .82rem; color: var(--faint); display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.badge { padding: 0 8px; border-radius: 4px; font-size: .78rem; font-weight: 500; }
.badge-planned { background: var(--sunken); color: var(--muted); border: 1px dashed var(--border); }
.badge-in-progress { background: var(--accent-soft); color: var(--accent); }
.eval h3 { font-size: 1.15rem; margin-bottom: 4px; }
.eval p { color: var(--muted); font-size: .93rem; }
.metrics { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.metric { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; background: var(--sunken); display: flex; flex-direction: column-reverse; }
.metric dd { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--good); }
.metric dt { font-size: .78rem; color: var(--muted); }
.eval ul { margin: 12px 0 12px 20px; color: var(--muted); font-size: .9rem; }
.eval .chips { margin-top: 12px; }
.eval-links { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.eval-links a { font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.eval-links a:hover { text-decoration: underline; }

/* PLAYGROUND */
.play-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.play { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.play[href]:hover { transform: translateY(-4px); border-color: var(--accent); }
.play-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.play-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.play-body time { font-size: .82rem; color: var(--faint); }
.play-desc { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.play-empty { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; color: var(--muted); text-align: center; }
.play-empty a { color: var(--accent); }

/* NOTES */
.log { list-style: none; border-left: 2px solid var(--border); margin-left: 4px; }
.log li { position: relative; padding: 0 0 20px 24px; }
.log li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.log li:has(.log-more)::before { display: none; }
.log .when { font-size: .82rem; color: var(--faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.log .tag { font-size: .78rem; padding: 0 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.log .tag-project { background: var(--good-soft); color: var(--good); }
.log p + p { font-size: .94rem; margin-top: 4px; }
.log-more { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; font-size: .85rem; }
.log-more:hover { color: var(--text); }

/* EXPERIENCE */
.changelog { list-style: none; }
.changelog li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.changelog li:last-child { border-bottom: 0; }
.ver { font-size: .85rem; color: var(--faint); padding-top: 4px; }
.changelog h3 { font-size: 1.02rem; }
.changelog .org { color: var(--accent); font-weight: 500; font-size: .92rem; }
.changelog p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.changelog .org + p { margin-top: 4px; }

/* ROADMAP */
.roadmap { list-style: none; display: grid; gap: 12px; }
.roadmap li { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.rm-status { font-variant-numeric: tabular-nums; font-size: .8rem; padding: 0 8px; border-radius: 4px; white-space: nowrap; background: var(--sunken); color: var(--muted); border: 1px dashed var(--border); }
.rm-in-progress { background: var(--accent-soft); color: var(--accent); border-style: solid; border-color: transparent; }
.rm-done { background: var(--good-soft); color: var(--good); border-style: solid; border-color: transparent; }
.roadmap li:has(.rm-done) .rm-item { text-decoration: line-through; color: var(--faint); }

/* CONTACT */
.contact p { color: var(--muted); max-width: 560px; font-size: 1.05rem; margin-bottom: 20px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap; transition: transform .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--border); background: transparent; color: var(--text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.footer { padding: 28px 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .card-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .eval { grid-template-columns: minmax(0, 1fr); }
  .eval-img { min-height: 160px; max-height: 200px; }
}
@media (max-width: 560px) {
  .now, .kv, .skill-row { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 4px; }
  .changelog li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nav-links { gap: 16px; }
  .nav-links a:not([href="#contact"]):not([href="#projects"]) { display: none; }
  .avatar { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .console-out .cursor { animation: none; }
  .btn, .play, .eval { transition: none; }
  :where(.btn, .filter, .run, .suggestions button, .log-more):active, .play[href]:hover { transform: none; }
}

/* ================= LAYOUT: console-first hero (was variant B) =================
   Short centered intro, then the ask box as the centerpiece: visitors can try the
   retrieval engine right away. The rest of the page stays calm. */
.repo { font-weight: 600; }

/* HERO: centered intro, then the console as the centerpiece */
.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 40px; padding-top: 64px; padding-bottom: 80px; }
.hero-left { display: flex; flex-direction: column; align-items: center; max-width: 680px; }
.intro-row { justify-content: center; }
.avatar { width: 72px; height: 72px; box-shadow: 0 0 0 2px var(--accent-line), 0 8px 24px -10px var(--shadow); }
.pill { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; }
.headline { color: var(--accent); font-weight: 500; font-size: 1.05rem; }
.tagline { margin-inline: auto; max-width: 36em; font-size: 1.1rem; text-wrap: balance; }
.links { justify-content: center; }

.console {
  width: min(880px, 100%); text-align: left; border-radius: 16px;
  border: 1px solid var(--console-edge);
  box-shadow: var(--console-glow);
}
.console-bar { font-size: .8rem; padding: 10px 20px; }
.console-input { padding: 22px 20px 10px; }
.console-input input { font-size: 1.15rem; }
.prompt { color: #a5a8ff; font-size: 1.15rem; }
.run { background: #6366f1; color: #fff; padding: 8px 16px; font-size: .85rem; border-radius: 8px; }
.suggestions { padding: 8px 20px 16px; }
.suggestions button { font-size: .8rem; padding: 6px 12px; }
.suggestions button:hover { border-color: #8b8ff8; }
.console-out { min-height: 180px; padding: 20px; font-size: .9rem; }
.console-out .cursor { background: #a5a8ff; }
.console-out .refs a { color: #c7c9ff; border-color: #3b4180; }
.console-out .refs a:hover { background: #222858; }
.console-note { padding: 12px 20px; }

/* BUTTONS */
.btn { border-radius: 10px; }
.btn-ghost { background: var(--surface); }

/* SECTIONS: quiet. Headings carry the weight, no extra decoration */
.section { border-top-color: var(--border); }
.section h2 { font-size: 1.7rem; font-weight: 650; letter-spacing: -.035em; }
.now-item, .role, .eval, .play, .roadmap li, .kv { box-shadow: var(--card-shadow); }
.now-item .k { color: var(--accent); }
.eval h3 { font-weight: 650; letter-spacing: -.02em; font-size: 1.2rem; }
.metric dd { color: var(--accent); }
.filter.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contact h2 { font-size: 2.2rem; }

@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .console-input input, .prompt { font-size: 1rem; }
}
