/* ═══════════════════════════════════════════════
   DENTÉ — Kinfolk-inspired Article Layout
   Dark editorial · Cormorant Garamond display
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Poppins:wght@200;300;400;500;600&display=swap');

/* ─── ARTICLE ROOT ─── */
.kf-article {
  background: var(--bg);
  min-height: 100vh;
}

/* ─── OPEN: SPLIT HERO ─── */
/* Left: portrait image  |  Right: title block */
.kf-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  border-bottom: 1px solid var(--border);
}

.kf-open-img {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.kf-open-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(12%) brightness(0.9);
}
.kf-open-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

.kf-open-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 72px 80px 64px;
  position: relative;
}

.kf-issue-tag {
  position: absolute;
  top: 48px;
  left: 64px;
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kf-issue-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--dim);
}

.kf-pillar-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 28px;
}

.kf-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 32px;
}

.kf-byline {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kf-byline strong {
  color: var(--silver);
  font-weight: 500;
}
.kf-byline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--border-mid);
}

.kf-intro-dek {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

/* ─── BODY COLUMN ─── */
.kf-body-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.kf-body-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  padding: 96px 0;
}

/* Left margin: running meta */
.kf-margin {
  position: sticky;
  top: 80px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kf-margin-label {
  font-family: 'Poppins', sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.kf-margin-value {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.kf-margin-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border-mid), transparent);
}

/* Share row */
.kf-share {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kf-share a {
  font-family: 'Poppins', sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.kf-share a:hover { color: var(--white); }

/* ─── PROSE ─── */
.kf-prose {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
}

.kf-prose p {
  margin-bottom: 28px;
}

.kf-prose p::first-letter {
  font-size: 4.4em;
  font-weight: 600;
  float: left;
  line-height: 0.72;
  margin: 8px 14px 0 0;
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
}

/* only on very first p */
.kf-prose p:not(:first-child)::first-letter {
  font-size: inherit;
  font-weight: inherit;
  float: none;
  margin: 0;
  line-height: inherit;
  color: inherit;
}

.kf-prose h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 56px 0 20px;
}

.kf-prose strong {
  font-weight: 600;
  color: var(--white);
}

/* ─── INLINE PULL QUOTE ─── */
/* Full-width break within prose */
.kf-pull {
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
  margin: 56px -32px;
  padding: 48px 32px;
  position: relative;
}
.kf-pull-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--off-white);
  max-width: 620px;
}
.kf-pull-attribution {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kf-pull-attribution::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--dim);
}

/* ─── INLINE SPLIT IMAGE (Kinfolk two-column mid-article) ─── */
.kf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 64px -32px;
  overflow: hidden;
}
.kf-split-img {
  overflow: hidden;
  background: var(--bg3);
}
.kf-split-img img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: transform 0.7s ease;
}
.kf-split-img:hover img { transform: scale(1.04); }

/* ─── CAPTION (for standalone inline images) ─── */
.kf-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--dim);
  line-height: 1.7;
  margin-top: 14px;
  padding-left: 2px;
  border-left: 1px solid var(--border);
}

/* ─── FULL-WIDTH IMAGE BREAK ─── */
.kf-full-img {
  margin: 80px calc(-1 * var(--pad-x));
  overflow: hidden;
  background: var(--bg3);
}
.kf-full-img img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
  filter: grayscale(10%) brightness(0.85);
}

/* ─── AUTHOR BIO (Kinfolk-style sidebar card) ─── */
.kf-bio {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin: 64px 0 0;
}
.kf-bio-avatar {
  width: 80px;
  height: 80px;
  background: var(--bg3);
  overflow: hidden;
  filter: grayscale(20%);
}
.kf-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kf-bio-label {
  font-family: 'Poppins', sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}
.kf-bio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}
.kf-bio-text {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

/* ─── ARTICLE FOOTER NAV ─── */
.kf-art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.kf-art-footer a {
  font-family: 'Poppins', sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.kf-art-footer a:hover { color: var(--white); }

/* ─── READING PROGRESS BAR ─── */
.kf-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--white);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .kf-open { grid-template-columns: 1fr; min-height: auto; }
  .kf-open-img { height: 65vw; max-height: 560px; }
  .kf-open-img::after { background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%); }
  .kf-open-text { padding: 48px 32px 64px; }
  .kf-issue-tag { top: 24px; left: 32px; }
  .kf-body-grid { grid-template-columns: 1fr; gap: 0; }
  .kf-margin { position: static; flex-direction: row; flex-wrap: wrap; gap: 24px 40px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
  .kf-margin-rule { display: none; }
  .kf-pull { margin: 48px 0; }
  .kf-split { margin: 48px 0; }
}

@media (max-width: 640px) {
  .kf-open-text { padding: 36px 20px 48px; }
  .kf-title { font-size: clamp(30px, 8vw, 48px); }
  .kf-split { grid-template-columns: 1fr; gap: 2px; }
  .kf-split-img img { min-height: 260px; }
  .kf-bio { grid-template-columns: 1fr; }
  .kf-bio-avatar { width: 64px; height: 64px; }
}
