/* ReapKeep case study: design context, four core diagrams, and development reflection. */
.rk-intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.rk-intro-grid > *, .rk-insights > *, .rk-system-note > *, .rk-tools > * { min-width: 0; }
.rk-intro-copy h1 { margin: 0 0 18px; font-size: clamp(3.3rem, 5.5vw, 5.2rem); }
.rk-intro-heading { color: var(--text); font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 20px; }
.reapkeep-page .detail-lede, .reapkeep-page .prose p { font-size: 1rem; }
.reapkeep-page .detail-actions { justify-content: flex-start; align-items: center; gap: 16px; margin-top: 26px; }
.rk-text-link { font-size: .875rem; text-underline-offset: 5px; }
.rk-intro-art { margin: 0; }
.rk-intro-art img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.rk-intro-art figcaption { color: var(--muted); font-size: .875rem; margin-top: 14px; }
.reapkeep-page .fact-bar { border-top: 1px solid var(--line); border-radius: 8px; }
.reapkeep-page .fact-bar dt { color: var(--muted); }
.reapkeep-page .fact-bar dd { font-size: 1rem; }
.reapkeep-page .case-nav { position: static; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 20px 0; background: transparent; }
.reapkeep-page .eyebrow, .reapkeep-page .case-nav a, .reapkeep-page .fact-bar dt { font-size: .875rem; }
.reapkeep-page .project-next { position: static; display: flex; padding-top: 0; background: transparent; }
.reapkeep-page :is(section, article, #contribution)[id] { scroll-margin-top: 110px; }
.reapkeep-page code { font: .875em/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.reapkeep-page :is(a, summary, [tabindex="0"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.rk-project-overview { padding-bottom: 42px; }
.rk-play-view { padding-bottom: 80px; }
.rk-design-feature .section-heading { padding-top: 8px; }
.rk-design-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; margin-top: 36px; }
.rk-design-copy > * { min-width: 0; }
.rk-design-copy h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.35; margin: 0 0 16px; }
.rk-design-copy p, .rk-design-connection { color: var(--muted); font-size: 1rem; }
.rk-design-copy p { margin: 0 0 16px; }
.rk-design-copy p:last-child { margin-bottom: 0; }
.rk-decree-example { border-left: 2px solid var(--accent); padding-left: 26px; }
.rk-decree-example .eyebrow { color: #ff9abe; font-size: .875rem; margin-bottom: 12px; }
.rk-design-connection { max-width: 900px; margin: 32px 0 0; }
.rk-design-connection a { color: #ff9abe; text-underline-offset: 4px; }
.rk-reflection { max-width: 900px; margin: 0 0 36px; padding-left: 26px; border-left: 2px solid var(--line); }
.rk-reflection h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 0 0 14px; }
.rk-reflection p { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.rk-reflection p:last-child { margin-bottom: 0; }
.rk-crowd-controls { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
.rk-crowd-controls > h3 { font-size: 1.25rem; margin: 0; letter-spacing: -.02em; }
.rk-crowd-controls .rk-insights { margin-top: 24px; }
.rk-crowd-controls h4 { font-size: 1rem; line-height: 1.5; margin: 0 0 10px; }
.rk-crowd-controls .rk-source { border: 0; margin-top: 12px; }
/* Scale figure height with its responsive width, overriding HTML height hints. */
.reapkeep-page .detail-figure img { height: auto; }
.reapkeep-page .detail-figure figcaption { font-size: .875rem; color: var(--muted); }
.rk-system-figure { margin: 0; }
.rk-diagram-scroll { max-width: 100%; overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; scrollbar-color: #7c5065 var(--bg); }
.rk-diagram-scroll img { display: block; width: 100%; min-width: 70rem; max-width: none; height: auto; }
.rk-system-figure figcaption { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; color: var(--muted); font-size: .875rem; margin-top: 16px; }
.rk-system-figure figcaption > span { flex: 1 1 30rem; }
.rk-system-figure figcaption > a { flex: 0 1 auto; color: #ff9abe; text-underline-offset: 4px; }
.rk-connection { max-width: 850px; color: var(--muted); margin: 32px 0 0; }
.rk-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 38px; }
.rk-insights h3 { font-size: 1.2rem; margin: 0 0 12px; letter-spacing: -.02em; }
.rk-insights p { color: var(--muted); margin: 0; }
.rk-source { margin-top: 24px; border-top: 1px solid var(--line); }
.rk-source summary { color: #dce0e5; font-size: .875rem; font-weight: 650; cursor: pointer; padding: 16px 0; }
.rk-source summary:hover { color: #ff9abe; }
.rk-source p, .rk-source li { color: var(--muted); font-size: .9375rem; max-width: 900px; }
.rk-source ul { margin-top: 0; padding-left: 20px; }
.rk-source li + li { margin-top: 10px; }
.rk-source code { font-size: .875rem; }
.rk-supporting-systems { border-top: 1px solid var(--line); }
.rk-system-note { display: grid; grid-template-columns: .55fr 1.45fr; gap: 56px; border-bottom: 1px solid var(--line); padding: 30px 0; }
.rk-system-note h3 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0; }
.rk-system-note > div > p { margin: 0; color: var(--muted); }
.rk-system-note .rk-source { margin-top: 12px; border: 0; }
.rk-system-note .rk-source summary { padding-block: 8px; }
.rk-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.rk-tools h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 16px; }
.rk-tools article > p { color: var(--muted); }
.rk-review-scope { padding-bottom: 64px; }
.rk-review-scope .rk-source { margin-top: 0; }
.rk-review-note { font-size: .875rem; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 1050px) {
  .rk-intro-grid { gap: 28px; }
  .rk-insights, .rk-system-note { gap: 32px; }
  .rk-tools { gap: 24px; }
}
@media (max-width: 800px) {
  .rk-intro-grid, .rk-insights, .rk-system-note, .rk-tools { grid-template-columns: 1fr; gap: 24px; }
  .rk-design-copy { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .rk-decree-example, .rk-reflection { padding-left: 18px; }
  .rk-intro-art { max-width: 700px; }
  .rk-project-overview { padding-bottom: 32px; }
  .rk-play-view { padding-bottom: 56px; }
  .rk-system-note { gap: 12px; }
  .rk-tools article + article { border-top: 1px solid var(--line); padding-top: 28px; }
  .rk-system-figure figcaption { gap: 8px; }
}
@media (max-width: 480px) {
  .reapkeep-page .fact-bar div { padding: 16px; }
  .reapkeep-page .case-nav { gap: 12px 20px; }
}
