:root {
  color-scheme: dark;
  --background: #121113;
  --surface: #211e21;
  --on-surface: #fcf5f5;
  --muted: #d6c9cc;
  --accent: #ff9390;
  --outline: #5c4d53;
  font-family: "Product Sans", Roboto, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--on-surface); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: 12px; padding: 12px; background: #fff; color: #121113; z-index: 2; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header, .site-header nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { min-height: 92px; }
.brand { display: inline-flex; }
.brand img { width: 132px; height: auto; }
.site-header nav { gap: 4px; }
.site-header nav a, .footer a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding-inline: 14px; font-weight: 650; text-decoration: none; border-radius: 999px;
}
.site-header nav a:hover, .footer a:hover { background: #30292e; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  min-height: 350px; border-radius: 36px; overflow: hidden; background: #30252a;
}
.hero-copy { align-self: center; padding: clamp(24px, 5.5vw, 70px); }
.hero h1 { font-size: clamp(3rem, 8vw, 6.75rem); line-height: 1; letter-spacing: -.075em; }
.hero p { color: #eadadd; max-width: 34ch; font-size: clamp(1.05rem, 2vw, 1.3rem); margin-block: 18px 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .65rem;
  min-height: 48px; max-width: 100%; padding: 10px 18px; border-radius: 999px;
  font-size: .95rem; font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere;
}
.primary { background: var(--accent); color: #320e17; }
.primary:hover { background: #ffb0ad; }
.secondary { background: #543740; }
.secondary:hover { background: #6b4651; }
.hero-mark {
  display: grid; place-items: center; isolation: isolate; padding: 32px; position: relative;
  background: linear-gradient(142deg, #dc2b2b, #831723 75%);
  border-radius: 86px 0 0 0; overflow: hidden;
}
.hero-mark::before, .hero-mark::after { content: ""; z-index: -1; position: absolute; border: 1px solid #ffd4d24d; border-radius: 34%; width: 105%; aspect-ratio: 1; transform: rotate(30deg); }
.hero-mark::after { width: 83%; transform: rotate(-25deg); }
.hero-mark img { width: min(60%, 200px); height: auto; filter: drop-shadow(0 12px 22px #26060d88); }

#projects { padding-block: 52px 44px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.045em; line-height: 1.12; }
#projects > h2 { margin-bottom: 20px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); background: var(--surface); border-radius: 28px; }
.project h3 { font-size: 1.55rem; line-height: 1.25; }
.project p, .game-list span, .contact p { color: var(--muted); }
.project p { margin-block: 10px 18px; max-width: 42ch; }
.games { grid-column: 1 / -1; background: #392429; }
.card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.status { background: #55343e; color: #ffd5d5; border-radius: 999px; padding: 4px 12px; font-size: .86rem; }
.game-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 18px 0 0; }
.game-list li { min-width: 0; display: grid; gap: 2px; background: #2c1f24; border-radius: 17px; padding: 14px 16px; }
.game-list strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.game-list span { font-size: .91rem; }
.card-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; align-self: flex-start; margin-top: auto; color: #ffb0ad; font-weight: 650; text-underline-offset: .25em; }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--outline); border-radius: 28px; }
.contact p { margin-top: 6px; }
.footer { min-height: 88px; padding-block: 12px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.footer a { padding-inline: 8px; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 76px; gap: 6px; }
  .site-header nav a { padding-inline: 9px; font-size: .9rem; }
  .brand img { width: clamp(90px, 24vw, 124px); }
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 28px; }
  .hero-mark { min-height: 145px; padding: 12px; border-radius: 44px 0 0 0; }
  .hero-mark img { width: 100px; }
  #projects { padding-block: 34px 28px; }
}
@media (max-width: 510px) {
  .project-grid, .game-list { grid-template-columns: 1fr; }
  .game-list { gap: 7px; }
  .game-list li { padding-block: 10px; }
}
