/* The app collection uses the same quiet portfolio shell as the writing. */
:root {
  --paper: #fff;
  --ink: #232323;
  --subtle: #737379;
  --line: #eaeaec;
  --sans: Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #727e88; outline-offset: 5px; }
::selection { background: #e7e7e7; color: var(--ink); }
.wrap { position: relative; width: 100%; max-width: 856px; padding-inline: 24px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-200%); background: #fff; padding: 12px; font-size: 14px; }
.skip-link:focus { transform: none; }

.hero { padding: 0 0 52px; }
.eyebrow { font-size: 12px; line-height: 1.6; font-weight: 500; letter-spacing: 0; color: var(--subtle); }
.hero .eyebrow { margin: 0 0 22px; }
.hero h1 { font-size: 56px; line-height: 1.08; font-weight: 500; letter-spacing: -1.8px; margin: 0 0 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; font-weight: inherit; }
.hero-aside { max-width: 610px; }
.hero-aside p { font-size: 20px; line-height: 1.65; letter-spacing: -.25px; margin: 0 0 20px; color: var(--subtle); }
.prototype-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--subtle); }
.prototype-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #a2a2a8; }
.gallery-tools { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 18px; gap: 20px; }
.gallery-tools .eyebrow { font-size: 14px; color: var(--ink); }
.collection-count { font-size: 12px; line-height: 1.6; color: var(--subtle); }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding: 28px 0 44px; scroll-margin-top: 30px; }
.cover { min-width: 0; }
.cover-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.cover-number, .cover-kind { font-size: 12px; line-height: 1.6; color: var(--subtle); }
.cover-number { font-variant-numeric: tabular-nums; }
.cover-kind { text-transform: lowercase; }
.cover-stage { display: block; overflow: hidden; border-radius: 12px; background: var(--tone, #f6f6f7); }
.screen-button { display: block; line-height: 0; transition: opacity .2s; }
.screen-button:hover { opacity: .9; }
.screen-preview { display: block; width: 100%; height: auto; aspect-ratio: 1840 / 1300; object-fit: contain; }
.cover-caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 0 9px; }
.cover-caption a { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.35; letter-spacing: -.45px; }
.cover-caption a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.cover-arrow { font-size: 19px; color: var(--subtle); }
.app-icon { display: block; object-fit: cover; flex-shrink: 0; border-radius: 22%; box-shadow: 0 0 0 1px #00000008; }
.cover-icon { width: 32px; height: 32px; }
.cover-description { font-size: 14px; color: var(--subtle); margin: 0; line-height: 1.7; }
.index-footer { font-size: 12px; line-height: 1.8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 48px; color: var(--subtle); }
.index-footer a { display: inline-block; text-decoration: underline; text-decoration-color: #d5d5da; text-underline-offset: 4px; }
.index-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.footer { position: static; border-top: 1px solid var(--line); padding: 28px 0 44px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; font-size: 12px; line-height: 1.8; color: var(--subtle); }
.footer p { margin: 0; max-width: 610px; }
.footer a { font-size: 12px; line-height: 1.8; white-space: nowrap; }
.footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { padding-top: 0; }
}
@media (max-width: 600px) {
  .hero { padding: 0 0 38px; }
  .hero h1 { font-size: 38px; line-height: 1.12; letter-spacing: -1.4px; margin-bottom: 22px; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero-aside p { font-size: 18px; line-height: 1.7; }
  .gallery-tools { align-items: baseline; gap: 14px; }
  .collection-count { text-align: right; }
  .collection-grid { grid-template-columns: 1fr; gap: 34px; padding: 24px 0 36px; }
  .cover-caption { padding-top: 16px; }
  .index-footer { display: block; margin-bottom: 36px; }
  .index-footer > span { display: block; }
  .index-footer > span + span { margin-top: 14px; }
  .footer { flex-direction: column; gap: 20px; padding-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen-button { transition: none; }
}
