/* ============================================================
   GLAGOL JOURNAL — Reading typography
   Loaded after styles.css; overrides for long-form reading.
   ============================================================ */

/* ============================================================
   JOURNAL INDEX
   ============================================================ */
.journal-index {
  padding: clamp(56px, 8vw, 100px) var(--gutter);
}
.journal-index-inner {
  max-width: 760px;
  margin: 0 auto;
}
.journal-index-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.journal-index-title {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 10px;
}
.journal-index-lede {
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
}

.journal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.journal-list-item {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  transition: padding 0.2s var(--ease-out);
}
.journal-list-item:last-child { border-bottom: 1px solid var(--line); }

.journal-list-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}
.journal-list-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.18s var(--ease-out);
}
.journal-list-link:hover .journal-list-title { color: var(--accent); }
.journal-list-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.journal-list-excerpt {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 8px;
  max-width: 60ch;
}
.journal-list-meta {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 14px;
}

.journal-empty {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 14px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 100px);
}

.post-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.post-back {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  transition: color 0.18s var(--ease-out);
}
.post-back:hover { color: var(--accent); }

.post-eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}
.post-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.post-meta {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-3);
}
.post-meta-sep { margin: 0 8px; color: var(--ink-4); }

/* ── Article body — reading-optimised ─────────────────────── */
.post-content {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink);
}
.post-content > * + * { margin-top: 1.4em; }

.post-content p {
  max-width: 64ch;
}

/* First paragraph — gentle drop cap */
.post-content > p:first-of-type::first-letter {
  font-size: 3.4em;
  line-height: 0.86;
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--accent);
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2em;
  color: var(--ink);
}
.post-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.1vw, 23px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  color: var(--ink);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 83, 61, 0.35);
  transition: text-decoration-color 0.18s var(--ease-out);
}
.post-content a:hover { text-decoration-color: var(--accent); }

.post-content em { font-style: italic; }
.post-content strong { font-weight: 600; color: var(--ink); }

.post-content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-2);
}

.post-content ul,
.post-content ol {
  padding-left: 1.6em;
  max-width: 60ch;
}
.post-content li + li { margin-top: 0.5em; }
.post-content ul li { list-style-type: none; }
.post-content ul li::before {
  content: "✦";
  color: var(--accent);
  margin-right: 0.6em;
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-content pre {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}
.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em auto;
  max-width: 60%;
}

/* Cyrillic snippet spans */
.post-content [lang="ru"] {
  font-feature-settings: 'ss01', 'liga';
}

/* ── Post footer / CTA ─────────────────────────────────────── */
.post-footer {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.post-cta-lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-2);
  margin-bottom: 24px;
}
.post-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 600px) {
  .journal-list-link {
    grid-template-columns: 1fr;
  }
  .post-content > p:first-of-type::first-letter {
    font-size: 2.8em;
  }
}
