.article-main {
  max-width: 920px;
}

.article-hero {
  padding: 78px 0 54px;
  border-bottom: 1px solid var(--line-strong);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 600;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
}

.article-hero h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 76px);
}

.article-dek {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-media {
  margin: 46px 0 68px;
}

.article-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 34px -20px rgba(22, 25, 22, 0.42);
}

.article-answer {
  margin-bottom: 62px;
  padding: 24px 0 26px 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
}

.article-answer h2 {
  margin-bottom: 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.article-answer p,
.article-section p,
.article-section li,
.article-section td,
.article-section th {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.68;
}

.article-answer p,
.article-section p {
  max-width: 760px;
  margin-bottom: 18px;
}

.article-section {
  padding: 56px 0 58px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(30px, 3.8vw, 44px);
}

.article-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.article-section a,
.post-list a {
  color: var(--accent-hover);
  font-weight: 600;
}

.article-section a:hover,
.post-list a:hover,
.back-link:hover {
  color: var(--ink);
}

.prompt-lines {
  border-top: 1px solid var(--line-strong);
}

.prompt-lines p {
  max-width: none;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.article-steps {
  margin: 28px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.article-steps li {
  position: relative;
  padding: 18px 0;
  padding-left: 66px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.article-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--accent-hover);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.article-steps strong,
.article-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.check-grid section {
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}

.check-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
}

.article-table-wrap {
  max-width: 100%;
  margin-top: 28px;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  scrollbar-color: var(--line-strong) transparent;
}

.article-table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.article-table-wrap table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  table-layout: fixed;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 18px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article-table-wrap thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.article-table-wrap tbody th {
  color: var(--ink);
  font-weight: 600;
}

.article-list {
  max-width: 760px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.article-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.related-section {
  margin-bottom: 70px;
  border-top-color: var(--line-strong);
}

.post-list {
  padding: 48px 0 94px;
}

.post-list article {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.post-list h2 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: clamp(30px, 3.8vw, 42px);
}

.post-list p {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .article-main {
    width: min(calc(100% - 64px), 920px);
  }

  .article-hero {
    padding: 56px 0 42px;
  }

  .article-hero h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.07;
  }

  .article-dek {
    font-size: 15px;
    line-height: 1.6;
  }

  .article-media {
    margin: 34px 0 54px;
  }

  .article-media img {
    border-radius: 8px;
  }

  .article-answer {
    padding-left: 15px;
  }

  .article-section {
    padding: 46px 0 48px;
  }

  .article-steps li {
    padding-left: 48px;
  }

  .check-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-table-wrap table {
    min-width: 680px;
  }
}
