/* ============================================================
   article.css — public/ 文章頁共用樣式
   使用前須先 link ../shared.css
   ============================================================ */

/* ── ARTICLE BODY LAYOUT ── */
body {
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── NAV override（article 頁 nav 不用 8vw padding） ── */
.top-nav {
  padding: 24px 0 20px;
  margin-bottom: 5vh;
  border-bottom: 1px solid var(--line);
}

/* ── HEADINGS ── */
h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 1.2rem;
  opacity: 0.7;
}

h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  margin: 4vh 0 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  line-height: 1.4;
  color: var(--ink);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--mist);
  margin: 1.5rem 0 0.8rem;
}

/* ── BODY TEXT ── */
p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 2;
}

blockquote {
  border-left: 2px solid var(--gold);
  margin: 1.5rem 0;
  padding: 0.8rem 0 0.8rem 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #2e2018;
  line-height: 1.8;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

ul, ol { margin: 0 0 1.2rem 1.5rem; }
li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.9;
}

strong { font-weight: 600; color: var(--ink); }

/* ── TABLE ── */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

th {
  background: rgba(26,20,16,0.06);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: 'Noto Sans Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--ink);
}

tr:nth-child(even) td { background: rgba(184,134,11,0.025); }

/* ── CODE ── */
code {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.85rem;
  background: rgba(26,20,16,0.06);
  padding: 2px 6px;
  color: var(--ink);
}

/* ── EDITORIAL NOTE ── */
.editorial-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.6rem;
  margin-bottom: 3rem;
  background: rgba(184,134,11,0.04);
}

.editorial-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.editorial-note p {
  font-size: 0.95rem;
  color: #4a3828;
  margin-bottom: 0;
  line-height: 1.9;
  font-weight: 400;
}

/* ── METADATA BOX ── */
.metadata-box {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.8rem;
  margin-bottom: 4vh;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.8rem;
  line-height: 2;
  color: #4a3828;
}

.metadata-label {
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  width: 110px;
  display: inline-block;
}

/* ── SUBTITLE ── */
.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--mist);
  margin-bottom: 0;
}

/* ── DIAGRAM ── */
.diagram-container {
  background: var(--ink);
  color: rgba(245,240,232,0.85);
  padding: 2rem 2.5rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.9;
  margin: 1.5rem 0;
  overflow-x: auto;
  letter-spacing: 0.03em;
}

/* ── NEXT READING ── */
.next-reading {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.next-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.next-desc {
  font-size: 1rem;
  font-weight: 400;
  color: #4a3828;
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* ── BUTTON ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.3s;
}
.btn:hover { background: var(--gold); color: var(--ink); }

/* ── POSTSCRIPT / FOOTER ── */
.postscript {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--mist);
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

footer {
  margin-top: 4vh;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.creation-statement {
  font-family: 'Noto Serif TC', serif;
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(26,20,16,0.45);
  margin-bottom: 0.3rem;
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body { padding: 0 18px 60px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  p, li { font-size: 1rem; }
  blockquote { font-size: 1.05rem; }

  table { font-size: 0.95rem; }
  th    { font-size: 0.85rem; }
  code  { font-size: 0.85rem; }
  .diagram-container { font-size: 0.85rem; }
  .metadata-box { font-size: 0.85rem; }
  .editorial-note p { font-size: 1rem; }
}
