/* pavelpal.ru — static archive stylesheet */

:root {
  --text: #232323;
  --muted: #767676;
  --accent: #7a1f1f;
  --link: #1a4d8f;
  --rule: #e2ded6;
  --bg: #fdfcfa;
  --highlight: #f6efdf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}

main, .site-header, .site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */

.site-header {
  padding-top: 1.5rem;
  border-bottom: 3px double var(--rule);
  margin-bottom: 2rem;
}

.site-name {
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: .01em;
}

.site-name a { color: var(--accent); text-decoration: none; }
.site-slogan { color: var(--muted); font-style: italic; margin-top: .15rem; }

.site-nav {
  margin: 1rem 0 .8rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: .78rem;
}

.site-nav a {
  color: var(--link);
  text-decoration: none;
  margin-right: 1.1em;
  white-space: nowrap;
}

.site-nav a:hover { text-decoration: underline; }
.site-nav a.current { color: var(--accent); font-weight: bold; }

/* ---------- general content ---------- */

main { min-height: 60vh; }

h1 { font-size: 1.6rem; line-height: 1.25; color: var(--accent); }

a { color: var(--link); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

blockquote {
  margin: 1em 0 1em 1em;
  padding: .1em 1em;
  border-left: 3px solid var(--rule);
  color: #444;
}

table { border-collapse: collapse; max-width: 100%; }
td, th { padding: .2em .5em; }

.meta {
  color: var(--muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: .75rem;
}

.meta .terms a {
  color: var(--accent);
  text-decoration: none;
  margin-left: .5em;
}

.meta .terms a:hover { text-decoration: underline; }

/* ---------- landing ---------- */

.intro {
  background: var(--highlight);
  border: 1px solid #e7dcc0;
  border-radius: 6px;
  padding: 1rem 1.4rem;
  margin: 0 0 2rem;
}

/* ---------- title lists ---------- */

.post-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.post-list li {
  padding: .28rem 0;
  border-bottom: 1px dotted var(--rule);
}

.post-list .date {
  font-family: "DejaVu Sans Mono", Menlo, Consolas, monospace;
  font-size: .8rem;
  color: var(--muted);
  margin-right: .35em;
}

.post-list .author, .post-list .count {
  color: var(--muted);
  font-size: .85rem;
}

/* ---------- comments ---------- */

#comments h2 { font-size: 1.15rem; color: var(--accent); margin-top: 2.5rem; }

.comment {
  background: #f7f5f0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: .2rem 1.1rem .6rem;
  margin: 1rem 0;
}

.comment h3 { font-size: 1rem; margin: .8rem 0 .2rem; }
.comment h3 a { color: var(--text); text-decoration: none; }
.comment .content { font-size: .95rem; }

/* ---------- prev/up/next pager ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  padding-top: .8rem;
  border-top: 3px double var(--rule);
  font-family: Verdana, Geneva, sans-serif;
  font-size: .8rem;
}

.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .up { margin: 0 auto; }
.pager .prev { margin-right: auto; }
.pager .next { margin-left: auto; }

/* ---------- photo galleries ---------- */

.galleries { list-style: none; padding: 0; }

.gallery-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: .9rem 0;
  border-bottom: 1px dotted var(--rule);
}

.gallery-card img {
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.gallery-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.gallery-card p { margin: .25rem 0; font-size: .9rem; }
.gallery-card .count { color: var(--muted); font-size: .78rem; }

.thumb-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem 1rem;
}

.thumb-grid li { text-align: center; }

.thumb-grid img {
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.thumb-grid .caption {
  font-size: .78rem;
  line-height: 1.35;
  font-family: Verdana, Geneva, sans-serif;
}

.thumb-grid .caption a { text-decoration: none; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 3px double var(--rule);
  margin-top: 3rem;
  padding-top: .8rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .gallery-card { flex-direction: column; }
}
