:root {
  --ground: #f6f8f6;
  --surface: #ffffff;
  --surface-2: #edf2ed;
  
  --ink: #182218;
  --ink-2: #485748;
  --ink-3: #758375;
  
  --rule: #d2ded2;
  --rule-soft: #e5ece5;
  
  --brand: #2b772f;
  --brand-hover: #1b561e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0;
}

/* Sticky Table of Contents (Left) */
.floating-toc {
  position: sticky;
  top: 32px;
  width: 140px;
  margin-right: 36px;
  margin-top: 44px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 12px;
  font-size: 13px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule-soft);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.toc-list a i {
  font-size: 15px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.toc-list a:hover {
  color: var(--brand);
  background: var(--surface-2);
  text-decoration: none;
}

.toc-list a:hover i {
  color: var(--brand);
}

/* 화면 폭이 좁으면 본문 중심 배치를 위해 목차 숨김 */
@media (max-width: 1100px) {
  .floating-toc {
    display: none;
  }
}

a {
  color: var(--brand);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* Hero Banner Placeholder */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(240px, 45vh, 480px);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner .placeholder-text {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Masthead */
.masthead {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}

.wordmark h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* Language Bar */
.langbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.langbar .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 6px;
}

.langbtn {
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}

.langbtn:hover {
  color: var(--ink);
  border-color: var(--brand);
  text-decoration: none;
}

.langbtn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

/* Main Content Flow */
.main-content {
  padding-top: 36px;
}

section + section {
  margin-top: 48px;
}

h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 20px 0 8px;
  color: var(--ink);
}

.about h3:first-child {
  margin-top: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.short {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
  font-weight: 500;
}

.about p {
  color: var(--ink-2);
}

.about strong {
  color: var(--ink);
}

/* Trailer Box (16:9 Responsive Ratio) */
.trailer {
  position: relative;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.trailer::before {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.trailer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Screenshots Grid */
.shots {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }
}

.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface-2);
}

.shot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* News */
.news-item {
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
}

.news-item:first-child {
  border-top: none;
  padding-top: 0;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.news-item p {
  color: var(--ink-2);
}

.news-item details {
  margin-top: 12px;
}

.news-item summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  padding: 4px 0;
}

.news-item summary:hover {
  color: var(--brand-hover);
}

.news-item details[open] summary {
  margin-bottom: 10px;
}

/* Cards & Factsheet */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 20px;
}

.facts {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule-soft);
}

.facts div:last-child {
  border-bottom: none;
}

.facts dt {
  color: var(--ink-3);
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  font-weight: 600;
}

.assets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.assets li {
  padding: 4px 0;
}

.assets a {
  font-size: 14px;
  font-weight: 600;
}

.asset-note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 14px;
  margin-bottom: 0;
  font-style: italic;
}

/* Contact & Links Bottom Grid */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-mail {
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.links-list li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule-soft);
}

.links-list li:last-child {
  border-bottom: none;
}

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
