/* ==========================================================================
   The Video Handbooks — static styles
   Hand-written CSS replacing the original Tailwind build. Color tokens below
   mirror the Tailwind palette the Next.js site used (slate-950, pink-600, etc).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@700&family=Prompt&display=swap');

:root {
  --slate-950: #020617;
  --slate-800: #1e293b;
  --pink-600: #db2777;
  --pink-500: #ec4899;
  --pink-400: #f472b6;
  --emerald-500: #10b981;
  --green-600: #16a34a;
  --rose-500: #f43f5e;
  --rose-400: #fb7185;
  --orange-300: #fdba74;
  --cyan-400: #22d3ee;
  --gray-200: #e5e7eb;
  --white: #ffffff;
}

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

html {
  background: var(--slate-950);
}

body {
  margin: 0;
  background: var(--slate-950);
  color: var(--white);
  font-family: 'Prompt', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.4;
}

h1,
h2,
h3 {
  font-family: 'Josefin Sans', 'Prompt', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a {
  color: inherit;
  text-decoration: none;
}

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

em {
  font-style: italic;
}

/* ----- Accent helpers (ports of the inline Tailwind text colors) ---------- */
.gradient-text {
  background: linear-gradient(to right, lightpink, rgb(255, 61, 142));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.italic { font-style: italic; }
/* Italic gradient text clips its right edge under `background-clip: text`
   (the slanted glyph overhangs the clip box). inline-block + a little right
   padding gives the glyph room and keeps it from touching the next word. */
.gradient-text.italic {
  display: inline-block;
  padding-right: 0.18em;
}
.bold { font-weight: 700; }
.text-orange-300 { color: var(--orange-300); }
.text-rose-500 { color: var(--rose-500); }
.text-rose-400 { color: var(--rose-400); }
.text-pink-500 { color: var(--pink-500); }
.text-pink-400 { color: var(--pink-400); }

/* ----- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.max-w-6xl { max-width: 72rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-lg { max-width: 32rem; }
.spacer { margin-top: 5rem; }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn_white {
  background: var(--white);
  color: #000;
}
.btn_white:hover { background: var(--emerald-500); }
.btn_pink {
  background: var(--pink-600);
  color: var(--white);
}
.btn_pink:hover {
  background: var(--white);
  color: #000;
}
.btn_green {
  background: var(--green-600);
  color: #000;
  padding: 0.75rem 1.5rem;
}
.btn_green:hover { background: var(--pink-400); }
.btn-lg {
  font-size: 1.125rem;
  padding: 0.75rem 2rem;
  min-width: 12rem;
}

/* ----- Navigation --------------------------------------------------------- */
.nav {
  display: flex;
  max-width: 72rem;
  margin-inline: auto;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  gap: 1rem;
}
.nav__brand { font-size: 1.125rem; }
.nav__brand .gradient-text { font-weight: 700; }
.nav__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav__link {
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--cyan-400); }

/* ----- Hero --------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 1.25rem;
}
.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  margin: 0;
}
.hero h2 {
  font-size: 2.25rem;
  margin-top: 1rem;
  font-weight: 400;
}

/* ----- Generic content blocks (Info / Paragraph ports) -------------------- */
.block {
  margin: 2.5rem auto;
  max-width: 42rem;
  padding-inline: 1rem;
  text-align: center;
}
.block h2 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 800;
}
.block p {
  text-align: left;
  font-size: 1.5rem;
  margin: 0;
}
.list-check {
  list-style: none;
  margin: 0 auto;
  /* Constrain + center the list as a block, then left-align text inside it,
     so the bullets sit under the centered copy instead of the page's left edge. */
  max-width: 24rem;
  padding-inline: 1rem;
  text-align: left;
}
.list-check li { margin-bottom: 0.5rem; }
.list-check li::before { content: "✔️"; margin-right: 0.5rem; }

/* ----- Video embed -------------------------------------------------------- */
.video {
  display: flex;
  justify-content: center;
}
.video__frame {
  width: 100%;
  max-width: 48rem;
  padding-inline: 1rem;
}
.video__frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ----- Cards -------------------------------------------------------------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 5rem;
  padding-inline: 1rem;
}
.card {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--slate-800);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 32rem;
}
.card__media {
  height: 16rem;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body { padding: 1.5rem; }
.card__body h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0;
}
.card__body p {
  font-size: 1.25rem;
  margin: 0.5rem 0 1rem;
}

/* ----- Author + social ---------------------------------------------------- */
.author {
  margin: 0 auto 5rem;
  max-width: 42rem;
  padding-inline: 1rem;
  text-align: center;
}
.author h2 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 800;
}
.author__portrait {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}
.author__portrait img {
  width: 200px;
  border-radius: 0.5rem;
}
.author p {
  text-align: left;
  font-size: 1.5rem;
}
.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}
.social img { width: 50px; }
.social .email-icon { width: 60px; }

/* ----- Detail pages (book / course) -------------------------------------- */
.detail {
  margin-top: 2.5rem;
  padding-inline: 1.25rem;
  max-width: 64rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.detail__text { text-align: center; }
.detail__text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.detail__text p { font-size: 1.125rem; }
.detail__text ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.detail__text ul li { margin-bottom: 0.25rem; }
.detail__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}
.detail__aside img { width: 175px; }
.detail__aside .btn { max-width: 20rem; width: 100%; }
.detail__cta {
  margin: 5rem auto;
  text-align: center;
}
.detail__cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.detail__cta p { font-size: 1.25rem; }

/* ----- Footer ------------------------------------------------------------- */
.footer {
  text-align: center;
  color: var(--white);
  padding: 1rem;
  margin: 2rem 0;
}
.footer p { margin: 0.25rem 0; }
.footer .lead { font-size: 1.125rem; }
.footer .copyright { font-size: 0.875rem; }

/* ----- Responsive --------------------------------------------------------- */
@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
  .hero h2 { font-size: 3rem; margin-top: 1.5rem; }
  .block h2 { font-size: 3rem; }
  .author h2 { font-size: 3rem; }
  .detail {
    flex-direction: row;
    justify-content: space-around;
    gap: 2.5rem;
  }
  .detail__text { text-align: left; flex: 1; }
  .detail__text p { font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.75rem; }
  .hero h2 { font-size: 1.75rem; }
  .block h2, .author h2 { font-size: 2rem; }
  .block p, .author p { font-size: 1.25rem; }
  .card__body h2 { font-size: 2rem; }
  .nav { flex-direction: column; align-items: flex-start; }
}
