.editorial-home {
  --home-green: #082e27;
  --home-deep: #06251f;
  --home-gold: #e7bf71;
  --home-ivory: #fcf6e8;
}

.editorial-home header.sn-header {
  --navy: var(--home-ivory);
  --gold-text: var(--home-gold);
  background: var(--home-deep);
  border-color: #b18a49;
}

.editorial-home .sn-header__inner {
  min-height: 70px;
  align-items: center;
}

.editorial-home .sn-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: calc(1.15rem * var(--text-scale, 1));
  line-height: 1.3;
}

.editorial-home .sn-logo img {
  flex: none;
  width: 68px;
  height: auto;
}

.editorial-home .sn-header .sn-nav a {
  font-size: calc(.9rem * var(--text-scale, 1));
}

.editorial-home .sn-nav [aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--home-gold);
  text-underline-offset: .45em;
}

.editorial-home .reading-bar {
  justify-content: flex-end;
  padding-block: .25rem;
}

.editorial-home .reading-bar :is(button, select) {
  padding-block: .2rem;
  font-size: calc(.9rem * var(--text-scale, 1));
}

.home-louvre {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 39vw, 650px);
  background: var(--home-green);
  color: var(--home-ivory);
  border-block-end: 2px solid var(--home-gold);
}

.home-louvre__scene {
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  margin: 0;
}

.home-louvre__scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.home-louvre__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 78%, var(--home-green));
}

.home-louvre__inner {
  position: relative;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 5rem);
}

.home-louvre__content {
  width: min(46%, 620px);
  margin-left: auto;
}

.home-louvre h1 {
  margin: 0;
  color: var(--home-ivory);
  font-size: calc(clamp(2.5rem, 5vw, 5rem) * var(--text-scale, 1));
  line-height: 1.18;
  text-wrap: balance;
}

.home-louvre[dir="ltr"] h1 {
  font-family: Georgia, serif;
  font-size: calc(clamp(2.5rem, 4.4vw, 4.75rem) * var(--text-scale, 1));
}

.home-louvre__motto {
  margin: 0;
  color: #efe1c5;
  font-size: calc(clamp(1.05rem, 1.45vw, 1.5rem) * var(--text-scale, 1));
  line-height: 1.55;
}

.home-louvre__motto::before {
  display: block;
  width: min(9rem, 42%);
  height: 1px;
  margin-block: 1.25rem;
  background: var(--home-gold);
  content: "";
}

.home-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.home-louvre .sn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: .4rem 1.25rem;
  border: 1px solid var(--home-gold);
  border-radius: 999px;
  font-size: calc(1rem * var(--text-scale, 1));
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.home-louvre .sn-btn--primary {
  background: var(--home-gold);
  color: var(--home-green);
}

.home-louvre .sn-btn--outline {
  background: transparent;
  color: var(--home-ivory);
}

.home-louvre .sn-btn:hover {
  background: var(--home-ivory);
  color: var(--home-green);
}

.editorial-home .sn-header :focus-visible,
.home-louvre a:focus-visible {
  outline-color: var(--home-gold);
}

.home-topics,
.editorial-home .home-stats {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.home-topics h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: calc(clamp(1.75rem, 3vw, 2.55rem) * var(--text-scale, 1));
  text-align: center;
}

.home-topics h2::before,
.home-topics h2::after {
  width: clamp(1rem, 8vw, 6rem);
  height: 1px;
  background: #a58346;
  content: "";
}

.home-topics {
  font-family: "Amiri", Georgia, serif;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto 1fr 1fr auto;
  gap: clamp(.65rem, 2vw, 1.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-topic-grid > li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  min-width: 0;
}

.home-topic-card {
  --topic-icon-size: clamp(1.9rem, 5vw, 2.7rem);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  justify-items: center;
  min-width: 0;
  border: 1px solid #b98c4c;
  border-radius: .9rem;
  background: var(--home-green);
  box-shadow: 0 3px 0 #b98c4c40;
  color: var(--home-ivory);
  text-align: center;
  text-decoration: none;
}

.home-topic-card:focus-visible {
  outline: 3px solid #a58346;
  outline-offset: 3px;
}

.home-topic-media {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  border-radius: calc(.9rem - 1px) calc(.9rem - 1px) 0 0;
  border-block-end: 2px solid var(--home-gold);
  background: var(--home-deep);
}

.home-topic-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: .25rem .25rem calc(var(--topic-icon-size) / 2);
  box-sizing: border-box;
  object-fit: contain;
}

.home-topic-icon {
  grid-area: 1 / 1;
  align-self: end;
  display: grid;
  place-items: center;
  width: var(--topic-icon-size);
  height: var(--topic-icon-size);
  transform: translateY(50%);
  z-index: 0;
  border: 1px solid var(--home-gold);
  border-radius: 50%;
  background: var(--home-green);
  color: var(--home-gold);
  pointer-events: none;
}

.home-topic-icon svg {
  width: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-topic-copy {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: .2rem;
  padding: calc(var(--topic-icon-size) / 2 + .35rem) clamp(.45rem, 1.5vw, 1rem) .65rem;
  font-size: calc(.96rem * var(--text-scale, 1));
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-topic-copy strong {
  color: #f4d995;
  font-size: calc(clamp(1.05rem, 2vw, 1.42rem) * var(--text-scale, 1));
  line-height: 1.25;
}

.home-topic-action {
  grid-row: 4;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 2rem;
  margin-block: .1rem .85rem;
  padding-inline: .8em;
  border: 1px solid var(--home-gold);
  border-radius: 2rem;
  background: var(--home-ivory);
  color: var(--home-deep);
  font-size: calc(.94rem * var(--text-scale, 1));
  font-weight: 700;
  line-height: 1.2;
}

.home-topic-card:is(:hover, :focus-visible) .home-topic-action {
  background: var(--home-gold);
}

.editorial-home .home-stats {
  padding-block-start: .4rem;
}

.editorial-home .home-stats-grid {
  max-width: none;
  gap: 0;
  border: 1px solid #c5aa73;
  border-radius: .8rem;
  background: #f6edda;
}

.editorial-home .home-stat {
  min-height: 120px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #19372c;
}

.editorial-home .home-stat + .home-stat {
  border-inline-start: 1px solid #c5aa735e;
}

.editorial-home .home-stat :is(svg, .n) { color: #765519; }
.editorial-home .home-stat :is(.l, small) { color: inherit; }
.editorial-home .home-stat:hover .l { text-decoration: underline; }
.editorial-home .home-stat:last-child { border-end-end-radius: .8rem; }

html[data-theme="dark"] .editorial-home .home-stats-grid { background: #21352b; }
html[data-theme="dark"] .editorial-home .home-stat { color: var(--home-ivory); }
html[data-theme="dark"] .editorial-home .home-stat :is(svg, .n) { color: var(--home-gold); }

.editorial-home #home-shelf {
  background: #f4eddd;
  border-block: 1px solid #c5aa7360;
}

html[data-theme="dark"] .editorial-home #home-shelf { background: #142820; }

.home-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-research-grid a {
  display: block;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid #bfa772;
  border-inline-start-width: 4px;
  border-radius: .4rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.home-section-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: .2em;
}

.editorial-home #latest .discovery-card {
  justify-content: start;
  border-radius: .65rem;
}

.editorial-home #latest .discovery-card h3 { margin-block: .35rem 0; }
.editorial-home #latest .discovery-card p { margin: 0; }
.editorial-home #latest .discovery-card .button { align-self: start; margin-block-start: auto; }
.home-article-image { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: .35rem; }

@media (min-width: 64rem) {
  .editorial-home #latest .home-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .home-louvre { display: block; min-height: 0; }

  .home-louvre__scene {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(215px, 58vw, 380px);
  }

  .home-louvre__scene::after {
    background: linear-gradient(0deg, var(--home-green), transparent 26%);
  }

  .home-louvre__inner {
    padding-block: .5rem 2.25rem;
    text-align: center;
  }

  .home-louvre__content { width: auto; }

  .home-louvre :is(h1, [dir="ltr"] h1) {
    margin-inline: auto;
    font-size: calc(clamp(2rem, 8vw, 3.4rem) * var(--text-scale, 1));
  }

  .home-louvre__motto::before { margin-inline: auto; }
  .home-primary-actions {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .home-louvre .sn-btn {
    min-width: 0;
    padding-inline: clamp(.6rem, 3vw, 1.25rem);
    overflow-wrap: anywhere;
  }
  .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-article-image {
    display: block;
    height: auto;
    aspect-ratio: auto;
  }
}

@media (max-width: 767px) {
  .editorial-home .home-stat:nth-child(odd) { border-inline-start: 0; }
  .editorial-home .home-stat:nth-child(n+3) { border-block-start: 1px solid #c5aa735e; }
  .editorial-home .home-stat:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .editorial-home .sn-logo { font-size: calc(1rem * var(--text-scale, 1)); }
  .editorial-home .sn-logo img { width: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-home *, .editorial-home *::before, .editorial-home *::after {
    scroll-behavior: auto;
  }
}

@media (max-width: 430px) {
  .home-louvre[dir="ltr"] .sn-btn {
    padding-inline: .8rem;
    font-size: calc(.95rem * var(--text-scale, 1));
  }
}
