/* a2sys 소식 페이지. 상단바·푸터·토큰은 /legal/legal.css 를 그대로 쓰고, 여기서는 목록과 글 본문만 정한다. */

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.page-h {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
}
.page-lead { margin-top: 12px; color: var(--muted); line-height: 1.75; }

/* ─── 종류 필터 ─── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.filters button {
  font: inherit;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filters button:hover { color: var(--text); border-color: var(--faint); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ─── 목록 ─── */
/* 한 줄 = 위에 메타(종류 · 날짜 · 매체 · 언어), 아래에 제목. 화살표는 오른쪽 칸에 세로 가운데로 둔다. */
.posts { list-style: none; margin-top: 28px; border-top: 1px solid var(--border); }
.posts li { border-bottom: 1px solid var(--border); }
.posts li[hidden] { display: none; }
.post-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  grid-template-areas: "meta go" "title go";
  column-gap: 28px; row-gap: 10px;
  padding: 26px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.2s;
}
.post-link:hover { text-decoration: none; background: rgba(255, 255, 255, 0.03); }

.post-meta {
  grid-area: meta;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  font-size: 0.8125rem; color: var(--faint);
}
.post-kind {
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
.post-date { font-variant-numeric: tabular-nums; }
.post-src { color: var(--muted); }
.post-meta > * + *:not(.post-lang)::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 3px; height: 3px; border-radius: 50%; background: var(--faint);
  margin-right: 12px; position: relative; top: -1px;
}
.post-kind + .post-date::before { display: none !important; }
.post-lang {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; line-height: 1.4;
}

.post-tt { grid-area: title; display: block; }
.post-t {
  display: block;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--text);
}
.post-link:hover .post-t { color: #fff; }
/* 영문 제목 아래 붙는 원래(한국어) 제목. 읽을 수는 있되 영문보다 한 단계 물러나 있게. */
.post-orig { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--faint); line-height: 1.6; }

.post-go {
  grid-area: go; align-self: center;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.post-link:hover .post-go { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateX(2px); }

.empty { margin-top: 32px; color: var(--muted); }

/* ─── 글 본문 ─── */
.post-head { padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.post-head .post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.post-head .post-date { padding-top: 0; }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }

.prose { font-size: 1rem; line-height: 1.85; }
.prose h2 { font-size: 1.375rem; font-weight: 700; color: var(--text); margin: 44px 0 14px; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0 18px; display: block; }
.prose blockquote {
  margin: 0 0 18px; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue); color: var(--muted);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose pre {
  margin: 0 0 18px; padding: 14px 18px; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.875rem; line-height: 1.7; color: var(--text); }

.post-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-foot a { font-size: 0.9375rem; font-weight: 600; }

@media (max-width: 620px) {
  .post-link { column-gap: 14px; padding: 22px 8px; margin: 0 -8px; grid-template-columns: minmax(0, 1fr) 32px; }
  .post-go { width: 32px; height: 32px; }
  .page { padding: 0 20px; }
}
