body.articles-page {
  background: #f8fbfa;
}

body.articles-page .articles-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 5%, rgba(111, 217, 181, 0.09), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
}

body.articles-page .articles-main {
  padding: 90px 0 86px;
  color: #15211c;
}

body.articles-page .articles-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
}

body.articles-page .articles-kicker {
  margin: 0 0 10px;
  color: #079565;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

body.articles-page .articles-intro h1 {
  margin: 0;
  color: #101916;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

body.articles-page .articles-intro > p:not(.articles-kicker) {
  margin: 20px 0 5px;
  color: #263a31;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 750;
}

body.articles-page .articles-intro > small {
  color: #718078;
  font-size: 12px;
  line-height: 1.6;
}

body.articles-page .articles-handwriting {
  position: relative;
  min-height: 130px;
  padding: 8px 18px 0;
  color: #12332a;
  transform: rotate(-4deg);
}

body.articles-page .articles-handwriting strong,
body.articles-page .articles-handwriting span {
  display: block;
  font-family: "KaiTi", "STKaiti", serif;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 700;
}

body.articles-page .articles-handwriting i {
  display: block;
  width: 172px;
  height: 3px;
  margin: 7px 0 0 34px;
  background: #08a56f;
  transform: rotate(-8deg);
}

body.articles-page .articles-handwriting small {
  position: absolute;
  right: 20px;
  bottom: 0;
  color: #91a49b;
  font-family: var(--ui-font);
  font-size: 8px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.28em;
  transform: rotate(4deg);
}

body.articles-page .articles-content {
  max-width: 1280px;
  margin-top: 36px;
}

body.articles-page .articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

body.articles-page .articles-filters button {
  min-width: 58px;
  min-height: 34px;
  padding: 0 18px;
  color: #647168;
  background: #f3f6f5;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

body.articles-page .articles-filters button:hover,
body.articles-page .articles-filters button.is-active {
  color: #fff;
  background: #079565;
  box-shadow: 0 8px 20px rgba(7, 149, 101, 0.18);
}

body.articles-page .articles-timeline {
  position: relative;
}

body.articles-page .articles-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 14px;
  left: 204px;
  width: 1px;
  background: linear-gradient(180deg, rgba(8, 166, 112, 0.08), rgba(8, 166, 112, 0.4), rgba(8, 166, 112, 0.12));
}

body.articles-page .articles-year {
  margin: 0 0 2px;
  color: #8b97a7;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.04em;
}

body.articles-page .articles-year:not(:first-child) {
  margin-top: 30px;
}

body.articles-page .articles-row {
  position: relative;
  display: grid;
  grid-template-columns: 168px 32px minmax(0, 1fr);
  min-height: 137px;
}

body.articles-page .articles-row[hidden],
body.articles-page .articles-year[hidden] {
  display: none;
}

body.articles-page .articles-row time {
  display: block;
  padding-top: 31px;
  text-align: right;
}

body.articles-page .articles-row time strong,
body.articles-page .articles-row time small {
  display: block;
}

body.articles-page .articles-row time strong {
  color: #1d2934;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.03em;
}

body.articles-page .articles-row time small {
  margin-top: 5px;
  color: #9aa5ae;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.articles-page .articles-dot {
  position: relative;
}

body.articles-page .articles-dot::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #08a670;
  border: 3px solid #f8fbfa;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 166, 112, 0.1);
  transform: translateX(-50%);
}

body.articles-page .articles-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 25px 60px 24px 25px;
  color: inherit;
  border-bottom: 1px solid #e7ece9;
  text-decoration: none;
  transition: 0.2s ease;
}

body.articles-page .articles-card:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 35px rgba(22, 76, 57, 0.05);
  transform: translateX(4px);
}

body.articles-page .articles-card > small {
  display: block;
  margin-bottom: 7px;
  color: #069765;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
}

body.articles-page .articles-card h3 {
  margin: 0;
  color: #16201d;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.articles-page .articles-card p {
  display: -webkit-box;
  max-width: 760px;
  margin: 7px 0 9px;
  overflow: hidden;
  color: #77827c;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.articles-page .articles-card footer {
  display: flex;
  gap: 18px;
  color: #8e9aa3;
  font-size: 10px;
}

body.articles-page .articles-card footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.articles-page .articles-card footer svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

body.articles-page .articles-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #24332d;
  transform: translateY(-50%);
}

body.articles-page .articles-arrow svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

body.articles-page .articles-empty {
  margin: 45px 0;
  padding: 32px;
  color: #718078;
  background: #fff;
  border: 1px solid #e3ece8;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  body.articles-page .articles-main {
    padding-top: 82px;
  }

  body.articles-page .articles-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.articles-page .articles-handwriting {
    width: 300px;
    min-height: 112px;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  body.articles-page .articles-main {
    padding: 72px 0 56px;
  }

  body.articles-page .articles-hero,
  body.articles-page .articles-content {
    width: min(100% - 32px, 1120px);
  }

  body.articles-page .articles-intro h1 {
    font-size: 42px;
  }

  body.articles-page .articles-intro > p:not(.articles-kicker) {
    font-size: 15px;
  }

  body.articles-page .articles-handwriting {
    width: 260px;
    margin-right: 10px;
  }

  body.articles-page .articles-handwriting strong,
  body.articles-page .articles-handwriting span {
    font-size: 19px;
  }

  body.articles-page .articles-content {
    margin-top: 22px;
  }

  body.articles-page .articles-filters {
    gap: 8px;
    margin-bottom: 30px;
  }

  body.articles-page .articles-filters button {
    min-height: 32px;
    padding: 0 14px;
    font-size: 11px;
  }

  body.articles-page .articles-timeline::before {
    left: 84px;
  }

  body.articles-page .articles-year {
    font-size: 25px;
  }

  body.articles-page .articles-row {
    grid-template-columns: 68px 32px minmax(0, 1fr);
    min-height: 0;
  }

  body.articles-page .articles-row time {
    padding-top: 25px;
  }

  body.articles-page .articles-row time strong {
    font-size: 12px;
  }

  body.articles-page .articles-dot::before {
    top: 27px;
  }

  body.articles-page .articles-card {
    padding: 20px 32px 20px 10px;
  }

  body.articles-page .articles-card h3 {
    font-size: 15px;
  }

  body.articles-page .articles-card p {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  body.articles-page .articles-arrow {
    right: 0;
    width: 28px;
  }
}

/* Align article spacing and width with portfolio pages. */
body.articles-page .articles-main { padding-top: 120px; }
body.articles-page .articles-hero,
body.articles-page .articles-content { width: min(1280px, calc(100% - 48px)); max-width: none; }
@media (max-width: 900px) { body.articles-page .articles-main { padding-top: 104px; } }
@media (max-width: 640px) { body.articles-page .articles-main { padding: 104px 0 56px; } }

/* Compact mobile reading experience. */
@media (max-width: 640px) {
  body.articles-page .articles-main {
    padding: 91px 0 14px !important;
  }

  body.articles-page .articles-hero,
  body.articles-page .articles-content {
    width: calc(100% - 28px) !important;
  }

  body.articles-page .articles-hero {
    display: block !important;
  }

  body.articles-page .articles-handwriting {
    display: none !important;
  }

  body.articles-page .articles-kicker {
    margin-bottom: 7px !important;
    font-size: 9px !important;
    letter-spacing: .17em !important;
  }

  body.articles-page .articles-intro h1 {
    font-size: 32px !important;
    line-height: 1.05 !important;
    letter-spacing: -.045em !important;
  }

  body.articles-page .articles-intro > p:not(.articles-kicker) {
    margin: 10px 0 3px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body.articles-page .articles-intro > small {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
  }

  body.articles-page .articles-content {
    margin-top: 16px !important;
  }

  body.articles-page .articles-filters {
    flex-wrap: nowrap !important;
    gap: 7px !important;
    margin: 0 -14px 19px !important;
    padding: 0 14px 5px !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
  }

  body.articles-page .articles-filters::-webkit-scrollbar {
    display: none !important;
  }

  body.articles-page .articles-filters button {
    min-width: auto !important;
    min-height: 31px !important;
    flex: 0 0 auto !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    scroll-snap-align: start !important;
  }

  body.articles-page .articles-year {
    font-size: 21px !important;
  }

  body.articles-page .articles-row {
    grid-template-columns: 53px 18px minmax(0, 1fr) !important;
  }

  body.articles-page .articles-timeline::before {
    left: 62px !important;
  }

  body.articles-page .articles-row time {
    padding-top: 20px !important;
  }

  body.articles-page .articles-row time strong {
    font-size: 10px !important;
  }

  body.articles-page .articles-row time small {
    margin-top: 3px !important;
    font-size: 7px !important;
  }

  body.articles-page .articles-dot::before {
    top: 23px !important;
    width: 8px !important;
    height: 8px !important;
  }

  body.articles-page .articles-card {
    padding: 16px 28px 16px 9px !important;
  }

  body.articles-page .articles-card > small {
    margin-bottom: 4px !important;
    font-size: 8px !important;
  }

  body.articles-page .articles-card h3 {
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  body.articles-page .articles-card p {
    margin: 5px 0 7px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 1 !important;
  }

  body.articles-page .articles-card footer {
    gap: 12px !important;
    font-size: 8px !important;
  }
}
