/* Development pages. Builds on /assets/site.css and uses its color tokens. */

/* Project cards with a wide screenshot instead of three phones */
.project-art.landscape { justify-content: flex-start; padding: 40px 0 0 40px; }
.project-art.landscape img { width: auto; max-width: none; height: 100%; border-radius: 12px 0 0 0; border-right: 0; border-bottom: 0; }
.project-art.landscape img:nth-child(2) { margin-top: 0; }

/* Smaller work cards */
.more { padding-bottom: 72px; }
.more h2 { margin-bottom: 20px; }
.mini { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; text-decoration: none; }
.mini-art { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.mini-art.text { display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: var(--text-3); font-size: 14px; }
.mini-art.text strong { color: var(--text); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.mini-text { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mini-text h3 { font-size: 17px; }
.mini-text p { margin: 0; color: var(--text-2); font-size: 15px; }
.mini-text .project-meta { padding-top: 8px; }
.mini:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Case study figures */
.prose figure figcaption, .dev-figure figcaption { font-size: 14px; color: var(--text-3); margin-top: 8px; }
.dev-figure { margin: 0; }
.prose .dev-figure { margin: 24px 0; }
.dev-figure img, .dev-figure video, .dev-figure iframe { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dev-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 24px; }
.dev-pair.phone { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
.dev-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 24px; }
.dev-pair figure, .dev-phones figure { margin: 0; }
.prose .dev-pair figure, .prose .dev-phones figure { margin: 0; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 24px; margin-top: 24px; }
.phone-pair figure { margin: 0; }

.video { position: relative; }
.video-toggle {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px;
  background: rgba(20, 18, 16, 0.78); color: #fff; font: 500 13px var(--font); cursor: pointer;
}
.video-toggle:hover { background: rgba(20, 18, 16, 0.92); }

.demo-frame { height: 680px; }

/* Code */
pre {
  max-width: 880px; margin: 20px 0 24px; padding: 16px 18px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  font: 13.5px/1.55 var(--mono); tab-size: 2;
}
code { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
pre code { font-size: inherit; }
pre .c { color: var(--text-3); }
kbd { font-family: var(--mono); font-size: 0.85em; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }

.next { margin: 0; }
.next a { font-weight: 500; color: var(--accent); }

@media (max-width: 860px) {
  .project-art.landscape { padding: 24px 0 0 24px; }
  .dev-pair, .dev-pair.phone { grid-template-columns: 1fr; }
  .dev-pair.phone figure:last-child { max-width: 300px; }
  .dev-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .demo-frame { height: 620px; }
}
@media (max-width: 560px) {
  .phone-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
