@font-face {
  font-family: Manrope;
  src: url("./assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: JuliaMono;
  src: url("./assets/fonts/JuliaMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ground: #080a09;
  --surface: #111512;
  --ink: #f0f2ed;
  --muted: #a2aaa4;
  --line: #303a32;
  --leaf: #c9e7b9;
  --leaf-hover: #e2f4d8;
  --cat: #f1b66b;
  --radius: 12px;
  --body: Manrope, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: JuliaMono, monospace;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--leaf);
  color: var(--ground);
}
:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 5px;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:not(:disabled):hover,
a:hover {
  color: var(--leaf);
}
a.primary:hover {
  color: var(--ground);
}
.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
h1,
h2,
p,
figure {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.8rem, 4.9vw, 4.4rem);
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
p {
  max-width: 70ch;
}
code {
  font-family: var(--mono);
  font-size: 0.84rem;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 10;
  background: var(--leaf);
  color: var(--ground);
  padding: 10px 20px;
}
.skip:focus {
  top: 12px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  color: var(--leaf);
}
.brand span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.source-link {
  font-size: 14px;
  text-decoration: none;
}
.language {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.language button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 5px;
}
.language button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  min-height: 680px;
  padding-top: 35px;
  padding-bottom: 72px;
  gap: 12px;
}
.product-name {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--leaf);
}
.intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 36ch;
  margin-top: 28px;
}
.hero-copy .button {
  margin-top: 32px;
}
.quiet {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 20px;
  max-width: 40ch;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
}
.primary {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--ground);
  padding: 13px 22px;
  font-size: 14px;
}
.primary:hover {
  background: var(--leaf-hover);
}
.puppy-demo {
  min-width: 0;
  align-self: center;
  text-align: center;
}
.dog-stage {
  position: relative;
  height: 400px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dog-stage pre {
  font-family: var(--mono);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0;
  white-space: pre;
  color: var(--pet-ink, var(--ink));
  user-select: none;
  margin: 0;
  flex: none;
}
.dog-stage[data-ink="gold"] { --pet-ink: #e7b867; }
.dog-stage[data-ink="dark"] { --pet-ink: #433018; background: #f8f6f0; }
.dog-stage[data-ink="dark"] .preview-fallback { color: #433018; }
.preview-options { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.preview-options label { display:grid; gap:4px; color:var(--muted); font-size:12px; }
.preview-options select { max-width:100%; min-height:44px; padding:8px; font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.preview-options select:focus-visible { outline:2px solid var(--leaf); outline-offset:3px; }
.ink-command { text-align:center; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.preview-fallback {
  position: absolute;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}
.play-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 14px;
}
.play-controls .play {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.play-controls .play:hover {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--ground);
}
.demo-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 20px;
  margin: auto;
  max-width: 60ch;
}
.puppy-demo figcaption {
  font-size: 12px;
  color: var(--muted);
  margin: 4px auto 0;
  max-width: 60ch;
}
.retry {
  background: none;
  border: 0;
  color: var(--leaf);
  text-decoration: underline;
  min-height: 44px;
}
.life-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding-block: 64px 88px;
  border-top: 1px solid var(--line);
}
.life-copy p {
  font-size: 18px;
  max-width: 48ch;
}
.life-copy .muted {
  font-size: 15px;
  margin-top: 24px;
}
.muted {
  color: var(--muted);
}
.cat-jump {display:inline-block;margin-top:20px;}
.cat-section {border-top:1px solid var(--line);padding-block:64px;}
.cat-intro {margin-top:20px;max-width:70ch;}
.cat-stage {width:100%;aspect-ratio:16/9;overflow:hidden;display:grid;place-items:center;margin-top:28px;background:var(--ground);}
.cat-stage canvas,.cat-stage img {display:block;max-width:100%;}
.cat-stage img {width:100%;height:100%;object-fit:contain;}
.cat-controls {margin-top:16px;}
.cat-controls [data-cat-start] {background:var(--cat);color:var(--ground);}
.cat-controls [data-cat-start]:hover {background:var(--ink);color:var(--ground);}
.cat-status {margin-top:16px;min-height:1.7em;}
.cat-note {margin-top:8px;}
.cat-terms {display:inline-block;margin-top:8px;}
.cat-section:fullscreen {width:100%;height:100%;padding:24px;display:flex;flex-direction:column;background:var(--ground);overflow:auto;}
.cat-section:fullscreen .cat-stage {flex:1;aspect-ratio:auto;min-height:120px;margin-top:12px;}
.cat-section:fullscreen .cat-intro,.cat-section:fullscreen .cat-note,.cat-section:fullscreen .cat-terms {display:none;}
@media(max-width:620px){.cat-section {padding-block:44px;}.cat-stage {min-height:210px;}.cat-controls {gap:8px;}.cat-section:fullscreen {padding:16px;}.cat-section:fullscreen h2 {font-size:1.5rem;}}
.install-section {
  padding-block: 74px 92px;
  border-top: 1px solid var(--line);
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.text-link {
  font-size: 13px;
  color: var(--leaf);
}
.install-location {
  font-size: 15px;
  color: var(--muted);
  margin-block: 26px 28px;
}
.commands {
  padding: 0;
  margin: 0;
  list-style-position: inside;
  counter-reset: install;
}
.commands li {
  counter-increment: install;
  border-bottom: 1px solid var(--line);
  padding-block: 23px;
  list-style: none;
}
.command-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.command-label:before {
  content: counter(install) ". ";
  color: var(--leaf);
}
.command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.command-row code {
  font-size: clamp(0.75rem, 1.8vw, 1.2rem);
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
.copy {
  font-size: 12px;
  min-height: 44px;
  min-width: 64px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  padding: 8px 12px;
  flex: none;
}
.copy-feedback {
  font-size: 12px;
  min-height: 30px;
  padding-top: 8px;
  color: var(--leaf);
}
.remote-note {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 28px;
  background: var(--surface);
  padding: 24px;
  margin-block: 14px 24px;
  border-radius: var(--radius);
}
.remote-note strong {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--leaf);
}
.remote-note p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 58px;
  padding-block: 17px;
  font-size: 14px;
}
summary::marker {
  color: var(--leaf);
}
.detail-body {
  padding: 8px 0 28px 18px;
  max-width: 80ch;
}
.detail-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.detail-body .text-link {
  display: inline-block;
  margin-bottom: 20px;
}
.block-code {
  display: block;
  background: var(--surface);
  padding: 16px;
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.9;
  margin-block: 12px 20px;
}
.support-section {
  border-top: 1px solid var(--line);
  padding-block: 68px 80px;
}
.support-list {
  margin: 30px 0;
}
.support-list > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  font-size: 15px;
  font-weight: 600;
}
dd {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}
.resource-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 90ch;
  margin-bottom: 18px;
}
.goodbye-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-block: 65px 90px;
}
.goodbye-section p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 46ch;
}
.remove-commands > code {
  display: block;
  margin-block: 12px 20px;
  color: var(--leaf);
}
.remove-commands .muted {
  font-size: 12px;
  margin-bottom: 20px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 30px 48px;
  font-size: 12px;
  color: var(--muted);
}
.footer-product {
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.site-footer p {
  margin-bottom: 5px;
}
.site-footer > div:first-child p {
  margin-top: 10px;
}
.site-footer > div:last-child {
  text-align: right;
}
html:lang(ko) h1 {
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  line-height: 1.23;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
html:lang(ko) h2 {
  line-height: 1.25;
  word-break: keep-all;
}
html:lang(ko) p {
  word-break: keep-all;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ground);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid var(--ground);
  border-radius: 6px;
}
.dog-stage pre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
@media (min-width: 1550px) {
  .hero {
    min-height: 760px;
  }
  .dog-stage {
    height: 460px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .brand span {
    display: none;
  }
  .hero {
    gap: 0;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
  }
  .dog-stage {
    height: 340px;
  }
  h1 {
    font-size: clamp(2.4rem, 5.4vw, 3.5rem);
  }
  .intro {
    font-size: 16px;
  }
  .play-controls {
    gap: 6px;
  }
  .play-controls .button {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 42px;
  }
  .life-section,
  .goodbye-section {
    gap: 32px;
  }
  .remote-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  html:lang(ko) h1 {
    font-size: clamp(2.3rem, 4.9vw, 3.1rem);
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 20px;
  }
  .site-header nav {
    gap: 14px;
  }
  .source-link {
    display: none;
  }
  .brand {
    font-size: 13px;
    gap: 8px;
  }
  .brand svg {
    width: 20px;
    height: 20px;
  }
  .language button {
    padding: 4px 8px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 52px;
    gap: 20px;
    min-height: 0;
  }
  .hero-copy {
    text-align: center;
  }
  .product-name {
    margin-bottom: 14px;
    font-size: 16px;
  }
  h1 {
    font-size: clamp(2.7rem, 10vw, 3.7rem);
  }
  .intro {
    font-size: 16px;
    margin: 22px auto 0;
    max-width: 34ch;
  }
  .hero-copy .button {
    margin-top: 24px;
  }
  .quiet {
    margin: 15px auto 0;
    max-width: 36ch;
    font-size: 12px;
  }
  .dog-stage {
    height: 320px;
  }
  .play-controls {
    max-width: 360px;
  }
  .play-controls .button {
    font-size: 12px;
    min-height: 44px;
    padding: 9px 12px;
  }
  .demo-status {
    font-size: 12px;
    max-width: 43ch;
  }
  .puppy-demo figcaption {
    font-size: 12px;
    max-width: 42ch;
  }
  .life-section,
  .goodbye-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 44px 52px;
  }
  .life-copy p {
    font-size: 16px;
  }
  .life-copy .muted {
    font-size: 14px;
    margin-top: 18px;
  }
  .install-section {
    padding-block: 48px 52px;
  }
  .section-title {
    align-items: start;
  }
  .section-title .text-link {
    white-space: nowrap;
    font-size: 12px;
    padding-top: 7px;
  }
  .install-location {
    font-size: 13px;
    margin-block: 22px 12px;
  }
  .commands li {
    padding-block: 20px;
  }
  .command-row {
    gap: 10px;
  }
  .command-row code {
    font-size: 12px;
  }
  .copy {
    font-size: 12px;
    min-width: 54px;
    padding: 8px;
  }
  .remote-note {
    padding: 20px;
  }
  .remote-note p {
    font-size: 12px;
  }
  summary {
    font-size: 13px;
  }
  .detail-body {
    padding-left: 0;
  }
  .detail-body p {
    font-size: 13px;
  }
  .support-section {
    padding-block: 44px 52px;
  }
  .support-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 18px;
  }
  dd {
    font-size: 13px;
  }
  .resource-note {
    font-size: 12px;
  }
  .goodbye-section {
    gap: 18px;
  }
  .site-footer {
    display: block;
    padding-block: 28px 36px;
  }
  .site-footer > div:last-child {
    text-align: left;
    margin-top: 24px;
  }
  html:lang(ko) h1 {
    font-size: clamp(2.55rem, 9.8vw, 3.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  button:active:not(:disabled) {
    transform: none;
  }
}
.skip:hover {
  color: var(--ground);
}
