/* Article base — shared across all 5 article format templates.
   Head, meta, hero image, body typography, figures, callouts,
   pullquotes, share rail, author block, read-next. */

/* ---------- ARTICLE HEAD ---------- */
.art-head { padding: clamp(40px, 5vw, 80px) 0 clamp(24px, 2.4vw, 36px); }
.art-crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 40px; flex-wrap: wrap;
}
.art-crumbs a:hover { color: var(--green-700); }
.art-crumbs .wc-icon { width: 12px; height: 12px; opacity: .5; }
.art-category {
  display: inline-block; padding: 6px 14px;
  background: var(--green-100); color: var(--green-900);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px; margin-bottom: 28px;
}
.art-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 88px); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 28px; color: var(--ink); text-wrap: balance; max-width: 22ch;
}
.art-title em { font-style: italic; color: var(--green-700); }
.art-subtitle {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 1.6vw, 28px); line-height: 1.36;
  color: var(--ink-2); margin: 0 0 40px; max-width: 48ch;
}
.art-meta {
  display: flex; gap: clamp(20px, 2.4vw, 40px); align-items: center; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-2);
}
.art-meta .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--stone); overflow: hidden;
}
.art-meta .avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.art-meta .byline { display: flex; align-items: center; gap: 14px; }
.art-meta .byline .name { font-weight: 500; color: var(--ink); }
.art-meta .byline .role { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .5; }
.art-meta .mi { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.art-meta .mi .wc-icon { width: 14px; height: 14px; }
.art-meta .mi strong { color: var(--ink); font-weight: 500; }

/* ---------- HERO IMAGE ---------- */
.art-hero { padding: 0 0 clamp(28px, 3vw, 48px); }
.art-hero-frame {
  width: 100%; aspect-ratio: 16/9;
  background: var(--stone); overflow: hidden; position: relative;
}
.art-hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01); transition: transform 2s var(--ease);
}
.art-hero-frame.in img { transform: scale(1); }
.art-caption {
  max-width: var(--measure); margin: 16px auto 0; padding: 0 var(--gutter);
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  display: flex; align-items: flex-start; gap: 14px; line-height: 1.5;
}
.art-caption .wc-icon {
  width: 14px; height: 14px; color: var(--green-700); flex: none; margin-top: 3px;
}
.art-caption em { font-style: italic; }

/* ---------- BODY ---------- */
.art-body {
  position: relative;
  padding: clamp(32px, 4vw, 72px) 0 clamp(48px, 5vw, 96px);
}
.art-col {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.art-body p {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.52; color: var(--ink);
  margin: 0 0 1.15em; letter-spacing: .002em;
}
.art-body p.stand-first {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 1.8vw, 28px); line-height: 1.4;
  color: var(--ink-2); margin-bottom: 1.4em;
}
.art-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 2.6vw, 42px); line-height: 1.08; letter-spacing: -.015em;
  margin: 2.4em 0 .6em; color: var(--ink); text-wrap: balance;
}
.art-body h2 em { font-style: italic; color: var(--green-700); }
.art-body h2::before {
  content: ""; display: block;
  width: 36px; height: 2px; background: var(--green-700); margin-bottom: 16px;
}
.art-body h3 {
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 2em 0 .8em;
}
.art-body a {
  color: var(--green-700);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 92%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.art-body a:hover { background-size: 100% 2px; }
.art-body ul, .art-body ol {
  font-family: var(--serif); font-size: 20px; line-height: 1.5;
  padding-left: 1.4em; margin: 0 0 1.15em;
}
.art-body li { margin-bottom: .4em; }
.art-body blockquote {
  margin: 1.5em 0; padding-left: 22px;
  border-left: 2px solid var(--green-700);
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--ink-2);
}

/* ---------- PULL QUOTE ---------- */
.pullquote {
  max-width: calc(var(--measure) + 320px);
  margin: 2.4em auto; padding: 0 var(--gutter); text-align: center;
}
.pullquote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3vw, 44px); line-height: 1.2; letter-spacing: -.015em;
  color: var(--ink); margin: 0 auto 22px; max-width: 22ch; text-wrap: balance;
  border-left: 0; padding-left: 0;
}
.pullquote blockquote::before {
  content: "\201C"; display: block;
  font-size: 1.6em; line-height: .5;
  color: var(--green-700); margin-bottom: 18px;
}
.pullquote cite {
  display: inline-block; font-style: normal;
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- INLINE FIGURE ---------- */
.figure { margin: 2em 0; padding: 0; }
.figure.wide { max-width: calc(var(--measure) + 300px); margin-left: auto; margin-right: auto; }
.figure.full { max-width: var(--container); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.figure .frame { width: 100%; aspect-ratio: 16/10; background: var(--stone); overflow: hidden; }
.figure .frame img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease);
}
.figure:hover .frame img { transform: scale(1.02); }
.figure figcaption {
  margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 16px;
  font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.5;
}
.figure figcaption .credit { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- CALLOUT ---------- */
.callout {
  margin: 2em 0; padding: clamp(22px, 2vw, 32px);
  background: var(--cream-2); border-left: 3px solid var(--green-700);
}
.callout .lbl {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-700); font-weight: 500; margin-bottom: 10px;
}
.callout p { font-size: 17px; line-height: 1.5; margin: 0 0 .6em; font-family: var(--sans); }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 10px 0 0; padding-left: 20px; font-family: var(--sans); font-size: 15px; }
.callout li { margin-bottom: 6px; }

/* ---------- SHARE RAIL ---------- */
.share-rail {
  position: fixed; left: clamp(16px, 2.4vw, 48px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 15;
  opacity: 1; pointer-events: auto;
  transition: opacity .3s var(--ease);
}
/* On narrow screens, hide entirely (share-dock takes over in mobile CSS) */
@media (max-width: 1200px) { .share-rail { display: none; } }
.share-rail .lbl {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; align-self: center;
}
.share-rail button, .share-rail a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .25s var(--ease);
}
.share-rail button:hover, .share-rail a:hover {
  background: var(--green-700); color: #fff;
  border-color: var(--green-700); transform: translateX(2px);
}
.share-rail .wc-icon { width: 15px; height: 15px; }

/* ---------- SHARE DOCK (mobile) ---------- */
.share-dock {
  display: none; position: fixed; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: 8px 10px; border-radius: 999px;
  gap: 8px; align-items: center; z-index: 15;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .3);
  opacity: 1; pointer-events: auto;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.share-dock button, .share-dock a {
  width: 34px; height: 34px; border-radius: 50%; color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
}
.share-dock button:hover, .share-dock a:hover { background: rgba(255, 255, 255, .1); }
.share-dock .wc-icon { width: 15px; height: 15px; }
.share-dock .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); }

/* ---------- READ NEXT ---------- */
.read-next {
  background: var(--cream-2); padding: clamp(56px, 6vw, 96px) 0;
  border-top: 1px solid var(--rule);
}
.rn-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.rn-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 2.4vw, 40px); margin: 0; letter-spacing: -.015em;
}
.rn-head h2 em { font-style: italic; color: var(--green-700); }
.rn-head .lbl {
  font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px;
}
.rn-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.4vw, 40px);
}
.rn-card { display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.rn-card:hover { transform: translateY(-3px); }
.rn-card .ph { aspect-ratio: 4/3; background: var(--stone); overflow: hidden; margin-bottom: 18px; }
.rn-card .ph img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease);
}
.rn-card:hover .ph img { transform: scale(1.05); }
.rn-card .kicker { margin-bottom: 10px; }
.rn-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  line-height: 1.12; letter-spacing: -.01em; margin: 0 0 12px;
  text-wrap: balance; transition: color .2s var(--ease);
}
.rn-card:hover h3 { color: var(--green-700); }

/* ---------- AUTHOR BLOCK ---------- */
.author-block { padding: clamp(48px, 5vw, 80px) 0; border-top: 1px solid var(--rule); }
.ab-grid {
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: clamp(28px, 3vw, 56px); align-items: start;
  max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter);
}
.ab-portrait {
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--stone); overflow: hidden;
}
.ab-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ab-text .lbl {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.ab-text h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 14px;
}
.ab-text p {
  font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; max-width: 56ch;
}
.ab-text .stats { display: flex; gap: 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ab-text .stats .stat { display: flex; flex-direction: column; }
.ab-text .stats strong {
  color: var(--ink); font-family: var(--serif); font-size: 20px; display: block; line-height: 1;
}
.ab-text .stats .lbl2 {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px;
}
.ab-links { display: flex; flex-direction: column; gap: 10px; }
.ab-links a {
  padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; transition: all .2s var(--ease);
}
.ab-links a:hover { background: var(--ink); color: var(--cream); }
.ab-links .wc-icon { width: 14px; height: 14px; }

@media (max-width: 960px) {
  .rn-grid { grid-template-columns: 1fr 1fr; }
  .rn-grid > *:last-child { display: none; }
  .ab-grid { grid-template-columns: 120px 1fr; gap: 24px; }
  .ab-portrait { width: 120px; height: 120px; }
  .ab-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .share-rail { display: none; }
  .share-dock { display: flex; }
}
@media (max-width: 620px) {
  :root { --measure: 92vw; }
  .rn-grid { grid-template-columns: 1fr; }
  .art-body p { font-size: 19px; }
}
