/* Arjun Mehta: GitHub-dark, terminal green and link blue. IBM Plex Mono for headings and code, IBM Plex Sans for text.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #0E1116;
  --surface: #161B22;
  --soft: #1C222B;
  --ink: #E6EDF3;
  --muted: #9AA4AF;
  --line: #2A313A;
  --line-strong: #3A424C;
  --brand: #3FB950;
  --brand-hover: #56D364;
  --brand-ink: #0E1116;
  --brand-text: #56D364;
  --blue: #58A6FF;
  --eyebrow: #58A6FF;
  --ok: #3FB950;
  --head: "IBM Plex Mono", ui-monospace, monospace;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --btn-radius: 8px;
  --wrap: 1180px;
  --gap: 22px;
  --menu-bg: #0E1116;
  --input-bg: #0E1116;
  --est-bg: #0B2914;
  --est-ink: #E6EDF3;
  color-scheme: dark;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--brand); }
.eyebrow { letter-spacing: .04em; text-transform: none; font-family: var(--head); font-weight: 500; }
.eyebrow span { color: var(--muted); }
.btn { font-family: var(--head); font-weight: 600; font-size: .95rem; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
a { text-underline-offset: 4px; }
.w-tags span, .cs-tools span, .skills dd span { font-family: var(--head); font-size: .76rem; }

/* header */
.header { background: rgba(14,17,22,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font: 600 1.15rem var(--head); }
.logo .prompt { color: var(--brand); }
.cursor { display: inline-block; width: 9px; height: 1.1em; margin-left: 4px; background: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav a { color: var(--muted); font-family: var(--head); font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { content: "> "; color: var(--brand); }

/* hero + terminal */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; margin: 16px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-avail { margin-top: 24px; font-weight: 500; color: var(--muted); font-size: .95rem; }
.term { border-radius: var(--radius-lg); background: #010409; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(63,185,80,.25); overflow: hidden; font-family: var(--head); font-size: .9rem; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #F85149; }
.term-bar span:nth-child(2) { background: #D29922; } .term-bar span:nth-child(3) { background: #3FB950; }
.term-bar b { margin-left: auto; margin-right: auto; font-weight: 500; color: var(--muted); font-size: .8rem; }
.term-body { height: 300px; overflow-y: auto; padding: 16px 18px 4px; display: grid; align-content: start; gap: 4px; }
.term-body p { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.term-body a { color: var(--blue); }
.t-g { color: var(--brand); } .t-b { color: var(--blue); } .t-dim { color: #6E7681; } .t-y { color: #D29922; }
.term-in { display: flex; align-items: center; gap: 8px; padding: 6px 18px 14px; }
.term-in label { white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; caret-color: var(--brand); padding: 6px 0; }
.term-in input:focus { outline: none; }
.term:focus-within { border-color: var(--brand); }
.term-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.term-chips button { min-height: 36px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 500 .82rem var(--head); cursor: pointer; }
.term-chips button:hover { color: var(--brand); border-color: var(--brand); }

.stack-strip { border-block: 1px solid var(--line); background: var(--surface); }
.stack-strip p { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding-block: 18px; font: 500 .9rem var(--head); color: var(--muted); }
.stack-strip span::before { content: "▸ "; color: var(--brand); }

/* cards */
.w-cover { border-color: var(--line-strong); }
.w-card:hover h3 { color: var(--brand); }
.numbers-band { background: var(--surface); border-block: 1px solid var(--line); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } }
.numbers div { display: grid; gap: 6px; }
.numbers b { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--head); color: var(--brand); }
.numbers span { color: var(--muted); }

/* stack page */
.contrib-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.contrib-head h2 { font-size: 1.15rem; }
.contrib-scroll { overflow-x: auto; padding-bottom: 6px; }
.contrib-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; gap: 3px; width: max-content; }
.contrib-grid i, .contrib-legend i { display: block; width: 12px; height: 12px; border-radius: 3px; }
.c0 { background: #161B22; outline: 1px solid #21262D; } .c1 { background: #0E4429; } .c2 { background: #006D32; } .c3 { background: #26A641; } .c4 { background: #39D353; }
.contrib-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.contrib-legend span { margin-inline: 4px; }
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.bars { list-style: none; display: grid; gap: 14px; }
.bars p { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .95rem; }
.bars p span { color: var(--muted); font-family: var(--head); font-size: .82rem; }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--blue)); }
.repos { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.repos a { display: grid; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; }
.repos a:hover { border-color: var(--brand); }
.repos b { font-family: var(--head); color: var(--blue); }
.repos span { color: var(--muted); font-size: .94rem; }
.repos small { display: flex; align-items: center; gap: 6px; margin-top: auto; color: var(--muted); font-family: var(--head); }
.repos small i { width: 10px; height: 10px; border-radius: 50%; background: #3178C6; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.uses div { padding: 18px; background: var(--surface); }
.uses dt { font: 500 .78rem var(--head); color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.uses dd { margin: 6px 0 0; }

/* inner pages */
.page-head { border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.crumbs a { color: var(--muted); }
.cs-quote { border-left-color: var(--brand); }
.svc { border-color: var(--line-strong); }
.svc-from b { color: var(--brand); }
.process-band { background: var(--surface); border-block: 1px solid var(--line); }
.clients li { font-family: var(--head); font-weight: 500; }
.est-out .btn-primary { background: var(--brand); color: var(--brand-ink); }

/* CTA + footer */
.cta-band { padding-block: clamp(56px, 8vw, 104px); text-align: center; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, rgba(63,185,80,.14), transparent 70%); }
.cta-cmd { font-family: var(--head); color: var(--brand); margin-bottom: 12px; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-band p:not(.cta-cmd) { color: var(--muted); margin: 12px auto 0; max-width: 50ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.f-cmd { font-family: var(--head); font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--ink); margin-bottom: 40px; }
.f-cmd span { color: var(--brand); }
.footer .logo { color: var(--ink); }
.footer h2 { color: var(--ink); font-family: var(--head); }
.f-about { margin-top: 10px; max-width: 34ch; }
.footer .credit a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
