/* ============================================================
   JOURNAL ARTICLE — a single post at /blog/<slug>
   Loaded after style.css + photography.css.
============================================================ */

:root {
  --rule: rgba(15, 15, 15, 0.12);
}

/* ---------- BACK LINK (same component as the photo essays) ---------- */
.back-link-wrap {
  padding: calc(var(--nav-h) + 3rem) 0 0;
  background-color: var(--page-bg);
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.2s;
}

.back-link:hover {
  color: var(--text);
  letter-spacing: 0.22em;
}

/* ============================================================
   META BITS — the same small components as the Journal index,
   repeated here because an article page does not load blog.css.
============================================================ */
.tag {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-block;
}

.meta-line {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
}

/* Each post is written in one language; the badge says which. */
.lang-badge {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.4rem;
  display: inline-block;
  line-height: 1.4;
}

/* ============================================================
   HEADER
============================================================ */
.post-head {
  padding: 3rem 0 3.5rem;
  text-align: center;
  background: var(--page-bg);
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.post-title {
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto;
}

.post-standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 50ch;
  margin: 2rem auto 0;
}

.post-byline {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Shown on imported pieces — states where the text first ran. */
.post-origin {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.post-origin a { color: var(--text-dim); text-decoration-color: var(--amber); }
.post-origin a:hover { color: var(--amber); }

/* ---------- HERO ---------- */
.post-hero {
  width: 100%;
  height: clamp(320px, 50vw, 680px);
  overflow: hidden;
  margin-bottom: 4.5rem;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   BODY
============================================================ */
.post-body {
  background: var(--page-bg);
  padding-bottom: 6rem;
}

.prose {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
  color: rgba(15, 15, 15, 0.82);
}

/* Drop cap on the opening paragraph */
.prose p.lead::first-letter {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 0.82;
  float: left;
  margin: 0.12em 0.12em 0 0;
  color: var(--text);
}

.prose h2 {
  font-weight: 900;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 3.5rem 0 1.25rem;
}

.prose h3 {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.75rem 1.25rem;
  color: rgba(15, 15, 15, 0.82);
}

.prose li {
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 0.6rem;
}

.prose a {
  color: var(--text);
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--amber); }

.prose em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

.prose strong { font-weight: 700; }

.prose hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 3.5rem auto;
  max-width: 120px;
}

.pull-quote {
  margin: 3.5rem 0;
  padding-left: 1.75rem;
  border-left: 2px solid var(--amber);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: 1.45;
  color: var(--text);
}

/* ---------- FIGURES — break out past the text column ---------- */
.post-figure {
  margin: 4rem auto;
  max-width: 980px;
  padding: 0 1.5rem;
}

.post-figure--full { max-width: 100%; padding: 0; }

.post-figure--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-figure img { width: 100%; height: auto; }

.post-figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.post-figure--pair figcaption { grid-column: 1 / -1; }

/* ============================================================
   SIGN-OFF & TAGS
============================================================ */
.post-signoff {
  max-width: 660px;
  margin: 4rem auto 0;
  padding: 2.5rem 1.5rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.post-signoff-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--page-mid);
}

.post-signoff-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.post-signoff-text strong { color: var(--text); font-weight: 700; }

.post-tags {
  max-width: 660px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.post-tag:hover { color: var(--amber); border-color: var(--amber); }

/* ============================================================
   NEXT / PREV
============================================================ */
.post-next {
  background: var(--page-mid);
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--rule);
}

.post-next .eyebrow { color: var(--amber); margin-bottom: 2.25rem; }

.post-next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.post-next-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}

.post-next-card .meta-line { display: block; margin-bottom: 0.75rem; }

.post-next-frame {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #E8E4DF;
  margin-bottom: 1.1rem;
}

.post-next-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.post-next-card:hover .post-next-frame img { transform: scale(1.05); }

.post-next-title {
  display: block;
  font-weight: 900;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: color 0.25s;
}

.post-next-card:hover .post-next-title { color: var(--amber); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 860px) {
  .post-head { padding: 2rem 0 2.5rem; }
  .post-hero { margin-bottom: 3rem; }
  .prose p.lead::first-letter { font-size: 3rem; }
  .post-figure--pair { grid-template-columns: 1fr; }
  .post-next-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .post-signoff { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
