/* ===========================================================
   AIO ASIA — JOURNAL (Insights index + Article reading view)
   Loads on top of aioasia.css (shares tokens, nav, logo, footer).
   =========================================================== */

/* striped image placeholder (drop a real image here later) */
.ph {
  position: relative;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(22, 20, 15, 0.05) 0,
    rgba(22, 20, 15, 0.05) 1px,
    transparent 1px,
    transparent 11px
  );
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.ph__label {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 14px;
}

/* ----------------------------------------------------------
   Page header (shared)
   ---------------------------------------------------------- */
.page-head {
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(36px, 5vh, 56px);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-size: clamp(38px, 5.4vw, 72px);
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.page-head .lede { max-width: 52ch; }

/* ----------------------------------------------------------
   Filters
   ---------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(30px, 4vh, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.filter {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ----------------------------------------------------------
   Featured post
   ---------------------------------------------------------- */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(36px, 5vh, 56px) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.featured__media { min-height: 320px; border-radius: 0; }
.featured__body { display: flex; flex-direction: column; justify-content: center; }
.featured__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 22px;
}
.featured__kicker .star {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.featured__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.014em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.featured__dek {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 44ch;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.featured a.featured__link { text-decoration: none; color: inherit; display: contents; }
.featured:hover .featured__title { color: var(--jade); }
.featured__title { transition: color 0.25s ease; }
@media (max-width: 820px) {
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 200px; order: -1; }
}

/* ----------------------------------------------------------
   Post grid
   ---------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(28px, 4vw, 56px);
  margin-top: clamp(8px, 2vh, 18px);
}
.post-item {
  display: flex;
  flex-direction: column;
  padding: 36px 0 38px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.post-item__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 20px;
}
.post-item__title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  transition: color 0.25s ease;
}
.post-item:hover .post-item__title { color: var(--jade); }
.post-item__dek {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  flex-grow: 1;
}
.post-item__foot { margin-top: auto; }
.post-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}
@media (max-width: 820px) { .post-grid { grid-template-columns: 1fr; } }
@media (min-width: 821px) and (max-width: 1080px) { .post-grid { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------
   Article reading view
   ---------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: clamp(40px, 6vh, 72px) 0 0;
  transition: color 0.25s ease;
}
.back-link:hover { color: var(--jade); }
.back-link .chev { width: 7px; height: 7px; border-color: currentColor; }

.article { max-width: 720px; }
.article__head { padding: 26px 0 clamp(30px, 4vh, 44px); }
.article__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  margin: 0 0 22px;
}
.article__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.016em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.article__dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 40ch;
}
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 500;
}
.byline strong { color: var(--ink); font-weight: 600; }

.lead-media { width: 100%; height: clamp(260px, 42vw, 460px); margin-bottom: clamp(36px, 5vh, 60px); }

/* body typography */
.art-body { font-size: 19px; line-height: 1.7; color: var(--ink); }
.art-body .art-lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 30px;
}
.art-body p { margin: 0 0 26px; color: rgba(22,20,15,0.86); }
.art-body h2 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 44px 0 18px;
  color: var(--ink);
}
.art-body ul { margin: 0 0 26px; padding: 0; list-style: none; }
.art-body li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: rgba(22,20,15,0.86);
}
.art-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 7px; height: 1px;
  background: var(--jade);
}
.art-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--jade);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--ink);
}
.art-note {
  margin: 36px 0;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}

/* draft / coming-soon state when a body is not written yet */
.art-draft {
  margin: 8px 0 0;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.art-draft p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 48ch; }

/* article footer: CTA + related */
.article-foot {
  margin-top: clamp(56px, 8vh, 96px);
  padding-top: clamp(40px, 5vh, 56px);
  border-top: 1px solid var(--ink);
}
.article-cta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.article-cta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 18ch;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 4vw, 56px);
}
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid .post-item:first-child { border-top: 1px solid var(--rule); }

/* active nav item on sub-pages */
.nav__link[aria-current] { color: var(--ink); }
.nav__link[aria-current]::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--jade);
  margin-top: 4px;
}
