@font-face {
  font-family: "Galmuri11";
  src: url("/assets/fonts/Galmuri11.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Galmuri11";
  src: url("/assets/fonts/Galmuri11-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Colours are picked from the company mark. */
:root {
  --cream: #fbf3e3;
  --cream-deep: #f3e3c4;
  --paper: #fffaf0;
  --ink: #3a2a25;
  --ink-soft: #6b554c;
  --pink: #eea9a4;
  --olive: #8b9141;
  --olive-pale: #e4e6bd;

  --pixel: 4px;
  --border: var(--pixel) solid var(--ink);
  --shadow: var(--pixel) var(--pixel) 0 var(--ink);

  --font-pixel: "Galmuri11", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;

  --wrap: 880px;
  --gutter: 20px;
  --header-height: 60px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-pixel);
}

.skip-link:focus {
  top: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  image-rendering: pixelated;
}

.lang-toggle {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 6px 10px;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--olive-pale);
}

/* Hero */

.hero {
  background: linear-gradient(var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: var(--border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.mascot {
  width: min(360px, 78vw);
  image-rendering: pixelated;
}

h1,
h2,
h3 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: clamp(30px, 7vw, 48px);
  margin-top: 16px;
}

.studio-ko {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3.2vw, 20px);
  color: var(--ink-soft);
  margin: 4px 0 0;
}

.tagline {
  font-size: clamp(17px, 3.4vw, 20px);
  color: var(--ink-soft);
  margin: 12px 0 0;
  max-width: 28em;
}

.hero-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 10px 0 0;
  max-width: 30em;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section + .section {
  padding-top: 0;
}

h2 {
  font-size: 26px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--pink);
  box-shadow: 0 0 0 3px var(--ink);
  flex: none;
}

.panel,
.card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel p,
.card p {
  margin: 0 0 14px;
}

.panel p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.panel-center {
  text-align: center;
}

.panel-center p {
  margin-bottom: 20px;
}

/* Project cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card-soon {
  background: var(--cream);
  border-style: dashed;
  box-shadow: none;
}

.badge {
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1.4;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  width: fit-content;
}

.badge-live {
  background: var(--olive-pale);
}

.badge-soon {
  background: var(--pink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

/* Buttons */

.button {
  display: inline-block;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--pink);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 10px 18px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button:active {
  transform: translate(var(--pixel), var(--pixel));
  box-shadow: none;
}

.button-ghost {
  background: var(--paper);
}

/* Clickable project card */

.card-link {
  text-decoration: none;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}

.card-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.card-more {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 15px;
  margin-top: auto;
  padding-top: 14px;
}

.contact-line {
  margin: 36px 0 0;
  text-align: center;
  color: var(--ink-soft);
}

.contact-line a {
  font-family: var(--font-pixel);
  font-weight: 700;
  color: var(--ink);
  text-decoration-color: var(--pink);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* Project detail page */

.page {
  padding-top: 32px;
}

.page h1 {
  margin-top: 12px;
}

.page .tagline {
  max-width: 34em;
}

.page .card-actions {
  margin: 0 0 48px;
}

.page h2 {
  margin-top: 8px;
}

.page .contact-line {
  margin: 0;
  text-align: left;
}

.back-link {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 28px;
  padding: 6px 0;
}

.back-link:hover {
  color: var(--ink);
}

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

.feature-list h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* Pages that carry both languages: show only the active one. */

html:not([lang="ko"]) [data-lang="ko"],
html[lang="ko"] [data-lang="en"] {
  display: none;
}

/* Long-form text pages (support, privacy) */

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.prose {
  max-width: 760px;
}

.prose h1 {
  font-size: clamp(26px, 6vw, 36px);
  margin: 0 0 12px;
}

.prose h2 {
  font-size: 21px;
  margin: 40px 0 12px;
}

.prose p,
.prose li {
  margin: 0 0 12px;
}

.prose ul {
  padding-left: 1.3em;
  margin: 0 0 12px;
}

.prose a {
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose .meta {
  font-size: 15px;
  color: var(--ink-soft);
}

.prose .table-wrap {
  margin: 0 0 16px;
  border: var(--border);
  background: var(--paper);
}

.prose .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.5;
}

.prose .table-wrap th,
.prose .table-wrap td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--cream-deep);
}

.prose .table-wrap thead th {
  background: var(--cream-deep);
  border-bottom: 2px solid var(--ink);
}

.prose .table-wrap th:nth-child(1) { width: 30%; }
.prose .table-wrap th:nth-child(2) { width: 25%; }

.prose .table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .prose .table-wrap thead {
    display: none;
  }

  .prose .table-wrap table,
  .prose .table-wrap tbody,
  .prose .table-wrap tr,
  .prose .table-wrap td {
    display: block;
    width: auto;
  }

  .prose .table-wrap td {
    border-bottom: 0;
    padding: 4px 12px;
  }

  .prose .table-wrap td:first-child {
    font-weight: 700;
    padding-top: 12px;
  }

  .prose .table-wrap td:last-child {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream-deep);
  }

  .prose .table-wrap tbody tr:last-child td:last-child {
    border-bottom: 0;
  }
}

/* Footer */

.site-footer {
  border-top: var(--border);
  padding: 24px 0 32px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

/* 404 */

.notfound {
  min-height: 70vh;
  justify-content: center;
}

/* Small screens */

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .panel,
  .card {
    padding: 20px;
  }
}

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

  .button {
    transition: none;
  }
}
