:root {
  color-scheme: light;
  --ink: #17233a;
  --muted: #667386;
  --line: #dfe5ec;
  --accent: #a44327;
  --accent-dark: #7f321f;
  --paper: #fffdf9;
  --wash: #f4f6f8;
  --soft: #f8eee9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 18px/1.9 Georgia, "Times New Roman", serif; }
main { width: min(980px, calc(100% - 32px)); margin: 60px auto; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
h1, h2 { line-height: 1.3; margin-top: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); margin-bottom: 14px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.hero { padding: 24px 0 48px; }
.lead { max-width: 720px; color: var(--muted); font-size: 1.2rem; margin: 0; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font: 700 .82rem/1.4 system-ui, sans-serif; letter-spacing: .04em; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.count, .meta { color: var(--muted); font-family: system-ui, sans-serif; font-size: .86rem; }
.papers { display: grid; gap: 18px; }
.paper, .article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(25,42,67,.07); }
.paper { padding: 26px 30px; }
.paper h2 { margin-bottom: 4px; }
.paper h2 a { color: inherit; text-decoration-thickness: 1px; }
.paper p { margin: 5px 0 16px; }
.button { display: inline-block; border: 1px solid var(--accent); border-radius: 8px; padding: 5px 13px; text-decoration: none; font: 700 .88rem/1.8 system-ui, sans-serif; }
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
footer { color: var(--muted); font: .82rem/1.7 system-ui, sans-serif; margin: 42px 0 0; text-align: center; }
.back-link { display: inline-block; margin-bottom: 18px; font: 700 .9rem/1.5 system-ui, sans-serif; }
.article-header { padding: 34px 42px 22px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.intro-placeholder { color: var(--muted); margin: 0; }
.article-content { padding: 26px 42px 48px; }
.article-text p { margin: 0 0 1.05em; text-align: justify; text-align-last: right; }
.source-link { margin: 0 0 24px; }
.notice { background: var(--soft); border-right: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; }
.pdf-viewer { width: 100%; height: 76vh; min-height: 560px; border: 1px solid var(--line); background: #eee; }
table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .95em; }
td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.image-gallery a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.image-gallery img { display: block; width: 100%; height: 190px; object-fit: contain; }
@media (max-width: 640px) {
  body { font-size: 17px; }
  main { margin: 30px auto; }
  .paper, .article-header, .article-content { padding-left: 20px; padding-right: 20px; }
  .pdf-viewer { min-height: 420px; }
}
