/* Beanters detail pages: one page per book, talk and project, plus About and FAQ.
   Loads after site.css and pages.css. Pages are generated by scripts/site_pages.py. */

.dt { padding: clamp(24px, 4vw, 44px) var(--pad) var(--section); }
.page-head h1.dt-h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 24em; }
.dt-meta { margin-top: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }
.dt-tag { margin-top: 14px; }

.dt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dt-grid--wide { grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); }
.dt-cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--sh-lift); background: var(--surface); }
.dt-fig img { width: 100%; height: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--sh-panel); }

.dt-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; margin: 0; padding: 20px clamp(18px, 3vw, 28px); }
.dt-facts dt { color: var(--muted); font-size: 14px; font-weight: 550; }
.dt-facts dd { margin: 0; color: var(--ink); font-weight: 550; }

.dt-sec { margin-top: clamp(32px, 5vw, 56px); }
.dt-sec > h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px; }
.dt-sec .prose + .prose, .dt-sec .prose + .btn-row, .dt-sec .btn-row + .prose { margin-top: 1em; }
.dt-sec .prose { max-width: 66ch; }
.dt-note { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 66ch; }

.dt-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dt-edition { padding: clamp(18px, 3vw, 26px); }
.dt-edition h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.dt-edition .kicker { margin-bottom: 4px; }
.dt-edition .btn-row { margin-top: 14px; }
.dt-edition .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.dt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.dt-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dt-card a { display: grid; gap: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.dt-card img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--sh-card); background: var(--surface); }
.dt-card__topic { font-size: 13px; color: var(--muted); font-weight: 550; }
.dt-card__title { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.dt-card__sub { font-size: 14px; color: var(--body); line-height: 1.5; }
.dt-card a:hover .dt-card__title { text-decoration: underline; text-underline-offset: 3px; }

.dt-list { list-style: none; margin: 0; padding: 0; }
.dt-list li + li { margin-top: 8px; }
.dt-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.dt-who { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: clamp(18px, 3vw, 26px); }
.dt-who picture { grid-row: 1 / span 2; display: block; width: 76px; height: 76px; }
.dt-who img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.dt-who__name { font-weight: 650; color: var(--ink); }
.dt-who__role { color: var(--muted); font-size: 14px; }

.dt-about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.dt-about img { width: 220px; height: 220px; border-radius: var(--r-card); object-fit: cover; box-shadow: var(--sh-panel); }

.dt-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dt-area { padding: clamp(18px, 3vw, 26px); }
.dt-area h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.dt-area p { font-family: var(--serif); font-size: 15.5px; line-height: 1.75; color: var(--body); }

.faq { display: grid; gap: 14px; }
.faq__item { padding: clamp(18px, 3vw, 28px); }
.faq__item h2 { font-size: clamp(18px, 2vw, 21px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.faq__item .prose { margin-top: 10px; max-width: 68ch; }
.faq__item .prose + .prose, .faq__item .prose + ul, .faq__item ul + .prose { margin-top: .8em; }
.faq__item ul { margin: 10px 0 0; padding-left: 1.3em; font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--body); max-width: 68ch; }
.faq__item li + li { margin-top: .3em; }

@media (max-width: 860px) {
  .dt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-areas { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dt-grid, .dt-grid--wide { grid-template-columns: 1fr; }
  .dt-cover { max-width: 260px; }
  .dt-editions { grid-template-columns: 1fr; }
  .dt-about { grid-template-columns: 1fr; }
  .dt-about img { width: 140px; height: 140px; }
}
@media (max-width: 420px) {
  .dt-facts { grid-template-columns: 1fr; gap: 2px; }
  .dt-facts dd { margin-bottom: 10px; }
}
