@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("fonts/barlow-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-black-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1f1830;
  --muted: #625a70;
  --bg: #ffffff;
  --soft: #f4f1fa;
  --line: #e7e2ef;
  --accent: #5b2bb5;
  --lime: #dff58a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --radius: 1.25rem;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem / 1.7 Barlow, "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul {
  margin: 0;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* Header / footer */

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-header {
  min-height: 4.5rem;
}

.wordmark {
  color: var(--ink);
  font: italic 900 1.6rem / 1 var(--display);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.wordmark-ko {
  font: 900 1.35rem / 1 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav .lang-link {
  border: 1px solid var(--line);
  color: var(--ink);
}

.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

.site-footer {
  margin-top: auto;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .site-nav a {
  font-size: 0.85rem;
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(circle at 80% 30%, rgb(223 245 138 / 0.55), transparent 55%),
    var(--soft);
  overflow: hidden;
}

.app-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1.1rem;
  box-shadow: 0 6px 18px rgb(31 24 48 / 0.18);
}

.game-title {
  font: italic 900 clamp(4rem, 9vw, 7.5rem) / 0.85 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.game-title span {
  color: var(--accent);
}

.game-title-ko {
  font: 900 clamp(3.4rem, 7.5vw, 6rem) / 1.05 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  margin-top: 1.75rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.hero-screens {
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  width: 32%;
  border: 5px solid var(--ink);
  border-radius: 1.4rem;
  background: var(--ink);
  box-shadow: 0 18px 40px rgb(31 24 48 / 0.22);
}

.screen-main {
  position: relative;
  z-index: 1;
  width: 38%;
}

.screen-side {
  opacity: 0.95;
}

.screen-side:first-child {
  transform: translateX(12%) rotate(-6deg) scale(0.92);
}

.screen-side:last-child {
  transform: translateX(-12%) rotate(6deg) scale(0.92);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: 1.25rem 4rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature h2 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Text pages */

.page {
  max-width: 44rem;
  padding-block: 2.5rem 4.5rem;
}

.page-head {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-head p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.lang-switch a {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.prose > section {
  padding-top: 2rem;
}

.prose > section + section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.prose section > h2:first-child,
.prose .section-title {
  margin-top: 0;
}

.prose .section-title {
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 0.6rem;
}

.prose p,
.prose li {
  color: #3b3448;
}

.prose ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.contact-card:hover {
  background: #ebe5f6;
}

.contact-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-value {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

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

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
  }

  .app-icon {
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-screens {
    margin-top: 0.5rem;
  }

  .features {
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
  }

  .site-nav a {
    padding-inline: 0.6rem;
  }
}
