/* sajidkabir.com - hand-coded static site. Dark, elegant, mobile-first. No frameworks. */

:root {
  --bg: #0b0e13;
  --bg-soft: #10141b;
  --panel: #131922;
  --panel-2: #171e29;
  --line: #232c3a;
  --text: #e9e7e1;
  --muted: #9aa5b1;
  --faint: #6d7885;
  --accent: #c9a35c;
  --accent-soft: rgba(201, 163, 92, 0.12);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.1rem;
  padding: 6px 12px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
}

/* Hero */
.hero { padding: 72px 0 48px; text-align: left; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 14px;
}
.hero .tagline {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  color: var(--accent);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.hero .lede { color: var(--muted); max-width: 620px; margin: 0; font-size: 1.05rem; }

/* Sections */
section { padding: 40px 0; }
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin: 0 0 26px; max-width: 640px; }

/* Tiles and cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.tile, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: block;
  color: var(--text);
}
a.tile:hover, a.card:hover { text-decoration: none; border-color: var(--accent); background: var(--panel-2); }
.tile h3, .card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 600; }
.tile p, .card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.tile .kicker, .card .kicker {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card .meta { color: var(--faint); font-size: 0.88rem; margin-top: 12px; }
.card .links { margin-top: 14px; font-size: 0.95rem; }

/* Segment blocks on Work page */
.segment { padding: 44px 0 8px; border-top: 1px solid var(--line); }
.segment:first-of-type { border-top: none; }
.segment h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 10px;
}
.segment .intro { color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.entry { margin: 0 0 26px; }
.entry h3 { margin: 0 0 4px; font-size: 1.15rem; }
.entry .when { color: var(--accent); font-size: 0.92rem; margin: 0 0 6px; }
.entry p { color: var(--muted); margin: 0; max-width: 720px; }
.status {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: middle;
}
.status.on { color: var(--accent); border-color: var(--accent); }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 20px 0; }
.post-list li:first-child { padding-top: 4px; }
.post-list a.post-link { color: var(--text); font-size: 1.2rem; font-weight: 600; line-height: 1.35; display: inline-block; }
.post-list a.post-link:hover { color: var(--accent); text-decoration: none; }
.post-list time { display: block; color: var(--faint); font-size: 0.9rem; margin-bottom: 4px; }
.post-list p { color: var(--muted); margin: 6px 0 0; max-width: 700px; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px 0 24px; }
.article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 5.5vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 10px;
}
.article .post-meta { color: var(--faint); margin: 0 0 30px; font-size: 0.95rem; }
.article p { margin: 0 0 20px; }
.article ol, .article ul { margin: 0 0 20px; padding-left: 26px; }
.article li { margin-bottom: 12px; }
.article blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
.article figure { margin: 0 0 24px; }
.article .video { position: relative; padding-top: 56.25%; }
.article .video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 10px;
}
.back-link { display: inline-block; margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 30px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer p { color: var(--faint); font-size: 0.92rem; margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 640px; }
.contact-card p { color: var(--muted); }
.cert-list { columns: 1; }
@media (min-width: 720px) { .cert-list { columns: 2; column-gap: 40px; } }
.cert-list li { break-inside: avoid; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 0 4px; }
.toc a { color: var(--muted); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
