/* Ibrahima Datt - Official Executive Website
 * Restrained institutional design, zero external dependencies
 */

:root {
  --navy: #0f1e2e;
  --navy-soft: #1a2f45;
  --ink: #1f2933;
  --muted: #52606d;
  --subtle: #7b8794;
  --gold: #9a7b3f;
  --gold-soft: #b6975c;
  --bg: #faf9f6;
  --surface: #ffffff;
  --tint: #f3f0ea;
  --border: #e4dfd5;
  --border-strong: #d2cabd;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --measure: 68ch;
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 3px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 820px;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: var(--navy);
  color: var(--bg);
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-left: 1px solid var(--border-strong);
  padding-left: 1.25rem;
}

.lang-switch a,
.lang-switch span {
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.lang-switch .lang-active {
  background: var(--navy);
  color: #ffffff;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--navy);
  background: var(--tint);
}

/* Mobile Navigation (CSS-only details) */

.nav-mobile {
  display: none;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 12px 24px rgba(15, 30, 46, 0.08);
}

.nav-mobile-panel ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.nav-mobile-panel a {
  display: block;
  padding: 0.45rem 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--tint);
}

.nav-mobile-panel .lang-switch {
  border-left: none;
  padding-left: 0;
  padding-top: 0.5rem;
}

/* Typography & Section Primitives */

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.22;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  letter-spacing: -0.012em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.008em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 62ch;
}

.section {
  padding: 4.25rem 0;
}

.section--tint {
  background-color: var(--tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--navy {
  background-color: var(--navy);
  color: #e6ecf2;
}

.section--navy h2,
.section--navy h3 {
  color: #ffffff;
}

.section--navy .eyebrow {
  color: var(--gold-soft);
}

.section--navy p {
  color: #cbd5e1;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 2.5rem;
}

.section-header--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rule-accent {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 1.25rem;
  border: 0;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-soft);
  color: #ffffff;
}

.btn--secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow:hover {
  color: var(--gold);
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--navy);
  font-weight: 600;
}

/* Portrait Placeholder */

.portrait-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0.85rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 30, 46, 0.05);
}

.portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #13263a 0%, #0f1e2e 65%, #1c3147 100%);
  border: 1px solid rgba(154, 123, 63, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(154, 123, 63, 0.28);
  pointer-events: none;
}

.portrait-monogram {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #faf9f6;
  margin-bottom: 0.75rem;
}

.portrait-caption-inner {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
}

.portrait-caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Page Header (Subpages) */

.page-header {
  padding: 3.75rem 0 3rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--subtle);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--navy);
}

/* Grids & Cards */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card--accent {
  border-top: 3px solid var(--gold);
}

.card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tint);
}

/* Executive Credentials Strip */

.credentials-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.credential-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
}

.credential-period {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.credential-role {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.credential-org {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Timeline (Biography) */

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline-date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}

.timeline-body h3 {
  margin-bottom: 0.35rem;
}

.timeline-org {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.timeline-body p:last-child {
  margin-bottom: 0;
}

/* Biography Sidebar Layout */

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 3rem;
  align-items: start;
}

.fact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.fact-box h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.fact-list dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.fact-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Separate Civic / Public Engagement Box */

.civic-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--subtle);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
}

.civic-box p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

/* Video Placeholder & Media Cards */

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #0f1e2e 0%, #193148 100%);
  border: 1px solid rgba(154, 123, 63, 0.45);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #faf9f6;
  margin-bottom: 1.5rem;
}

.play-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  background: rgba(15, 30, 46, 0.55);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--gold-soft);
}

.video-placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.video-placeholder-sub {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 48ch;
  margin: 0;
}

/* Article Layout */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.article-body {
  max-width: var(--measure);
  font-size: 1.05rem;
  line-height: 1.78;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 2.35rem;
  margin-bottom: 0.85rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-author-box {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: var(--measure);
}

.article-author-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.article-author-box p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Bullet Lists */

.clean-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.clean-list li {
  color: var(--ink);
}

/* Contact Grid */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.contact-email {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  word-break: break-word;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 3.5rem 0 2.25rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.site-footer p {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 44ch;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold-soft);
}

/* Responsive */

@media (max-width: 920px) {
  .hero-grid,
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-grid .portrait-frame {
    max-width: 320px;
  }

  .credentials-list,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 780px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 3.25rem 0 2.75rem;
  }
}
