/* SRK Portraits journal (blog) styles. Matches the main site palette and type. */
:root {
  --ink: #09090b;
  --paper: #f7f5f8;
  --paper-deep: #e8e1f0;
  --brand: #b08eff;
  --brand-deep: #7655d6;
  --brand-soft: #eee8ff;
  --line: rgba(9, 9, 11, 0.2);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Header */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 2rem;
  padding: 0.9rem var(--pad);
  color: var(--paper);
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(10px);
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.blog-brand img { width: 2.6rem; height: auto; }

.blog-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1rem, 2.5vw, 2.6rem);
}

.blog-header nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-header nav a:hover,
.blog-header nav a[aria-current="page"] { color: var(--brand); }

/* Blog index */
.blog-hero {
  padding: clamp(5rem, 11vw, 10rem) var(--pad) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 82% 20%, rgba(176, 142, 255, 0.28), transparent 28%),
    var(--brand-soft);
  border-bottom: 1px solid var(--line);
}

.blog-hero h1,
.post-hero h1 {
  max-width: 16ch;
  margin: 1.4rem 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.5vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.blog-hero h1 em,
.post-hero h1 em,
.blog-cta h2 em { color: var(--brand-deep); }

.blog-hero > p:last-child {
  max-width: 40rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.post-grid-index { padding: clamp(3rem, 6vw, 6rem) var(--pad); }

.post-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  text-decoration: none;
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.4rem;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.post-card:hover img { transform: scale(0.985); filter: saturate(1.1); }

.post-card .eyebrow { color: var(--brand-deep); }

.post-card h2,
.post-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.post-card p {
  margin: 0;
  color: rgba(9, 9, 11, 0.7);
  line-height: 1.55;
}

/* Post */
.post-hero {
  padding: clamp(4rem, 9vw, 8rem) var(--pad) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(176, 142, 255, 0.26), transparent 30%),
    var(--brand-soft);
}

.post-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.crumbs {
  margin-bottom: 2.2rem;
  font-size: 0.8rem;
  color: rgba(9, 9, 11, 0.6);
}

.crumbs a { text-decoration: none; }

.post-hero .eyebrow { color: var(--brand-deep); }

.post-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(9, 9, 11, 0.7);
}

.post-cover {
  margin: 0;
  padding: 0 var(--pad);
  background: linear-gradient(var(--brand-soft) 50%, var(--paper) 50%);
}

.post-cover img {
  width: min(100%, 64rem);
  max-height: 78vh;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 0.4rem;
}

.post-body {
  width: min(100% - 2 * var(--pad), 42rem);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.post-body .lede {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-body h2 {
  margin: 3.2rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.post-body h3 {
  margin: 2rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.post-body a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.post-body ul,
.post-body ol { padding-left: 1.2rem; }

.post-body li { margin-bottom: 0.6rem; }

.post-body figure { margin: 2.6rem 0; }

.post-body figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 0.4rem;
}

.post-body figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: rgba(9, 9, 11, 0.62);
}

.post-author {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.4rem;
  align-items: center;
  width: min(100% - 2 * var(--pad), 42rem);
  margin: 4rem auto 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-author img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.post-author p { margin: 0.4rem 0 0; line-height: 1.6; }

.post-author a { color: var(--brand-deep); }

.more-posts { padding: clamp(4rem, 8vw, 7rem) var(--pad); }

.more-posts > h2 {
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.more-posts .post-grid { grid-template-columns: repeat(2, 1fr); }

/* CTA + footer */
.blog-cta {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 55%, rgba(176, 142, 255, 0.13), transparent 28%),
    var(--ink);
}

.blog-cta .eyebrow { color: var(--brand); }

.blog-cta h2 {
  margin: 1.4rem 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.blog-cta h2 em { color: var(--brand); }

.blog-cta > p:not(.eyebrow) {
  max-width: 36rem;
  color: rgba(242, 240, 233, 0.75);
  line-height: 1.6;
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.blog-cta-actions a {
  padding: 0.9rem 1.4rem;
  border: 1px solid rgba(242, 240, 233, 0.3);
  border-radius: 999rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-cta-actions a:hover { color: var(--ink); background: var(--brand); border-color: var(--brand); }

.blog-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem var(--pad) 2rem;
  border-top: 1px solid rgba(242, 240, 233, 0.12);
  color: rgba(242, 240, 233, 0.7);
  background: var(--ink);
  font-size: 0.82rem;
  line-height: 1.6;
}

.blog-footer > div { display: grid; align-content: start; gap: 0.35rem; }

.blog-footer p { margin: 0; }

.blog-footer a { width: fit-content; text-decoration: none; color: rgba(242, 240, 233, 0.86); }

.blog-footer a:hover { color: var(--brand); }

.blog-footer-name { color: var(--paper); font-family: var(--serif); font-size: 1.25rem; }

.blog-copy { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid rgba(242, 240, 233, 0.12); }

@media (max-width: 900px) {
  .post-grid,
  .more-posts .post-grid { grid-template-columns: 1fr; }
  .post-grid-index { gap: 3rem; }
  .blog-footer { grid-template-columns: 1fr 1fr; }
  .blog-footer > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .blog-header nav a { font-size: 0.64rem; }
  .post-author { grid-template-columns: 4.5rem 1fr; }
  .post-author img { width: 4.5rem; height: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card img { transition: none; }
}

/* ==== Permanent dark theme (2026-10-10) ==== */
:root {
  color-scheme: dark;
  --line: rgba(247, 245, 248, 0.16);
  --paper-deep: #17151c;
  --brand-soft: #0e0c14;
  --brand-deep: #b08eff;
}
body { color: var(--paper); background: var(--ink); }
.blog-hero { background: radial-gradient(circle at 82% 20%, rgba(176, 142, 255, 0.18), transparent 30%), var(--brand-soft); }
.post-hero { background: radial-gradient(circle at 85% 15%, rgba(176, 142, 255, 0.16), transparent 32%), var(--brand-soft); }
.post-cover { background: linear-gradient(var(--brand-soft) 50%, var(--ink) 50%); }
.post-card p, .crumbs, .post-meta, .post-body figcaption { color: rgba(247, 245, 248, 0.7); }
