/* ChessGraduation - blog.css
   Article-specific styles. Loaded after landing.css. */

:root {
  --prose: 38rem;
  --prose-wide: 48rem;
}

/* ---------- Blog hub ---------- */
.blog-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(8px, 1.5vw, 16px); }
.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.blog-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  max-width: 14ch;
  margin-top: var(--space-1);
}
.blog-hero p { color: var(--ink-mid); font-size: var(--t-lead); max-width: 36ch; margin-top: var(--space-2); }
.blog-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-deep);
  background: var(--paper-2);
}
.blog-hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.blog-hero + .section-tight { padding-top: clamp(8px, 1.5vw, 20px); }

.post-feed {
  display: flex;
  flex-direction: column;
}
.post-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.post-row:last-child { border-bottom: 1px solid var(--border); }
.post-cover {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-row-copy { display: flex; flex-direction: column; gap: var(--space-2); }
.post-row-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.post-row-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.post-row-title a:hover { background-size: 100% 1px; }
.post-row-dek { color: var(--ink-mid); font-size: var(--t-lead); max-width: 38rem; }
.post-row-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.04em; }
.post-row-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-soft); }

@media (max-width: 900px) {
  .blog-hero-grid { grid-template-columns: 1fr; }
  .blog-hero-visual { aspect-ratio: 4 / 3; max-height: 420px; }
  .post-row { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .post-row-title { font-size: clamp(1.4rem, 5vw, 1.85rem); }
}

/* ---------- Article shell ---------- */
.article {
  padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px);
}
.article-meta-top {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.85rem; color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.article-meta-top .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-soft); }
.article-header {
  max-width: var(--prose-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: left;
}
.article-header .eyebrow { color: var(--accent-warm); }
.article-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 22ch;
  margin-top: var(--space-2);
}
.article-dek {
  margin-top: var(--space-3);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--ink-mid);
  line-height: 1.5;
  font-family: var(--serif);
  font-style: italic;
  max-width: 42ch;
}

.article-figure {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: min(calc(100% - var(--gutter) * 2), 1080px);
}
.article-figure img,
.article-figure svg {
  width: 100%; height: auto;
  display: block;
  border-radius: 22px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-2);
  box-shadow: var(--shadow-deep);
}
.article-figure figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.article-prose {
  max-width: var(--prose);
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0 var(--gutter);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: #2A2724;
}
.article-prose > * + * { margin-top: 1.2em; }
.article-prose p { margin: 0; }
.article-prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.article-prose h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.article-prose ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-prose ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.5em;
}
.article-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--ink-soft);
}
.article-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s var(--ease);
}
.article-prose a:hover { text-decoration-color: var(--ink); }
.article-prose strong { color: var(--ink); font-weight: 700; }
.article-prose em { font-style: italic; }

/* Drop-cap on the first paragraph */
.article-prose > p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 0;
  color: var(--ink);
}

/* Pull-quote inside article */
.article-prose blockquote {
  margin: 2em 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2em 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: center;
}
.article-prose blockquote p { margin: 0; }
.article-prose blockquote::before { content: "\201C"; color: var(--ink-soft); margin-right: 0.05em; }
.article-prose blockquote::after { content: "\201D"; color: var(--ink-soft); margin-left: 0.05em; }

/* Continue reading footer */
.article-related {
  max-width: min(calc(100% - var(--gutter) * 2), 1080px);
  margin: clamp(64px, 9vw, 112px) auto 0;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--border);
  padding-top: clamp(28px, 4vw, 40px);
}
.article-related-card { display: flex; flex-direction: column; gap: 12px; }
.article-related-card .post-cover { aspect-ratio: 16 / 9; border-radius: 14px; }
.article-related-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 760px) {
  .article-related-grid { grid-template-columns: 1fr; }
  .article-prose { font-size: 1.0625rem; line-height: 1.65; }
  .article-prose > p:first-child::first-letter { font-size: 3.2em; }
}
