:root {
  color-scheme: dark;
  --back: #171418;
  --panel: #211c21;
  --ink: #fff7e9;
  --soft: #c7b9bc;
  --line: #51434a;
  --accent: #f1bc79;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--back);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 75% 40% at 50% 12%, #38232d 0%, transparent 100%); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.layout { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand, nav { display: flex; align-items: center; gap: 12px; }
.brand { font-size: 0.87rem; letter-spacing: 0.015em; }
.brand img { border-radius: 9px; }
.brand strong { font-weight: 500; color: var(--soft); }
nav a, .footer { color: var(--soft); font-size: 0.8rem; }
nav a { display: inline-grid; place-items: center; min-width: 36px; min-height: 40px; }
nav a:hover, .footer a:hover, .plain:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.intro { padding-block: clamp(52px, 8.5vw, 113px) clamp(44px, 6vw, 84px); }
h1, h2, h3, p { margin: 0; }
h1 { font-family: "Instrument Serif", "Palatino Linotype", Georgia, serif; font-weight: 400; font-size: clamp(72px, 12vw, 158px); line-height: .79; letter-spacing: -.07em; }
h1 span { display: block; margin-top: .21em; font-size: .61em; letter-spacing: -.05em; color: #f0c5a5; }
.intro p { margin-top: 29px; color: var(--soft); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.55; max-width: 42ch; }
.works h2 { margin-bottom: 19px; color: var(--ink); font-size: 1rem; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.game-art { aspect-ratio: 16/9; overflow: hidden; background: #2a242b; }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-info { padding: clamp(19px, 3vw, 32px); display: flex; align-items: flex-start; flex: 1; flex-direction: column; }
.game-info .genre { color: var(--accent); font-size: 0.77rem; letter-spacing: .045em; }
.game h3 { font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.035em; margin-block: 8px 10px; }
.game p { color: var(--soft); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 17px; padding-top: 24px; margin-top: auto; }
.actions a { display: inline-flex; gap: 9px; min-height: 44px; align-items: center; font-size: .85rem; }
.primary { color: var(--back); background: var(--accent); border-radius: 6px; padding-inline: 15px; font-weight: 650; }
.primary:hover { background: #ffd7a5; }
.plain, .footer { color: var(--soft); }
.footer { border-top: 1px solid var(--line); margin-top: 54px; padding-block: 19px 30px; min-height: 65px; }
@media (max-width: 670px) {
  .layout { width: calc(100% - 36px); }
  .top { min-height: 65px; }
  .cards { grid-template-columns: 1fr; gap: 17px; }
  .footer { margin-top: 34px; }
}
@media (max-width: 360px) {
  .brand { gap: 7px; }
  nav { gap: 4px; }
  nav a { min-width: 32px; }
  h1 { font-size: 63px; }
}

