.theme-dumby { --tone: #a43922; --poster: #edd0bb; --poster-ink: #78341e; --poster-line: #a4392220; }
.theme-page { --tone: #08716e; --poster: #d8eae6; --poster-ink: #15374a; --poster-line: #15374a21; }
.theme-metro { --tone: #a63f00; --poster: #180b03; --poster-ink: #ff9a50; --poster-line: #ff7a1a35; }
.theme-skein { --tone: #0f4fc4; --poster: #f2e6ca; --poster-ink: #233d76; --poster-line: #0f4fc424; }
.theme-plumb { --tone: #086d61; --poster: #0a192f; --poster-ink: #64ffda; --poster-line: #64ffda30; }
.theme-flow { --tone: #5b3687; --poster: #e8dff0; --poster-ink: #52317b; --poster-line: #7243a726; }

.meta { font-family: ui-monospace, Consolas, monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; }
.catalog-intro { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.3rem, 5vw, 4.1rem); }
.catalog-intro h1 { font-size: clamp(2.9rem, 7.1vw, 6.7rem); text-wrap: initial; }
.catalog-intro .intro { max-width: 51ch; margin-bottom: 0; }
.catalog { padding-bottom: 2.35rem; }
.catalog-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.catalog-bar h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -0.045em; }
.catalog-bar .meta { color: var(--muted); white-space: nowrap; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.app-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 0.65rem; background: #fffcf5; text-decoration: none; transition: border-color 160ms, box-shadow 160ms; }
.app-card:hover { border-color: var(--tone); box-shadow: 0 4px 0 color-mix(in srgb, var(--tone) 16%, transparent); }
.card-art, .app-visual { position: relative; overflow: hidden; background-color: var(--poster); color: var(--poster-ink); }
.card-art { display: grid; place-items: center; min-height: 10rem; padding: 2.5rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.card-art .meta { position: absolute; inset: 0.85rem auto auto 1rem; }
.card-art img { display: block; width: 4.8rem; height: 4.8rem; border: 1px solid var(--poster-line); border-radius: 24%; box-shadow: 0 0.22rem 0.65rem #0001; }
.theme-dumby .card-art, .theme-plumb .card-art, .theme-plumb .app-visual, .theme-flow .app-visual, .theme-flow .card-art {
  background-image: linear-gradient(var(--poster-line) 1px, transparent 1px), linear-gradient(90deg, var(--poster-line) 1px, transparent 1px);
  background-size: 1.65rem 1.65rem;
}
.theme-page .card-art, .theme-page .app-visual { background-image: repeating-linear-gradient(0deg, transparent 0 1.6rem, var(--poster-line) 1.6rem calc(1.6rem + 1px)); }
.theme-metro .card-art, .theme-metro .app-visual { background-image: repeating-linear-gradient(90deg, transparent 0 2rem, var(--poster-line) 2rem calc(2rem + 1px)); }
.theme-skein .card-art, .theme-skein .app-visual { background-image: repeating-linear-gradient(45deg, transparent 0 1.15rem, var(--poster-line) 1.15rem calc(1.15rem + 1px)), repeating-linear-gradient(-45deg, transparent 0 1.15rem, var(--poster-line) 1.15rem calc(1.15rem + 1px)); }
.card-copy { position: relative; flex: 1; padding: 1.15rem 3rem 1.2rem 1.05rem; }
.card-copy h3 { font-size: 1.45rem; }
.card-copy p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.card-arrow { position: absolute; top: 1.1rem; right: 1.05rem; color: var(--tone); font-size: 1.4rem; line-height: 1; }

.app-page { color: var(--ink); background: var(--paper); }
.app-page.theme-page { --paper: #f4f1ea; --ink: #15374a; --muted: #425964; --line: #c9d1cd; --accent: var(--tone); }
.app-page.theme-metro { --paper: #0b0501; --ink: #fff1e6; --muted: #d4b5a0; --line: #593018; --accent: #ff8b40; }
.app-page.theme-skein { --paper: #f6efde; --ink: #281a31; --muted: #5d4d5e; --line: #d5c7a8; --accent: var(--tone); }
.app-page.theme-plumb { --paper: #0a192f; --ink: #edfaff; --muted: #a9c3d2; --line: #2e4a5c; --accent: #64ffda; --poster: #112743; }
.app-page.theme-flow { --paper: #f2ebf7; --ink: #2d2241; --muted: #5d4b72; --line: #cfc0e0; --accent: var(--tone); }
.app-page.theme-page .app-heading { font-family: Georgia, serif; font-weight: 600; letter-spacing: -0.06em; }
.app-page.theme-skein .app-heading { font-family: Georgia, serif; font-weight: 500; letter-spacing: -0.065em; }
.app-page.theme-plumb .app-heading, .app-page.theme-metro .app-heading { font-family: ui-monospace, Consolas, monospace; letter-spacing: -0.08em; }
.app-hero { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.8rem, 6vw, 5rem); }
.app-heading { font-size: clamp(3rem, 6.25vw, 6.3rem); }
.app-heading span { color: var(--accent); }
.app-kicker { color: var(--accent); }
.app-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.app-meta span { padding: 0.35rem 0.65rem; border: 1px solid var(--line); border-radius: 0.28rem; font-size: 0.75rem; font-weight: 670; }
.app-visual { display: grid; place-items: center; margin: 0; padding: 3.3rem 1.25rem 3.15rem; min-height: 19rem; border: 1px solid var(--line); border-radius: 0.65rem; }
.app-visual figcaption { position: absolute; top: 0.95rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; gap: 0.75rem; }
.app-screen { display: block; width: min(73%, 15.9rem); height: auto; border: 0.38rem solid #242831; border-radius: 1.45rem; box-shadow: 0 0.8rem 1.75rem #0003; }
.app-picture { display: grid; justify-items: center; width: 100%; border-radius: 0.55rem; }
.app-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; gap: 1rem; margin-top: 2rem; }
.app-gallery figure { display: grid; justify-items: center; align-content: center; gap: 1rem; height: 100%; margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--poster); color: var(--poster-ink); }
.app-gallery img { display: block; width: auto; height: auto; max-width: 100%; max-height: 21rem; border-radius: 0.5rem; }
.app-gallery figcaption { font-size: 0.88rem; font-weight: 650; }
.app-release { display: flex; align-items: start; gap: clamp(1rem, 4vw, 3.2rem); justify-content: space-between; padding: clamp(1.4rem, 5vw, 2.8rem); border: 1px solid var(--line); border-radius: 0.65rem; background: color-mix(in srgb, var(--paper), var(--accent) 7%); }
.app-release h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.app-release p { max-width: 49ch; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.app-release > a { white-space: nowrap; font-size: 0.9rem; font-weight: 700; }

@media (max-width: 53rem) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-hero { gap: 1.45rem; }
}

@media (max-width: 42rem) {
  .app-hero { grid-template-columns: 1fr; gap: 2.35rem; }
  .app-visual figcaption { font-size: 0.6rem; }
  .app-release { flex-direction: column; }
}

@media (max-width: 32rem) {
  .catalog-grid { grid-template-columns: 1fr; }
  .card-art { min-height: 8.3rem; }
}
