/* Tarkes — long-form article pages (/blog/<slug>/).
 *
 * Loaded after site.css + pages.css, only on article pages. The site chrome
 * stays dark; the article itself is a navy-and-gold "magazine" hero over a
 * light paper reading column, matching the downloadable PDF edition.
 * Body serif: Charter where installed (Apple devices ship it), else Source Serif 4.
 */
:root {
  --ar-navy: #0f1b2d;
  --ar-gold: #c49a4a;
  --ar-gold-ink: #9a7a3c;
  --ar-paper: #fbf9f4;
  --ar-ink: #1d232c;
  --ar-cream: #f4efe6;
  --ar-rule: #d8d2c6;
  --ar-muted: #5c6470;
  --ar-serif: Charter, "Bitstream Charter", "Source Serif 4", Georgia, serif;
  --ar-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ar-col: 700px;
}

.ar-wrap { max-width: var(--ar-col); margin: 0 auto; padding: 0 20px; }

/* ---- hero ---- */
.ar-hero {
  background: var(--ar-navy);
  color: var(--ar-cream);
  padding: 128px 0 0;
}
.ar-hero .ar-wrap { padding-bottom: 40px; position: relative; }
.ar-hero .ar-wrap::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0;
  height: 3px; background: var(--ar-gold);
}
.ar-back {
  display: inline-block; margin-bottom: 28px;
  font: 500 0.9rem/1 var(--ar-sans); color: #b8b2a7;
}
.ar-back:hover { color: var(--ar-cream); }
.ar-kicker, .ar-byline, .ar-end .who { margin: 0; }
.ar-kicker {
  font: 600 0.74rem/1.4 var(--ar-sans); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ar-gold);
}
.ar-hero h1 {
  font-family: var(--ar-sans); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.03; letter-spacing: -0.025em;
  margin: 14px 0 16px; color: var(--ar-cream);
}
.ar-dek {
  font: italic 1.25rem/1.45 var(--ar-serif); color: #d9cfbd; margin: 0; max-width: 34em;
}
.ar-byline {
  margin-top: 22px !important; font: 400 0.85rem/1.6 var(--ar-sans); color: #b8b2a7; letter-spacing: 0.03em;
}
.ar-byline b { color: var(--ar-cream); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ar-byline .sep { margin: 0 8px; color: #6b6f76; }
.ar-byline time { display: block; margin-top: 4px; color: var(--ar-gold); letter-spacing: 0.06em; }

.ar-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ar-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font: 600 0.92rem/1 var(--ar-sans); letter-spacing: 0.01em;
  background: var(--ar-gold); color: var(--ar-navy);
  border: 1px solid var(--ar-gold);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ar-btn:hover { background: #d4ad62; transform: translateY(-1px); }
.ar-btn svg { width: 16px; height: 16px; flex: none; }
.ar-btn.ghost { background: transparent; color: var(--ar-navy); border-color: var(--ar-navy); }
.ar-btn.ghost:hover { background: var(--ar-navy); color: var(--ar-cream); }
.ar-btn small { font-weight: 500; opacity: .75; }

/* ---- paper body ---- */
.ar-paper { background: var(--ar-paper); color: var(--ar-ink); padding: 44px 0 72px; }
.ar-body { font: 400 1.14rem/1.72 var(--ar-serif); }
.ar-body p { margin: 0 0 1.15em; }
.ar-body i { font-style: italic; }
.ar-body h2 {
  font: 700 1.42rem/1.25 var(--ar-sans); letter-spacing: -0.01em;
  color: var(--ar-navy); margin: 2.1em 0 0.7em;
}
.ar-body h2 .n { color: var(--ar-gold); margin-right: 10px; font-variant-numeric: tabular-nums; }
.ar-body .ar-timeline + h2 { margin-top: 1.4em; }
.ar-lead::first-letter {
  float: left; font: 800 4.1em/0.82 var(--ar-sans);
  padding: 6px 10px 0 0; color: var(--ar-navy);
}

.ar-pull {
  margin: 1.6em 0; padding: 18px 0 20px;
  border-top: 3px solid var(--ar-gold); border-bottom: 1px solid var(--ar-rule);
}
.ar-pull p {
  margin: 0; font: 700 clamp(1.3rem, 3.4vw, 1.6rem)/1.28 var(--ar-sans);
  letter-spacing: -0.012em; color: var(--ar-navy);
}

/* timeline: 4 across on desktop, stacked on phones */
.ar-timeline {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ar-rule); border-bottom: 1px solid var(--ar-rule);
  font-family: var(--ar-sans);
}
.ar-timeline li { padding: 14px 14px 13px; border-right: 1px solid var(--ar-rule); }
.ar-timeline li:last-child { border-right: none; }
.ar-timeline .yr, .ar-timeline .nm, .ar-timeline .ds { display: block; }
.ar-timeline .yr { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold-ink); }
.ar-timeline .nm { font-size: 1.02rem; font-weight: 700; margin-top: 4px; line-height: 1.25; color: var(--ar-navy); }
.ar-timeline .ds { font-size: 0.8rem; line-height: 1.4; color: var(--ar-muted); margin-top: 4px; }
.ar-timeline li.next { background: var(--ar-navy); }
.ar-timeline li.next .yr { color: var(--ar-gold); }
.ar-timeline li.next .nm { color: var(--ar-cream); }
.ar-timeline li.next .ds { color: #b8b2a7; }

/* investment boxes */
.ar-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0 1.6em; }
.ar-box { padding: 18px 20px 10px; font-family: var(--ar-sans); }
.ar-box h3 {
  margin: 0 0 12px; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.ar-box ul { list-style: none; margin: 0; padding: 0; }
.ar-box li { position: relative; padding-left: 16px; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.45; }
.ar-box li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; }
.ar-box.skip { background: #fff; border: 1px solid var(--ar-rule); border-left: 3px solid #8a909a; }
.ar-box.skip h3 { color: var(--ar-muted); }
.ar-box.skip li::before { background: #8a909a; }
.ar-box.keep { background: #f2ece0; border-left: 3px solid var(--ar-gold); }
.ar-box.keep h3 { color: var(--ar-gold-ink); }
.ar-box.keep li::before { background: var(--ar-gold); }

/* closing panel */
.ar-close { margin: 2.4em 0 0; background: var(--ar-navy); color: var(--ar-cream); padding: 28px 30px; }
.ar-close .a { margin: 0; font: 700 clamp(1.3rem, 3.6vw, 1.65rem)/1.25 var(--ar-sans); letter-spacing: -0.01em; }
.ar-close .b { margin: 10px 0 0; font: 400 1rem/1.5 var(--ar-sans); color: var(--ar-gold); }

.ar-end {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--ar-rule);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.ar-end .who { font: 400 0.92rem/1.5 var(--ar-sans); color: var(--ar-muted); }
.ar-end .who b { color: var(--ar-navy); font-weight: 600; }
.ar-end .ar-actions { margin-top: 0; }

@media (max-width: 720px) {
  .ar-hero { padding-top: 104px; }
  .ar-byline .sep { display: none; }
  .ar-byline .role { display: block; }
  .ar-body { font-size: 1.06rem; line-height: 1.68; }
  .ar-body h2 { font-size: 1.25rem; }
  .ar-timeline { grid-template-columns: 1fr; }
  .ar-timeline li {
    border-right: none; border-bottom: 1px solid var(--ar-rule);
    display: grid; grid-template-columns: 6.6em 1fr; column-gap: 12px; padding: 12px 14px;
  }
  .ar-timeline li:last-child { border-bottom: none; }
  .ar-timeline .yr { grid-row: span 2; padding-top: 4px; }
  .ar-timeline .nm { margin-top: 0; }
  .ar-boxes { grid-template-columns: 1fr; }
  .ar-close { padding: 22px 20px; }
  .ar-btn { width: 100%; justify-content: center; }
  .ar-end .ar-actions { width: 100%; }
}

@media print {
  .nav, footer, .ar-actions, .ar-back { display: none !important; }
}

/* ---- "Listen to this article" player (assets/listen.js; reusable on any article) ---- */
.listen {
  margin-top: 26px; padding: 16px 18px;
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid rgba(196, 154, 74, 0.35); border-radius: 14px;
  font-family: var(--ar-sans); color: var(--ar-cream);
}
.listen-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.listen-title { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-gold); }
.listen-sub { font-size: 0.82rem; color: #b8b2a7; }
.listen audio { display: block; width: 100%; margin-top: 12px; }
.listen-ui { display: none; align-items: center; gap: 14px; margin-top: 12px; }
.listen.is-ready .listen-ui { display: flex; }
.listen-play {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--ar-gold); color: var(--ar-navy); border: none;
  transition: background .2s ease, transform .15s ease;
}
.listen-play:hover { background: #d4ad62; }
.listen-play:active { transform: scale(0.95); }
.listen-play:focus-visible, .listen-speed:focus-visible, .listen-bar:focus-visible { outline: 2px solid var(--ar-cream); outline-offset: 3px; }
.listen-play svg { width: 20px; height: 20px; }
.listen-play .i-pause { display: none; }
.listen.is-playing .listen-play .i-play { display: none; }
.listen.is-playing .listen-play .i-pause { display: block; }
.listen.is-loading .listen-play { animation: listen-pulse 1s ease-in-out infinite; }
@keyframes listen-pulse { 50% { opacity: .65; } }
.listen-track { flex: 1; min-width: 0; }
.listen-bar {
  --p: 0%;
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; touch-action: none;
}
.listen-bar::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--ar-gold) var(--p), rgba(244,239,230,.22) var(--p));
}
.listen-bar::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(244,239,230,.22); }
.listen-bar::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ar-gold); }
.listen-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: var(--ar-cream); border: 0;
}
.listen-bar::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ar-cream); border: 0; }
.listen-times { display: flex; justify-content: space-between; font-size: 0.76rem; color: #b8b2a7; font-variant-numeric: tabular-nums; margin-top: 2px; }
.listen-speed {
  flex: none; min-width: 54px; height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ar-cream); border: 1px solid rgba(244,239,230,.35);
  font: 600 0.84rem/1 var(--ar-sans); font-variant-numeric: tabular-nums;
}
.listen-speed:hover { border-color: var(--ar-gold); color: var(--ar-gold); }
.listen-note { margin: 10px 0 0; font-size: 0.78rem; color: #8f949b; }
@media (max-width: 720px) {
  .listen { padding: 14px 14px; }
  .listen-ui { gap: 10px; }
  .listen-play { width: 52px; height: 52px; }
}
@media print { .listen { display: none !important; } }
