.articles-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 28px 56px;
  box-sizing: border-box;
}

.articles-heading h1 {
  margin: 0 0 18px;
  color: var(--text, #f5f5f5);
  font-size: 30px;
  font-weight: 400;
}

.articles-grid {
  display: grid;
  gap: 12px;
}

.article-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 0;
  padding: 22px 74px 22px 24px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text, #d7d7d7);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.article-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 3px solid rgba(237, 176, 73, 0.18);
  border-radius: 50%;
  opacity: 0.9;
  transform: rotate(-10deg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: var(--accent-line, rgba(237, 176, 73, 0.48));
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px var(--shadow-accent-strong), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  color: var(--text, #f2f2f2);
  outline: none;
}

.article-card:hover::after,
.article-card:focus-visible::after {
  border-color: rgba(237, 176, 73, 0.32);
  transform: rotate(-10deg) scale(1.04);
}

.article-card h2 {
  order: 1;
  margin: 0;
  color: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.28;
  transition: color 160ms ease;
}

.article-card .content-label {
  order: 0;
}

.article-card:hover h2,
.article-card:focus-visible h2 {
  color: var(--accent, #edb049);
}

.article-card p,
.article-body p,
.article-summary {
  margin: 0;
  color: var(--muted, #b8b8b8);
  font-size: 14px;
  line-height: 1.75;
}

.article-card p {
  order: 3;
  max-width: 680px;
  line-height: 1.65;
  transition: color 160ms ease;
}

.article-card:hover p,
.article-card:focus-visible p {
  color: var(--muted, #b8b8b8);
}

.article-date {
  color: var(--accent, #edb049);
  font-size: 12px;
  line-height: 1.2;
}

.article-card .article-date {
  order: 2;
  transition: color 160ms ease;
}

.article-card:hover .article-date,
.article-card:focus-visible .article-date {
  color: var(--muted, #b8b8b8);
}

.article-detail {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 26px 0 16px;
}

.article-detail h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--text, #f5f5f5);
  font-size: clamp(34px, 4.6vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.article-meta {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 72px;
  color: var(--muted, #9b9b9b);
  font-size: 13px;
  text-align: center;
}

.article-meta .article-date,
.article-author {
  color: var(--muted, #b8b8b8);
  font-size: inherit;
}

.article-summary {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--text, #d7d7d7);
  font-size: 17px;
  line-height: 1.75;
}

.article-body {
  display: grid;
  width: min(620px, 100%);
  margin: 0 auto;
  gap: 20px;
}

.article-body p {
  color: var(--text, #d1d1d1);
  font-size: 16px;
  line-height: 1.82;
}

.article-author-note {
  width: min(620px, 100%);
  margin: 48px auto 0;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--surface-raised, #202020);
}

.article-author-note h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.article-author-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-body h2,
.article-body h3 {
  margin: 34px 0 0;
  color: var(--text, #f5f5f5);
  font-weight: 600;
  line-height: 1.25;
}

.article-body h2 {
  font-size: 30px;
}

.article-body h3 {
  font-size: 22px;
}

.article-body hr {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  border: 0;
  background: var(--line, rgba(255, 255, 255, 0.12));
}

.article-body strong {
  color: var(--text, #f5f5f5);
  font-weight: 600;
}

.article-body em {
  color: var(--text, #d7d7d7);
}

.article-body a {
  color: var(--accent, #edb049);
  text-decoration: none;
}

.article-body a:hover,
.article-body a:focus-visible {
  color: var(--accent, #edb049);
  text-decoration: underline;
  outline: none;
}

.article-back {
  display: flex;
  width: fit-content;
  margin: 68px auto 0;
  color: var(--muted, #9b9b9b);
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease;
}

.article-back:hover,
.article-back:focus-visible {
  color: var(--accent, #edb049);
  outline: none;
}

body.theme-light .article-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
}

body.theme-light .article-card:hover,
body.theme-light .article-card:focus-visible {
  border-color: var(--line);
  background: #f7f7f8;
  box-shadow: 0 18px 44px var(--shadow-accent-soft);
}

body.theme-light .article-card p,
body.theme-light .article-body p,
body.theme-light .article-summary,
body.theme-light .article-meta .article-date,
body.theme-light .article-author,
body.theme-light .article-back {
  color: var(--muted) !important;
}

body.theme-light .article-card:hover h2,
body.theme-light .article-card:focus-visible h2,
body.theme-light .article-back:hover,
body.theme-light .article-back:focus-visible {
  color: var(--accent, #a46312) !important;
}

body.theme-light .article-card:hover p,
body.theme-light .article-card:focus-visible p,
body.theme-light .article-card:hover .article-date,
body.theme-light .article-card:focus-visible .article-date {
  color: #676c75 !important;
}

body.theme-light .articles-heading h1,
body.theme-light .article-detail h1,
body.theme-light .article-body h2,
body.theme-light .article-body h3,
body.theme-light .article-body strong {
  color: var(--text);
}

body.theme-light .article-author-note {
  background: var(--surface-raised);
}

body.theme-light .article-body hr {
  background: var(--line);
}

@media (max-width: 700px) {
  .articles-panel {
    padding: 26px 14px 44px;
  }

  .articles-heading h1 {
    font-size: 25px;
  }

  .article-card {
    padding: 18px 58px 18px 18px;
    border-radius: 10px;
  }

  .article-card::after {
    right: 18px;
    bottom: 18px;
    width: 30px;
    height: 30px;
  }

  .article-card h2 {
    font-size: 20px;
  }

  .article-detail h1 {
    font-size: 32px;
  }

  .article-meta {
    margin-bottom: 46px;
  }

  .article-body p {
    font-size: 15px;
    line-height: 1.8;
  }
}
