/* Articles section */
.articles {
  background: var(--paper);
  padding: 120px 32px;
  border-top: 1px solid rgba(26,27,34,0.08);
}
.articles-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.articles-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.articles-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(26,27,34,0.78);
  max-width: 620px;
  margin: 18px 0 0;
}

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

.article-card {
  background: var(--paper);
  border: 1px solid rgba(26,27,34,0.1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.16,1,0.3,1), box-shadow 240ms ease, border-color 240ms ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(26,27,34,0.18);
  border-color: rgba(26,27,34,0.18);
}
.article-card:focus { outline: 2px solid var(--ink); outline-offset: 4px; }

.article-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.article-cover-dots {
  position: absolute; inset: 0;
  pointer-events: none;
}
.article-cover-dots span {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}
.article-num {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.95);
  font-feature-settings: "tnum";
}

.article-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}
.article-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.article-dek {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(26,27,34,0.7);
  margin: 0;
  text-wrap: pretty;
  flex: 1;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(26,27,34,0.55);
}
.article-arrow {
  color: var(--ink);
  font-weight: 600;
}

/* Article modal */
.article-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,12,16,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fadeIn 200ms ease;
}
.article-modal {
  background: var(--paper);
  border-radius: 24px;
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.45);
  animation: modalIn 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.article-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  color: var(--ink);
}
.article-close:hover { background: #fff; }
.article-hero {
  position: relative;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: flex-end;
}
.article-num-lg {
  position: relative;
  bottom: auto; left: auto;
  font-size: 80px;
  padding: 36px 48px;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.04em;
}
.article-content {
  padding: 36px 56px 48px;
  max-width: 680px;
  margin: 0 auto;
}
.article-h {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 8px 0 14px;
  text-wrap: balance;
}
.article-dek-lg {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(26,27,34,0.75);
  margin: 0 0 24px;
  font-style: italic;
}
.article-byline {
  font-size: 13px;
  color: rgba(26,27,34,0.55);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(26,27,34,0.1);
  margin-bottom: 32px;
}
.article-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(26,27,34,0.88);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.article-pull {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.article-foot {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,27,34,0.1);
  font-size: 13px;
  color: rgba(26,27,34,0.55);
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-content { padding: 28px 28px 40px; }
  .article-h { font-size: 30px; }
  .article-num-lg { font-size: 56px; padding: 24px 28px; }
}
