/* S01 앱 허브. 색·간격은 packages/studio_core 디자인 토큰(tokens.dart)과 같은 값. */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #F6F1E7; --paper-deep: #ECE3D2; --ink: #22201C; --ink-soft: #5C574E;
  --line: #D8CDB8; --accent: #B84E28; --success: #3F7D4E; --focus: #2F5D8A;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --display: "Baloo 2", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--text); }
main, .top, .foot { max-width: 760px; margin: 0 auto; padding: 0 var(--s5); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 700; margin-top: var(--s6); }
h3 { font-size: 17px; font-weight: 700; margin-top: var(--s5); }
p, ul, dl { margin: var(--s3) 0 0; }
.small { font-size: 14px; color: var(--ink-soft); }

.top { padding-top: var(--s5); padding-bottom: var(--s5); }
.mark { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.mark span { font-weight: 500; color: var(--ink-soft); }
.foot { margin-top: var(--s7); padding-top: var(--s5); padding-bottom: var(--s6); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }

.intro { padding: var(--s6) 0 var(--s5); }
.intro p { max-width: 34em; color: var(--ink-soft); font-size: 17px; }
.label { font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

.apps { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.app-row { border-bottom: 1px solid var(--line); }
.app-link { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4) 0; color: inherit; text-decoration: none; }
.app-link img { border-radius: var(--r-lg); flex: none; }
.app-text { display: flex; flex-direction: column; gap: 2px; }
.app-name { font-family: var(--display); font-size: 20px; font-weight: 700; }
.app-link:hover .app-name { color: var(--accent); }
.app-line { color: var(--ink); }
.app-meta { font-size: 13px; color: var(--ink-soft); }

.app-head { display: flex; gap: var(--s5); align-items: flex-start; padding-top: var(--s5); }
.app-icon { border-radius: 24px; flex: none; box-shadow: 0 1px 0 var(--line); }
.lede { font-size: 18px; margin-top: var(--s2); }
.btn { display: inline-block; margin-top: var(--s4); padding: var(--s3) var(--s5); min-height: 48px; border-radius: var(--r-md); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.btn-off { background: var(--paper-deep); color: var(--ink-soft); border: 1px solid var(--line); cursor: default; }
.pitch { margin-top: var(--s5); max-width: 36em; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s6); }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.facts { margin-top: var(--s6); }
.facts dl { display: grid; grid-template-columns: 7em 1fr; gap: var(--s3) var(--s4); border-top: 1px solid var(--line); padding-top: var(--s4); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.doc { padding-top: var(--s4); max-width: 42em; }
.crumb { margin: 0 0 var(--s3); font-size: 14px; }
.doc-meta, .langs { color: var(--ink-soft); font-size: 14px; margin-top: var(--s2); }
.langs [aria-current] { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: var(--s1); }
.tbl { overflow-x: auto; margin-top: var(--s3); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .app-head { flex-direction: column; gap: var(--s4); }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); }
  .shots figure { scroll-snap-align: start; }
  .facts dl { grid-template-columns: 1fr; gap: var(--s1); }
  .facts dd { margin-bottom: var(--s3); }
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
