.dn-home {
  --dn-red: #b20d18;
  --dn-ink: #151515;
  --dn-muted: #626262;
  --dn-line: #d8d8d8;
  --dn-paper: #ffffff;
  --dn-soft: #f3f3f3;
  --dn-max: 1240px;
}

.dn-home,
.dn-home * {
  box-sizing: border-box;
}

.dn-home {
  width: min(100% - 32px, var(--dn-max));
  margin-inline: auto;
  color: var(--dn-ink);
  background: var(--dn-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.dn-home__error {
  max-width: 760px;
  margin: 48px auto;
  padding: 32px;
  border-top: 5px solid var(--dn-red);
  background: var(--dn-soft);
}

.dn-home__error h1,
.dn-home__error p {
  margin-block: 0;
}

.dn-home__error h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.dn-home__error p {
  margin-top: 12px;
}

.dn-home a {
  color: inherit;
  text-decoration: none;
}

.dn-home a:hover {
  color: var(--dn-red);
}

.dn-home a:focus-visible {
  outline: 3px solid var(--dn-red);
  outline-offset: 4px;
}

.dn-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dn-home__lead {
  padding-block: 18px 24px;
  border-top: 5px solid var(--dn-red);
  border-bottom: 1px solid var(--dn-line);
}

.dn-home__lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 24px;
}

.dn-home__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dn-home__highlights .dn-story:first-child {
  grid-column: 1 / -1;
}

.dn-home__body {
  display: grid;
  gap: 34px;
  padding-block: 28px 40px;
}

.dn-home__section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 28px;
}

.dn-module__header {
  margin-bottom: 14px;
  border-top: 3px solid var(--dn-ink);
  border-bottom: 1px solid var(--dn-line);
}

.dn-module__header h2 {
  display: inline-block;
  margin: 0;
  padding: 7px 0 6px;
  color: var(--dn-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  line-height: 1.15;
}

.dn-module__stories {
  display: grid;
  gap: 14px;
}

.dn-module--section .dn-module__stories {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dn-module--section .dn-story:first-child {
  grid-column: 1 / -1;
}

.dn-story {
  min-width: 0;
}

.dn-home__lead .dn-story__content,
.dn-module--section .dn-story__content,
.dn-module--mosaic .dn-story__content {
  padding-inline: 10px;
}

.dn-module--list .dn-story__content {
  padding-inline-end: 10px;
}

.dn-story__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--dn-soft);
}

.dn-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease-out;
}

.dn-story__media:hover img {
  transform: scale(1.015);
}

.dn-story__media--fallback {
  display: grid;
  place-items: center;
  color: #9b9b9b;
  background: linear-gradient(135deg, #eeeeee, #fafafa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.dn-story__classification {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
  color: var(--dn-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.dn-story__genre--investigation {
  padding: 2px 6px;
  color: #ffffff;
  background: var(--dn-red);
}

.dn-story__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
}

.dn-story__date {
  display: block;
  margin-top: 7px;
  color: var(--dn-muted);
  font-size: 0.78rem;
}

.dn-story--headline .dn-story__title {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.07;
}

.dn-story--headline .dn-story__media {
  aspect-ratio: 16 / 8.6;
}

.dn-story--highlight:first-child .dn-story__title {
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
}

.dn-story--section:first-child .dn-story__title,
.dn-story--feature .dn-story__title,
.dn-story--sector-lead .dn-story__title {
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
}

.dn-story--compact {
  padding-top: 11px;
  border-top: 1px solid var(--dn-line);
}

.dn-story--compact .dn-story__media {
  display: none;
}

.dn-module--feature {
  padding: 24px;
  color: #ffffff;
  background: #171717;
}

.dn-module--feature .dn-module__header {
  border-color: var(--dn-red);
}

.dn-module--feature .dn-module__header h2,
.dn-module--feature .dn-story__date {
  color: #ffffff;
}

.dn-module--feature .dn-module__stories {
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(180px, 0.65fr));
  align-items: start;
}

.dn-module--list .dn-module__stories {
  counter-reset: dn-latest;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.dn-story--list {
  counter-increment: dn-latest;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--dn-line);
}

.dn-story--list::before {
  content: counter(dn-latest, decimal-leading-zero);
  color: var(--dn-red);
  font-size: 0.76rem;
  font-weight: 700;
}

.dn-module--mosaic .dn-module__stories {
  grid-template-columns: 1.45fr repeat(3, 1fr);
  align-items: start;
}

@media (max-width: 1024px) {
  .dn-home__lead-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
    gap: 18px;
  }

  .dn-home__highlights,
  .dn-module--feature .dn-module__stories,
  .dn-module--mosaic .dn-module__stories {
    grid-template-columns: 1fr;
  }

  .dn-home__highlights .dn-story:first-child {
    grid-column: auto;
  }

  .dn-home__highlights .dn-story__media {
    display: none;
  }
}

@media (max-width: 720px) {
  .dn-home {
    width: min(100% - 24px, var(--dn-max));
  }

  .dn-home__lead .dn-story__content,
  .dn-module--section .dn-story__content,
  .dn-module--mosaic .dn-story__content {
    padding-inline: 8px;
  }

  .dn-module--list .dn-story__content {
    padding-inline-end: 8px;
  }

.dn-home__lead {
    padding-block: 12px 18px;
  }

  .dn-home__lead-grid,
  .dn-home__section-grid,
  .dn-module--section .dn-module__stories,
  .dn-module--list .dn-module__stories {
    grid-template-columns: 1fr;
  }

  .dn-home__highlights {
    gap: 0;
  }

.dn-home__highlights .dn-story {
    padding-block: 11px;
    border-top: 1px solid var(--dn-line);
  }

.dn-home__body {
    gap: 26px;
    padding-block: 20px 28px;
  }

.dn-home__section-grid {
    gap: 26px;
  }

.dn-story--headline .dn-story__title {
    font-size: clamp(1.7rem, 7.2vw, 2rem);
  }

  .dn-module--section .dn-story:first-child {
    grid-column: auto;
  }

.dn-module--feature {
    margin-inline: -12px;
    padding: 18px 12px;
  }

  .dn-module--feature .dn-story--compact .dn-story__title {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dn-story__media img {
    transition: none;
  }
}
