/* adedoyinaromolaran.com — professional finance theme. Light by default, dark via switch. */

:root {
  --bg: #F6F4EE;
  --bg-2: #EEEBE2;
  --card: #FFFFFF;
  --ink: #0E1B33;
  --ink-2: #3A465E;
  --muted: #6B7385;
  --rule: #DCD7CA;
  --rule-strong: #0E1B33;
  --accent: #1F3864;      /* CV navy */
  --green: #0B6B43;       /* restrained finance green */
  --green-bg: #E4F0E9;
  --shadow: 0 1px 2px rgba(14,27,51,.05), 0 8px 24px -16px rgba(14,27,51,.2);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B0F16;
  --bg-2: #131A25;
  --card: #10161F;
  --ink: #ECEFF4;
  --ink-2: #C1C8D4;
  --muted: #8A93A4;
  --rule: #232C3B;
  --rule-strong: #4A5670;
  --accent: #9DB7E6;
  --green: #4CC28A;
  --green-bg: rgba(76,194,138,.12);
  --shadow: 0 0 0 1px #1B2330, 0 14px 32px -22px rgba(0,0,0,.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-box {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font: 600 13px/1 var(--sans); letter-spacing: .04em;
}
.mark-name { font: 600 16px/1 var(--serif); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.mode {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px;
  background: none; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; color: var(--muted);
}
.mode:hover { border-color: var(--ink-2); }
.mode svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mode .track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--rule); }
.mode .thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transition: transform .25s ease; }
.mode[aria-checked="true"] .thumb { transform: translateX(14px); }
.mode[aria-checked="false"] .i-sun, .mode[aria-checked="true"] .i-moon { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) var(--gutter) clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start;
}
.name { font: 600 clamp(46px, 7vw, 86px)/.96 var(--serif); letter-spacing: -.03em; margin: 0 0 14px; }
.name span { font-style: italic; font-weight: 400; color: var(--accent); }
.title { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; }

.contact-top { list-style: none; margin: 0 0 24px; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; border-block: 1px solid var(--rule); font-size: 15px; }
.contact-top li { display: inline-flex; align-items: center; gap: 8px; }
.contact-top svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-top a { text-decoration: none; font-weight: 500; }
.contact-top a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tagline { font-size: 16.5px; color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.tagline strong { color: var(--ink); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--card); text-decoration: none; font-weight: 500; font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* summary card */
.summary { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 24px; }
.summary-title { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.summary dl { margin: 0; }
.sum-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row dt { font-weight: 600; color: var(--ink); font-size: 13px; padding-top: 1px; }
.sum-row dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.sum-row dd p + p { margin-top: 8px; }
.sum-row dd strong { display: block; color: var(--ink); font-weight: 500; }
.sum-row dd p span { display: block; font-size: 13px; color: var(--muted); }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; }
.sum-list span { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--gutter) 0; }
.sec-head { border-bottom: 2px solid var(--rule-strong); padding-bottom: 10px; margin-bottom: 26px; }
.sec-head h2 { font: 500 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); letter-spacing: -.015em; margin: 0; }
h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }

.lede { font: 400 clamp(19px, 2vw, 23px)/1.55 var(--serif); max-width: 900px; }
.lede a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* skills table */
.ledger { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.ledger tbody th { text-align: left; vertical-align: top; width: 210px; font-size: 14px; font-weight: 600; padding: 18px 22px; border-bottom: 1px solid var(--rule); background: var(--bg-2); }
.ledger td { padding: 15px 22px; border-bottom: 1px solid var(--rule); }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 0; }
.ledger ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ledger li { font-size: 14.5px; padding: 4px 11px; border-radius: 5px; border: 1px solid var(--rule); background: var(--card); }

/* experience */
.job {
  display: grid; grid-template-columns: 96px 1fr; gap: 26px; padding: 26px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow);
}
.job-logo img { width: 88px; height: 88px; object-fit: contain; }
.job-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.job h3 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; margin-bottom: 4px; }
.org { color: var(--ink-2); }
.org a { text-underline-offset: 3px; text-decoration-color: var(--rule); }
.org a:hover { text-decoration-color: var(--accent); }
.when { text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.when span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.bullets { margin: 0; padding-left: 20px; }
.bullets li { margin-bottom: 8px; padding-left: 4px; }
.bullets li::marker { color: var(--muted); }

/* education */
.edu { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.edu:last-child { border-bottom: 0; }
.edu-year { font: 600 34px/1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }
.edu h3 { font-size: 26px; margin-bottom: 2px; }
.mod-label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 4px 11px; border-radius: 5px; background: var(--card); border: 1px solid var(--rule); }

/* ---------- full-width rows (certifications & projects) ---------- */
.rows { display: grid; gap: 14px; }
.row {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center;
  padding: 18px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.row:hover { border-color: var(--ink-2); }
.row-media.shot { border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.row-media.shot img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; }
.row-media.logo { height: 170px; }
.row-media.logo img { width: 100%; height: 170px; object-fit: contain; }
.row-body { display: grid; gap: 6px; align-content: center; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.row h3 { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.25; }
.row p { color: var(--ink-2); }
.role { font-size: 14px; font-weight: 600; color: var(--ink) !important; }
.row-link { font-size: 14px; color: var(--accent); font-weight: 500; }
.row:hover .row-link { text-decoration: underline; text-underline-offset: 3px; }
.issuer { font-size: 13px; font-weight: 500; color: var(--muted) !important; }
.date { font-size: 14px; color: var(--green) !important; font-weight: 500; }
.cert .row-link { margin-top: 4px; }

/* activities & languages */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px); }
.activity, .langs { list-style: none; margin: 0; padding: 0; }
.activity li, .langs li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.langs li { display: flex; justify-content: space-between; gap: 16px; }
.langs em { font-style: normal; color: var(--muted); }

/* contact */
.contact { max-width: var(--maxw); margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 var(--gutter) clamp(40px, 6vw, 64px); }
.contact h2 { font: 500 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); margin: 0 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--rule-strong); }
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.contact-grid li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.contact-grid span { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-grid a { font-weight: 500; text-decoration: none; }
.contact-grid a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.foot { width: min(calc(100% - 2 * var(--gutter)), calc(var(--maxw) - 2 * var(--gutter))); margin: 0 auto; padding: 22px 0 36px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }

/* subtle reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .mode { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 190px 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .mark-name { display: none; }
  .contact-top { flex-direction: column; gap: 8px; }
  .summary { padding: 18px 18px 6px; }
  .sum-row { grid-template-columns: 1fr; gap: 4px; }
  .row { grid-template-columns: 1fr; padding: 16px; }
  .row-media.logo, .row-media.logo img { height: 140px; }
  .job { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .job-logo img { width: 68px; height: 68px; }
  .job-top { flex-direction: column; gap: 6px; }
  .when { text-align: left; }
  .edu { grid-template-columns: 1fr; gap: 6px; }
  .edu-year { font-size: 26px; }
  .ledger tbody th, .ledger td { display: block; width: auto; }
  .ledger tbody th { padding: 12px 16px; border-bottom: 0; }
  .ledger td { padding: 12px 16px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

@media print {
  .topbar, .cta, .mode { display: none; }
  .reveal { opacity: 1; transform: none; }
}
