/* DANG NOTE Homepage v2 */
.dn2-homepage {
  --dn-ink: #132a30;
  --dn-muted: #6d7d80;
  --dn-teal: #147b7d;
  --dn-pale: #f4faf9;
  --dn-line: #e2ebea;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--dn-ink);
  overflow: hidden;
}

.dn2-homepage * {
  box-sizing: border-box;
}

.dn2-wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* HERO */
.dn2-hero {
  background: var(--dn-pale);
  border-top: 1px solid #edf4f3;
}

.dn2-hero__inner {
  min-height: 292px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.dn2-hero__copy {
  min-width: 0;
}

.dn2-kicker {
  margin: 0 0 15px;
  color: var(--dn-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.dn2-hero h1 {
  margin: 0;
  color: var(--dn-ink);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.dn2-hero__copy > p:last-child {
  margin: 20px 0 0;
  color: var(--dn-muted);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* HERO ILLUSTRATION */
.dn2-landscape {
  position: relative;
  width: 310px;
  height: 168px;
  flex: 0 0 310px;
  overflow: hidden;
}

.dn2-landscape i {
  display: block;
  position: absolute;
}

.dn2-sun {
  width: 58px;
  height: 58px;
  right: 42px;
  top: 13px;
  border-radius: 50%;
  background: #f1c879;
}

.dn2-mountain {
  bottom: 17px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.dn2-mountain--one {
  left: 0;
  width: 213px;
  height: 129px;
  background: #8dbdb8;
}

.dn2-mountain--two {
  left: 94px;
  width: 235px;
  height: 119px;
  background: #4e8883;
}

.dn2-wave {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25px;
  border-top: 5px solid #1b8988;
  border-radius: 50% 50% 0 0;
}

/* AD */
.dn2-ad {
  min-height: 78px;
  margin: 35px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d2dfdd;
  background: #f9fbfb;
  color: #879496;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.dn2-ad small {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0;
}

/* LATEST POSTS */
.dn2-latest {
  padding-bottom: 80px;
}

.dn2-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.dn2-section-head h2 {
  margin: 0;
  color: var(--dn-ink);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.06em;
  word-break: keep-all;
}

.dn2-section-head p {
  margin: 10px 0 0;
  color: var(--dn-muted);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dn2-section-head > a {
  flex: 0 0 auto;
  color: var(--dn-teal);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

/* GRID */
.dn2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* CARD */
.dn2-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dn-line);
  background: #fff;
}

.dn2-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dceceb;
}

.dn2-card__image > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.dn2-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #c6e1de, #75aaa4);
  color: #fff;
  font-size: 34px;
}

.dn2-card__content {
  min-width: 0;
  padding: 20px;
}

.dn2-card__category {
  display: inline-block;
  margin: 0 0 13px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e6f4f2;
  color: var(--dn-teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.dn2-card__title {
  margin: 0;
  color: var(--dn-ink);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.dn2-card__title a {
  color: inherit;
  text-decoration: none;
}

.dn2-card__title a:hover {
  text-decoration: underline;
}

.dn2-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 11px 0 0;
  color: var(--dn-muted);
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.dn2-card__meta {
  margin: 19px 0 0;
  color: #7b898c;
  font-size: 12px;
  line-height: 1.5;
}

.dn2-empty {
  padding: 28px;
  border: 1px solid var(--dn-line);
  color: var(--dn-muted);
}


/* TABLET */
@media (max-width: 900px) {
  .dn2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dn2-hero__inner {
    min-height: 270px;
  }

  .dn2-landscape {
    width: 245px;
    flex-basis: 245px;
  }
}

/* MOBILE */
@media (max-width: 620px) {
  .dn2-wrap {
    width: min(100% - 32px, 1120px);
  }

  .dn2-hero__inner {
    min-height: 350px;
    padding: 43px 0 27px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dn2-hero h1 {
    font-size: 26px;
  }

  .dn2-hero__copy > p:last-child {
    font-size: 15px;
  }

  .dn2-hero__copy > p:last-child br {
    display: none;
  }

  .dn2-landscape {
    align-self: flex-end;
    width: 202px;
    height: 108px;
    flex: 0 0 108px;
    margin-top: -6px;
  }

  .dn2-sun {
    width: 40px;
    height: 40px;
    right: 24px;
    top: 4px;
  }

  .dn2-mountain--one {
    width: 145px;
    height: 90px;
  }

  .dn2-mountain--two {
    left: 59px;
    width: 163px;
    height: 83px;
  }

  .dn2-wave {
    height: 18px;
    border-top-width: 4px;
  }

  .dn2-ad {
    min-height: 72px;
    margin: 26px 0 52px;
  }

  .dn2-latest {
    padding-bottom: 55px;
  }

  .dn2-section-head {
    align-items: flex-start;
    margin-bottom: 21px;
  }

  .dn2-section-head h2 {
    font-size: 23px;
  }

  .dn2-section-head p {
    font-size: 14px;
  }

  .dn2-section-head > a {
    display: none;
  }

  .dn2-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dn2-card__content {
    padding: 18px;
  }

  .dn2-card__title {
    font-size: 18px;
  }

  .dn2-card__excerpt {
    font-size: 15px;
  }

  .dn2-card__image {
    aspect-ratio: 16 / 9;
  }
}

/* Compact card proportions for desktop and tablet; mobile keeps its existing rules. */
@media (min-width: 621px) {
  .dn2-homepage .dn2-grid {
    gap: 20px;
  }

  .dn2-homepage .dn2-card {
    display: flex;
    flex-direction: column;
  }

  .dn2-homepage .dn2-card__image {
    flex-shrink: 0;
  }

  .dn2-homepage .dn2-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
  }

  .dn2-homepage .dn2-card__category {
    align-self: flex-start;
    margin: 0 0 9px;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.3;
  }

  .dn2-homepage h3.dn2-card__title {
    margin: 0 !important;
    font-family: inherit;
    font-size: 17px !important;
    font-weight: 600;
    line-height: 1.45 !important;
    letter-spacing: -0.025em;
    color: var(--dn-ink) !important;
  }

  .dn2-homepage h3.dn2-card__title a {
    font: inherit !important;
    letter-spacing: inherit;
    color: var(--dn-ink) !important;
    text-decoration: none;
  }

  .dn2-homepage h3.dn2-card__title a:hover,
  .dn2-homepage h3.dn2-card__title a:focus-visible {
    color: var(--dn-teal) !important;
    text-decoration: underline;
  }

  .dn2-homepage p.dn2-card__excerpt {
    margin: 9px 0 0 !important;
    font-family: inherit;
    font-size: 14px !important;
    line-height: 1.55 !important;
    letter-spacing: -0.015em;
    color: var(--dn-muted);
  }

  .dn2-homepage p.dn2-card__meta {
    margin: auto 0 0 !important;
    padding-top: 14px;
    font-size: 11px;
    line-height: 1.4;
  }
}
