:root {
  --bg: #0a0c13;
  --line: #2b2f3e;
  --ink: #ece7da;
  --muted: #b7b1a2;
  --gold: #dcb65e;
  --gold-ink: #17120a;
  --paper: #ffffff;
  --paper-ink: #1a1a1a;
  --paper-link: #7a5200;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 Cambria, Georgia, "Times New Roman", serif;
}
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 20px 0; }
.top a { color: var(--gold); font-weight: 700; text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top span { color: var(--muted); letter-spacing: .12em; font-size: 15px; line-height: 1.9; }

article {
  padding: 48px 60px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--paper-ink);
}
article h1 { margin: 0 0 26px; font-size: 28px; line-height: 1.3; overflow-wrap: anywhere; }
article h2 { margin: 36px 0 14px; font-size: 24px; line-height: 1.3; }
article h3 { margin: 28px 0 10px; font-size: 20px; line-height: 1.3; }
article p { margin: 0 0 14px; text-align: justify; overflow-wrap: break-word; }
article .c { text-align: center; }
article p.pic { margin: 22px 0; text-align: center; text-indent: 0; }
article img { max-width: 100%; height: auto; }
article img.formula { display: block; margin-top: 8px; margin-bottom: 8px; }
article a { color: var(--paper-link); }
article a.zoom { cursor: zoom-in; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pager a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}
.pager a:hover { border-color: var(--gold); }
.pager small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 14px; }
.pager .next { text-align: right; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
}
.btn:hover { background: rgba(220, 182, 94, .12); }
.btn.primary { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.btn.primary:hover { background: #e8c676; }

footer { margin-top: 30px; padding: 22px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0; }
  .top, .pager, .cta, footer { margin-left: 16px; margin-right: 16px; }
  article { padding: 26px 16px; border-radius: 0; }
  article h1 { font-size: 24px; }
  article h2 { font-size: 21px; }
  article h3 { font-size: 19px; }
  article p { text-align: left; }
  article .c { text-align: center; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { text-align: left; }
}
