@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffdf9;
  --warm: #fff8e8;
  --ink: #252118;
  --secondary: #5e5548;
  --amber: #a44b06;
  --line: #e9decc;
  --width: 72rem;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd { margin: 0; }

address { font-style: normal; }

.wrap {
  width: min(var(--width), calc(100% - 6rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  transform: translateY(-200%);
  background: var(--paper);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.header-inner { min-height: 5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.22;
}

.brand img {
  width: 2.38rem;
  mix-blend-mode: multiply;
}

.brand-latin {
  display: block;
  margin-top: .18rem;
  color: var(--secondary);
  font-size: .67rem;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 3vw, 2rem);
  font-size: .91rem;
  font-weight: 700;
}

nav a {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
}

nav a:hover,
.site-footer a:hover { color: var(--amber); }

.language {
  min-width: 2.75rem;
  padding-inline: .5rem;
  border: 1px solid var(--line);
  border-radius: .32rem;
  font-size: .8rem;
}

.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #fff8e8, #fffcf5 52%, #fff7e6);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: clamp(32rem, 46vw, 40rem);
  align-items: center;
  gap: clamp(2rem, 5.7vw, 5.5rem);
  padding-block: 3.5rem;
}

.hero-copy h1 {
  font-size: clamp(3.3rem, 5.35vw, 5.45rem);
  font-weight: 850;
  letter-spacing: -.058em;
  line-height: 1.11;
}

.hero-copy h1 span {
  display: block;
  color: var(--amber);
}

[lang="en"] .hero-copy h1 { font-size: clamp(2.9rem, 5.05vw, 5.15rem); }

.hero-copy p,
.company-copy p {
  max-width: 29rem;
  margin-top: 1.45rem;
  color: var(--secondary);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.05rem;
  border-radius: .32rem;
  gap: 1.15rem;
  font-size: .92rem;
  font-weight: 750;
  transition: background-color .18s ease, color .18s ease;
}

.button-primary {
  margin-top: 1.7rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: #fffaf0;
}

.button-primary:hover { background: #53351d; }

.button span {
  font-size: 1.13rem;
  line-height: 1;
}

.hero-art {
  display: grid;
  place-items: center;
}

.orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 28rem);
  aspect-ratio: 1;
  isolation: isolate;
  background-image: radial-gradient(#dcb77885 1px, transparent 1px);
  background-size: 1rem 1rem;
  color: #e3c68d;
}

.orbit::before,
.orbit::after,
.orbit-center {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.orbit::before {
  inset: 3%;
  border: 1px solid currentColor;
  background: #fffbf1;
}

.orbit::after {
  inset: 11%;
  border: 1px dashed currentColor;
}

.orbit-center {
  inset: 17%;
  z-index: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 52% 49%, #fffcf0 32%, #fff0cc);
}

.orbit-center img {
  width: 78%;
  mix-blend-mode: multiply;
}

.work { padding-block: clamp(3.3rem, 7.6vw, 6.4rem); }

h2 {
  font-size: clamp(1.78rem, 3.1vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -.043em;
}

.work h2 { margin-bottom: 1.45rem; }

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: .75rem;
  background: #17140f;
  color: #fff8e8;
}

.game-art { min-height: 100%; }

.game-art img {
  width: 100%;
  height: 100%;
  min-height: 15.5rem;
  object-fit: cover;
  object-position: center;
}

.game-copy {
  align-self: center;
  padding: clamp(1.7rem, 4vw, 3.5rem);
}

.game-name {
  color: #f6c478;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .085em;
}

.game h3 {
  margin-top: .3rem;
  font-size: clamp(2.05rem, 4vw, 3.18rem);
  letter-spacing: -.04em;
  line-height: 1.18;
}

.game-copy p:not(.game-name) {
  margin-top: 1rem;
  color: #e1d5c2;
  line-height: 1.7;
}

.button-game {
  margin-top: 1.35rem;
  padding: .58rem .85rem;
  border: 1px solid #6b5941;
}

.button-game:hover {
  background: #fff2d5;
  color: var(--ink);
}

.button-game:focus-visible { outline-color: #f6c478; }

.company {
  border-block: 1px solid var(--line);
  background: #f9f2e7;
}

.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.75rem);
  padding-block: clamp(2.8rem, 6vw, 5rem);
}

.company-facts {
  display: grid;
  align-content: start;
  line-height: 1.65;
}

.company-facts div {
  padding-block: .8rem;
  border-top: 1px solid #e2d5c2;
}

.company-facts dt {
  color: var(--secondary);
  font-size: .83rem;
  font-weight: 750;
}

.company-facts dd {
  margin-top: .2rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.address-local {
  display: block;
  margin-top: .25rem;
  color: var(--secondary);
  font-size: .88rem;
  font-weight: 500;
}

.footer-inner {
  min-height: 4.65rem;
  color: var(--secondary);
  font-size: .84rem;
  line-height: 1.5;
}

.site-footer a { padding-block: .55rem; }

@media (max-width: 52rem) {
  .wrap { width: calc(100% - 3rem); }

  .hero-inner { gap: 1.6rem; }

  .hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }

  [lang="en"] .hero-copy h1 { font-size: clamp(2.52rem, 5.5vw, 4rem); }
}

@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2.5rem); }

  .header-inner { min-height: 4.55rem; }

  .brand { font-size: .93rem; }

  .brand img { width: 1.95rem; }

  nav { gap: .66rem; font-size: .82rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.8rem;
    padding-block: 2.7rem 2.2rem;
  }

  .hero-copy h1 { font-size: clamp(2.6rem, 10vw, 4.2rem); }

  [lang="en"] .hero-copy h1 { font-size: clamp(2.58rem, 9.6vw, 4rem); }

  .hero-copy p { margin-top: 1.1rem; }

  .button-primary { margin-top: 1.35rem; }

  .orbit { width: min(76%, 18rem); }

  .game, .company-inner { grid-template-columns: minmax(0, 1fr); }

  .game-art img { min-height: 0; }

  .game-copy { padding: 1.45rem 1.35rem; }

  .company-inner { gap: 1.35rem; }

  .company-copy p { margin-top: .85rem; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
    padding-block: 1rem;
  }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 1.75rem); }

  .header-inner { gap: .7rem; }

  .brand { gap: .43rem; }

  nav { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
