.articles-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}

.articles-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -190px;
  top: -270px;
  border: 1px solid rgba(139, 75, 58, .2);
  border-radius: 50%;
}

.articles-hero .container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding-block: clamp(78px, 11vw, 132px);
}

.articles-hero h1,
.article-hero h1 {
  margin: 0;
  color: var(--petrol-950);
  font-family: var(--serif);
  font-size: clamp(2.85rem, 6vw, 5.65rem);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: .98;
}

.articles-hero .container > p:last-child {
  max-width: 770px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.articles-library { padding-top: 72px; }

.article-tools {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(17, 39, 35, .08);
}

.article-tools label {
  display: block;
  margin-bottom: 9px;
  color: var(--petrol-950);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.article-tools input {
  width: 100%;
  min-height: 54px;
  padding: 13px 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(21, 63, 58, .25);
  border-radius: 12px;
  font: inherit;
}

.article-tools input:focus { border-color: var(--petrol-700); }

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-filters button {
  padding: 8px 13px;
  color: var(--petrol-800);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: 700 .75rem/1 var(--sans);
}

.article-filters button:hover,
.article-filters button.is-active {
  color: var(--white);
  background: var(--petrol-800);
  border-color: var(--petrol-800);
}

.article-results {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.article-category-intro {
  max-width: 780px;
  margin: 0 0 34px;
}

.article-category-intro h2 {
  max-width: 690px;
  margin: 10px 0 14px;
  color: var(--petrol-950);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.article-category-intro > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.article-category-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(78px, 10vw, 124px);
}

.article-category-index__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  color: var(--petrol-950);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.article-category-index__item:hover {
  border-color: rgba(139, 75, 58, .42);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(17, 39, 35, .08);
}

.article-category-index__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.article-category-index__copy strong {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.1;
}

.article-category-index__copy small {
  color: var(--terra);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-category-index__copy em {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-style: normal;
  line-height: 1.45;
}

.article-category-index__copy em span { font-weight: 800; }

.article-category__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--petrol-800);
  background: var(--ivory);
  border: 1px solid rgba(21, 63, 58, .14);
  border-radius: 50%;
}

.article-category__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.article-category {
  margin-top: clamp(76px, 10vw, 128px);
  scroll-margin-top: 130px;
}

.article-category[hidden] { display: none; }

.article-category__header {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 34px;
  padding: clamp(28px, 5vw, 46px);
  background: linear-gradient(135deg, var(--ivory), var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.article-category__icon--large {
  width: 76px;
  height: 76px;
  color: var(--white);
  background: var(--petrol-800);
  border-color: var(--petrol-800);
}

.article-category__icon--large svg {
  width: 42px;
  height: 42px;
}

.article-category__header h2 {
  margin: 7px 0 12px;
  color: var(--petrol-950);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

.article-category__header div > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.article-category__featured-link {
  display: grid;
  max-width: 760px;
  gap: 4px;
  margin-top: 20px;
  padding-top: 18px;
  color: var(--petrol-950);
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.article-category__featured-link span {
  color: var(--terra);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-category__featured-link strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.article-category__featured-link:hover strong { color: var(--terra); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .24s ease, box-shadow .24s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(17, 39, 35, .11);
}

.article-card[hidden] { display: none; }

.article-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, var(--petrol-800), var(--petrol-950));
  text-decoration: none;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.article-card:hover .article-card__image img { transform: scale(1.025); }

.article-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, .18);
  font-family: var(--serif);
  font-size: 4rem;
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: .68rem;
}

.article-card__meta span {
  color: var(--terra);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0 0 13px;
  color: var(--petrol-950);
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { color: var(--terra); }
.article-card__body > p:not(.article-card__meta) { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.article-card .text-link { margin-top: auto; padding-top: 20px; }
.article-card--featured {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.article-card--featured .article-card__image {
  height: 100%;
  min-height: 330px;
  aspect-ratio: auto;
}

.article-card--featured .article-card__body {
  padding: clamp(25px, 4vw, 38px);
}

.article-card--featured h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }

.article-card__body > .article-card__badge {
  align-self: start;
  width: max-content;
  margin: 0 0 17px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--terra);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
.article-empty { margin: 50px 0; text-align: center; }

.home-articles { background: var(--ivory); }
.home-articles .section-heading { max-width: 860px; }
.home-articles .articles-grid { margin-top: 55px; }
.home-articles__footer { margin-top: 38px; text-align: center; }

.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  min-height: 540px;
  padding-block: 72px;
}

.article-back {
  display: inline-block;
  margin-bottom: 35px;
  color: var(--petrol-800);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 750;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.article-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.article-hero__image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.article-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__image figcaption { padding: 9px 12px; color: var(--ink-soft); background: var(--paper); font-size: .7rem; text-align: center; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 330px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(55px, 8vw, 110px);
  padding-block: clamp(70px, 9vw, 120px);
}

.article-layout--single { grid-template-columns: minmax(0, 860px); justify-content: center; }

.article-content {
  min-width: 0;
  color: #333937;
  font-size: 1.04rem;
  line-height: 1.82;
}

.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.35em; }
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--petrol-950);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  scroll-margin-top: 145px;
}

.article-content h2 { margin: 2.15em 0 .75em; font-size: clamp(1.9rem, 4vw, 2.65rem); }
.article-content h3 { margin: 1.8em 0 .7em; font-size: 1.55rem; }
.article-content h4 { margin: 1.6em 0 .65em; font-size: 1.22rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.45em; padding-left: 1.35em; }
.article-content li { margin-bottom: .55em; }
.article-content a { color: var(--petrol-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 22px 26px; color: var(--petrol-950); background: var(--ivory); border-left: 3px solid var(--bronze); font-family: var(--serif); font-size: 1.25rem; }
.article-content figure { margin: 2.2em 0; }
.article-content figure img,
.article-content > img { height: auto; border-radius: var(--radius-sm); }
.article-content figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .75rem; text-align: center; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .88rem; }
.article-content th,
.article-content td { min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { color: var(--petrol-950); background: var(--ivory); }

.article-toc {
  margin: 0 0 50px;
  padding: 25px 27px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-toc > p { margin: 0 0 13px; color: var(--petrol-950); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.article-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.article-toc li { break-inside: avoid; margin-bottom: .55em; font-size: .82rem; line-height: 1.45; }

.article-note {
  margin-top: 55px;
  padding: 22px 24px;
  background: #efe7da;
  border-radius: var(--radius-sm);
  font-size: .84rem;
}

.article-note p { margin: 6px 0 0; }

.article-cta {
  position: sticky;
  top: 150px;
  padding: 27px;
  color: var(--white);
  background: var(--petrol-800);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 60px rgba(17, 39, 35, .16);
}

.article-cta h2 { margin: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.08; }
.article-cta > p:not(.eyebrow) { color: rgba(255, 255, 255, .72); font-size: .88rem; }
.article-cta .eyebrow { color: #d8b878; }
.article-cta .button { width: 100%; margin-top: 8px; }
.article-cta .button--primary { color: var(--petrol-950); background: var(--white); box-shadow: none; }
.article-cta .button--quiet { color: var(--white); }

.legal-page .article-hero { min-height: 330px; display: grid; align-items: center; }
.legal-page .article-hero .container { padding-block: 70px; }
.legal-page .article-hero h1 { max-width: 900px; }

@media (max-width: 980px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-category-index { grid-template-columns: 1fr; }
  .article-hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .article-hero__image { max-width: 700px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-cta { position: static; max-width: 700px; }
}

@media (max-width: 680px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-library { padding-top: 45px; }
  .article-tools { padding: 20px; }
  .article-category-index__item { grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
  .article-category__icon { width: 46px; height: 46px; }
  .article-category__icon svg { width: 26px; height: 26px; }
  .article-category__header { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .article-category__icon--large { width: 64px; height: 64px; }
  .article-category__icon--large svg { width: 36px; height: 36px; }
  .article-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .article-card--featured .article-card__image { min-height: 0; aspect-ratio: 16 / 9; }
  .article-card__body { padding: 20px; }
  .article-hero__grid { padding-block: 50px; }
  .article-hero h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .article-layout { width: min(100% - 36px, 1180px); padding-block: 58px; }
  .article-content { font-size: .98rem; }
  .article-toc ol { columns: 1; }
  .article-meta { display: grid; gap: 3px; }
  .article-meta__sep { display: none; }
  .article-meta span:first-of-type { display: none; }
}

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