/* Ground Truth Lab
   tokens: paper / canvas / ink / ink-2 / line / brand  (+ 앱마다 --c)
   type:   Gmarket Sans(제목, 700) · Pretendard(본문)  */
@font-face { font-family: "GmarketSans"; font-weight: 700; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff") format("woff"); }
@font-face { font-family: "GmarketSans"; font-weight: 500; font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff"); }

:root {
  --paper: #ffffff;
  --canvas: #f4f5f7;
  --ink: #111318;
  --ink-2: #4a4f5c;
  --ink-3: #7b8090;
  --line: #e3e5ea;
  --brand: #3d5afe;
  --brand-ink: #ffffff;
  --code: #15171c;
  --display: "GmarketSans", "Pretendard Variable", Pretendard, sans-serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-lg: 28px; --r-md: 16px; --r-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17191f; --canvas: #0e0f13; --ink: #f2f3f5; --ink-2: #b9bdc8; --ink-3: #868b99; --line: #2a2d36;
    --brand: #7b8cff; --brand-ink: #0b0d1a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17191f; --canvas: #0e0f13; --ink: #f2f3f5; --ink-2: #b9bdc8; --ink-3: #868b99; --line: #2a2d36;
  --brand: #7b8cff; --brand-ink: #0b0d1a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.7 var(--sans); letter-spacing: -0.012em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.read-w { width: min(700px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo-blocks { display: grid; grid-template-columns: 10px 10px; gap: 2px; }
.logo-blocks i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.logo-blocks i:nth-child(1) { background: #4f7df3; } .logo-blocks i:nth-child(2) { background: #f2694a; }
.logo-blocks i:nth-child(3) { background: #ffc53d; } .logo-blocks i:nth-child(4) { background: #2fa36b; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--canvas); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--canvas); }
.theme-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.theme-btn svg { width: 18px; height: 18px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.app { background: var(--c); color: #fff; border-color: var(--c); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- home hero: 진열대 */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #4f7df3) 22%, transparent), transparent); transition: background .6s; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.16; letter-spacing: -0.035em; }
.hero-lead { font-size: 19px; color: var(--ink-2); margin: 20px 0 36px; max-width: 34em; }
.shelf { display: grid; gap: 8px; max-width: 520px; }
.shelf-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.shelf-item:hover { background: var(--canvas); }
.shelf-item[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 30px -12px color-mix(in srgb, var(--c) 45%, transparent); }
.shelf-item img { width: 52px; height: 52px; border-radius: 13px; }
.shelf-item b { display: block; font-size: 16px; }
.shelf-item small { display: block; color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.status { font-size: 12.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- phone */
.device { position: relative; width: min(100%, 380px, calc((100svh - 150px) * 9 / 19)); min-width: 280px; margin-inline: auto; }
.phone { position: relative; aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px; background: #0a0a0b; box-shadow: 0 0 0 1.5px #2b2c30 inset, 0 40px 80px -30px rgb(10 12 30 / .45), 0 18px 36px -18px rgb(10 12 30 / .35); }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 99px; background: #000; z-index: 3; pointer-events: none; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 28px 24px 30px; border: 0; cursor: pointer; text-align: left; color: #fff; background: #000; }
.cover > img.bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.7); z-index: 0; }
.cover > img.shot { position: absolute; z-index: 1; top: 14%; left: 7%; width: 86%; max-height: 46%; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .6); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cover:hover > img.shot { transform: translateY(-4px) scale(1.02); }
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .55) 85%); z-index: 1; }
.cover > * { position: relative; z-index: 2; }
.cover .ic { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgb(0 0 0 / .4); }
.cover .t { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.cover .d { font-size: 14px; opacity: .85; line-height: 1.5; }
.cover .go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: 15px; }
.cover .go svg { width: 14px; height: 14px; }
.cover.no-cover { background: radial-gradient(120% 90% at 50% 10%, color-mix(in srgb, var(--c) 60%, #000), #050608 72%); }
.device-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.device-bar a, .device-bar button { font-weight: 700; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.device-bar a:hover, .device-bar button:hover { color: var(--brand); }

/* ---------- sections */
.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); }
.sec-head p { margin: 8px 0 0; color: var(--ink-2); }
.sec-head .more { font-weight: 700; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.sec-head .more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- app gallery (크기가 다른 진열칸) */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; grid-column: span 2; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--c) 70%, transparent); }
.tile.wide { grid-column: span 3; }
.tile-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #0b0c10); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-art .art-icon { position: absolute; inset: 0; margin: auto; width: 34%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 16px 40px rgb(0 0 0 / .45); }
.tile-body { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 20px 22px 24px; align-items: start; }
.tile-body > img { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 12px; grid-row: span 2; margin-top: -40px; border: 3px solid var(--paper); box-sizing: content-box; }
.tile-body h3 { font-size: 20px; }
.tile-body p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; grid-column: 2; }
.tile-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.tile-foot .play { margin-left: auto; font-weight: 800; color: var(--c); }

/* ---------- notes */
.notes-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.lead-note { position: sticky; top: 96px; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lead-note .art { aspect-ratio: 16/9; background: color-mix(in srgb, var(--c) 25%, #0b0c10); position: relative; overflow: hidden; }
.lead-note .art img { width: 100%; height: 100%; object-fit: cover; }
.lead-note .art .art-icon { position: absolute; inset: 0; margin: auto; width: 26%; height: auto; aspect-ratio: 1; border-radius: 22%; }
.lead-note .in { padding: 24px 26px 28px; }
.lead-note h3 { font-size: 24px; margin: 10px 0 10px; }
.lead-note p { margin: 0; color: var(--ink-2); }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-row { border-top: 1px solid var(--line); }
.note-row:last-child { border-bottom: 1px solid var(--line); }
.note-row a { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 22px 4px; }
.note-row h3 { grid-column: 1; font-family: var(--sans); font-weight: 750; font-size: 18.5px; letter-spacing: -0.02em; line-height: 1.45; transition: color .15s; }
.note-row a:hover h3 { color: var(--brand); }
.note-row p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; grid-column: 1; }
.note-row time { grid-column: 2; grid-row: 1; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 3px; white-space: nowrap; }
.app-mark { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; grid-column: 1; justify-self: start; }
.app-mark img { width: 22px; height: 22px; border-radius: 6px; }
.app-mark .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--canvas); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.filters button.all { padding-left: 16px; }
.filters button img { width: 26px; height: 26px; border-radius: 7px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- page heads */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.035em; }
.page-head p { color: var(--ink-2); font-size: 18px; margin: 14px 0 0; max-width: 36em; }

/* ---------- app detail */
.app-top { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.app-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); pointer-events: none; }
.app-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding: 64px 0 72px; align-items: start; }
.app-grid.no-demo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-id img { width: 84px; height: 84px; border-radius: 21px; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--c) 70%, transparent); }
.app-id h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; }
.app-id .status { display: inline-block; margin-top: 8px; }
.app-tag { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.5; margin: 0 0 14px; }
.app-sum { color: var(--ink-2); font-size: 17px; margin: 0 0 30px; max-width: 36em; }
.spec { display: grid; grid-template-columns: 96px 1fr; gap: 12px 20px; margin: 0 0 32px; padding: 22px 0; border-block: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; font-weight: 600; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-note { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin: 14px 0 0; }
.app-shots { margin-top: 36px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--c); }
.timeline time { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-family: var(--sans); font-weight: 750; font-size: 20px; letter-spacing: -0.02em; margin: 4px 0 6px; }
.timeline a:hover h3 { color: var(--brand); }
.timeline p { margin: 0; color: var(--ink-2); }

/* ---------- article */
.post-head { padding: 64px 0 28px; }
.post-head .app-mark { font-size: 15px; margin-bottom: 18px; }
.post-head .app-mark img { width: 28px; height: 28px; border-radius: 8px; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.035em; line-height: 1.25; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--ink-3); font-size: 14.5px; }
.post-summary { font-size: 19px; color: var(--ink-2); line-height: 1.65; margin: 22px 0 0; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.prose { padding: 12px 0 40px; font-size: 17.5px; line-height: 1.85; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { font-size: 26px; margin-top: 2.1em; }
.prose > h3 { font-size: 20px; margin-top: 1.8em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .55em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 750; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c, #ffc53d) 28%, transparent) 0); }
.prose code { font: .86em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .15em .42em; border-radius: 6px; }
.prose pre { background: var(--code); color: #e6e8ee; padding: 20px 22px; border-radius: var(--r-md); overflow-x: auto; font-size: 14px; line-height: 1.7; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose blockquote { margin-inline: 0; padding: 18px 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.post-app { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin: 24px 0 8px; padding: 14px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: border-color .2s; }
.post-app:hover { border-color: var(--c); }
.post-app .art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #0b0c10); }
.post-app .art img { width: 100%; height: 100%; object-fit: cover; }
.post-app small { color: var(--ink-3); font-size: 13.5px; }
.post-app b { display: block; font-family: var(--display); font-size: 20px; margin: 2px 0 4px; }
.post-app span { color: var(--ink-2); font-size: 15px; }
.post-app .go { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--c); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 32px 0 96px; }
.pager a { padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); font-weight: 700; line-height: 1.45; }
.pager a:hover { border-color: var(--ink-3); }
.pager small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13.5px; margin-bottom: 4px; }
.pager .next { grid-column: 2; text-align: right; }

/* ---------- footer */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 40px 0 48px; color: var(--ink-3); font-size: 14.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a:hover { color: var(--ink); }

/* ---------- 한 번의 등장 연출 */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .shelf, .hero .device { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-lead { animation-delay: .08s; } .shelf { animation-delay: .16s; } .hero .device { animation-delay: .1s; animation-duration: 1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  .cover.swap { animation: swap .45s ease both; }
  @keyframes swap { from { opacity: .2; transform: scale(1.02); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive */
@media (max-width: 980px) {
  .hero-grid, .app-grid { grid-template-columns: 1fr; gap: 44px; padding: 48px 0 56px; }
  .hero .device, .app-grid .device { max-width: 340px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .notes-wrap { grid-template-columns: 1fr; gap: 28px; }
  .lead-note { position: static; }
}
@media (max-width: 620px) {
  .wrap, .read-w { width: calc(100% - 32px); }
  .site-head .wrap { gap: 8px; height: 58px; }
  .logo { font-size: 16px; }
  .nav a { padding: 7px 10px; font-size: 14.5px; }
  .hero-lead { font-size: 17px; margin: 16px 0 26px; }
  .shelf-item { grid-template-columns: 44px 1fr auto; padding: 8px 12px 8px 8px; }
  .shelf-item img { width: 44px; height: 44px; border-radius: 11px; }
  .shelf-item small { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .note-row a { grid-template-columns: 1fr; padding: 18px 2px; }
  .note-row time { grid-column: 1; grid-row: auto; order: -1; padding: 0; }
  .page-head { padding: 48px 0 28px; }
  .prose { font-size: 16.5px; }
  .post-app { grid-template-columns: 84px 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .phone { border-radius: 40px; padding: 9px; }
  .screen { border-radius: 32px; }
}
.tile.full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tile.full .tile-art { aspect-ratio: auto; min-height: 240px; }
.tile.full .tile-body { align-content: center; padding: 32px 36px; }
.tile.full .tile-body > img { margin-top: 0; }
@media (max-width: 980px) { .tile.full { grid-column: 1 / -1; grid-template-columns: 1fr; } .tile.full .tile-art { aspect-ratio: 16/9; min-height: 0; } .tile.full .tile-body > img { margin-top: -40px; } }
@media (max-width: 620px) { .tile.full { grid-column: span 1; } }
.logo, .nav a { white-space: nowrap; }
.logo { flex: none; }
@media (max-width: 420px) {
  .logo { font-size: 15px; gap: 8px; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .theme-btn { width: 34px; height: 34px; flex: none; }
}

/* ---------- 모바일에서 히어로 폰 목업 줄이기 (2026-11-20 추가) */
@media (max-width: 620px) {
  .hero-grid { gap: 28px; padding: 36px 0 44px; }
  .hero .device { max-width: 240px; min-width: 0; }
  .phone { border-radius: 32px; padding: 7px; }
  .phone::after { top: 14px; width: 64px; height: 18px; }
}


/* ---------- language switch (ko / en / ja) */
.lang-switch { display: flex; flex: none; gap: 2px; padding: 3px; margin-right: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang-switch a { padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); background: var(--canvas); }
.lang-switch a[aria-current] { color: var(--paper); background: var(--ink); }
@media (max-width: 620px) { .lang-switch { margin-right: 4px; padding: 2px; } .lang-switch a { padding: 3px 6px; font-size: 11px; } }
@media (max-width: 420px) { .lang-switch a { padding: 3px 5px; } }
:root:lang(ja) {
  --display: "GmarketSans", "Pretendard JP Variable", "Pretendard Variable", "Hiragino Sans", "Yu Gothic", sans-serif;
  --sans: "Pretendard JP Variable", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
html[lang="ja"] body { word-break: normal; line-break: strict; }
html[lang="en"] body { letter-spacing: -0.005em; }

@media (max-width: 620px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; row-gap: 2px; padding: 8px 0 6px; }
  .site-head .logo { order: 0; height: 36px; }
  .site-head .theme-btn { order: 1; margin-left: auto; }
  .site-head .wrap::after { content: ""; order: 1; flex-basis: 100%; }
  .site-head .nav { order: 2; margin-left: -8px; }
  .site-head .lang-switch { order: 3; margin-left: auto; margin-right: 0; align-self: center; }
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { text-wrap: balance; }
/* ---------- prose images: keep aspect ratio, cap tall screenshots */
.prose img { width: auto; height: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; display: block; border-radius: 12px; }.prose video { width: auto; height: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; display: block; border-radius: 12px; background: #000; }