@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: #f2f2f2;
  --rule: #d9d9d9;
  --mute: #5f5f5f;
  --mute-dark: #a8a8a8;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.bar-mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 125%; text-decoration: none; letter-spacing: -.02em; }
.bar-mark img { width: 44px; }
.bar nav { display: flex; gap: 20px; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: .95rem; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang {
  border: 1.5px solid var(--ink); background: none; border-radius: 999px;
  padding: 4px 12px; font-weight: 700; font-size: .85rem;
}
.lang:hover { background: var(--ink); color: var(--paper); }

.hero { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px); }
.hero-name {
  font-weight: 850; font-stretch: 125%;
  font-size: clamp(3rem, 12.4vw, 11.25rem);
  line-height: .86; letter-spacing: -.055em;
  clip-path: inset(0 -10% 0 -5%);
}
.hero-name span { display: block; animation: rise .9s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }

.hero-body {
  display: grid; grid-template-columns: 1fr minmax(180px, 300px);
  gap: clamp(24px, 5vw, 72px); align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero-body > div { border-top: 2px solid var(--ink); padding-top: 28px; }
.hero-role { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; max-width: 22ch; }
.hero-text { margin-top: 14px; max-width: 52ch; color: var(--mute); }
.hero-open { margin-top: 14px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-avatar { position: relative; z-index: 1; width: 100%; margin-top: clamp(-160px, -10vw, 0px); }

.btn {
  display: inline-flex; align-items: center; min-height: 46px;
  padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: none;
  font-weight: 650; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn-light { border-color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }

.copy-status { min-height: 1.6em; margin-top: 10px; font-size: .95rem; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.soft { background: var(--soft); }

.section-title { font-weight: 800; font-stretch: 125%; font-size: clamp(2.2rem, 5.5vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.section-lead { margin-top: 14px; max-width: 56ch; text-wrap: pretty; color: var(--mute); font-size: 1.125rem; }
.dark .section-lead { color: var(--mute-dark); }

.game {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid #333;
}
.game-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.game-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.game-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; overflow: hidden; opacity: .55; transition: opacity .15s; }
.game-thumbs button:hover, .game-thumbs button[aria-pressed="true"] { opacity: 1; }
.game-thumbs button[aria-pressed="true"] { border-color: var(--paper); }
.game-thumbs img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.game-head { display: flex; align-items: center; gap: 16px; }
.game-icon { width: 64px; height: 64px; border-radius: 14px; }
.game h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; }
.game-role { margin-top: 20px; font-weight: 650; font-size: 1.15rem; }
.game-info > p:not(.game-role) { margin-top: 10px; color: var(--mute-dark); max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 28px 0; background: #333; border: 1px solid #333; border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--ink); padding: 16px 18px; }
.stats dt { color: var(--mute-dark); font-size: .9rem; }
.stats dd { font-weight: 800; font-stretch: 125%; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; }
.stats div:last-child:nth-child(odd) { grid-column: span 2; }
.note { margin-top: 48px; color: var(--mute-dark); font-size: .9rem; }

.ui-style { margin-top: clamp(40px, 6vw, 72px); }
.ui-style-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.ui-style h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; }
.slide-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.slider { --slide-h: clamp(220px, 30vw, 400px); position: relative; margin-top: 20px; }
.slide-prev, .slide-next {
  position: absolute; z-index: 2; top: 0;
  display: flex; align-items: center;
  width: clamp(64px, 9vw, 120px); height: var(--slide-h);
  padding: 0 clamp(8px, 1.5vw, 20px); border: 0;
  color: var(--paper);
  transition: opacity .2s;
}
.slide-prev { left: 0; justify-content: flex-start; border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(to right, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
.slide-next { right: 0; justify-content: flex-end; border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(to left, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
.slide-prev svg, .slide-next svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); transition: transform .15s; }
.slide-prev:hover svg { transform: translateX(-4px); }
.slide-next:hover svg { transform: translateX(4px); }
.slide-prev:focus-visible, .slide-next:focus-visible { outline: 3px solid var(--paper); outline-offset: -6px; }
.slide-prev:disabled, .slide-next:disabled { opacity: 0; pointer-events: none; }
.track {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track li { flex: none; scroll-snap-align: start; }
.track button { display: block; padding: 0; border: 0; background: none; text-align: left; }
.track img { height: var(--slide-h); width: auto; max-width: calc(100vw - 2 * var(--gutter)); object-fit: cover; border-radius: var(--radius); border: 1px solid var(--rule); }
.track span { display: block; padding: 10px 2px 0; font-size: .95rem; font-weight: 600; }

.systems {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
}
.systems li { padding: 24px 0 32px; border-top: 1px solid #333; }
.systems h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; letter-spacing: -.02em; }
.systems p { margin-top: 8px; color: var(--mute-dark); max-width: 46ch; }
.systems .shipped { margin-top: 14px; color: var(--paper); font-size: .9rem; font-weight: 650; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.about-text { margin-top: 24px; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; max-width: 34ch; }
.skills div { padding: 20px 0; border-top: 1.5px solid var(--ink); }
.skills div:last-child { border-bottom: 1.5px solid var(--ink); }
.skills dt { font-weight: 800; font-stretch: 112%; }
.skills dd { margin-top: 4px; color: var(--mute); max-width: 56ch; }

.contact-title { font-weight: 850; font-stretch: 125%; font-size: clamp(2.6rem, 8vw, 7rem); line-height: .92; letter-spacing: -.05em; max-width: 12ch; }
.contact-text { margin-top: 20px; color: var(--mute-dark); font-size: 1.15rem; }
.discord {
  margin-top: 36px; padding: 0; border: 0; background: none;
  font-weight: 800; font-stretch: 125%; font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -.04em; line-height: 1.1;
  text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em;
}
.discord:hover { text-decoration-thickness: .12em; }
.contact-open { margin-top: 24px; }
.contact-hint { margin-top: 8px; color: var(--mute-dark); font-size: .95rem; }

.foot { padding: 24px var(--gutter); background: var(--ink); color: var(--mute-dark); border-top: 1px solid #333; font-size: .9rem; }

.viewer {
  width: min(1200px, 94vw); max-height: 94vh; padding: 16px;
  border: 0; border-radius: var(--radius); background: var(--ink); color: var(--paper);
}
.viewer::backdrop { background: rgba(0, 0, 0, .85); }
.viewer img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 8px; }
.viewer figcaption { margin-top: 12px; font-weight: 650; }
.viewer-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.viewer-nav button { border: 1.5px solid var(--paper); background: none; border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.viewer-nav button:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 860px) {
  .bar nav { display: none; }
  .lang { margin-left: auto; }
  .hero-body, .game, .about, .systems { grid-template-columns: 1fr; }
  .hero-avatar { max-width: 220px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html, .track { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
