/* KidMonk Journal. Loaded only by pages in /journal/, after styles.css. */

.journal-hero {
  padding-bottom: 28px;
}

.journal-hero h1 {
  max-width: 15em;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.crumbs a {
  color: var(--soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

/* Listing */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: min(1200px, calc(100% - 48px));
  margin: 12px auto 72px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 30px 30px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.post-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(242, 133, 31, 0.13);
  color: var(--orange-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-tag-film {
  background: rgba(122, 63, 200, 0.12);
  color: #6a35b0;
}

.post-card h2,
.post-card h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.post-card h2 a,
.post-card h3 a {
  text-decoration: none;
}

.post-card h2 a::after,
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card p {
  margin-top: 12px;
  color: var(--soft);
}

.post-more {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink);
  font-weight: 600;
}

.post-more::after {
  content: " \2192";
}

/* LinkedIn band */
.follow-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 40px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 88px;
  padding: 40px 48px;
  border-radius: 32px;
  background: var(--night);
  color: var(--cream);
}

.follow-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.follow-band p {
  margin-top: 10px;
  color: rgba(247, 241, 229, 0.75);
}

.follow-band .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Article */
.post-header {
  padding: 56px 0 36px;
}

.post-header .wrap {
  width: min(860px, calc(100% - 48px));
}

.post-header h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

.post-dek {
  margin-top: 18px;
  color: var(--soft);
  font-size: 1.2rem;
  line-height: 1.55;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.post-byline .who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.post-byline .who img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.post-byline a {
  color: var(--orange-deep);
  font-weight: 600;
}

.post-cover {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.post-cover img {
  width: 100%;
}

.post-body {
  width: min(760px, calc(100% - 48px));
  margin: 56px auto 0;
}

.post-body > * + * {
  margin-top: 1.15em;
}

.post-body p,
.post-body li {
  color: #2e2922;
  font-size: 1.14rem;
  line-height: 1.78;
}

.post-body .post-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.post-body h2 {
  margin-top: 2.1em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.post-body h2 + p {
  margin-top: 0.7em;
}

.post-body blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 26px;
  border-left: 4px solid var(--orange);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.4;
}

.post-body cite {
  font-style: italic;
}

.post-body a {
  color: var(--orange-deep);
  font-weight: 600;
}

.post-body ul {
  padding-left: 1.3rem;
  list-style: disc;
}

.post-body li + li {
  margin-top: 0.6em;
}

.post-body li::marker {
  color: var(--orange);
}

.post-body .post-sign {
  font-weight: 600;
  color: var(--ink);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Video */
.film {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 40px;
  align-items: start;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.film-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, #3b2a9e 0%, #7a3fc8 55%, #c04fa8 100%);
  box-shadow: var(--shadow-lg);
}

.film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.film-play svg.bulb {
  width: 46%;
  height: auto;
}

.film-play .film-btn {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.film-play:hover .film-btn {
  transform: scale(1.06);
}

.film-play .film-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: #fff;
}

.film-play small {
  max-width: 24em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.film-facts {
  padding: 30px 32px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.film-facts h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.film-facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 22px;
  margin: 18px 0 0;
}

.film-facts dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.film-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.film-facts .btn {
  margin-top: 24px;
}

.transcript {
  margin-top: 1.6em;
  padding: 26px 30px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.transcript summary {
  font-weight: 700;
  cursor: pointer;
}

.transcript ol {
  margin-top: 16px;
}

.transcript li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  font-size: 1.04rem;
}

.transcript li + li {
  margin-top: 8px;
}

.transcript time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  padding-top: 2px;
}

.transcript .note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Article footer */
.post-end {
  width: min(760px, calc(100% - 48px));
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.share span {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.share a {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(23, 20, 15, 0.12);
}

.share a:hover {
  color: var(--ink);
  background: var(--card);
}

.post-next {
  width: min(1040px, calc(100% - 48px));
  margin: 72px auto 0;
}

.post-next > h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.post-next .post-card {
  flex-direction: row;
  align-items: center;
}

.post-next .post-card img {
  flex: none;
  width: 50%;
}

.post-cta {
  width: min(1040px, calc(100% - 48px));
  margin: 72px auto 88px;
  padding: 48px;
  border-radius: 32px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(242, 133, 31, 0.18), transparent 70%),
    var(--bg-2);
  text-align: center;
}

.post-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.post-cta p {
  max-width: 34em;
  margin: 12px auto 0;
  color: var(--soft);
}

.post-cta .store-badge {
  margin: 24px auto 0;
}

@media (max-width: 860px) {
  .post-grid,
  .film {
    grid-template-columns: 1fr;
  }

  .film-frame {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .follow-band {
    grid-template-columns: 1fr;
    padding: 34px 26px;
  }

  .post-next .post-card {
    flex-direction: column;
  }

  .post-next .post-card {
    align-items: stretch;
  }

  .post-next .post-card img {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .post-grid,
  .follow-band,
  .post-header .wrap,
  .post-cover,
  .post-body,
  .film,
  .post-end,
  .post-next,
  .post-cta {
    width: calc(100% - 32px);
  }

  .post-header {
    padding-top: 36px;
  }

  .post-cover {
    border-radius: 22px;
  }

  .post-body {
    margin-top: 40px;
  }

  .post-body p,
  .post-body li {
    font-size: 1.06rem;
  }

  .post-body .post-lead {
    font-size: 1.3rem;
  }

  .post-card-body {
    padding: 22px 22px 26px;
  }

  .post-cta {
    padding: 36px 22px;
  }

  .film-facts {
    padding: 24px 22px;
  }

  .transcript {
    padding: 22px 18px;
  }
}

.post-body h3 {
  margin-top: 1.9em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--ink);
}

.post-body h3 + p {
  margin-top: 0.5em;
}

.post-body .post-pull {
  margin: 1.8em 0;
  padding: 6px 0 6px 26px;
  border-left: 4px solid var(--orange);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.45;
}
