:root {
  color-scheme: light;
  --paper: #faf6ed;
  --ink: #302820;
  --muted: #61554a;
  --line: #ded5c8;
  --rust: #a64129;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: Georgia, "Times New Roman", "AppleMyungjo", "Noto Serif KR", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:enabled, a { cursor: pointer; }
button:disabled { opacity: .72; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, pre { margin: 0; }
h1, h2 { word-break: keep-all; }
:focus-visible { outline: 3px solid #75499a; outline-offset: 4px; }
.shell { width: min(100% - 96px, 1176px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 10px; background: var(--paper); }

.top { border-bottom: 1px solid var(--line); }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 77px; gap: 20px; }
.brand-link { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 26px; line-height: 1; font-weight: 700; letter-spacing: -.07em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: #f1d2ad; border-radius: 9px; }
.brand-mark img { display: block; width: 29px; height: auto; }
.navigation { display: flex; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 650; }
.navigation a, .language { display: inline-flex; min-height: 44px; align-items: center; }
.navigation a:hover, .language:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.language { justify-self: end; justify-content: center; min-width: 80px; border: 1px solid var(--line); border-radius: 40px; padding: 0 15px; font-size: 13px; font-weight: 700; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(30px, 5vw, 82px); padding-block: 64px 68px; }
.hero-copy { padding-block: 48px 24px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 700 13px/1.4 var(--sans); }
h1 { margin-top: 21px; font-size: clamp(36px, 4.5vw, 65px); line-height: 1.13; letter-spacing: -.068em; font-weight: 850; }
:lang(ko) h1, :lang(ko) h2 { word-spacing: .045em; }
:lang(en) h1, :lang(en) h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.067em; }
:lang(en) h1 { line-height: .99; font-size: clamp(44px, 5.3vw, 77px); }
.intro { max-width: 360px; margin-top: 23px; color: var(--muted); font-size: 17px; line-height: 1.75; word-break: keep-all; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 11px 19px 11px 21px; margin-top: 27px; background: var(--rust); color: #fffaf3; border-radius: 8px; font-weight: 750; font-size: 14px; }
.primary:hover { background: #87321f; }
.platform { color: var(--muted); font-size: 12px; margin-top: 12px; }

#demo, #wardrobe, #download, .guide-section { scroll-margin-top: 16px; }
.scene { --pet-size: clamp(157px, 19vw, 275px); position: relative; min-height: 355px; padding: 46px 17% 67px 10%; overflow: hidden; background: #dde3d2; border: 1px solid #c8d0bd; border-radius: 17px; }
.window { position: relative; min-height: 225px; border: 1px solid #cccbc1; border-radius: 10px; background: #fffdf8; box-shadow: 0 12px 28px #38482b24; }
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 13px; height: 33px; border-bottom: 1px solid #e9e3d8; color: #605850; font-size: 11px; font-weight: 650; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d1c5b8; }
.window-dots i:first-child { background: #e9ab9b; }
.window-dots i:nth-child(2) { background: #e7c58a; }
.window-dots i:nth-child(3) { background: #aabf9f; }
.window-content { padding: 19px 21px; }
.window-content p { font-size: 15px; font-weight: 750; }
.window-content ul { margin: 7px 0 0; padding-left: 16px; color: #61554a; font-size: 12px; line-height: 1.8; }
.scene-pet { position: absolute; right: 4%; bottom: calc(var(--pet-size) * -.102); width: var(--pet-size); height: auto; }
.scene-pet[data-clip="reply"] { bottom: calc(var(--pet-size) * -.079); }
.scene-pet[data-clip="pat"] { bottom: calc(var(--pet-size) * -.128); }
.scene-pet[data-clip="highfive"] { bottom: calc(var(--pet-size) * -.146); }
.scene-pet[data-clip="gift"] { bottom: calc(var(--pet-size) * -.084); }
.demo-controls { padding-top: 9px; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; }
.demo-toolbar p { color: var(--muted); font-size: 12px; }
.play { min-height: 44px; flex: 0 0 auto; padding: 0 6px; color: var(--rust); border: 0; background: transparent; font-size: 13px; font-weight: 750; }
.play:hover { text-decoration: underline; text-underline-offset: 3px; }
.play span { display: flex; align-items: center; gap: 4px; }
.demo-modes { display: flex; gap: 8px; }
.demo-modes button { min-width: 52px; min-height: 44px; padding-inline: 12px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.demo-modes button:hover { color: var(--ink); }
.demo-modes button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.step { display: flex; min-width: 0; min-height: 57px; align-items: center; text-align: left; padding: 8px 11px; border: 0; background: transparent; }
.step + .step { border-inline-start: 1px solid var(--line); }
.step:hover:enabled, .step[aria-pressed="true"] { background: #eee7da; }
.step[aria-pressed="true"] { box-shadow: inset 0 -2px var(--rust); }
.step-copy { display: grid; gap: 1px; font-size: 12px; line-height: 1.35; word-break: keep-all; }
.step-copy span { color: var(--muted); font-size: 11px; }

.wardrobe { background: #f1e9db; border-block: 1px solid #e5dacc; }
.wardrobe-inner { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(30px, 5vw, 82px); align-items: center; padding-block: 63px; }
h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 51px); line-height: 1.18; letter-spacing: -.075em; }
.wardrobe-copy > p:not(.eyebrow), .download-copy > p:not(.eyebrow) { max-width: 430px; margin-top: 14px; color: var(--muted); line-height: 1.75; word-break: keep-all; }
.outfits { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.outfit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #cfc1af; border-radius: 999px; padding: 6px 13px; background: #fffbf4; font-size: 13px; font-weight: 700; }
.outfit:hover:enabled, .outfit[aria-pressed="true"] { border-color: #785042; box-shadow: inset 0 0 0 1px #785042; }
.outfit i { width: 11px; height: 11px; border-radius: 50%; background: var(--swatch); border: 1px solid #3523243d; }
[data-outfit="cream"] { --swatch: #e7bb8b; }
[data-outfit="green"] { --swatch: #8a9d65; }
[data-outfit="yellow"] { --swatch: #e8b755; }
[data-outfit="purple"] { --swatch: #b294c3; }
[data-outfit="peach"] { --swatch: #ed9c7d; }
.wardrobe-scene { display: grid; justify-items: center; align-items: end; position: relative; isolation: isolate; min-height: 319px; overflow: hidden; background: #ecceb2; border: 1px solid #46321c24; border-radius: 20px; }
.wardrobe-scene[data-look="green"] { background: #dce4c4; }
.wardrobe-scene[data-look="yellow"] { background: #f4dea6; }
.wardrobe-scene[data-look="purple"] { background: #ddd0ea; }
.wardrobe-scene[data-look="peach"] { background: #f2d8c7; }
.dressed { position: absolute; bottom: 33px; width: min(265px, 78%); aspect-ratio: 1; }
.dressed img, .dressed svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.shelf { position: absolute; bottom: 59px; width: 78%; height: 8px; border-radius: 5px; border: 1px solid #79564b3b; background: #fff4d9a3; box-shadow: 0 5px 10px #6444231a; }
.look-caption { position: relative; margin-bottom: 18px; color: #4d3c31; font-size: 12px; font-weight: 700; }

.download { padding-block: 65px; }
.download-card { position: relative; isolation: isolate; overflow: hidden; min-height: 216px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 29%); align-items: center; gap: 15px; padding: 33px clamp(23px, 5vw, 60px); border: 1px solid #e6c7b1; border-radius: 19px; background: #f7e3d5; }
.download-card h2 { font-size: clamp(28px, 3.65vw, 45px); }
.download-copy > p:not(.eyebrow) { max-width: 470px; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 4px; margin-top: 22px; }
.download-actions .primary, .guide-actions .primary { margin-top: 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--rust); font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: #87321f; }
.download-copy > p.download-note { margin-top: 10px; font-size: 12px; }
.download-copy > p.download-support { margin-top: 6px; font-size: 13px; }
.download-support a, .guide a:not(.primary):not(.text-link) { color: var(--rust); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.download-pet { position: relative; align-self: end; display: grid; justify-items: center; margin-bottom: -52px; }
.download-pet img { width: min(196px, 100%); height: auto; display: block; }

.guide { max-width: 760px; padding-block: 56px 72px; }
.guide h1 { font-size: clamp(34px, 5vw, 48px); }
:lang(en) .guide h1 { font-size: clamp(38px, 5.6vw, 56px); }
.guide-lead { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.75; word-break: keep-all; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; margin-top: 22px; }
.guide-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide-section h2 { margin-top: 0; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; letter-spacing: -.04em; }
:lang(en) .guide-section h2 { letter-spacing: -.03em; }
.guide-section > p, .guide-section > ol { margin-top: 12px; color: var(--ink); line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.guide-section > ol { padding-left: 22px; }
.guide-section li + li { margin-top: 6px; }
.guide-section > .small { color: var(--muted); font-size: 14px; }
.guide code { font: 13px/1.6 var(--mono); background: #efe7d9; border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.guide pre { margin-top: 12px; padding: 12px 14px; overflow-x: auto; background: #efe7d9; border-radius: 8px; }
.guide pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.9; }
.table-wrap thead th { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.table-wrap tbody tr + tr > * { border-top: 1px solid var(--line); }
.table-wrap tbody th { white-space: nowrap; }
.table-wrap td:last-child code { display: inline-block; margin-right: 2px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 19px 29px; }
.footer p { color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
}
@media (max-width: 820px) {
  .shell { width: min(620px, 100% - 44px); }
  .hero { grid-template-columns: 1fr; padding-block: 36px 54px; gap: 24px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(39px, 8.8vw, 64px); }
  :lang(en) h1 { font-size: clamp(45px, 11vw, 73px); }
  .intro { margin-top: 17px; }
  .primary { margin-top: 20px; }
  .scene { --pet-size: clamp(157px, 36vw, 240px); }
  .wardrobe-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 38px; }
  .download { padding-block: 40px; }
  .guide { padding-block: 36px 54px; }
}
@media (max-width: 550px) {
  .top-inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .navigation { display: none; }
  .scene { min-height: 260px; padding: 23px 15% 31px 7%; border-radius: 14px; }
  .window { min-height: 184px; }
  .window-content { padding: 12px 12px 60px; }
  .window-content ul { max-width: 150px; }
  .step { min-height: 62px; padding: 7px; }
  .step-copy { font-size: 11px; }
  .step-copy span { font-size: 10px; }
  .wardrobe-scene { min-height: 276px; }
  .dressed { width: min(230px, 78%); bottom: 37px; }
  .download-card { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .download-pet { justify-self: end; width: 127px; margin: -7px 0 -14px; }
  .footer p { display: none; }
}
