/* ============================================================
   faheemakhtar.com — shared stylesheet
   Modern & clean · JetBrains Mono throughout · subtle geek touches
   Black & white · no gradients
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0f0f0f;
  --ink-soft: #6b6b6b;
  --line: rgba(15, 15, 15, 0.12);
  --hair: rgba(15, 15, 15, 0.07);
  --paper: #fafafa;
  --radius: 12px;
  --maxw: 1080px;

  --font: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 15, 15, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- mono label:  // text  (geek touch) ---------- */
.label {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: lowercase;
  color: var(--ink-soft);
}
.label::before { content: "// "; color: var(--ink); }

/* blinking cursor (geek touch) */
.blink {
  display: inline-block; width: 8px; height: 1.05em;
  background: currentColor; transform: translateY(2px); margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ============================================================
   HEADER  (rendered by <site-header>)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .brand { font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; }
.site-header nav.links { display: flex; gap: 4px; align-items: center; }
.site-header nav.links a {
  font-size: 0.84rem; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.site-header nav.links a:hover { color: var(--ink); background: var(--paper); }
.site-header nav.links a.cta {
  color: var(--bg); background: var(--ink);
}
.site-header nav.links a.cta:hover { color: var(--bg); background: #2b2b2b; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font);
  font-size: 0.86rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #2b2b2b; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ============================================================
   SHARED CARD
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(15,15,15,0.22); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--hair); }
.section-head { margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; margin-top: 10px; }
.section-head p { color: var(--ink-soft); max-width: 60ch; margin-top: 8px; }

/* ---------- HERO ---------- */
.hero { padding: 110px 0 96px; text-align: center; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  margin: 16px 0 22px;
}
.hero .lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; margin: 0 auto; }
.hero .type-line {
  font-size: 0.95rem; color: var(--ink-soft);
  margin: 26px auto 0; display: inline-flex; align-items: center;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.hero .type-line .prompt { color: var(--ink); font-weight: 700; margin-right: 9px; }
.hero .tags { color: var(--ink-soft); font-size: 0.86rem; margin: 24px 0 0; }
.hero .tags span { color: var(--ink); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.about-grid p strong { color: var(--ink); font-weight: 600; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.88rem; }
.spec .srow { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--hair); }
.spec .srow:last-child { border-bottom: 0; }
.spec .srow .k { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.74rem; padding-top: 2px; }
.spec .srow .v { color: var(--ink); }

/* ---------- MODULES (services) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module { padding: 28px 26px; }
.module .mnum { font-size: 0.78rem; color: var(--ink-soft); }
.module h3 { font-size: 1.12rem; font-weight: 700; margin: 12px 0 10px; }
.module p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- TOOLS ---------- */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool { display: flex; gap: 16px; padding: 26px; align-items: flex-start; }
.tool .ico { font-size: 1.6rem; line-height: 1; }
.tool h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.tool p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 12px; }
.tool .open { font-size: 0.82rem; color: var(--ink); font-weight: 500; }

/* ---------- CONTACT ---------- */
.contact-prompt {
  font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px;
  display: inline-flex; align-items: center; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.contact-prompt .prompt { color: var(--ink); font-weight: 700; margin-right: 9px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.socials a {
  font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.socials a:hover { background: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.socials a svg { width: 16px; height: 16px; }

/* ============================================================
   FOOTER  (rendered by <site-footer>) — light & minimal
   ============================================================ */
.site-footer { border-top: 1px solid var(--hair); color: var(--ink-soft); font-size: 0.8rem; }
.site-footer .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; }
.site-footer .seg { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .pill { border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--ink); }
.site-footer a:hover { color: var(--ink); }

/* ============================================================
   PROSE  (article / tool pages)
   ============================================================ */
.crumb { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

.page-hero { padding: 64px 0 36px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 16px; max-width: 22ch; }
.page-hero .lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 64ch; }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.feature { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.feature .check { font-weight: 700; }

.layout { display: grid; grid-template-columns: 1fr 220px; gap: 56px; align-items: start; padding: 30px 0 90px; }
.toc { position: sticky; top: 84px; font-size: 0.82rem; }
.toc .toc-title { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.toc a { display: block; color: var(--ink-soft); padding: 6px 0 6px 14px; border-left: 2px solid var(--hair); transition: color 0.15s, border-color 0.15s; }
.toc a:hover { color: var(--ink); border-color: var(--ink); }

.prose { font-size: 0.96rem; line-height: 1.8; }
.prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 46px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 28px 0 12px; }
.prose p { color: #333; margin-bottom: 15px; }
.prose ul { list-style: none; margin: 0 0 18px; padding: 0; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 9px; color: #333; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink-soft); }
.prose code { font-size: 0.86em; background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; padding: 2px 6px; word-break: break-word; }

.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.step h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.step .n { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 0.88rem; font-weight: 700; color: var(--bg); background: var(--ink); }

.status-list { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 4px 0 18px; box-shadow: var(--shadow-sm); }
.status-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.status-row:last-child { border-bottom: 0; }
.status-row .k { font-size: 0.82rem; font-weight: 600; }
.status-row .v { color: #333; font-size: 0.92rem; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--paper); border-radius: 10px; padding: 16px 18px; margin: 18px 0; display: flex; gap: 12px; }
.callout p { margin: 0; color: #333; font-size: 0.92rem; }

.cta-box { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 44px 36px; text-align: center; margin-top: 52px; }
.cta-box h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.cta-box p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 24px; }

/* ============================================================
   DATA TABLE  (projects)
   ============================================================ */
.stat-strip {
  font-size: 0.82rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 26px 0 30px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-strip .s { padding: 12px 18px; border-right: 1px solid var(--hair); }
.stat-strip .s:last-child { border-right: 0; }
.stat-strip .s b { color: var(--ink); font-weight: 700; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; box-shadow: var(--shadow-sm); }
table.data { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.88rem; }
.data thead th {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-soft); text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper);
}
.data thead th.num { text-align: right; }
.data tbody td { padding: 13px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: var(--paper); }
.data .year { color: var(--ink-soft); white-space: nowrap; }
.data .proj { font-weight: 600; white-space: nowrap; }
.data .proj .ico { margin-right: 8px; }
.data .rev { white-space: nowrap; }
.data .rev.zero { color: var(--ink-soft); }
.data .rev.pos { color: var(--ink); font-weight: 600; }
.data .hours { text-align: right; color: var(--ink-soft); white-space: nowrap; }

.st { font-size: 0.72rem; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.st-sold { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.st-sold::before { background: var(--bg); }
.st-meh::before { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }

.tags-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.ftag { font-size: 0.7rem; padding: 3px 8px; border: 1px solid var(--hair); border-radius: 6px; color: var(--ink-soft); white-space: nowrap; }
.ftag.win { border-color: var(--line); color: var(--ink); background: var(--paper); font-weight: 600; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .modules { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header nav.links a:not(.cta) { display: none; }
  .modules { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr; gap: 4px; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .blink { animation: none; }
}
