/* Catalogue layout; the visual system is shared with Mahjong Red Dragon. */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 100px; }
body { margin: 0; font: 16px/1.7 var(--sans); color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--display); line-height: 1.2; overflow-wrap: break-word; min-width: 0; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.container { max-width: 1320px; margin-inline: auto; padding-inline: 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .03em; }
.catalogue { padding-block: 80px 100px; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 48px; margin-bottom: 64px; }
h1 { font-size: clamp(44px,5vw,72px); letter-spacing: -.035em; }
.intro-copy { max-width: 540px; }
.lead { color: var(--copy-muted); font-size: 18px; max-width: 44ch; }
.browse-link { margin-top: 24px; }
.workbench { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; align-items: stretch; }
.game-link { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-light); background: var(--paper-bright); }
.print { margin: 0; padding: 24px; background: var(--jade-deep); color: var(--paper); min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.print img { max-height: 300px; width: 100%; object-fit: contain; }
.print span { font-size: 13px; color: var(--gold); }
.game-copy { padding: 32px; flex: 1; }
h3 { font-size: clamp(28px,3vw,36px); }
.category { color: var(--red-deep); font-size: 14px; margin-block: 12px 20px; }
.game-copy > p:not(.category) { color: var(--copy-muted); }
.game-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; color: var(--jade-deep); border-bottom: 1px solid var(--jade); font-weight: 700; }
.game-link:hover .game-cta { color: var(--red-deep); border-color: var(--red-deep); }
.closing { display: flex; justify-content: space-between; gap: 32px; padding-block: 44px; }
.closing p { max-width: 48ch; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; font-size: 13px; border-top: 1px solid var(--line-dark); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 16px; background: var(--paper-bright); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:760px) { .container { padding-inline: 24px; } .intro { display: block; margin-bottom: 40px; } .intro-copy { margin-top: 24px; } .catalogue { padding-block: 48px 64px; } .workbench { grid-template-columns: minmax(0,1fr); } .print { min-height: 0; padding: 20px; } .print img { max-height: 320px; } .game-copy { padding: 24px; } .closing,.footer-meta { flex-direction: column; gap: 16px; } }
