/* ---------------------------------------------------------------------------
   LJ Umunna - personal site
   Dark, high-contrast layout built around a vivid orange hero, oversized
   lowercase display type, rounded card frames and pill buttons.
   --------------------------------------------------------------------------- */

:root,
html[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --border: rgba(255, 255, 255, .13);
  --accent: #ff4d1c;
  --accent-deep: #d8330a;
  --on-accent: #ffffff;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f4f2;
  --surface-2: #ebe9e6;
  --fg: #0d0d0d;
  --muted: rgba(13, 13, 13, .7);
  --border: rgba(13, 13, 13, .14);
  --accent: #e03c0b;
  --accent-deep: #b52f07;
  --on-accent: #ffffff;
  color-scheme: light;
}

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

html {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { flex: 1; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.wrap--narrow { max-width: 48rem; }

.skip {
  position: absolute; top: -100%; left: 1.5rem; z-index: 60;
  background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: 99px; font-weight: 600;
}
.skip:focus { top: 1rem; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.9rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-weight: 600; font-size: .98rem;
  cursor: pointer; background: none; color: inherit;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }

.btn--solid {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }

.btn--on-hero { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--on-hero:hover { background: #fff; color: var(--accent-deep); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-over-hero {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: .7rem;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 700; line-height: 1;
  transition: transform .3s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-size: 1.02rem; }
.site-header.is-over-hero .brand-mark { background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.site-header.is-over-hero .brand,
.site-header.is-over-hero .nav-links a,
.site-header.is-over-hero .icon-btn { color: #fff; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 500; font-size: .96rem; position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }
.site-header.is-over-hero .nav-links a:hover,
.site-header.is-over-hero .nav-links a[aria-current="page"] { color: #fff; }

.icon-btn {
  background: none; border: 0; color: inherit; cursor: pointer;
  padding: .3rem; display: inline-flex; border-radius: 50%;
  transition: color .2s ease, transform .3s ease;
}
.icon-btn:hover { color: var(--accent); transform: rotate(12deg); }
.site-header.is-over-hero .icon-btn:hover { color: #fff; }

svg.i { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#theme-btn .sun { display: none; }
html[data-theme="dark"] #theme-btn .sun { display: block; }
html[data-theme="dark"] #theme-btn .moon { display: none; }

.nav-toggle { display: none; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: -4.4rem;
  padding: 7.5rem 0 3rem;
  background:
    radial-gradient(120% 95% at 62% 28%, #ff7a33 0%, #f8521a 32%, #e23a0b 58%, #b32706 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(85% 70% at 50% 120%, rgba(0, 0, 0, .42), transparent 70%);
}

.hero .wrap { max-width: 80rem; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 2rem; align-items: center;
}

.hero-eyebrow { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; margin: 0 0 .2rem; }

.hero-name {
  font-size: clamp(2.6rem, 6.5vw, 6.5rem);
  font-weight: 700; line-height: .92; letter-spacing: -.035em;
  margin: 0; text-transform: lowercase;
}
.hero-name span { display: block; }

.hero-role {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 400; line-height: 1.4;
  margin: 2.2rem 0 1.9rem; max-width: 24ch;
  color: rgba(255, 255, 255, .95);
}

.hero-media { position: relative; justify-self: center; width: 100%; max-width: 20rem; }
.hero-photo {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 1.6rem 1.6rem;
  box-shadow: 0 32px 70px -22px rgba(0, 0, 0, .65);
}
/* Warms the photo into the hero gradient instead of sitting on it as a snapshot. */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  border-radius: 999px 999px 1.6rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 122, 51, .22) 0%, rgba(226, 58, 11, .10) 40%, rgba(160, 36, 6, .34) 100%);
  mix-blend-mode: multiply;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 700; line-height: 1.22; letter-spacing: -.02em;
  margin: 0; align-self: center;
}
.hero-tagline span { display: block; }

@media (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 20rem) minmax(0, .9fr); }
  .hero-tagline { justify-self: start; }
}

.scroll-cue {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  margin-top: 2.25rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.scroll-cue svg { width: 1.1rem; height: 1.1rem; animation: nudge 1.9s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section + .section { padding-top: 0; }

.section-title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1;
  margin: 0 0 .6rem; text-align: center;
}
.section-lead {
  text-align: center; color: var(--muted);
  max-width: 46ch; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  font-size: 1.05rem;
}
.section-title--left, .section-lead--left { text-align: left; margin-left: 0; }

/* Intro strip */
.intro { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.intro-photo {
  width: clamp(7rem, 16vw, 11rem); height: auto; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--accent);
}
.intro p { margin: 0 0 1.2rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }
.intro p strong { color: var(--fg); font-weight: 600; }

/* --- Post cards ---------------------------------------------------------- */

.card-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 21rem));
  justify-content: center;
  list-style: none; margin: 0; padding: 0;
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.6rem; padding: 1.9rem 1.6rem 1.6rem;
  min-height: 17rem;
  transition: transform .35s ease, border-color .35s ease, background-color .35s ease;
}
.card:hover { transform: translateY(-7px); border-color: var(--accent); background: var(--surface-2); }

.card-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.card-kicker::before { content: ""; width: 3px; height: .9rem; background: var(--accent); border-radius: 2px; }

.card-title {
  font-size: 1.3rem; font-weight: 600; line-height: 1.25;
  letter-spacing: -.015em; margin: 0 0 .7rem;
}
.card:hover .card-title { color: var(--accent); }
.card-desc { margin: 0; color: var(--muted); font-size: .95rem; }
.card-foot { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.card-arrow {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.card:hover .card-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }

/* Stretched link keeps the whole card clickable without nesting anchors. */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.meta { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; margin: 0; }
.meta svg { width: 1rem; height: 1rem; }

.section-cta { display: flex; justify-content: center; margin-top: 3rem; }

/* --- Connect ------------------------------------------------------------- */

.connect {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: clamp(1.6rem, 3vw, 2.4rem);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.connect h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 1rem; }
.connect p { color: var(--muted); margin: 0 0 1rem; }

.connect-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.connect-row { display: flex; align-items: center; gap: 1rem; font-weight: 600; padding: .5rem 0; transition: transform .25s ease; }
.connect-row:hover { transform: translateX(6px); color: var(--accent); }
.connect-icon {
  width: 2.8rem; height: 2.8rem; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent);
  border-radius: .8rem; display: grid; place-items: center;
}
.connect-row small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }

/* --- Page headers / prose ------------------------------------------------ */

.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-title { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 0; }
.page-desc { color: var(--muted); margin: 1rem 0 0; font-size: 1.1rem; }

.back { display: inline-flex; align-items: center; gap: .4rem; margin: 2.5rem 0 1rem; font-weight: 500; color: var(--muted); }
.back:hover { color: var(--accent); }
.back svg { width: 1.1rem; height: 1.1rem; }

.prose { padding-bottom: 4rem; }
.prose > h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 1rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.02em; margin: 2.75rem 0 .85rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); font-size: 1.05rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem;
  font-size: 1.15rem; color: var(--fg);
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: .15em .4em; border-radius: .35rem; }
.prose pre { background: var(--surface); border: 1px solid var(--border); padding: 1.25rem; border-radius: 1rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.post-list { list-style: none; margin: 0; padding: 0 0 4rem; }
.post-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  padding: 2rem 0; border-top: 1px solid var(--border);
  position: relative; transition: padding-left .3s ease;
}
.post-row:hover { padding-left: .8rem; }
.post-row:last-child { border-bottom: 1px solid var(--border); }
.post-row h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 .5rem; }
.post-row:hover h2 { color: var(--accent); }
.post-row p { color: var(--muted); margin: .6rem 0 0; max-width: 60ch; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; flex-wrap: wrap; }
.foot small { color: var(--muted); font-size: .85rem; }
.socials { display: flex; gap: .4rem; }
.socials a {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--border); border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }

/* --- Scroll reveal ------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .hero { padding: 7.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-role { margin-inline: auto; }
  .hero-media { order: -1; max-width: 19rem; }
  .hero-tagline { order: 1; }
  .scroll-cue { justify-content: center; }
  .connect { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0 0 auto; top: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 1.8rem;
    height: 100dvh; background: var(--bg);
    transform: translateY(-100%); transition: transform .4s ease;
  }
  .nav-links.is-open { transform: none; }
  .nav-links a { font-size: 1.5rem; }
  .foot { flex-direction: column-reverse; text-align: center; }
  .post-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
