.detail-main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.project-hero { min-height: 66dvh; padding: 80px 0; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--line); }
.back-link { align-self: flex-start; margin-bottom: auto; color: var(--muted); text-underline-offset: 4px; }
.project-hero h1, .release-hero h1 { max-width: 1050px; margin: 24px 0; font-size: clamp(58px, 10vw, 138px); line-height: .88; }
.project-tagline { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(20px, 2.4vw, 32px); line-height: 1.25; }
.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 38px 0 84px; }
.project-facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.project-facts span { display: block; color: var(--muted); font-size: 12px; }
.project-facts strong { display: block; margin-top: 8px; }
.project-about { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 10vw, 160px); padding: 100px 0; border-top: 1px solid var(--line); }
.project-about h2, .releases-heading h2, .release-notes h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.055em; }
.project-about p { max-width: 720px; color: var(--muted); font-size: 20px; }
.releases-section { padding: 100px 0 130px; border-top: 1px solid var(--line); }
.releases-heading { max-width: 720px; margin-bottom: 56px; }
.releases-heading p { margin: 16px 0 0; color: var(--muted); }
.release-list { display: grid; gap: 14px; }
.release-row { display: grid; grid-template-columns: .4fr 1fr auto; gap: 24px; align-items: center; padding: 26px; border-radius: var(--soft-radius); background: var(--surface); text-decoration: none; transition: transform .25s ease, background .25s ease; }
.release-row:hover { transform: translateX(6px); background: var(--surface-strong); }
.release-version { font-size: clamp(26px, 4vw, 44px); font-weight: 850; letter-spacing: -.05em; }
.release-summary strong { display: block; margin-bottom: 5px; }
.release-summary span, .release-date { color: var(--muted); font-size: 13px; }
.no-releases { padding: 50px; border-radius: var(--soft-radius); background: var(--surface); color: var(--muted); text-align: center; }
.release-hero { min-height: 54dvh; padding: 70px 0; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--line); }
.release-hero h1 { margin-bottom: 12px; }
.release-title { color: var(--muted); font-size: 20px; }
.release-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(50px, 10vw, 150px); padding: 100px 0 130px; }
.release-notes ol { margin: 44px 0 0; padding: 0; list-style: none; counter-reset: note; }
.release-notes li { counter-increment: note; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 18px; }
.release-notes li::before { content: counter(note, decimal-leading-zero); display: inline-block; width: 52px; color: var(--accent); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.download-panel { position: sticky; top: 32px; align-self: start; padding: 28px; border-radius: var(--soft-radius); background: var(--surface); }
.download-panel h2 { margin: 0 0 20px; font-size: 28px; }
.download-panel dl { margin: 0 0 28px; }
.download-panel div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.download-panel dt { color: var(--muted); }
.download-panel dd { margin: 0; text-align: right; }
.download-panel .download-link { display: flex; justify-content: center; }
.detail-error, .detail-loading { padding: 100px 0; color: var(--muted); }
@media (max-width: 760px) {
  .detail-main { width: min(calc(100% - 32px), var(--max)); }
  .project-hero, .release-hero { min-height: auto; padding: 64px 0; }
  .back-link { margin-bottom: 70px; }
  .project-facts, .project-about, .release-layout { grid-template-columns: 1fr; }
  .project-facts { gap: 28px; }
  .release-row { grid-template-columns: 1fr; gap: 8px; }
  .release-date { justify-self: start; }
  .download-panel { position: static; }
}
