:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #17162a;
  background: #f7f7fb;
  line-height: 1.55;
  --ink: #17162a;
  --muted: #55536a;
  --accent: #3c2acb;
  --line: #dad9e6;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { min-height: 100svh; display: flex; flex-direction: column; margin: 0; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: #2a199f; }
a:focus-visible { outline: .15rem solid var(--accent); outline-offset: .27rem; }
.wrap { width: min(70rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .8rem; left: .8rem; z-index: 2; transform: translateY(-200%); padding: .65rem; background: #fff; }
.skip-link:focus { transform: translateY(0); }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.85rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.brand, nav { display: flex; align-items: center; gap: .75rem; }
.brand { color: var(--ink); white-space: nowrap; font-size: 1rem; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .45rem; background: var(--accent); color: white; font-size: .85rem; letter-spacing: -.05em; }
nav { flex-wrap: wrap; gap: .35rem 1.55rem; }
nav a { color: var(--ink); font-size: .96rem; font-weight: 600; text-decoration: none; padding-block: .35rem; }
nav [aria-current], nav a:hover { color: var(--accent); text-decoration: underline; }
.eyebrow { color: var(--accent); font-size: .9rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; margin: 0 0 .8rem; }
h1, h2 { letter-spacing: -.055em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.8vw, 7.2rem); font-weight: 790; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.65rem); }
p { margin: 0; }
.lead { color: var(--muted); margin-block: 1.35rem 1.65rem; max-width: 34rem; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1.1rem; border-radius: .48rem; background: var(--accent); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #2a199f; color: white; }
.home-hero { display: grid; grid-template-columns: 1fr 1.03fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 7vh, 5rem); }
.monogram { position: relative; display: grid; place-items: center; isolation: isolate; aspect-ratio: 1.13; overflow: hidden; border-radius: .9rem; background: radial-gradient(ellipse at 83% 8%, #6351ed 0%, transparent 48%), linear-gradient(135deg, #22197d, #4028d8 68%, #5b48ee); color: #f7f5ff; }
.monogram::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #eeebff18 0 1px, transparent 1px 3rem), repeating-linear-gradient(0deg, #eeebff18 0 1px, transparent 1px 3rem); mask-image: linear-gradient(130deg, #000, #0000); z-index: -1; }
.monogram::after { content: ""; position: absolute; right: 9%; bottom: 10%; width: 21%; height: .2rem; background: #e6ff9f; border-radius: 1rem; }
.monogram-letter { font-size: clamp(6rem, 19vw, 15.6rem); font-weight: 850; line-height: 1; letter-spacing: -.13em; margin-inline-end: .13em; }
.monogram-orbit { position: absolute; width: 114%; height: 56%; top: 18%; left: -7%; border: 1px solid #f1eaff88; border-radius: 50%; transform: rotate(-31deg); z-index: -1; }
.contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 2rem; border-block: 1px solid var(--line); padding-block: 1.7rem 1.9rem; scroll-margin-top: 1rem; }
.contact h2 { margin-bottom: .5rem; font-size: clamp(1.4rem, 2.6vw, 2.05rem); }
.contact p { color: var(--muted); }
.contact-address { font-weight: 750; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); padding-block: 2rem; font-size: .93rem; }
.catalog, .game, .document { padding-block: clamp(2rem, 6vw, 4.8rem); }
.catalog h1 { font-size: clamp(3rem, 7.3vw, 6rem); margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.project-list { display: grid; gap: .9rem; max-width: 54rem; }
.project-card { display: grid; grid-template-columns: minmax(12rem, 34%) 1fr; border: 1px solid var(--line); background: var(--surface); color: var(--ink); overflow: hidden; border-radius: .85rem; text-decoration: none; }
.project-card:hover { color: var(--ink); border-color: var(--accent); }
.project-art, .game-art { display: grid; place-items: center; background: radial-gradient(ellipse at 20% 12%, #deffb4, transparent 60%), linear-gradient(135deg, #b7eac3, #e7f3a7); padding: 1.65rem; }
.project-art img, .game-art img { border-radius: 23%; box-shadow: 0 .85rem 1.9rem #20321a36; }
.project-copy { padding: clamp(1.35rem, 3.5vw, 2.75rem); }
.project-copy h2 { margin-bottom: .5rem; }
.project-copy > p:not(.eyebrow) { color: var(--muted); }
.project-label { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 700; text-decoration: underline; }
.back { display: inline-block; font-weight: 680; margin-bottom: 1.4rem; }
.game-hero { display: grid; grid-template-columns: 1.22fr .8fr; align-items: stretch; gap: clamp(1.5rem, 5vw, 3.9rem); }
.game-copy { padding-block: clamp(.25rem, 2vw, 1.7rem); min-width: 0; }
.game-copy h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); overflow-wrap: anywhere; }
.game-art { min-height: 18rem; border-radius: .85rem; }
.game-links { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; }
.document { max-width: 46rem; }
.document h1 { font-size: clamp(2.45rem, 6vw, 4.4rem); overflow-wrap: anywhere; margin-bottom: 1.45rem; }
.document h2 { margin-top: 1.65rem; margin-bottom: .4rem; font-size: 1.45rem; }
.document p { color: var(--muted); margin-block: .35rem .9rem; }
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: auto; flex-wrap: wrap; padding-block: .8rem; gap: .25rem .9rem; }
  nav { gap: .25rem .9rem; }
  nav a { font-size: .9rem; }
  .home-hero, .game-hero, .project-card { grid-template-columns: 1fr; }
  .home-hero { gap: 1.5rem; }
  .monogram { max-height: 17rem; aspect-ratio: 1.7; }
  .monogram-letter { font-size: clamp(6rem, 26vw, 12rem); }
  .contact { padding-block: 1.2rem; gap: .8rem; }
  .project-art { padding-block: 1.15rem; min-height: 9.4rem; }
  .project-art img { width: 7rem; }
  .game-art { min-height: 13rem; }
  .game-art img { width: 9rem; }
}
