:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --card: #fffefa;
  --ink: #20251f;
  --muted: #667066;
  --line: #d9dfd4;
  --green: #325b40;
  --green-soft: #e8efe5;
  --shadow: 0 15px 42px rgba(38, 47, 35, .06);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(1120px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 36px; display: flex; flex-direction: column; }
.site-header { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; color: white; background: var(--green); border-radius: 50%; font-size: 21px; line-height: 1; }
.header-label { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
main { flex: 1; padding: 72px 0 96px; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 13px; font-weight: 720; letter-spacing: .11em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.13; letter-spacing: -.055em; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.hero-count { flex: none; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 29px 0 23px; }
.section-label { margin: 0; font-size: 18px; font-weight: 720; }
.search { width: min(340px, 100%); height: 43px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); outline-offset: 3px; }
.search:focus { border-color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-height: 204px; padding: 27px; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: #9cb9a0; }
.card-meta { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.card-title { margin: 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.35; letter-spacing: -.025em; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 23px; color: var(--green); font-size: 13px; font-weight: 650; }
.card-skill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty, .error, .loading { padding: 58px 26px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 18px; }
.detail-head { padding-bottom: 37px; border-bottom: 1px solid var(--line); }
.detail-head h1 { margin-bottom: 20px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 14px; }
.detail-meta a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 265px; align-items: start; gap: 30px; padding-top: 32px; }
.transcript, .downloads { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.transcript { min-width: 0; padding: 29px 32px 36px; }
.transcript h2, .downloads h2 { margin: 0 0 20px; font-size: 19px; }
.transcript pre { margin: 0; color: #313831; white-space: pre-wrap; overflow-wrap: anywhere; font: 16px/1.95 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.downloads { padding: 24px; }
.download-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--green); border-radius: 11px; background: var(--green); color: white; font-size: 14px; font-weight: 650; text-decoration: none; }
.download-link.secondary { background: var(--green-soft); color: var(--green); }
.download-link:hover, .download-link:focus-visible { filter: brightness(.94); }
.site-footer { min-height: 64px; display: flex; align-items: center; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
@media (max-width: 700px) {
  .shell { padding: 0 18px; }
  .site-header { min-height: 68px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 29px; height: 29px; font-size: 19px; }
  .header-label { font-size: 11px; }
  main { padding: 48px 0 65px; }
  .hero { display: block; padding-bottom: 28px; }
  .hero-count { margin-top: 19px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .search { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 170px; padding: 22px; }
  .detail-grid { grid-template-columns: 1fr; gap: 17px; }
  .transcript { padding: 23px 20px 29px; }
  .downloads { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
