/* Lucas Cavanna — site styles */
:root {
  --black: #000;
  --ink: #fff;
  --pink-text: #ffedfc;
  --muted: #bfb2bd;
  --pink: #f855b3;
  --red: #dd3c4a;
  --coral: #f75b7f;
  --brown: #552e2c;
  --gold: #ffcf3c;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --nav: "Raleway", system-ui, sans-serif;
  --body: "Jost", "Futura", system-ui, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--black);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 96px;
}
.logo img { width: 64px; height: 64px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav a {
  font-family: var(--nav); font-size: 14px; text-decoration: none; color: #fff;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--pink); }
.nav a[aria-current="page"] { color: var(--pink); border-bottom-color: var(--pink); }

.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; align-items: center; }
.socials a { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; transition: transform .15s, color .15s; }
.socials a:hover { transform: translateY(-2px); color: var(--pink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials img { width: 20px; height: 20px; object-fit: contain; }

.menu-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -7px; width: 100%; }
.menu-toggle span::after { position: absolute; top: 7px; width: 100%; }

@media (max-width: 760px) {
  .site-header .wrap { height: 72px; }
  .logo img { width: 48px; height: 48px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--black); padding: 8px 16px 24px; display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 14px; }
  .nav a { font-size: 18px; }
}

/* ---------- Gradient ---------- */
.gradient {
  background:
    radial-gradient(circle at 59% 90%, var(--brown) 0%, rgba(85,46,44,0) 40%),
    radial-gradient(circle at 97% 95%, rgba(248,85,179,.99) 0%, rgba(248,85,179,0) 50%),
    radial-gradient(circle at 18% 39%, var(--pink) 0%, rgba(248,85,179,0) 70%),
    radial-gradient(circle at 67% 9%, var(--red) 0%, rgba(221,60,74,0) 70%),
    var(--black);
}

/* ---------- Home hero ---------- */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; aspect-ratio: 490 / 599; object-fit: cover; }
.hero-text { text-align: center; padding-bottom: 48px; align-self: center; }
.hero-text h1 { font-size: clamp(48px, 7vw, 72px); color: var(--pink-text); margin-bottom: .1em; }
.hero-text .role { font-family: var(--body); font-size: 18px; color: var(--pink-text); margin: 0 0 56px; }
.latest-label { font-family: var(--display); font-size: 22px; color: var(--pink-text); margin: 0 0 12px; }
.itch-embed {
  width: 100%; max-width: 560px; height: 175px; border: 0; display: block; margin: 0 auto;
}
@media (max-width: 760px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { order: -1; padding-bottom: 0; }
  .hero-text .role { margin-bottom: 32px; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h1, .section-head h2 { font-size: clamp(40px, 6vw, 56px); color: var(--pink-text); }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }
.section-head p a { color: var(--pink-text); }

/* ---------- Game grid ---------- */
.games {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.games a { display: block; text-decoration: none; position: relative; overflow: hidden; }
.games img {
  width: 100%; aspect-ratio: 630 / 500; object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.games .label {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-family: var(--display); font-size: 22px; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.games a:hover img, .games a:focus-visible img { transform: scale(1.04); }
.games a:hover .label, .games a:focus-visible .label { opacity: 1; transform: none; }
@media (max-width: 860px) { .games { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .games { grid-template-columns: 1fr; } .games .label { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact { padding: 72px 0 0; }
.contact-card { background: var(--coral); }
.contact-top { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; gap: 10px;
}
.contact-info h2 { font-size: clamp(40px, 5vw, 56px); color: var(--pink-text); margin: 0 0 8px; }
.contact-info p { margin: 0; color: var(--pink-text); }
.contact-info a { color: var(--pink-text); }
.contact-info .linkedin { margin-top: 18px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--coral); }
.contact-info .linkedin svg { width: 20px; height: 20px; fill: currentColor; }
.contact-photo { padding: 36px 36px 36px 0; }
.contact-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.map { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(.2); }
@media (max-width: 760px) {
  .contact-top { grid-template-columns: 1fr; }
  .contact-photo { padding: 0 24px 24px; }
  .map { height: 300px; }
}

/* ---------- About ---------- */
.about-page { padding: 56px 0 80px; }
.about-panel {
  background: #000; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  padding: 56px; align-items: start;
}
.about-panel h1 { color: var(--red); font-size: clamp(36px, 5vw, 48px); }
.about-panel p { margin: 0 0 1.1em; }
.about-panel .sign { font-family: var(--display); font-size: 22px; color: var(--pink-text); }
.about-photo img { width: 100%; aspect-ratio: 264 / 469; object-fit: cover; object-position: 40% center; }
.about-contact { margin-top: 28px; }
.about-contact h2 { font-size: 24px; color: var(--pink-text); }
.about-contact .socials a { width: 28px; height: 28px; }
.about-contact .socials svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .about-panel { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; }
  .about-photo { max-width: 320px; }
}

/* ---------- CV ---------- */
.cv-page { padding: 48px 0 80px; text-align: center; }
.cv-page h1 { font-size: clamp(56px, 9vw, 88px); color: var(--pink-text); }
.cv-sheet { display: block; max-width: 600px; margin: 24px auto 32px; box-shadow: 0 20px 60px rgba(0,0,0,.4); transition: transform .2s; }
.cv-sheet:hover { transform: translateY(-4px); }
.button {
  display: inline-block; font-family: var(--nav); font-weight: 600; font-size: 15px;
  padding: 14px 32px; background: #000; color: #fff; text-decoration: none;
  border: 2px solid #000; transition: background .2s, color .2s;
}
.button:hover { background: transparent; color: #000; }
.button.light { background: var(--pink-text); color: #000; border-color: var(--pink-text); }
.button.light:hover { background: transparent; color: var(--pink-text); }

/* ---------- Game page ---------- */
.game-head { padding: 56px 0; }
.game-head .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.game-cover img { width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.game-head h1 { font-size: clamp(44px, 6vw, 72px); color: var(--pink-text); }
.game-meta { display: flex; gap: 40px; margin: 0 0 24px; }
.game-meta dt { font-family: var(--display); font-size: 16px; color: #fff; opacity: .75; }
.game-meta dd { margin: 0; color: var(--pink-text); font-size: 18px; }
.game-desc p { margin: 0 0 1em; color: #fff; }
.game-desc .button { margin-top: 8px; }
.game-gallery-wrap { padding-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 56px; }
.gallery img { width: 100%; height: auto; background: #111; }
.gallery.pixel img { image-rendering: pixelated; }
.gallery a { display: block; cursor: zoom-in; }
.game-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #222; padding: 28px 0 56px; }
.game-nav a { font-family: var(--nav); text-decoration: none; color: var(--muted); }
.game-nav a:hover { color: var(--pink); }
.game-nav strong { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; color: #fff; }
.game-nav .next { text-align: right; margin-left: auto; }
@media (max-width: 760px) {
  .game-head { padding: 28px 0 36px; }
  .game-head .wrap { grid-template-columns: 1fr; gap: 28px; }
  .game-cover { max-width: 420px; }
  .gallery { grid-template-columns: 1fr; }
  .game-gallery-wrap { padding-top: 32px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; image-rendering: auto; }
.lightbox.pixel img { image-rendering: pixelated; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 48px; text-align: center; font-family: var(--nav); font-size: 14px; color: #fff; }
.site-footer .socials { justify-content: center; margin: 14px 0 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.site-footer .small { color: #555; font-size: 12px; margin: 0; }
.site-footer .egg { margin-top: 64px; color: #333; font-size: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.notfound h1 { font-size: clamp(80px, 16vw, 160px); color: var(--pink-text); margin: 0; }
.notfound p { margin: 0 0 28px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
