:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --white: #ffffff;
  --radius: 22px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--soft); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 13px; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: Georgia, serif; font-size: 21px; }
.brand em { color: var(--brand); font-style: normal; }
.brand small { margin-top: 4px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.header-link { border-radius: 12px; background: var(--brand); color: white; padding: 10px 16px; text-decoration: none; font-size: 14px; font-weight: 800; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--brand-dark); text-decoration: none; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.library-hero { padding: 58px 0 46px; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #eef2ff 100%); border-bottom: 1px solid var(--line); }
.library-hero h1 { max-width: 850px; margin: 20px 0 14px; font-family: Georgia, serif; font-size: clamp(38px, 6vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.hero-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(18px, 2.5vw, 22px); }
.library-stats { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 26px; border: 1px solid #bfdbfe; border-radius: 16px; background: white; padding: 12px 17px; }
.library-stats strong { color: var(--brand); font-size: 27px; }
.library-stats span, .page-label { color: var(--muted); }
.page-label { margin: 18px 0 0; }

.library-list { padding-block: 46px 70px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; min-height: 330px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 25px; box-shadow: 0 12px 32px rgba(15,23,42,.05); }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.article-card__meta span { border-radius: 999px; background: #dbeafe; color: #1e40af; padding: 5px 10px; font-weight: 800; }
.article-card h2 { margin: 18px 0 12px; font-family: Georgia, serif; font-size: clamp(21px, 3vw, 28px); line-height: 1.3; }
.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { color: var(--brand-dark); }
.article-card p { margin: 0 0 24px; color: var(--muted); }
.article-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.article-card__footer span { color: var(--muted); }
.article-card__footer a { flex: none; color: var(--brand-dark); font-weight: 900; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 8px 12px; text-align: center; text-decoration: none; }
.pagination span { background: var(--brand); color: white; border-color: var(--brand); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; padding-block: 38px 70px; }
.article-main { min-width: 0; }
.article-main h1 { margin: 22px 0 14px; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.13; letter-spacing: -.03em; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.article-kicker span, .article-kicker time { border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 800; }
.article-kicker span { background: #dbeafe; color: #1e40af; }
.article-kicker time { background: #e2e8f0; color: #475569; }
.original-title { margin: 0 0 28px; border-left: 4px solid #cbd5e1; padding-left: 16px; color: var(--muted); font-size: 18px; font-style: italic; }
.article-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0 0 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.article-meta div { background: white; padding: 17px; }
.article-meta dt { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.article-meta dd { margin: 5px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.abstract-section, .source-section { border: 1px solid var(--line); border-radius: 24px; background: white; padding: clamp(24px, 4vw, 38px); }
.abstract-section h2, .source-section h2, .reader-cta h2, .related-section h2 { margin: 0 0 17px; font-family: Georgia, serif; font-size: clamp(27px, 4vw, 39px); line-height: 1.2; }
.abstract-text { margin: 0; font-size: 18px; line-height: 1.85; }
.translation-note { margin: 20px 0; border: 1px solid #fde68a; border-radius: 18px; background: #fffbeb; padding: 18px 20px; color: #78350f; }
.translation-note p { margin: 5px 0 0; }
.reader-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin: 28px 0; border-radius: 25px; background: #0f172a; color: white; padding: clamp(26px, 4vw, 40px); }
.reader-cta p:not(.eyebrow) { margin: 0; color: #cbd5e1; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--brand); color: white; padding: 15px 20px; text-align: center; text-decoration: none; font-weight: 900; }
.primary-button:hover { background: #3b82f6; }
.source-section { margin-top: 28px; }
.source-section p { color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; }
.source-links a { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--brand-dark); font-weight: 800; text-decoration: none; }
.article-sidebar { padding-top: 80px; }
.sidebar-card { position: sticky; top: 98px; border: 1px solid var(--line); border-radius: 20px; background: white; padding: 22px; }
.sidebar-card strong { font-family: Georgia, serif; font-size: 21px; }
.sidebar-card p { color: var(--muted); }
.sidebar-card a { color: var(--brand-dark); font-weight: 900; text-decoration: none; }
.related-section { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 42px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 20px; text-decoration: none; }
.related-card span { color: var(--brand); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.related-card strong { font-family: Georgia, serif; line-height: 1.4; }
.related-card small { margin-top: auto; color: var(--muted); }

.site-footer { border-top: 1px solid #1e293b; background: #0f172a; color: white; padding: 38px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner p { max-width: 620px; margin: 7px 0 0; color: #94a3b8; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 15px; }
.footer-inner a { color: #cbd5e1; text-decoration: none; }

@media (max-width: 900px) {
  .article-grid, .related-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 22px; }
  .article-sidebar { padding-top: 0; }
  .sidebar-card { position: static; }
  .reader-cta { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .brand small { display: none; }
  .header-link { padding: 9px 12px; }
  .library-hero { padding-top: 36px; }
  .article-card { min-height: auto; padding: 20px; }
  .article-card__footer { align-items: flex-start; flex-direction: column; }
  .article-meta { grid-template-columns: 1fr; }
  .abstract-text { font-size: 17px; }
}
