/* 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 */

:root {
  /* One theme: deep navy-black + electric cyan. Change --accent to recolor the site. */
  --bg: #0a1014;
  --surface: #0f171c;
  --sunken: #131d23;
  --text: #e6f0ee;
  --muted: #9fb0ae;
  --faint: #7f9294;
  --border: #1e2b31;
  --accent: #22d3ee;   /* ← the one color to change (electric cyan) */
  --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --accent-line: color-mix(in srgb, var(--accent) 35%, var(--bg));
  --accent-ink: #041316;            /* text on a solid accent fill */
  --focus: var(--accent);
  --good: var(--accent);
  --good-soft: var(--accent-soft);

  /* The ask box */
  --console: #060b0e;
  --console-text: #e2ece9;
  --console-bright: #f1fbfd;
  --console-line: #17222a;
  --console-edge: #1c2a33;
  --console-muted: #9fb0ae;
  --console-dim: #7f9294;
  --console-chip: #0f1a20;
  --console-chip-line: #22323b;

  --shadow: rgb(2 6 8 / 0.45);
  --radius: 12px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { 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; }

/* 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; }
}
