/* Blog: the list at /blog and every article under /blog/<slug>.
   Builds on styles.css (tokens, nav, footer, .prose, .page-head). Bump the
   ?v= on every blog page after editing this file, same reason as styles.css. */

/* ---------- List ---------- */
.post-list { display: grid; gap: 16px; }

.post-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { border-color: var(--purple); box-shadow: 0 6px 24px rgba(91, 72, 224, 0.08); }
.post-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 6px 0 8px;
}
.post-card h2 a { color: var(--text-primary); text-decoration: none; }
/* The whole card is the link target; the title stays the one real link. */
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.post-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }

.post-meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ---------- Article ---------- */
.article-head { margin-bottom: 32px; }
.article-head h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin-bottom: 14px;
}
.article-head .dek {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 680px;
}

.in-short {
  background: var(--purple-light);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 8px;
}
.in-short h2 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 6px;
}
.in-short p { color: var(--text-primary); font-size: 17px; line-height: 1.65; margin: 0; }

/* One reading column for the whole article, In short box included. */
.article .subpage-narrow { max-width: 720px; }
.prose .cite { font-weight: 600; white-space: nowrap; }
.prose blockquote {
  border-left: 0;
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.prose strong { color: var(--text-primary); }
.prose em { color: var(--text-primary); }

.app-fit {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  margin: 40px 0 8px;
}
.app-fit h2 { margin-top: 0; }
/* App Store and Google Play stacked at one width, as on the home page and FAQ. */
.app-fit .store-row { display: inline-flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 8px; }
.prose .app-fit .btn { text-decoration: none; }
.prose .app-fit .btn-dark { color: #fff; }

.sources-list { font-size: 14.5px; line-height: 1.6; padding-left: 22px; }
.sources-list li { margin-bottom: 10px; scroll-margin-top: 96px; }
.sources-list li:target { background: var(--purple-light); border-radius: 8px; }

.more-link { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--purple); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .post-card { padding: 20px; }
  .post-card h2 { font-size: 20px; }
  .article-head .dek { font-size: 17.5px; }
  .in-short { padding: 18px 20px; }
  .app-fit { padding: 20px; }
}

/* ---------- Example sentences ---------- */
.prose .ex { list-style: none; margin: 4px 0 20px; padding: 0; display: grid; gap: 8px; }
.prose .ex li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 14px;
}
.ex-tl {
  font: inherit;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-primary);
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}
.ex-tl em { color: var(--purple); font-style: normal; }
button.ex-tl { cursor: pointer; }
button.ex-tl svg { width: 15px; height: 15px; color: var(--purple); opacity: 0.7; flex-shrink: 0; }
button.ex-tl:hover svg, .ex-tl.playing svg { opacity: 1; }
.ex-en { font-size: 15px; color: var(--text-secondary); }
.prose sup.cite { font-size: 0.68em; line-height: 0; margin-left: 1px; }
.prose sup.cite a { text-decoration: none; font-weight: 800; }

/* ---------- Comparison posts ---------- */
.disclose {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.disclose strong { color: var(--text-primary); }

/* The table scrolls inside its own box on a phone; the page never does. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; min-width: 640px; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: var(--cream); color: var(--text-primary); font-weight: 800; font-size: 13px; letter-spacing: 0.3px; }
.cmp-table tbody th { color: var(--text-primary); font-weight: 800; white-space: nowrap; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tr.ours th, .cmp-table tr.ours td { background: var(--purple-light); }
.table-note { font-size: 13.5px; margin-bottom: 20px; }
.prose sup.cite + sup.cite::before { content: ","; margin-right: 1px; }
