:root {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(181, 133, 41, 0.09), transparent 27rem),
    linear-gradient(155deg, #060812 0%, #090d19 55%, #070a13 100%);
  color: #eef1f5;
}

.article-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.article-home-link,
.article-detail-back {
  display: inline-flex;
  margin-bottom: 24px;
  border: 0;
  background: transparent;
  color: #cba64e;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.article-hero { margin-bottom: 26px; }
.article-eyebrow {
  margin: 0 0 7px;
  color: #b9923b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.article-hero h1 {
  margin: 0;
  color: #f2c75b;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: 0.02em;
}
.article-hero p:last-child {
  margin: 10px 0 0;
  color: #8f9aaa;
  font-weight: 700;
  line-height: 1.65;
}

.article-filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 1px 14px;
  scrollbar-width: none;
}
.article-filters::-webkit-scrollbar { display: none; }
.article-filters button {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid #303847;
  border-radius: 10px;
  background: #0c101c;
  color: #8e99a9;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}
.article-filters button.active {
  border-color: #8d6d2c;
  background: #211b11;
  color: #e6c46f;
}

.article-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.article-card,
.article-empty,
.article-detail {
  border: 1px solid #273246;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 39, 0.98), rgba(11, 17, 30, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}
.article-card {
  display: block;
  width: 100%;
  padding: 24px;
  color: inherit;
  font: inherit;
  text-align: left;
}
.article-card:hover,
.article-card:focus-visible {
  border-color: #755d2d;
  outline: none;
}
.article-card.pinned {
  border-color: rgba(168, 128, 46, 0.66);
}
.article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: #b99543;
  font-size: 13px;
  font-weight: 800;
}
.article-card-meta .article-pinned-badge {
  border: 1px solid #765d28;
  border-radius: 6px;
  padding: 2px 7px;
  background: #241c0f;
  color: #e2bd61;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.article-card-meta span + span::before {
  content: "·";
  margin-right: 13px;
  color: #515b69;
}
.article-card h2 {
  margin: 11px 0 10px;
  color: #f2f3f5;
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.42;
}
.article-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #929dac;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.article-read-more {
  display: inline-block;
  margin-top: 17px;
  color: #d2ad52;
  font-size: 14px;
  font-weight: 900;
}

.article-empty { padding: 36px 24px; text-align: center; }
.article-empty h2 { margin: 0 0 8px; color: #eef1f5; }
.article-empty p { margin: 0; color: #8f9aaa; line-height: 1.7; }

.article-detail {
  padding: clamp(24px, 5vw, 52px);
}
.article-detail.hidden,
.article-list.hidden { display: none; }
.article-detail h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  color: #f3f4f6;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.article-summary {
  margin: 0;
  color: #a7b0bc;
  font-size: 17px;
  line-height: 1.75;
}
.article-divider {
  width: 64px;
  height: 2px;
  margin: 27px 0 30px;
  background: linear-gradient(90deg, #d0a548, transparent);
}
.article-detail-content {
  color: #c1c7cf;
  font-size: 17px;
  line-height: 1.95;
}
.article-detail-content p { margin: 0 0 1.35em; }
.article-detail-content h2 {
  margin: 2.25em 0 0.75em;
  color: #edc45f;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.45;
}
.article-lead {
  color: #e3e6ea;
  font-size: 19px;
  font-weight: 700;
}
.article-detail-content blockquote {
  margin: 1.8em 0;
  border-left: 3px solid #b98d33;
  padding: 5px 0 5px 20px;
  color: #eef0f3;
  font-size: 19px;
  font-weight: 800;
}
.article-callout {
  display: grid;
  gap: 8px;
  margin: 1.8em 0;
  border: 1px solid #574621;
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(49, 38, 17, 0.42);
}
.article-callout span {
  color: #b69343;
  font-size: 13px;
  font-weight: 900;
}
.article-callout strong {
  color: #f0d486;
  font-size: 18px;
  line-height: 1.7;
}
.article-steps {
  display: grid;
  gap: 10px;
  margin: 1.6em 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.article-steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid #293548;
  border-radius: 11px;
  padding: 11px 13px;
  background: #101a2a;
  color: #dce1e6;
  font-weight: 800;
}
.article-steps li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4a3918;
  color: #ebca73;
  font-size: 13px;
}
.article-signature {
  margin-top: 2.5em !important;
  color: #d6b45e;
  font-weight: 900;
  text-align: right;
}
.article-disclaimer {
  margin-top: 2.3em !important;
  border-top: 1px solid #293243;
  padding-top: 18px;
  color: #737f8f;
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .article-shell {
    width: min(100% - 24px, 920px);
    padding-top: 24px;
  }
  .article-card { padding: 19px; }
  .article-detail {
    border-radius: 16px;
    padding: 21px 18px 28px;
  }
  .article-detail h1 { font-size: 30px; }
  .article-summary,
  .article-detail-content { font-size: 16px; }
  .article-lead,
  .article-detail-content blockquote { font-size: 17px; }
  .article-detail-content blockquote { padding-left: 15px; }
  .article-callout { padding: 15px; }
}
