/* ==========================================================================
   Mark One Light — markonelight.io
   Design system decoded from three references:
     · mikestrives.com  → structure, dark hero, pills, 72px headline, avatar
     · clarityflow.com  → cream (#FFF8F6) surfaces, pill CTA, soft light sections
     · gallium.ai/blog  → serif display type, rounded card grid, eyebrow labels
   ========================================================================== */

:root {
  /* Purple — sampled live from mikestrives.com. The ONLY non-black text colour. */
  --purple:        #9658ff;
  --purple-light:  #bc7bff;
  --purple-deep:   #9658ff;  /* same purple, kept as a token for accent text */
  --purple-ink:    #9658ff;

  /* Cream & white — sampled live from clarityflow.com. The ONLY backgrounds. */
  --cream:         #fff8f6;
  --cream-deep:    #fdeee9;
  --white:         #ffffff;

  /* Formerly the dark hero base. Now light, so every "night" surface is cream. */
  --night:         #fff8f6;
  --night-soft:    #ffffff;

  /* Ink — black only */
  --ink:           #000000;
  --ink-soft:      #000000;  /* hierarchy comes from size/weight, not grey */
  --ink-faint:     #000000;
  --on-night:      #000000;
  --on-night-soft: #000000;

  --shell:  1180px;
  --prose:  760px;

  --r-pill: 9999px;
  --r-card: 2rem;
  --r-lg:   2.5rem;

  --font-ui:      'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 246, 0.94);
  border-bottom: 1px solid rgba(150, 88, 255, 0.22);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.nav__logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink); margin-right: auto;
}
.nav__mark {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -0.04em;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
/* :not(.btn) — otherwise this rule outranks .btn--purple and paints the
   newsletter button's label black instead of white. */
.nav__links a:not(.btn) {
  color: var(--ink); font-size: 15.5px;
  transition: color .18s ease;
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn)[aria-current="page"] { color: var(--purple); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 8px; font-size: 22px; line-height: 1;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Purple button: white text always. Hover DARKENS (lightening dropped the
   white text to ~2.9:1 contrast). */
.btn--purple {
  background: var(--purple); color: #ffffff;
  box-shadow: 0 8px 30px -8px rgba(150, 88, 255, 0.75);
}
.btn--purple:hover, .btn--purple:focus-visible { background: #7b3bef; color: #ffffff; }

/* Primary on a light page: solid black */
.btn--light {
  background: var(--ink); color: var(--cream);
  box-shadow: 0 8px 30px -14px rgba(0, 0, 0, 0.6);
}
.btn--light:hover { background: #2b2b2b; }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #2b2b2b; }

/* Secondary: outlined, purple text */
.btn--ghost-dark { background: transparent; color: var(--purple); border-color: rgba(150, 88, 255, .45); }
.btn--ghost-dark:hover { border-color: var(--purple); background: rgba(150, 88, 255, .07); }

.btn--sm { padding: 10px 20px; font-size: 15px; }

/* --------------------------------------------------------------- pills -- */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 14px; font-weight: 500;
}
.pill--dark {
  background: rgba(150, 88, 255, 0.1);
  border: 1px solid rgba(150, 88, 255, 0.35);
  color: var(--purple);
}
.pill--light {
  background: rgba(150, 88, 255, 0.1);
  border: 1px solid rgba(150, 88, 255, 0.24);
  color: var(--purple-deep);
}

.eyebrow {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0 0 18px;
}
.eyebrow--dark { color: var(--purple); }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  padding: 96px 0 112px;
}
.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 72px; align-items: center;
}

.hero h1 {
  font-size: clamp(46px, 6.6vw, 76px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.95;
  margin: 22px 0 26px;
}
/* the one purple word */
.grad { color: var(--purple); }

.hero__lede {
  font-size: 19.5px; line-height: 1.62;
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero portrait slot.
   Sized to match mikestrives.com exactly, measured live at a 1440px viewport:
   468 x 510 px (aspect ratio 0.917 — NOT square), border-radius 32px.
   Drop a photo in and it fills this box with no other changes needed. */
.avatar {
  position: relative;
  width: 100%;
  max-width: 468px;
  aspect-ratio: 468 / 510;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--purple), var(--purple-light));
  box-shadow: 0 40px 90px -30px rgba(150, 88, 255, 0.75);
  margin-left: auto;
}
/* The real photo: <img class="avatar__img" src="/tim-hero.jpg" alt="Tim Idah"> */
.avatar__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
/* Placeholder, shown until that photo exists. Same box, so nothing shifts. */
.avatar__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  color: #fff;
}
.avatar__placeholder span { display: block; font-size: 88px; font-weight: 800; letter-spacing: -0.05em; }
.avatar__placeholder small { display: block; font-size: 13px; opacity: .82; margin-top: 6px; letter-spacing: .04em; }

/* Logo slot — also destined to become a photo of Tim.
   Drop in: <span class="nav__mark"><img src="/tim-logo.jpg" alt="Tim Idah"></span> */
.nav__mark { overflow: hidden; }
.nav__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------------------------------------------- bands -- */

.band { padding: 92px 0; }
.band--cream { background: var(--cream); }
.band--white { background: var(--white); }
/* was the dark band — now a white band, so cream/white still alternate */
.band--night { background: var(--white); color: var(--ink); }
.band--tight { padding: 64px 0; }

.band__head { max-width: 720px; margin-bottom: 48px; }
.band__head h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  letter-spacing: -0.04em; line-height: 1.05;
}
.band__head p { margin-top: 18px; font-size: 18.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------- checks - */

.checks { display: grid; gap: 16px; }
.check {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(26, 27, 34, 0.07);
  border-radius: var(--r-card);
  padding: 22px 26px;
  box-shadow: 0 12px 40px -28px rgba(26, 27, 34, 0.5);
}
.check__tick {
  flex: none; width: 28px; height: 28px; border-radius: var(--r-pill);
  background: rgba(150, 88, 255, 0.13);
  color: var(--purple-deep);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; margin-top: 1px;
}
.check p { margin: 0; font-size: 17.5px; line-height: 1.55; }

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

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid rgba(26, 27, 34, 0.07);
  border-radius: var(--r-lg);
  padding: 14px;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(26,27,34,.45); }
.card__thumb {
  border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--purple), var(--purple-light));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 26px; padding: 20px; text-align: center;
}
.card__body { padding: 20px 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { font-size: 13px; color: var(--ink-faint); letter-spacing: .02em; }
.card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.22;
}
.card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.card__more { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--purple-deep); }

/* featured blog card — gallium's 45/55 split */
.feature {
  background: var(--white);
  border: 1px solid rgba(26, 27, 34, 0.07);
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid; grid-template-columns: 45% 1fr; gap: 28px; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
  margin-bottom: 44px;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(26,27,34,.45); }
.feature__thumb {
  border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--purple), var(--purple-light));
  display: grid; place-items: center; padding: 28px; text-align: center;
  color: #fff; font-family: var(--font-display); font-size: 34px; line-height: 1.15;
}
.feature__body { padding-right: 22px; }
.feature__body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.16;
  margin-bottom: 14px;
}
.feature__body p { color: var(--ink-soft); font-size: 17px; }

/* --------------------------------------------------------------- display  */

.display-h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 300; letter-spacing: -0.025em; line-height: 1.03;
}
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------- form --- */

.signup {
  background: var(--white);
  border: 1px solid rgba(150, 88, 255, 0.22);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: 0 40px 80px -50px rgba(91, 33, 182, 0.55);
  max-width: 620px;
}
.signup--on-night {
  background: var(--white);
  border-color: rgba(150, 88, 255, 0.3);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 8px; letter-spacing: .01em;
}
.field input {
  width: 100%;
  border-radius: var(--r-pill);
  border: 1px solid rgba(26, 27, 34, 0.16);
  background: var(--cream);
  padding: 15px 22px;
  font-family: inherit; font-size: 16.5px; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(150, 88, 255, 0.16);
}
.signup--on-night .field label { color: var(--ink); }
.signup--on-night .field input {
  background: var(--cream); color: var(--ink);
  border-color: rgba(0, 0, 0, 0.16);
}
.signup .btn { width: 100%; justify-content: center; margin-top: 6px; }
.signup__note { font-size: 13.5px; color: var(--ink-faint); margin: 16px 0 0; text-align: center; }
.signup--on-night .signup__note { color: var(--ink-faint); }

/* --------------------------------------------------------------- signoff  */

.signoff { margin-top: 40px; }
.signoff__line {
  font-family: var(--font-display);
  font-style: normal; font-weight: 400;
  font-size: 25px; line-height: 1.4; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
/* Three separate lines, exactly as written: name / role / URL */
.signoff__who { font-size: 16.5px; line-height: 1.55; }
.signoff__who strong,
.signoff__who span,
.signoff__who a { display: block; }
.signoff__who strong { font-size: 18px; letter-spacing: -0.02em; }
.signoff__who span { color: var(--ink-soft); }
.signoff__who a { color: var(--purple-deep); font-weight: 600; }

/* --------------------------------------------------------------- article  */

.article { padding: 72px 0 96px; }
.article__head { max-width: var(--prose); margin: 0 auto 44px; }
.article__head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 20px;
}
.article__byline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-faint); }
.article__body { max-width: var(--prose); margin: 0 auto; font-size: 18.5px; line-height: 1.72; }
.article__body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 30px; letter-spacing: -0.02em; margin: 48px 0 16px;
}
.article__body h3 { font-size: 21px; margin: 34px 0 12px; }
.article__body blockquote {
  margin: 34px 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--purple);
  font-family: var(--font-display); font-style: italic;
  font-size: 23px; line-height: 1.45; color: var(--purple-ink);
}
.article__body ul { list-style: disc; padding-left: 22px; margin: 0 0 1.2em; }
.article__body li { margin-bottom: .5em; }

/* --------------------------------------------------------------- misc --- */

.stats { display: flex; gap: 52px; flex-wrap: wrap; margin-top: 46px; }
.stat strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--cream); border: 1px solid rgba(26,27,34,.07);
  border-radius: var(--r-card); padding: 30px 28px;
}
.step__n {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.04em; margin-bottom: 18px; }
.cta-band p { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 32px; }

/* --------------------------------------------------------------- footer - */

.footer { background: var(--cream); color: var(--ink-soft); padding: 60px 0 44px; border-top: 1px solid rgba(0,0,0,.08); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; }
.footer__links a:hover { color: var(--purple); }
.footer__base {
  margin-top: 42px; padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* --------------------------------------------------------------- resp --- */

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 380px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__body { padding: 0 12px 14px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .band { padding: 66px 0; }
  .hero { padding: 64px 0 84px; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(150, 88, 255, 0.24);
    box-shadow: 0 20px 40px -24px rgba(0,0,0,.3);
    padding: 10px 24px 22px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; font-size: 17px; }
  .nav__links .btn { margin-top: 12px; justify-content: center; }
  .cards, .steps { grid-template-columns: 1fr; }
  .signup { padding: 28px 22px; }
  .stats { gap: 32px; }
}
