/* ============================================================
   koushikdeb.com — articles, AI-for-Teachers hub, speaking.
   Extends paper.css + hub.css.
   ============================================================ */

/* ---------- article column ---------- */
.art-wrap { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 36px) 64px; }
.art-head { padding: clamp(26px, 4vw, 40px) 0 10px; }
.art-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--teal);
}
.art-head h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.6px;
  font-size: clamp(28px, 4.6vw, 42px); line-height: 1.16; margin: 10px 0 12px;
  animation: fadeUp .6s .05s both;
}
.art-dek { font-size: 18.5px; line-height: 1.55; color: var(--text); opacity: .85; margin-bottom: 14px; }
.art-byline { font-size: 13.5px; color: var(--muted); }
.art-byline a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- prose ---------- */
.prose {
  font-family: "Literata", Georgia, serif; font-size: 18.5px; line-height: 1.78; color: #d7deec;
  margin-top: 26px;
}
.prose p { margin: 0 0 1.05em; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.32em; line-height: 1.3; color: var(--text);
  margin: 1.9em 0 .55em; letter-spacing: -0.3px;
}
.prose h3 { font-family: var(--font-display); font-size: 1.08em; color: var(--text); margin: 1.5em 0 .45em; }
.prose a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(45,212,191,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--teal); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote {
  margin: 1.3em 0; padding: .9em 1.2em; border-left: 3px solid var(--amber);
  background: var(--amber-dim); border-radius: 0 10px 10px 0; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; background: rgba(255,255,255,.07); padding: .1em .35em; border-radius: 5px; }
.prose pre.prompt {
  position: relative; background: #0b1226; border: 1px solid var(--card-border); border-radius: 12px;
  padding: 16px 18px; margin: 1em 0 1.3em; overflow-x: auto; white-space: pre-wrap;
  font-size: 14.5px; line-height: 1.6;
}
.prose pre.prompt code { background: none; padding: 0; font-size: 1em; color: #cfe9e4; }
.prose pre .copy {
  position: absolute; top: 8px; right: 8px; font-family: var(--font-display); font-size: 11.5px;
  font-weight: 600; color: var(--muted); background: rgba(255,255,255,.06);
  border: 1px solid var(--card-border); border-radius: 999px; padding: 3px 11px; cursor: pointer;
}
.prose pre .copy:hover { color: var(--teal); border-color: var(--teal); }
.prose pre .copy.done { color: #6ee7d8; }
.prose table { width: 100%; border-collapse: collapse; font-size: .85em; margin: 1em 0 1.4em; }
.prose th, .prose td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.prose th { font-family: var(--font-display); color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--card-border); margin: 2em 0; }

/* checklists */
.prose li.check { list-style: none; margin-left: -1.3em; display: flex; gap: .6em; align-items: baseline; }
.prose .cb {
  flex: none; width: .9em; height: .9em; border: 2px solid var(--teal); border-radius: 4px;
  display: inline-block; transform: translateY(.12em); cursor: pointer;
}
.prose li.check.on .cb { background: var(--teal); box-shadow: inset 0 0 0 2px #0b1226; }
.prose li.check.on { color: var(--muted); }

/* ---------- inline book card ---------- */
.book-card-inline {
  display: flex; gap: 20px; align-items: center; margin: 42px 0 10px;
  background: var(--card); border: 1px solid rgba(251,191,36,.3); border-radius: var(--radius);
  padding: 18px 22px;
}
.bci-cover { flex: none; width: 74px; }
.bci-cover img { width: 100%; border-radius: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.bci-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); }
.book-card-inline h3 { font-family: var(--font-display); font-size: 17px; margin: 3px 0 4px; }
.book-card-inline p { color: var(--muted); font-size: 14px; margin: 0; }
.bci-links { margin-top: 6px !important; }

/* ---------- related + author ---------- */
.art-related { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--card-border); }
.art-related h2 { font-family: var(--font-display); font-size: 19px; margin-bottom: 12px; }
.art-related ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.art-related li a { color: var(--text); font-size: 15.5px; }
.art-related li a:hover { color: var(--teal); }
.art-related li::before { content: "→ "; color: var(--teal); }
.art-back { margin-top: 16px; font-size: 14px; }
.author-box {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 34px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 20px;
}
.author-box img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.author-box p { color: var(--muted); font-size: 14.5px; margin: 0; }
.ab-name { font-family: var(--font-display); font-weight: 600; color: var(--text) !important; margin-bottom: 3px !important; }
.ab-name a { color: var(--text); }

/* ---------- hub cards ---------- */
.hub-intro { color: var(--muted); font-size: 17px; max-width: 720px; margin-top: 14px; }
.hub-intro p { margin-bottom: .8em; }
.ac-group { margin-top: clamp(34px, 5vw, 50px); }
.ac-blurb { color: var(--muted); margin: -6px 0 16px; font-size: 15px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ac-card {
  display: flex; flex-direction: column; gap: 6px; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px 20px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ac-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.45); box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.ac-card h3 { font-family: var(--font-display); font-size: 16px; line-height: 1.4; }
.ac-card p { color: var(--muted); font-size: 13.8px; line-height: 1.5; }
.hub-main .book-card-inline { max-width: 760px; }

@media (max-width: 640px) {
  .prose { font-size: 17px; }
  .book-card-inline { flex-direction: column; align-items: flex-start; }
}
@media print {
  .hnav, .crumbs, .art-related, .author-box, .book-card-inline, .pfoot, .kd-views, pre .copy { display: none !important; }
  body, .hub-body { background: #fff !important; }
  .prose, .art-head h1, .art-dek, .prose h2, .prose h3 { color: #000 !important; }
  .prose .cb { border-color: #000; }
}

/* ---------- article figures (book frameworks, tools/make_figures.py) ---------- */
.art-fig { margin: 28px 0 30px; }
.art-fig img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--card-border); }
.art-fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.prose a[target="_blank"]::after { content: " ↗"; font-size: .85em; }
/* in-text links underlined (WCAG 1.4.1) */
.prose p a, .prose li a, .art-dek a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.author-box p a, .bci-links a, .art-byline a, .art-related a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
