:root {
  --articles-paper: #fbf8f3;
  --articles-ink: #4a332a;
  --articles-copy: #685e58;
  --articles-sage: #e7efeb;
  --articles-pink: #f3e5e5;
  --articles-line: rgba(74, 51, 42, 0.16);
}

.articles-main {
  color: var(--articles-ink);
  background: var(--articles-paper);
  font-family: "Manrope", Arial, sans-serif;
}

.articles-container {
  width: min(100% - 64px, 1220px);
  margin-inline: auto;
}

.articles-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #8b7467;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.articles-eyebrow::after {
  width: 40px;
  height: 1px;
  background: #c97a86;
  content: "";
}

.articles-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #8a817c;
  font-size: 13px;
}

.articles-breadcrumbs a {
  color: inherit;
  text-underline-offset: 3px;
}

.articles-index-hero {
  padding: clamp(72px, 8vw, 126px) 0 clamp(74px, 8vw, 118px);
}

.articles-index-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(340px, .62fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: end;
}

.articles-index-hero h1,
.article-hero h1,
.article-entry h2,
.article-body h2 {
  margin: 0;
  font-family: "Noto Serif Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.articles-index-hero h1 {
  margin-top: 24px;
  font-size: clamp(64px, 8vw, 116px);
  line-height: .96;
}

.articles-index-hero__intro {
  max-width: 560px;
  padding-top: 30px;
  border-top: 1px solid var(--articles-line);
  color: var(--articles-copy);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.75;
}

.articles-index-list {
  padding: clamp(80px, 9vw, 140px) 0;
  background: var(--articles-sage);
}

.article-entry {
  display: grid;
  grid-template-columns: 58px minmax(280px, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  padding: clamp(42px, 5vw, 72px) 0;
  border-top: 1px solid rgba(74, 51, 42, .17);
}

.article-entry:last-child {
  border-bottom: 1px solid rgba(74, 51, 42, .17);
}

.article-entry:nth-child(even) .article-entry__image {
  order: -1;
  grid-column: 2;
}

.article-entry:nth-child(even) .article-entry__content {
  grid-column: 3;
}

.article-entry__number {
  align-self: start;
  color: #819a8e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.article-entry__image {
  grid-column: 3;
  display: block;
  overflow: hidden;
  aspect-ratio: 37 / 25;
  background: #ddd7cf;
}

.article-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.98);
  transition: transform 240ms ease;
}

.article-entry__image:hover img,
.article-entry__image:focus-visible img {
  transform: scale(1.018);
}

.article-entry__content {
  grid-column: 2;
}

.article-entry h2 {
  max-width: 540px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05;
}

.article-entry h2 a {
  color: inherit;
  text-decoration: none;
}

.articles-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  color: var(--articles-ink);
  border-bottom: 1px solid rgba(74, 51, 42, .35);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-hero {
  padding: clamp(58px, 7vw, 104px) 0 clamp(66px, 7vw, 104px);
}

.article-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
  gap: clamp(54px, 7vw, 108px);
  align-items: center;
}

.article-hero h1 {
  margin-top: 24px;
  font-size: clamp(52px, 6.4vw, 90px);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.article-hero__image {
  min-height: 460px;
  height: min(66vh, 720px);
  margin-right: calc((100vw - min(100vw - 64px, 1220px)) / -2);
  overflow: hidden;
  background: #ded9d2;
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(.98);
}

.article-content {
  padding: clamp(80px, 9vw, 142px) 0;
  background: #fffdf9;
}

.article-content__layout {
  display: grid;
  grid-template-columns: minmax(180px, .48fr) minmax(0, 1fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: start;
}

.article-content__aside {
  position: sticky;
  top: 42px;
}

.article-content__aside p {
  max-width: 230px;
  margin: 24px 0 0;
  color: #897c75;
  font-size: 14px;
  line-height: 1.7;
}

.article-body {
  max-width: 790px;
  color: #554b46;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.85;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.45em;
}

.article-body p:first-child {
  color: var(--articles-ink);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.62;
}

.article-body ul {
  padding: 0;
  margin: 42px 0;
  list-style: none;
  counter-reset: article-item;
  border-top: 1px solid var(--articles-line);
}

.article-body li {
  position: relative;
  padding: 22px 10px 22px 54px;
  border-bottom: 1px solid var(--articles-line);
  counter-increment: article-item;
}

.article-body li::before {
  position: absolute;
  top: 25px;
  left: 0;
  color: #819a8e;
  content: counter(article-item, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.article-body__closing {
  margin-top: 38px !important;
  color: var(--articles-ink);
  font-family: "Noto Serif Display", Georgia, serif;
  font-size: clamp(30px, 3vw, 44px) !important;
  line-height: 1.16 !important;
}

.article-related {
  padding: clamp(58px, 7vw, 92px) 0;
  background: var(--articles-sage);
}

.article-related__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.article-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.article-gallery {
  padding: clamp(72px, 8vw, 118px) 0;
  background: var(--articles-paper);
}

.article-gallery__heading {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 50px;
}

.article-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: start;
}

.article-gallery figure {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  background: #e8e0d7;
}

.article-gallery figure:nth-child(3n + 1) {
  grid-column: span 5;
}

.article-gallery figure:nth-child(3n + 2) {
  grid-column: span 3;
  margin-top: 48px;
}

.article-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.articles-text-link:focus-visible,
.article-entry__image:focus-visible,
.article-entry h2 a:focus-visible {
  outline: 3px solid #c97a86;
  outline-offset: 5px;
}

@media (max-width: 960px) {
  .articles-container {
    width: min(100% - 40px, 760px);
  }

  .articles-index-hero__layout,
  .article-hero__layout,
  .article-content__layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .article-entry {
    grid-template-columns: 40px 1fr;
    gap: 18px 20px;
  }

  .article-entry__number {
    grid-row: 1 / span 2;
  }

  .article-entry__content,
  .article-entry__image,
  .article-entry:nth-child(even) .article-entry__content,
  .article-entry:nth-child(even) .article-entry__image {
    grid-column: 2;
    order: initial;
  }

  .article-entry__content {
    grid-row: 1;
  }

  .article-entry__image {
    grid-row: 2;
  }

  .article-hero__image {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-right: calc((100vw - min(100vw - 40px, 760px)) / -2);
    margin-left: calc((100vw - min(100vw - 40px, 760px)) / -2);
  }

  .article-content__aside {
    position: static;
  }

  .article-content__aside p {
    display: none;
  }
}

@media (max-width: 640px) {
  .articles-container {
    width: min(100% - 32px, 560px);
  }

  .articles-index-hero,
  .article-hero {
    padding-top: 42px;
  }

  .articles-index-hero h1 {
    font-size: clamp(58px, 20vw, 82px);
  }

  .article-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .article-entry {
    grid-template-columns: 1fr;
  }

  .article-entry__number,
  .article-entry__content,
  .article-entry__image,
  .article-entry:nth-child(even) .article-entry__content,
  .article-entry:nth-child(even) .article-entry__image {
    grid-column: 1;
  }

  .article-entry__number {
    grid-row: auto;
  }

  .article-entry__content,
  .article-entry__image {
    grid-row: auto;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.78;
  }

  .article-body li {
    padding: 19px 2px 19px 38px;
  }

  .article-body li::before {
    top: 22px;
  }

  .article-gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .article-gallery figure,
  .article-gallery figure:nth-child(3n + 1),
  .article-gallery figure:nth-child(3n + 2) {
    grid-column: auto;
    margin-top: 0;
  }

  .article-gallery figure:nth-child(4n + 1) {
    grid-column: 1 / -1;
  }
}

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

  .article-entry__image:hover img,
  .article-entry__image:focus-visible img {
    transform: none;
  }
}
