/* Artigfilm Spielesammlung. Static, responsive and intentionally motion-light. */
:root {
  color-scheme: dark;
  --bg: #111319;
  --surface: #1b1e26;
  --ink: #f7f7f4;
  --muted: #b2b5c0;
  --line: #333640;
  --accent: #ff7957;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--bg); }
.site-header, main, footer { width: min(1360px, calc(100% - 96px)); margin-inline: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; margin-right: 4px; padding-bottom: 5px; border-radius: 11px; color: var(--bg); background: var(--accent); font-size: 33px; font-weight: 900; letter-spacing: -3px; }
.wordmark-sub { color: var(--muted); font-size: 19px; font-weight: 400; letter-spacing: -.3px; }
.header-note { margin-left: auto; color: var(--muted); font-size: 14px; }
.header-link { display: inline-flex; gap: 20px; padding: 10px 0 10px 25px; border-left: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.header-link span { color: var(--accent); font-size: 22px; line-height: 1; }
.header-link:hover { color: var(--accent); }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 10; padding: 16px; background: var(--ink); color: var(--bg); border-radius: 6px; }
.skip-link:focus { top: 16px; }
main:focus { outline: none; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding-block: 54px 44px; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 2.3px; font-weight: 650; }
h1 { margin: 0; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -3.8px; font-weight: 800; }
h1 span { color: var(--accent); }
.intro-copy { max-width: 380px; margin: 0 0 3px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.intro-copy strong { color: var(--ink); font-weight: 500; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.collection-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: 650; }
#game-count { min-width: 29px; padding: 4px 7px; background: #292c35; color: #d4d7de; border-radius: 6px; font-size: 12px; text-align: center; }
.collection-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.collection-heading p span, footer p span { padding-inline: 10px; color: #777c89; }
.game-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.game-card { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.card-thumb { position: relative; aspect-ratio: 16 / 10; background: #262a35; overflow: hidden; }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.card-title { margin: 0 0 12px; color: var(--ink); font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: -.6px; }
.card-desc { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-bottom: 22px; }
.tag { padding: 5px 9px; color: #c9ccd5; border: 1px solid #424651; border-radius: 5px; font-size: 12px; line-height: 1.4; }
.card-play { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 1.1px; }
.arrow { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; background: #303440; border-radius: 50%; font-size: 20px; font-weight: 400; transition: background .18s ease, color .18s ease; }
/* Four generous cover cards introduce the collection, followed by a tighter library. */
.game-card:nth-child(-n+4) { min-height: 455px; }
.game-card:nth-child(1), .game-card:nth-child(4) { grid-column: span 7; }
.game-card:nth-child(2), .game-card:nth-child(3) { grid-column: span 5; }
.game-card:nth-child(-n+4) .card-thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.game-card:nth-child(-n+4) .card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 10 17 / 0) 15%, rgb(7 10 17 / .48) 42%, rgb(7 10 17 / .97) 81%); }
.game-card:nth-child(-n+4) .card-body { position: relative; z-index: 1; justify-content: flex-end; padding: 30px; }
.game-card:nth-child(-n+4) .card-title { margin-top: 120px; font-size: 35px; letter-spacing: -1.1px; }
.game-card:nth-child(-n+4) .card-desc { color: #d4d7de; max-width: 540px; margin-bottom: 16px; font-size: 16px; line-height: 1.55; }
.game-card:nth-child(-n+4) .card-tags { margin-top: 0; padding-bottom: 16px; }
.game-card:nth-child(-n+4) .tag { background: #11151ed9; border-color: #555964; color: #e6e8ec; }
.game-card:nth-child(-n+4) .card-play { border-color: #ffffff29; }
.game-card:nth-child(-n+4) .arrow { color: var(--bg); background: var(--accent); }
/* Keep the complete Blockland cover visible, with its description below the artwork. */
.game-card.game-card--blockland .card-thumb { position: relative; inset: auto; aspect-ratio: 16 / 9; flex-shrink: 0; }
.game-card.game-card--blockland .card-thumb img { object-fit: contain; }
.game-card.game-card--blockland .card-thumb::after { display: none; }
.game-card.game-card--blockland .card-title { margin-top: 0; }
/* The postcard keeps every district name visible rather than cropping its lettering. */
.game-card:nth-child(4) .card-thumb img { object-position: center top; }
.game-card:nth-child(4) .card-thumb::after { background: linear-gradient(180deg, transparent 18%, rgb(7 10 17 / .5) 47%, rgb(7 10 17 / .98) 77%); }
.game-card:nth-child(n+5) .card-thumb { aspect-ratio: 16 / 9; }
.game-card:nth-child(n+5) .card-body { padding: 24px; }
.game-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.game-card:last-child .card-thumb { height: 100%; min-height: 280px; aspect-ratio: auto; }
.game-card:last-child .card-body { padding: 32px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game-card:hover { transform: translateY(-4px); border-color: #747987; }
  .game-card:hover .card-thumb img { transform: scale(1.025); }
  .game-card.game-card--blockland:hover .card-thumb img { transform: none; }
}
.game-card:hover .arrow { background: var(--accent); color: var(--bg); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); margin-top: 70px; padding-block: 30px 44px; }
.footer-brand { text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.footer-brand span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
footer p { color: var(--muted); font-size: 13px; }
@media (min-width: 1500px) { .game-card:nth-child(-n+4) { min-height: 480px; } }
@media (max-width: 1100px) {
  .site-header, main, footer { width: calc(100% - 56px); }
  .header-note { display: none; }
  .header-link { margin-left: auto; }
  .intro { align-items: flex-start; }
  .intro-copy { max-width: 290px; }
  h1 { font-size: 52px; letter-spacing: -2.7px; }
  .game-grid { gap: 20px; }
  .game-card, .game-card:nth-child(-n+4) { grid-column: span 6; }
  .game-card:nth-child(-n+4) .card-body { padding: 24px; }
  .game-card:nth-child(-n+4) .card-title { font-size: 29px; }
  .game-card.game-card--postcard .card-thumb { position: relative; aspect-ratio: 1586 / 992; }
  .game-card.game-card--postcard .card-thumb img { object-fit: contain; }
  .game-card.game-card--postcard .card-thumb::after { display: none; }
  .game-card.game-card--postcard .card-title { margin-top: 0; }
}
@media (max-width: 760px) {
  .site-header, main, footer { width: calc(100% - 36px); }
  .site-header { min-height: 82px; gap: 16px; }
  .wordmark { font-size: 21px; gap: 8px; }
  .wordmark-sub { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 28px; border-radius: 9px; }
  .header-link { border: 0; padding-left: 0; gap: 8px; }
  .intro { display: block; padding-block: 34px 30px; }
  .eyebrow { margin-bottom: 13px; font-size: 12px; letter-spacing: 1.5px; }
  h1 { font-size: clamp(38px, 7.4vw, 53px); letter-spacing: -2px; }
  .intro-copy { max-width: 560px; margin-top: 20px; font-size: 15px; line-height: 1.65; }
  .collection-heading { align-items: flex-start; gap: 10px; margin-bottom: 17px; }
  .collection-heading p { max-width: 150px; text-align: right; line-height: 1.5; }
  .collection-heading p span { padding-inline: 2px; }
  .game-card, .game-card:nth-child(-n+4) { grid-column: 1 / -1; }
  .game-card:nth-child(-n+4) { min-height: 430px; }
  .game-card:nth-child(-n+4) .card-title { font-size: 30px; }
  .game-card:nth-child(-n+4) .card-desc { font-size: 16px; }
  .game-card:nth-child(n+5) .card-body { padding: 23px; }
  .game-card:nth-child(n+5) .card-thumb { aspect-ratio: 16 / 9; }
  .game-card:last-child { display: flex; }
  .game-card:last-child .card-thumb { min-height: 0; height: auto; }
  .card-desc { font-size: 16px; }
  footer { align-items: flex-start; flex-direction: column; margin-top: 44px; padding-block: 26px 32px; }
  footer p { margin: 0; }
}
@media (max-width: 420px) {
  .wordmark-sub { display: none; }
  .header-link { font-size: 13px; }
  .game-card:nth-child(-n+4) .card-body { padding: 22px; }
  .game-card:nth-child(-n+4) .card-title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
