/* ============================================
   ahmadfatikhulkhasan.com — Design System
   Academic gravitas + warm distinction
   ============================================ */

:root {
  --primary: #1a2c4e;        /* deep navy — trust, academic */
  --primary-dark: #0f1d36;
  --accent: #d4a017;         /* warm amber — distinction, credentials */
  --accent-soft: #f0d896;
  --bg: #faf7f2;             /* warm off-white */
  --bg-card: #ffffff;
  --bg-muted: #f3eee5;
  --text: #1a1a1a;           /* charcoal */
  --text-muted: #5e5246;     /* warm gray */
  --text-subtle: #8b7e6e;
  --border: #e6dfd0;
  --shadow: 0 1px 3px rgba(26,28,46,0.06), 0 4px 12px rgba(26,28,46,0.04);
  --shadow-lg: 0 8px 24px rgba(26,28,46,0.10);

  --head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 920px;
  --container-wide: 1100px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px 0;
}
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 32px; margin-top: 48px; }
h3 { font-size: 22px; margin-top: 32px; }

p { margin: 0 0 16px 0; }
strong { font-weight: 600; }

/* ============================================
   Layout containers
   ============================================ */

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

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

/* ============================================
   Navigation
   ============================================ */

nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(250, 247, 242, 0.85);
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: var(--head);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--primary); }
.nav-brand-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 96px 0 64px 0;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
  max-width: 760px;
}
.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-positioning {
  font-family: var(--head);
  font-style: italic;
  font-size: 22px;
  color: var(--primary);
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-muted);
  max-width: 720px;
  margin: 32px 0;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-meta-item strong {
  color: var(--text);
  display: block;
  font-size: 18px;
  font-family: var(--head);
}

/* ============================================
   3-Pillar
   ============================================ */

.pillars-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 500;
}
.section-h2 {
  font-size: 36px;
  margin-bottom: 48px;
  max-width: 760px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.2s ease;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pillar-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pillar h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}
.pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Article cards / Latest articles
   ============================================ */

.articles-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.article-list {
  display: grid;
  gap: 32px;
}
.article-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.article-item:last-child { border-bottom: 0; }
.article-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.article-title {
  font-family: var(--head);
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
.article-title a {
  color: var(--text);
  text-decoration: none;
}
.article-title a:hover { color: var(--primary); }
.article-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.empty-state {
  padding: 64px 32px;
  background: var(--bg-muted);
  border-radius: 12px;
  text-align: center;
  border: 1px dashed var(--border);
}
.empty-state-title {
  font-family: var(--head);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state-sub {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================
   About page
   ============================================ */

.bio-section { padding: 64px 0; }
.bio-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.bio-content p { margin-bottom: 20px; }
.bio-content h3 { margin-top: 40px; }

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.credential {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.credential-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.credential-value {
  font-family: var(--head);
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
}
.credential-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.external-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.external-link:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* ============================================
   Projects portfolio
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.project-name {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.project-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.project-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.project-link:hover { text-decoration: underline; }

/* ============================================
   Footer
   ============================================ */

footer {
  padding: 64px 0 32px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}
.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand-block {
  max-width: 360px;
}
.footer-brand-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--container-wide);
  margin: 32px auto 0 auto;
  padding: 24px 24px 0 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
