/* ------------------------------------------------------------------
   Ali Arshad site styles, v2
   Graphite monochrome: white cards on neutral paper, near-black for
   actions, Inter throughout. Modern, quiet, professional.
------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
  --bg: #f4f4f3;
  --card: #ffffff;
  --ink: #17181a;
  --ink-soft: #2e3033;
  --muted: #66686d;
  --line: #e5e4e1;
  --chip: #f0efed;
  --ok: #2e7d4f;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: #c9c8c4; text-underline-offset: 3px; }
a:hover, a:focus-visible { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--card); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Top bar ---- */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
  display: grid; place-items: center;
}
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--muted); padding: 8px 13px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--chip); }
.site-nav a.active { color: var(--ink); }
.site-nav .nav-cta {
  color: #fff; background: var(--ink);
  border-radius: 8px; padding: 8px 18px; margin-left: 10px;
}
.site-nav .nav-cta:hover { background: #000; color: #fff; }
.nav-toggle { display: none; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 18px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.card-footer-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; }

/* ---- Profile hero ---- */
.page-head { padding: 28px 0 8px; }
.profile-card { padding: 0; overflow: hidden; }
.cover { height: 190px; background: var(--ink) center/cover no-repeat; }
.profile-body { padding: 0 28px 28px; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%;
  border: 5px solid var(--card);
  margin-top: -66px; overflow: hidden;
  background: var(--ink-soft); color: #fff;
  font-weight: 800; font-size: 40px;
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 6px; }
.profile-headline { font-size: 18px; color: var(--ink-soft); margin: 0 0 4px; }
.profile-location { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.availability {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg);
  padding: 10px 15px; font-size: 14.5px; font-weight: 600; margin-top: 18px;
}
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--chip); }

/* ---- Layout grids ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding-bottom: 56px; }
.layout-wide { padding-bottom: 56px; }

/* ---- Page headers ---- */
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 32px 0 8px; }
.page-sub { color: var(--muted); margin: 0 0 26px; max-width: 720px; font-size: 16.5px; }

/* ---- Stat strip ---- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 18px;
}
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.stat-box .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stat-box .lbl { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---- Lists ---- */
.impact-list { list-style: none; margin: 0; padding: 0; }
.impact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.impact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.impact-list li:first-child { padding-top: 0; }
.impact-list strong { display: block; font-weight: 700; }
.impact-list span { color: var(--muted); font-size: 14.5px; }

.entry { padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry:first-of-type { padding-top: 4px; }
.entry:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.entry h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.entry p { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.entry .meta { font-size: 13.5px; color: var(--muted); }
.entry .outcome { color: var(--ink); font-size: 14.5px; font-weight: 600; }

.tiny-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); background: var(--chip);
}

/* ---- Listing grids ---- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 8px; }
.post-card { display: flex; flex-direction: column; }
.post-card h2 { font-size: 19px; margin: 0 0 8px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; flex: 1; }
.post-card .meta { font-size: 13.5px; color: var(--muted); }
.post-card .chips { margin-top: 2px; }
.post-cover { border-radius: 10px; margin-bottom: 16px; aspect-ratio: 1200/630; object-fit: cover; width: 100%; }

.pagination { display: flex; gap: 8px; padding: 10px 0 56px; }
.pagination a, .pagination span {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px;
  font-size: 14.5px; font-weight: 600; background: var(--card); text-decoration: none;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Article ---- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding-bottom: 56px; }
.article-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 10px; }
.article-meta { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.prose { font-size: 16.5px; line-height: 1.75; max-width: 74ch; }
.prose h2 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 10px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 16px; padding: 4px 18px; border-left: 3px solid var(--ink); color: var(--muted); }
.prose img { border-radius: 10px; }

.author-box { display: flex; gap: 14px; align-items: center; }
.author-box .avatar { width: 56px; height: 56px; margin: 0; border: 0; font-size: 18px; }
.author-box p { margin: 0; }
.author-box .name { font-weight: 700; }
.author-box .sub { color: var(--muted); font-size: 14px; }

/* ---- About page ---- */
.lede {
  font-size: 22px; line-height: 1.55; font-weight: 600; letter-spacing: -.015em;
  max-width: 850px; margin: 0;
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.fact-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.fact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list .k { color: var(--muted); }
.fact-list .v { font-weight: 600; text-align: right; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 15px; }
.form-row { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 5px; }
label .optional { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 11px 13px;
  border: 1px solid #cfcecb; border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--card);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.privacy-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.reveal-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.reveal-row .label { min-width: 64px; font-weight: 700; font-size: 14.5px; }
.reveal-btn {
  border: 1px solid var(--ink); background: var(--card); color: var(--ink);
  border-radius: 8px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--sans);
}
.reveal-btn:hover { background: var(--chip); }

.flash { border-radius: 10px; padding: 13px 17px; margin: 18px 0; font-size: 15px; }
.flash-success { background: #eef6f0; border: 1px solid #bedccb; color: #235c3e; }
.flash-error { background: #fbf0ef; border: 1px solid #e7cac6; color: #8a322a; }

/* ---- CTA band ---- */
.cta-band h2 { margin-bottom: 6px; font-size: 22px; }
.cta-band p { color: var(--muted); margin: 0 0 18px; max-width: 620px; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: #b9babd; margin-top: 40px; }
.footer a { color: #e8e8e6; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding: 44px 20px 36px; }
.footer-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; margin: 0 0 6px; }
.footer-line { margin: 0 0 3px; font-size: 14.5px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 14.5px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.linkedin-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.linkedin-link:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid #2d2f33; padding: 16px 20px; }
.footer-base .wrap-inner { max-width: 1140px; margin: 0 auto; }
.footer-base p { margin: 0; font-size: 13px; color: #8c8e93; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .layout, .article-grid, .about-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }
  .site-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
  .cover { height: 130px; }
  .avatar { width: 100px; height: 100px; margin-top: -50px; font-size: 30px; }
  .profile-name { font-size: 28px; }
  .page-title { font-size: 27px; }
  .lede { font-size: 18.5px; }
  .form-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .stat-strip { gap: 12px; }
  .stat-box { padding: 14px 16px; }
  .stat-box .num { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, .reveal-btn { transition: background-color .15s ease, color .15s ease; }
}
