/* procoderbd.com — "Procoder BD is now Ali Hossain" landing page */

/* Design tokens — palette sampled from the procoder logo */
:root {
  --ink: #12122b; /* page ground, deep indigo */
  --ink-raise: #1b1b3c; /* raised surfaces */
  --ink-line: #2c2c55; /* hairlines */
  --coral: #f8afa6; /* exact logo coral */
  --coral-dim: #c97f76; /* coral, receded */
  --slate: #272d3d; /* exact logo wordmark navy */
  --mist: #a0a0c4; /* body text on dark */
  --mist-soft: #8585ad; /* captions, muted */

  --f-display: 'Outfit', 'Anek Bangla', sans-serif;
  --f-body: 'Outfit', 'Hind Siliguri', sans-serif;
  --f-mono: 'JetBrains Mono', 'Hind Siliguri', monospace;

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --measure: 34rem;

  /* ---- type scale · one consistent set, base 16px, nothing smaller ---- */
  --fs-label: 1rem; /* 16px · eyebrows, meta, code, captions, footer   */
  --fs-body: 1.125rem; /* 18px · body copy, cards, link titles            */
  --fs-lead: 1.25rem; /* 20px · lede, pull quote, sub-headings (h3)      */
  --fs-title: 1.5rem; /* 24px · closing statement                        */
  --fs-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem); /* 24–34px             */
  --fs-h1: clamp(2rem, 1.4rem + 3.2vw, 3.5rem); /* 32–56px             */
}

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

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

body {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.band--tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--coral-dim);
  margin-bottom: 1.5rem;
}
.eyebrow--dark {
  color: #5a403c;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  letter-spacing: -0.015em;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.75rem;
}
h3 {
  font-size: var(--fs-lead);
  font-weight: 600;
}

p + p {
  margin-top: 1.4em;
}
.prose {
  max-width: var(--measure);
}

/* Masthead */
.masthead {
  padding-block: 1.75rem;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.masthead a {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--mist-soft);
  text-decoration: none;
  transition: color 0.25s;
}
.masthead a:hover {
  color: var(--coral);
}
.mark {
  height: 2.1rem;
  width: auto;
  display: block;
  border-radius: 5px;
  filter: saturate(1.05);
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 8vw, 5.5rem);
}
.hero h1 {
  max-width: 20ch;
}
.hero h1 .quiet {
  color: var(--mist);
  font-weight: 300;
  display: block;
}
.hero .lede {
  max-width: var(--measure);
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
}
.hero .lede b {
  color: var(--coral);
  font-weight: 600;
}

/* Signature — the identity diff */
.diff {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  background: var(--ink-raise);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}
.diff__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--mist-soft);
}
.diff__bar b {
  color: var(--coral-dim);
  font-weight: 500;
}
.diff__body {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  line-height: 2.1;
  padding: 1rem 0;
  overflow-x: auto;
}
.ln {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding-inline: 1rem;
  white-space: pre;
  color: var(--mist);
}
.ln__g {
  flex: 0 0 auto;
  width: 0.75rem;
  text-align: center;
  color: var(--mist-soft);
  user-select: none;
}
.ln--del {
  background: rgba(248, 175, 166, 0.045);
  color: var(--mist-soft);
}
.ln--del .ln__g {
  color: var(--coral-dim);
}
.ln--del .val {
  position: relative;
}
.ln--del .val::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 1px;
  background: var(--coral-dim);
  transform: scaleX(0);
  transform-origin: left;
}
.ln--add {
  background: rgba(248, 175, 166, 0.11);
  color: #fff;
}
.ln--add .ln__g {
  color: var(--coral);
}
.ln--add .val {
  color: var(--coral);
  font-weight: 500;
}
.key {
  color: var(--mist-soft);
}
.ident {
  color: var(--coral-dim);
}
.diff__foot {
  border-top: 1px solid var(--ink-line);
  padding: 0.85rem 1rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--mist-soft);
}
.diff__foot b {
  color: var(--coral);
  font-weight: 500;
}

/* Story */
.story {
  border-top: 1px solid var(--ink-line);
}
.story .prose p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 3.2em;
  font-weight: 700;
  color: var(--coral);
  float: left;
  line-height: 0.9;
  margin: 0.08em 0.12em 0 0;
}
.pull {
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--coral);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #fff;
  max-width: var(--measure);
}

/* ---- two-column story: narrative + the rename timeline ---- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}
.timeline {
  list-style: none;
  display: grid;
  gap: 1.9rem;
  border-left: 1px solid var(--ink-line);
  padding-left: 1.75rem;
}
.timeline__item {
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1.75rem - 4px);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-line);
  box-shadow: 0 0 0 4px var(--ink);
}
.timeline__item--now::before {
  background: var(--coral);
}
.timeline__year {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--coral-dim);
}
.timeline__item--now .timeline__year {
  color: var(--coral);
}
.timeline__text {
  margin-top: 0.4rem;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--mist);
}
.timeline__text b {
  color: #fff;
  font-weight: 600;
}
@media (min-width: 52rem) {
  .story__grid {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
  .story__aside {
    position: sticky;
    top: 2.5rem;
  }
}

/* Coral band — what did not change */
.kept {
  background: var(--coral);
  color: var(--slate);
}
.kept h2 {
  color: var(--slate);
}
.kept__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: rgba(39, 45, 61, 0.16);
  border: 1px solid rgba(39, 45, 61, 0.16);
  border-radius: 10px;
  overflow: hidden;
}
.kept__item {
  background: var(--coral);
  padding: 1.5rem 1.4rem;
}
.kept__item h3 {
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.kept__item p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: rgba(39, 45, 61, 0.86);
}

/* Video */
.player {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-raise) center/cover no-repeat;
  border: 1px solid var(--ink-line);
}
.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.player__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 43, 0.7),
    rgba(18, 18, 43, 0.15)
  );
}
.player__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 3.1rem;
  border-radius: 10px;
  border: 0;
  background: var(--coral);
  color: var(--slate);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.25s;
}
.player:hover .player__btn {
  transform: translate(-50%, -50%) scale(1.09);
}
.player__btn svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 2px;
}

/* Links */
.links {
  border-top: 1px solid var(--ink-line);
}
.links__list {
  list-style: none;
  border-top: 1px solid var(--ink-line);
}
.links__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--ink-line);
  color: #fff;
  text-decoration: none;
  transition:
    padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s;
}
.links__row:hover,
.links__row:focus-visible {
  padding-left: 1rem;
  color: var(--coral);
}
.links__ic {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--coral-dim);
  transition: color 0.25s;
}
.links__row:hover .links__ic {
  color: var(--coral);
}
.links__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-body);
}
.links__meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--mist-soft);
}
.links__row:hover .links__meta {
  color: var(--coral-dim);
}

/* Close + footer */
.close {
  border-top: 1px solid var(--ink-line);
  text-align: center;
}
.close p {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-title);
  line-height: 1.55;
  color: #fff;
  max-width: 28ch;
  margin-inline: auto;
}
.close .sig {
  margin-top: 2rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-dim);
}
.foot {
  border-top: 1px solid var(--ink-line);
  padding-block: 2rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--mist-soft);
  text-align: center;
}

/* Motion */
@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes strike {
  to {
    transform: scaleX(1);
  }
}

.diff .ln {
  opacity: 0;
  animation: lineIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.diff .ln:nth-child(1) {
  animation-delay: 0.35s;
}
.diff .ln:nth-child(2) {
  animation-delay: 0.45s;
}
.diff .ln:nth-child(3) {
  animation-delay: 0.55s;
}
.diff .ln:nth-child(4) {
  animation-delay: 0.85s;
}
.diff .ln:nth-child(5) {
  animation-delay: 1.05s;
}
.diff .ln:nth-child(6) {
  animation-delay: 1.15s;
}
.diff .ln:nth-child(7) {
  animation-delay: 1.25s;
}
.diff .ln:nth-child(8) {
  animation-delay: 1.35s;
}
.diff .ln:nth-child(9) {
  animation-delay: 1.45s;
}
.ln--del .val::after {
  animation: strike 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .diff .ln {
    opacity: 1;
  }
  .ln--del .val::after {
    transform: scaleX(1);
  }
}

/* Small screens */
@media (max-width: 34rem) {
  .diff__body {
    line-height: 1.95;
  }
  .ln {
    gap: 0.6rem;
    padding-inline: 0.8rem;
  }
  .links__meta {
    display: none;
  }
  .story .prose p:first-of-type::first-letter {
    font-size: 2.8em;
  }
}
