/* Softkleenex Archive — 포스트 본문 타이포그래피와 구성 요소. base.css 뒤에 로드한다. */

main {
  width: var(--reading);
  margin: 0 auto;
}

.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero.centered {
  border-bottom: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(36px, 7vw, 62px);
  line-height: 1.09;
  letter-spacing: -0.035em;
}

.hero.centered h1 {
  margin-inline: auto;
}

.lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--body);
  font-size: clamp(18px, 3vw, 21px);
  line-height: 1.75;
}

.hero.centered .lead {
  margin-inline: auto;
}

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

.hero-poster {
  width: min(100%, 600px);
  margin: 32px auto 48px;
}

.hero-poster img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

article {
  padding: 36px 0 80px;
}

article h2 {
  margin: 56px 0 16px;
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

article h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

article p,
article li {
  color: var(--body);
  font-size: 17px;
  line-height: 1.9;
}

article p {
  margin: 0 0 20px;
}

article ul,
article ol {
  padding-left: 25px;
}

article li + li {
  margin-top: 9px;
}

article strong {
  color: var(--ink);
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 0.9em;
}

pre {
  margin: 26px 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--pre-bg);
  color: var(--pre-ink);
}

pre code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

blockquote {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}

figure {
  margin: 38px 0;
}

figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 요약 지표 3분할 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats div {
  min-width: 0;
  padding: 18px 14px;
  background: var(--surface);
}

.stats strong {
  display: block;
  color: var(--accent-deep);
  font-size: 22px;
}

.stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* 문제-해결 블록 */
.issue {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.issue h3 {
  margin-top: 0;
  color: var(--accent-deep);
}

.issue p:last-child {
  margin-bottom: 0;
}

/* 번호가 붙은 규칙 목록 */
.rule-list {
  counter-reset: rule;
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.rule-list li + li {
  margin-top: 0;
}

.rule-list li::before {
  counter-increment: rule;
  content: counter(rule);
  position: absolute;
  left: 15px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-size: 12px;
  font-weight: 900;
}

/* 표 */
.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr.hl td {
  background: var(--surface-2);
  font-weight: 700;
}

/* 관련 자료 */
.links {
  margin-top: 50px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.links strong {
  display: block;
  margin-bottom: 8px;
}

.links a {
  display: block;
  padding: 8px 0;
  font-weight: 700;
}

@media (max-width: 620px) {
  .hero {
    padding-top: 44px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  article p,
  article li {
    font-size: 16px;
  }

  .issue {
    padding: 20px;
  }

  .table-wrap table {
    min-width: 560px;
  }
}
