:root {
  --clt-ink: #172126;
  --clt-cream: #fff9ef;
  --clt-accent: #e98728;
}

body {
  font-family: "Malgun Gothic", "Nanum Gothic", "Noto Sans KR", Arial, sans-serif;
}

.clt-happy-life-hero {
  position: relative;
  width: 100vw;
  min-height: clamp(480px, 67vw, 720px);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #334037;
  isolation: isolate;
}

.clt-happy-life-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -3;
}

.clt-happy-life-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 20, 22, .78) 0%, rgba(10, 20, 22, .52) 38%, rgba(10, 20, 22, .12) 67%, rgba(10, 20, 22, .28) 100%),
    linear-gradient(0deg, rgba(10, 20, 22, .24), transparent 45%);
}

.clt-happy-life-copy {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}

.clt-happy-life-kicker {
  margin: 0 0 12px;
  color: #ffd39b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.clt-happy-life-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.clt-happy-life-copy > p:not(.clt-happy-life-kicker) {
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.clt-happy-life-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--clt-accent);
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(123, 60, 10, .3);
  transition: transform .2s ease, background-color .2s ease;
}

.clt-happy-life-button:hover {
  background: #d87314;
  transform: translateY(-2px);
}

.home .clt-happy-life-hero + h2,
.home .clt-happy-life-hero + h2 + p {
  display: none;
}

.single-post .wp-block-post-featured-image {
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
  height: auto !important;
  margin-inline: auto !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
  background: #f5f6f6;
}

.single-post .wp-block-post-featured-image a {
  display: block;
  width: 100%;
}

.single-post .wp-block-post-featured-image img,
.single-post img.wp-post-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.wp-block-template-part:has(h3) {
  margin-top: clamp(56px, 7vw, 96px);
  color: rgba(255, 255, 255, .82);
  background: var(--clt-ink);
}

.wp-block-template-part:has(h3) > .wp-block-group {
  max-width: none !important;
  padding: clamp(46px, 6vw, 76px) 24px 28px !important;
}

.wp-block-template-part:has(h3) .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(44px, 8vw, 110px);
  width: min(1120px, 100%);
  max-width: 1120px !important;
  margin: 0 auto 38px !important;
  align-items: start !important;
}

.wp-block-template-part:has(h3) h3 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: .03em;
}

.wp-block-template-part:has(h3) nav ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-template-part:has(h3) a {
  color: rgba(255, 255, 255, .82) !important;
  text-underline-offset: 4px;
}

.wp-block-template-part:has(h3) a:hover {
  color: #fff !important;
}

.wp-block-template-part:has(h3) > .wp-block-group > p {
  width: min(1120px, 100%);
  margin: 0 auto !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .58);
  text-align: center;
  font-size: .9rem;
}

@media (max-width: 720px) {
  .clt-happy-life-hero {
    min-height: 600px;
  }

  .clt-happy-life-video {
    object-position: 62% center;
  }

  .clt-happy-life-shade {
    background: linear-gradient(90deg, rgba(10, 20, 22, .76), rgba(10, 20, 22, .3));
  }

  .clt-happy-life-copy {
    width: min(100% - 36px, 620px);
    justify-content: flex-end;
    padding-bottom: 62px;
  }

  .clt-happy-life-copy h1 {
    max-width: 12em;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .wp-block-template-part:has(h3) .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .wp-block-template-part:has(h3) nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .clt-happy-life-video {
    display: none;
  }

  .clt-happy-life-hero {
    background: #334037 url("happy-life-poster.jpg") center / cover no-repeat;
  }
}
