/* ============================================================
   NNAEMEKANNAM.COM | Design system: "Soft Archive"
   Off-white base, hot pink + purple, natural textures,
   cursive accents, no neon.
   ============================================================ */

:root {
  --cream: #FAF5EF;        /* page background, warm off-white */
  --cream-deep: #F2EAE0;   /* alternate section background */
  --plum-ink: #2B1B33;     /* primary text, deep plum */
  --purple: #7C3AED;       /* primary accent: tech/ops pillar, buttons */
  --pink: #E91E8C;         /* hot pink: books/publishing pillar */
  --gold: #C98A2D;         /* warm ochre: ventures pillar */
  --card: #FFFFFF;

  --font-head: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Caveat", cursive;

  --container: 72rem;
  --radius: 18px;
  --header-h: 4.5rem;
  --shadow-soft: 0 10px 30px rgba(43, 27, 51, 0.08);
  --shadow-lift: 0 18px 44px rgba(43, 27, 51, 0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--cream);
  color: var(--plum-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.section-heading { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }

/* Cursive accent words inside headings */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.18em;
  line-height: 1;
  letter-spacing: 0;
  margin-inline: 0.04em 0.1em;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.script-pink { color: var(--pink); }
.script-purple { color: var(--purple); }
.script-gold { color: var(--gold); }

p { max-width: 65ch; }
.flow > * + * { margin-top: 1.1em; }

a { color: var(--purple); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Marker highlights (soft, natural) ---------- */
.hl {
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-blue   { background-image: linear-gradient(to top, rgba(124, 58, 237, 0.22) 42%, transparent 42%); }
.hl-pink   { background-image: linear-gradient(to top, rgba(233, 30, 140, 0.24) 42%, transparent 42%); }
.hl-yellow { background-image: linear-gradient(to top, rgba(201, 138, 45, 0.3) 42%, transparent 42%); }
.hl.is-marked { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) {
  .hl { background-size: 100% 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-primary {
  background: var(--purple);
  color: #FFFFFF;
}
.btn-primary:hover { background: #6A2BD6; }

.btn-ghost {
  background: transparent;
  color: var(--plum-ink);
  border-color: rgba(43, 27, 51, 0.3);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

.btn-pink {
  background: var(--pink);
  color: #FFFFFF;
}
.btn-pink:hover { background: #D11079; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 27, 51, 0.08);
}

.nav {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-mark { text-decoration: none; }
.mark-nn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--plum-ink);
  letter-spacing: -0.03em;
  box-shadow: inset 0 -0.22em 0 0 rgba(233, 30, 140, 0.35);
  padding-bottom: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a:not(.btn) {
  color: var(--plum-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--pink); }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--plum-ink);
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(250, 245, 239, 0.98);
    border-bottom: 1px solid rgba(43, 27, 51, 0.08);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(43, 27, 51, 0.06);
  }
  .nav-cta { display: inline-block; margin-top: 1rem; }
}

/* ---------- Hero (interactive canvas) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
  min-height: min(calc(92vh - var(--header-h)), 54rem);
  display: flex;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

.hero-lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(43, 27, 51, 0.8);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-photo {
  position: relative;
  max-width: 26rem;
  justify-self: end;
}
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 5px solid #FFFFFF;
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 18rem; margin-inline: auto; justify-self: center; }
}

/* ---------- Shared photo treatment ---------- */
.story-photo img,
.ventures-photo img,
.wid-photo img,
.wm-photo img,
.book-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 5px solid #FFFFFF;
}

/* ---------- My Story ---------- */
.story { background: var(--cream-deep); }
.story-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2rem;
}
.story-photo {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.story-text p { color: rgba(43, 27, 51, 0.85); }

.pull-quote {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  max-width: 26ch;
  margin-inline: auto;
  color: var(--plum-ink);
}

@media (max-width: 820px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 28rem; }
}

/* ---------- What I Do ---------- */
.wid-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.wid-photo { max-width: 22rem; justify-self: end; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(43, 27, 51, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.card::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  width: 4px;
  height: 2.2rem;
  border-radius: 0 4px 4px 0;
}
.card h3, .card h2 { font-size: 1.4rem; padding-right: 0.5rem; }
.card p { color: rgba(43, 27, 51, 0.78); font-size: 0.98rem; flex-grow: 1; }

.card-blue::before { background: var(--purple); }
.card-pink::before { background: var(--pink); }
.card-yellow::before { background: var(--gold); }

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-blue:hover { border-color: rgba(124, 58, 237, 0.4); }
.card-pink:hover { border-color: rgba(233, 30, 140, 0.4); }
.card-yellow:hover { border-color: rgba(201, 138, 45, 0.45); }

.card-link {
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.card-blue .card-link { color: var(--purple); }
.card-pink .card-link { color: var(--pink); }
.card-yellow .card-link { color: var(--gold); }
.card-link::after { content: " \2192"; }
.card-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .wid-intro { grid-template-columns: 1fr; }
  .wid-photo { justify-self: start; max-width: 20rem; }
}

/* ---------- Ventures ---------- */
.ventures { background: var(--cream-deep); }
.ventures-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2rem;
}
.ventures-photo { position: sticky; top: calc(var(--header-h) + 2rem); }

.ventures-list { display: flex; flex-direction: column; gap: 1.5rem; }
.venture {
  background: var(--card);
  border: 1px solid rgba(43, 27, 51, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.venture:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.venture-pink:hover { border-color: rgba(233, 30, 140, 0.4); }
.venture-yellow:hover { border-color: rgba(201, 138, 45, 0.45); }
.venture h3 { font-size: 1.35rem; margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.venture-role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 27, 51, 0.55);
}
.venture p { color: rgba(43, 27, 51, 0.78); }
.venture-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
}
.venture-link::after { content: " \2192"; }
.venture-link:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .ventures-layout { grid-template-columns: 1fr; }
  .ventures-photo { position: static; max-width: 24rem; }
}

/* ---------- Writing & Media ---------- */
.wm-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 1.5rem;
}
.wm-text p { color: rgba(43, 27, 51, 0.85); }
.wm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 820px) {
  .wm-layout { grid-template-columns: 1fr; }
  .wm-photo { max-width: 24rem; }
}

/* ---------- /book page ---------- */
.book-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 3rem;
}
.book-copy h1 { margin-bottom: 1.25rem; }
.book-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(43, 27, 51, 0.8); }
.book-photo { max-width: 22rem; justify-self: end; }

.book-card { text-decoration: none; color: var(--plum-ink); }
.book-microcopy {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: rgba(43, 27, 51, 0.7);
  max-width: none;
}

@media (max-width: 820px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-photo { justify-self: start; max-width: 18rem; order: -1; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-ink);
  color: var(--cream);
  padding-block: 3.5rem;
  text-align: center;
}
.footer-name { font-weight: 500; max-width: none; }
.footer-tagline {
  font-family: var(--font-script);
  font-size: 1.7rem;
  margin-top: 0.5rem;
  max-width: none;
}
.site-footer .hl-yellow { background-image: linear-gradient(to top, rgba(233, 30, 140, 0.4) 42%, transparent 42%); }
.footer-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.footer-social a {
  color: rgba(250, 245, 239, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-social a:hover { color: var(--pink); }
.footer-copy {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(250, 245, 239, 0.55);
  max-width: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
