@charset "UTF-8";
/* ==========================================================================
   PURE GEORGIA TYPOGRAPHY THEME
   Подгонка кегля стихов: чистый CSS, container queries, без JS.
   Сквозная иерархия заголовков: h1 (логотип) → h2 (раздел) → h3 (рубрика).
   ========================================================================== */

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #ec001a;
  --muted-color: #bbbaba;

  --link-color: #0022d6;
  --link-visited: #852095;
  --link-hover: #ec001a;

  --font-serif: Georgia, "Times New Roman", Times, serif;

  --content-max: 720px;
  --char-avg-em: 0.54;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  padding: 4rem 0.5rem 6rem 1.5rem;
  display: flex;
  justify-content: center;
  font-variant-ligatures: common-ligatures;
  overflow-x: hidden;
}

.site-wrapper {
  width: 100%;
  max-width: var(--content-max);
  container-type: inline-size;
}

/* --- Служебное: скрыто визуально, доступно скринридерам -------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Ссылки ----------------------------------------------------------- */
a { color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--link-visited); }
a:hover, a:focus { color: var(--link-hover); }

/* --- Шапка / логотип (h1 на главной, p на внутренних) ----------------- */
.site-header {margin: -3rem 0rem 3rem 0rem;text-indent: -1rem;}

.site-title {
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1em;
  font-style: italic;
}
.site-title a {
  color: var(--text-color);
  text-decoration: none;
}
.site-title a:visited { color: var(--text-color); }
.site-title a:hover,
.site-title a:focus { color: var(--link-hover); }
.site-title .accent-mark { color: var(--accent-color); font-style: italic; }

/* --- Заголовок раздела (h2) ------------------------------------------ */
h2.section-label {
  font-size: 2rem;
  font-style: italic;
  font-weight: normal;
  color: var(--accent-color);
  margin: 0 0 1.5rem 0;
  display: block;
}

/* --- Рубрика (h3) ----------------------------------------------------- */
h3.rubric {
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: normal;
  color: var(--accent-color);
  margin: 3rem 0 1.75rem;
  letter-spacing: 0.02em;
}

.content-section { margin-bottom: 3.5rem; }
.item-list { list-style: none; }

.item-row {
  margin-bottom: 1.25rem;
  margin-left: 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-link {
  font-size: 1.125rem;
  font-weight: normal;
  font-style: italic;
}

.item-meta {
  font-size: 0.75rem;
  font-style: normal;
  color: var(--muted-color);
  white-space: nowrap;
}

/* --- Типографический разделитель (break) ----------------------------- */
.typo-divider {
  text-align: center;
  margin: 3.5rem 0;
  font-size: 1.55rem;
  color: var(--accent-color);
  user-select: none;
}

.nav-back { margin: 6rem 0rem 0rem -0.5rem; font-size: 0.95rem; }

article.single-post { margin-top: 1rem; }
.post-header { margin-bottom: 2.5rem; }
.post-title {
  font-size: 2.125rem;
  font-weight: normal;
  line-height: 1.3;
  margin: 0rem 0rem 1rem -1.5rem;
  color: var(--text-color);
}
.post-date {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent-color);
  display: block;
}

/* --- ПОЭЗИЯ: строки не переносятся, кегль — через --widest-chars ------ */
.post-body-poem {
  white-space: pre;
  overflow: visible;
  line-height: 1.9;
  color: var(--text-color);

  font-size: min(
    1.25rem,
    calc(100cqw / (var(--widest-chars, 40) * var(--char-avg-em)))
  );
}

.poem-date {
  display: block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent-color);
  text-align: right;
}

.post-body-article {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--text-color);
  text-wrap: balance;  
}

.site-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  font-size: 0.5rem;
  color: var(--muted-color);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
