/* 매너티냅스 공식 홈페이지 */

:root {
  --bg: #07182a;
  --surface: #0c2238;
  --line: #1b3550;
  --line-strong: #2a4663;
  --line-dash: #47637f;
  --text: #edf2f6;
  --text-2: #becbd8;
  --muted: #9fb2c5;
  --accent: #ffb938;
  --ok: #6fe0cb;
  --ink: #07182a;

  --font-body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-display: 'Black Han Sans', 'IBM Plex Sans KR', sans-serif;
  --font-label: 'Silkscreen', ui-monospace, monospace;
  --font-brand: 'Montserrat', 'IBM Plex Sans KR', sans-serif;

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--accent);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* 머리글 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 24, 42, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header .container {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand img {
  height: 36px;
  width: auto;
}

.brand span span {
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* 공통 요소 */

.eyebrow {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section {
  padding-bottom: 96px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-head h2,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: #ffc75c;
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line-dash);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
}

/* 첫 화면 */

.hero {
  padding: 72px 0 96px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.panel__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.panel__status {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.panel__status--released {
  color: var(--ok);
}

.panel__status--soon {
  color: var(--accent);
}

.pixel {
  image-rendering: pixelated;
}

.nowrap {
  white-space: nowrap;
}

/* 게임 소개 */

.feature {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature__media {
  flex: 3 1 420px;
  min-width: 0;
}

.feature__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature__body {
  flex: 2 1 300px;
  min-width: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.feature__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
}

.feature__body p {
  color: var(--text-2);
}

.feature--lead .feature__media {
  flex: 2 1 340px;
}

.feature--lead .feature__media img {
  aspect-ratio: 1 / 1;
}

.feature--lead .feature__body {
  flex: 3 1 380px;
  padding: 40px;
  gap: 16px;
}

.feature--lead .feature__body h3 {
  font-size: 40px;
}

.feature--lead .feature__body p {
  font-size: 17px;
  max-width: 520px;
}

.feature--wide .feature__media img {
  aspect-ratio: 1024 / 500;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.tag {
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.tag--released {
  background: var(--ok);
  color: var(--ink);
}

.tag--soon {
  padding: 1px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
}

.stores a {
  display: block;
  line-height: 0;
  border-radius: 8px;
}

.stores img {
  height: 52px;
  width: auto;
}

.chip {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 15px;
  color: var(--muted);
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.feature__body .note {
  color: var(--muted);
}

/* 개발 중인 게임 */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card img.from-top-left {
  object-position: left top;
}

.card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__genre {
  font-size: 13px;
  color: var(--muted);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}

.card__body p:not(.card__genre) {
  color: var(--text-2);
}

.rows {
  border-top: 1px solid var(--line);
}

.rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.rows h3 {
  flex: 1 1 220px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
}

.rows h3 small {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}

.rows p {
  flex: 2 1 300px;
  color: var(--text-2);
}

.rows span {
  flex: 0 0 96px;
  font-size: 14px;
  color: var(--muted);
}

/* Unexpected Journey */

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.uj__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  margin-bottom: 24px;
}

.uj__copy {
  flex: 2 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uj__copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.1;
}

.uj__copy p:not(.eyebrow) {
  font-size: 18px;
  color: var(--text-2);
  max-width: 480px;
}

.uj__main {
  flex: 3 1 420px;
  min-width: 0;
}

.uj__main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.uj__shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.uj__shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

/* 스튜디오 */

.studio {
  padding: 96px 0;
}

.studio .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}

.studio__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio__copy p:not(.eyebrow) {
  color: var(--text-2);
  max-width: 520px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 420px;
  padding-top: 14px;
}

.stats li {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: var(--text-2);
}

.stats strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}

.studio__logo {
  flex: 1 1 380px;
  min-width: 0;
}

.studio__logo img {
  width: 100%;
  aspect-ratio: 1200 / 698;
  object-fit: cover;
  border-radius: 10px;
}

/* 소식 */

.news {
  border-top: 1px solid var(--line);
}

.news li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.news__tag {
  flex: 0 0 84px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.news__tag--release {
  color: var(--ok);
}

.news__tag--update {
  color: var(--accent);
}

.news__title {
  flex: 1 1 300px;
  font-size: 18px;
  font-weight: 500;
}

/* 문의 */

.contact {
  background: var(--accent);
  color: var(--ink);
  padding: 80px 0;
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
}

.contact__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
}

.contact__copy p {
  font-size: 18px;
  color: #2a2410;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.contact .btn--dark:hover {
  background: #12304d;
  color: var(--text);
}

.contact .btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.contact .btn--outline:hover {
  background: rgba(7, 24, 42, 0.08);
}

.contact :focus-visible {
  outline-color: var(--ink);
}

.contact__status {
  flex-basis: 100%;
  min-height: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* 바닥글 */

.site-footer {
  padding: 48px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 56px;
}

.site-footer .brand {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 6px;
}

.site-footer .brand img {
  height: 28px;
}

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

.site-footer__info a {
  color: var(--text-2);
}

.site-footer__legal {
  font-size: 12px;
  padding-top: 6px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 24px;
}

.site-footer__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
}

/* 개인정보처리방침, 이용약관 */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  margin-bottom: 24px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-2);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal p + ul,
.legal p + ol {
  margin-top: 12px;
}

.legal ul + p,
.legal ol + p {
  margin-top: 12px;
}

.legal__updated {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* 화면 폭에 따른 조정 */

@media (max-width: 860px) {
  .section-head h2,
  .display {
    font-size: 32px;
  }

  .feature__body,
  .feature--lead .feature__body {
    padding: 28px 24px;
  }

  .feature__body h3,
  .feature--lead .feature__body h3 {
    font-size: 30px;
  }

  .contact h2 {
    font-size: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 0px;
  }

  .site-header {
    position: static;
  }

  .site-header .container {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .section {
    padding-bottom: 72px;
  }

  .band,
  .contact {
    padding: 56px 0;
  }

  .studio {
    padding: 72px 0;
  }

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

  .card__body {
    padding: 20px 24px 24px;
  }
}

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