/* Values follow the Design canvases "Pennaraptora 사이트 기본 디자인" and
   "Pennaraptora 새 로고 적용안", and the colour, width, and font rules in CLAUDE.md. */

:root {
  --bg: #000000;
  --text: #EDEDED;
  --text-secondary: #D0D0D0;
  --text-muted: #A0A0A0;
  --rule: #2E2E2E;
  /* The most common blue of the feathers in the studio symbol. */
  --accent: #6794C8;
  --outline: #5A5A5A;
  /* Night sky of the Little Extinctions key art, behind the banner pictures. */
  --sky: #0A0C1B;
  --content-max: 1280px;
  --gutter: 32px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

html:lang(ko) {
  line-height: 1.7;
  word-break: keep-all;
}

body { margin: 0; }

a { color: var(--text); }
a:hover { color: #FFFFFF; }

img { display: block; }

/* Header */

.site-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.wordmark img {
  height: 18px;
  width: auto;
}

.site-header__menus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  padding: 12px 14px;
  text-decoration: none;
}

.main-nav a[aria-current="page"] { font-weight: 700; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
  font-size: 14px;
}

.lang-switch > * { padding: 12px 8px; }
.lang-switch span { font-weight: 700; }
.lang-switch a { color: var(--text-muted); text-decoration: none; }

/* Shared pieces */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

html:lang(en) .eyebrow { text-transform: uppercase; }

.game-logo { margin: 0; }
.game-logo img { width: 100%; height: auto; }
.game-logo--home img { max-width: 560px; }
.game-logo--page img { max-width: 640px; }

.game-subtitle {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 4px;
}

.button--accent {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.button--accent:hover { color: var(--bg); }

.button--outline { border: 1px solid var(--outline); }

.button--large {
  min-height: 52px;
  padding: 0 28px;
}

.label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

html:lang(en) .label { text-transform: uppercase; }

.section-title {
  margin: 0;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
}

/* Home */

/* The game's full-width banner. The art sits at the right end; the star strip
   repeats to its left on screens wider than the art. */
.home-banner {
  background-color: var(--sky);
  background-image: var(--banner-art), var(--banner-stars);
  background-repeat: no-repeat, repeat-x;
  background-position: right center, left center;
  background-size: auto 100%, auto 100%;
  min-height: 660px;
  display: flex;
}

.home-banner__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px var(--gutter) 96px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.home-banner__text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-banner__text .actions { margin-top: 10px; }

.home-banner__tagline {
  margin: 0;
  max-width: 500px;
  font-size: 20px;
  color: var(--text-secondary);
}

/* Below this width the planet would reach the text, so the art takes the top
   of the banner and the text goes below it. */
@media (max-width: 1120px) {
  .home-banner {
    background-size: auto 400px, auto 400px;
    background-position: right top, left top;
  }

  .home-banner__inner { padding-top: 360px; }
}

.studio__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px var(--gutter);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px 48px;
}

.studio .label { flex: 1 1 200px; }

.studio__line {
  margin: 0;
  flex: 4 1 520px;
  font-size: 24px;
  line-height: 1.45;
}

html:lang(ko) .studio__line { line-height: 1.5; }

/* Studio page */

.studio-logo {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.studio-logo__mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.studio-logo__symbol {
  height: min(320px, 60vw);
  width: auto;
}

.studio-logo__type {
  width: min(420px, 100%);
  height: auto;
}

.studio-logo__line {
  margin: 0;
  font-size: 24px;
  color: var(--text-secondary);
}

.studio-games { border-top: 1px solid var(--rule); }

.studio-games__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 80px var(--gutter) 96px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.studio-games .label { flex: 1 1 200px; }

.game-cards {
  flex: 4 1 520px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}

.game-card__art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.game-card__logo {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.game-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 16px;
  font-weight: 700;
}

.game-card__subtitle { color: var(--text-secondary); }
.game-card__note { color: var(--accent); }

/* Credits */

.credits {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 128px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.credits__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}

.credits__section {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
}

.credits__heading {
  margin: 0;
  flex: 1 1 200px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

html:lang(en) .credits__heading { text-transform: uppercase; }

.credits__entries {
  flex: 4 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credits__entry p { margin: 0; }
.credits__name { font-size: 22px; font-weight: 700; }
.credits__body { color: var(--text-secondary); }
.credits__link { margin-top: 4px; }

/* Game page */

.game-hero-band {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.game-intro {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.game-intro__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-intro__tagline {
  margin: 0;
  max-width: 600px;
  font-size: 20px;
  color: var(--text-secondary);
}

.game-intro__facts {
  font-size: 15px;
  color: var(--text-muted);
}

.game-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 112px var(--gutter) 0;
  box-sizing: border-box;
}

main > .game-section:last-child,
main > .game-intro:last-child { padding-bottom: 128px; }

.game-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-media .section-title { margin-bottom: 8px; }

.game-media img {
  width: 100%;
  height: auto;
}

/* Every screenshot has the same size, two per row, so no row is left short. */
.game-media__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .game-media__grid { grid-template-columns: 1fr; }
}

.game-split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.game-split .section-title { flex: 1 1 260px; }

.game-split__body {
  flex: 2 1 520px;
  /* Lets the requirements table scroll inside its box on narrow screens. */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.game-about__text {
  margin: 0;
  font-size: 20px;
  color: var(--text-secondary);
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.features li {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.features strong { font-size: 18px; }
.features span { color: var(--text-secondary); }

.game-get__body { gap: 40px; }

.game-get__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.game-get__note { color: var(--text-secondary); }

.table-scroll { overflow-x: auto; }

.requirements {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.requirements caption {
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  padding-bottom: 12px;
}

.requirements thead th {
  color: var(--text-muted);
  text-align: left;
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}

.requirements tbody th {
  text-align: left;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.requirements tbody td {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-secondary);
}

.game-privacy {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 96px var(--gutter) 128px;
  box-sizing: border-box;
  font-size: 14px;
}

.game-privacy a { color: var(--text-muted); }
.game-privacy a:hover { color: var(--text); }

/* Privacy policy */

.policy {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--gutter) 128px;
  box-sizing: border-box;
}

.policy > * { max-width: 760px; }

.policy__game {
  font-size: 15px;
  color: var(--text-muted);
}

.policy__title {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.policy__date {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.policy__intro {
  margin: 40px 0 0;
  font-size: 19px;
  color: var(--text-secondary);
}

.policy__section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.policy__section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.policy__section p,
.policy__section ul {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

.policy__section ul { padding-left: 1.2em; }
.policy__section li + li { margin-top: 4px; }

.policy__links { list-style: none; }
.policy__section .policy__links { padding-left: 0; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); }

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.site-footer__inner { align-items: center; }

.wordmark-small {
  height: 12px;
  width: auto;
}

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

.site-footer__links a {
  color: var(--text-muted);
  padding: 12px 0;
}

.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] { color: var(--text); }

/* 404 */

.not-found {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 160px var(--gutter) 176px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.not-found__code { letter-spacing: 0.12em; }

.not-found__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

html:lang(ko) .not-found__title {
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.not-found__body {
  margin: 0;
  font-size: 19px;
  color: var(--text-secondary);
}

.not-found .button { margin-top: 12px; }
