:root {
  --ink: #111315;
  --ink-soft: #191c1f;
  --paper: #f4f2ed;
  --paper-bright: #ffffff;
  --text: #f7f7f2;
  --text-dark: #151719;
  --muted: #aeb3b6;
  --muted-dark: #5f6669;
  --gold: #e4b86a;
  --cyan: #53c9dd;
  --red: #c74f4c;
  --green: #6d9172;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(17, 19, 21, 0.16);
  --content: 1180px;
  --gutter: clamp(22px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text-dark);
  background: var(--paper);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, Arial,
    sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #111;
  background: #fff;
  border-radius: 4px;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, calc(var(--content) + (var(--gutter) * 2)));
  height: 78px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.86rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(88svh, 900px);
  align-items: center;
  overflow: hidden;
  color: var(--text);
  background: #0a0c0d;
}

.hero-art {
  position: absolute;
  inset: 0;
}

.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #0a0c0d 0%, rgba(10, 12, 13, 0.96) 25%, rgba(10, 12, 13, 0.24) 65%, rgba(10, 12, 13, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 12, 13, 0.52) 0%, transparent 38%);
  content: "";
}

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 43%;
  filter: brightness(0.42) saturate(0.82);
}

.hero-poster {
  position: absolute;
  top: 2%;
  right: 1%;
  width: min(58vw, 700px);
  height: 96%;
  object-fit: contain;
  object-position: right center;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 18%;
  background: linear-gradient(transparent, #0a0c0d);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, calc(var(--content) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 100px var(--gutter) 72px;
}

.hero-studio {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.3vw, 7.2rem);
  font-weight: 400;
  line-height: 0.84;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--gold);
  font-size: 0.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 12px;
}

.hero-summary {
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.32rem);
  font-weight: 520;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f2c879;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(17, 19, 21, 0.24);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(44px, 8vw, 110px);
  width: min(100%, calc(var(--content) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.overview h2,
.feature h2,
.story h2,
.about h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  font-weight: 780;
  line-height: 1.14;
}

.overview-copy p,
.feature-copy > p:last-child,
.story-copy > p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.game-facts {
  margin: 0;
  border-top: 1px solid var(--line-light);
}

.game-facts div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-light);
}

.game-facts dt,
.about-list dt {
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.game-facts dd,
.about-list dd {
  margin: 0;
  font-weight: 700;
}

.feature {
  position: relative;
  overflow: hidden;
}

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(330px, 0.65fr);
  gap: clamp(38px, 8vw, 120px);
  width: min(100%, calc(var(--content) + (var(--gutter) * 2)));
  min-height: 760px;
  align-items: center;
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.feature-reverse {
  grid-template-columns: minmax(330px, 0.65fr) minmax(0, 0.85fr);
}

.feature-reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-reverse .phone-frame {
  grid-column: 1;
  grid-row: 1;
}

.feature-dark {
  color: var(--text);
  background: var(--ink);
}

.feature-light {
  color: var(--text-dark);
  background: var(--paper-bright);
}

.feature-green {
  color: var(--text);
  background: #223028;
}

.feature-dark .feature-copy > p:last-child,
.feature-green .feature-copy > p:last-child {
  color: var(--muted);
}

.section-number {
  margin: 0 0 20px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.phone-frame {
  position: relative;
  width: min(100%, 410px);
  justify-self: center;
  margin: 0;
  padding: 8px;
  background: #0c0e0f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.phone-frame::before {
  position: absolute;
  inset: 14% auto 14% -22px;
  width: 3px;
  background: var(--cyan);
  content: "";
}

.phone-frame-red::before {
  right: -22px;
  left: auto;
  background: var(--red);
}

.phone-frame-green::before {
  background: #9dc083;
}

.phone-frame picture {
  display: block;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 730 / 1623;
  object-fit: cover;
  border-radius: 3px;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  min-height: 760px;
  color: var(--text-dark);
  background: #d9d2c5;
}

.story-media {
  min-height: 680px;
  overflow: hidden;
}

.story-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px max(var(--gutter), calc((100vw - var(--content)) / 2));
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(48px, 9vw, 140px);
  width: min(100%, calc(var(--content) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.about-heading > p {
  margin: 0 0 18px;
  color: #857048;
  font-size: 0.76rem;
  font-weight: 800;
}

.about-list {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--line-light);
}

.about-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-light);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px var(--gutter);
  color: #a8adaf;
  background: #0d0f10;
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 86svh;
  }

  .hero-art::before {
    background:
      linear-gradient(90deg, #0a0c0d 0%, rgba(10, 12, 13, 0.86) 38%, rgba(10, 12, 13, 0.18) 100%),
      linear-gradient(0deg, rgba(10, 12, 13, 0.64), transparent 50%);
  }

  .overview,
  .about {
    grid-template-columns: 1fr;
  }

  .feature-inner,
  .feature-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    min-height: 680px;
  }

  .feature-reverse .feature-copy {
    grid-column: 1;
  }

  .feature-reverse .phone-frame {
    grid-column: 2;
  }

  .story {
    grid-template-columns: 1fr 1fr;
  }

  .story-copy {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 66px;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.75rem;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    min-height: 88svh;
    align-items: flex-end;
  }

  .hero-art::before {
    background:
      linear-gradient(0deg, #0a0c0d 0%, rgba(10, 12, 13, 0.74) 42%, rgba(10, 12, 13, 0.06) 78%),
      linear-gradient(90deg, rgba(10, 12, 13, 0.25), transparent 72%);
  }

  .hero-backdrop {
    object-position: 57% 36%;
  }

  .hero-poster {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 57% 36%;
  }

  .hero-content {
    padding-top: 210px;
    padding-bottom: 66px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .hero-summary {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    flex: 1;
    padding: 0 14px;
  }

  .scroll-cue {
    display: none;
  }

  .overview {
    gap: 42px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .overview h2,
  .feature h2,
  .story h2,
  .about h2 {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }

  .feature-inner,
  .feature-reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .feature-reverse .feature-copy,
  .feature-reverse .phone-frame {
    grid-column: 1;
  }

  .feature-reverse .feature-copy {
    grid-row: 1;
  }

  .feature-reverse .phone-frame {
    grid-row: 2;
  }

  .phone-frame {
    width: min(86%, 340px);
  }

  .phone-frame::before {
    left: -15px;
  }

  .phone-frame-red::before {
    right: -15px;
    left: auto;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .story-media {
    min-height: auto;
  }

  .story-media img {
    height: auto;
    aspect-ratio: 730 / 1060;
    object-position: center top;
  }

  .story-copy {
    padding-top: 72px;
    padding-bottom: 82px;
  }

  .about {
    gap: 56px;
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 390px) {
  .site-nav a:first-child {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .game-facts div,
  .about-list div {
    grid-template-columns: 78px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
