:root {
  color-scheme: light;
  font-family: system-ui, "Segoe UI", "Malgun Gothic", sans-serif;
  color: #171717;
  background: #fff;
  --ink: #171717;
  --muted: #595959;
  --soft: #f3f3f2;
  --line: #e6e6e4;
  --focus: #0758c2;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  --content-width: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .12em; }
button { font: inherit; }
:focus-visible { outline: .18rem solid var(--focus); outline-offset: .22rem; }
[hidden] { display: none !important; }

.wrap {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.header-content, .header-nav, .header-actions {
  display: flex;
  align-items: center;
}

.header-content {
  min-height: 4.5rem;
  gap: clamp(1.5rem, 3.5vw, 3.4rem);
}

.header-nav { gap: clamp(1rem, 2.3vw, 2rem); }
.header-actions { gap: clamp(.75rem, 2vw, 1.5rem); margin-inline-start: auto; }
.header-nav a, .locale-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  font-weight: 540;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover, .locale-link:hover { text-decoration: underline; }

.wordmark {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: .3rem;
  font-size: 1.48rem;
  font-weight: 690;
  letter-spacing: -.068em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img { width: 1.75rem; height: 1.75rem; }

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: .65rem 1.25rem;
  border-radius: 99rem;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 560;
  text-align: center;
  text-decoration: none;
}
.action:hover { background: #353535; }
.nav-action {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  font-size: .94rem;
  white-space: nowrap;
}

.hero-copy {
  max-width: 57rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6.4rem) 0 clamp(2.75rem, 5vw, 4.25rem);
  text-align: center;
}
.hero h1 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 5.6vw, 5.05rem);
  font-weight: 570;
  letter-spacing: -.072em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1:lang(ko) {
  max-width: 15em;
  font-size: clamp(2.45rem, 4.65vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -.073em;
  line-height: 1.18;
  word-break: keep-all;
}
.hero p {
  max-width: 35rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
  word-break: keep-all;
}
.hero-copy .action { margin-top: 1.6rem; }

.product-preview {
  max-width: 64rem;
  margin-inline: auto;
  scroll-margin-top: 1rem;
}
.preview-image {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4.1vw, 3rem);
  border-radius: .75rem;
  background: var(--soft);
}
.preview-image img {
  width: min(100%, 44rem);
  height: auto;
  border-radius: .5rem;
  box-shadow: 0 .75rem 2rem #0002;
}
.product-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding: .65rem 0;
  min-height: 3.5rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.preview-theme {
  display: flex;
  gap: .15rem;
  align-items: center;
}
.preview-theme button {
  min-height: 2.5rem;
  padding: .35rem .75rem;
  border: 0;
  border-radius: 99rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.preview-theme button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
}
.preview-theme button[aria-pressed="false"]:hover { background: var(--soft); }

.download-section, .setup-section {
  display: grid;
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.4rem, 7vw, 6.5rem);
  max-width: 64rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 6rem);
  scroll-margin-top: 1rem;
}
.setup-section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 580;
  letter-spacing: -.06em;
  line-height: 1.12;
}
.section-intro p, .setup-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  word-break: keep-all;
}
.section-intro p { max-width: 21rem; margin-top: .9rem; }
.section-intro a, .setup-section a, .release-link { font-weight: 550; }
.setup-section > div > a { display: inline-block; margin-top: .8rem; }

.download-list ul, .footer-nav ul { margin: 0; padding: 0; list-style: none; }
.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1rem;
  min-height: 5rem;
  padding-block: .65rem;
}
.download-list li + li { border-top: 1px solid var(--line); }
.download-list h3 { font-size: 1.18rem; font-weight: 610; letter-spacing: -.025em; }
.download-list p { margin-top: .2rem; color: var(--muted); font-size: .92rem; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.download-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .55rem;
  border-radius: .4rem;
  font-size: .94rem;
  font-weight: 560;
}
.download-link:hover { background: var(--soft); }
.release-link { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .94rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-content {
  display: grid;
  grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 2rem;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.footer-content > .wordmark { align-self: start; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.footer-nav h2 {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.45;
}
.footer-nav li { margin-top: .55rem; }
.footer-nav a { font-size: .97rem; line-height: 1.45; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.archive-page {
  max-width: 48rem;
  min-height: 26rem;
  padding-block: clamp(2.6rem, 7vw, 5rem);
}
.archive-page h1 {
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  font-weight: 570;
  letter-spacing: -.065em;
  line-height: 1.13;
  word-break: keep-all;
}
.archive-page h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; }
.archive-page p {
  margin-top: .8rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.archive-page section { margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.archive-page nav { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 1.35rem; }
.archive-page a, .archive-page nav a { font-weight: 550; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  background: #fff;
  transform: translateY(-250%);
}
.skip-link:focus { transform: none; }

@media (max-width: 47rem) {
  .header-content { min-height: 4rem; gap: .75rem; }
  .header-nav { display: none; }
  .hero-copy { padding-block: 2.85rem 2.2rem; }
  .hero-copy .action { margin-top: 1.25rem; }
  .product-preview figcaption { font-size: .875rem; }
  .download-section, .setup-section { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  .wordmark { font-size: 1.28rem; }
  .wordmark img { width: 1.55rem; height: 1.55rem; }
  .nav-action { padding-inline: .8rem; }
  .download-list li { flex-wrap: wrap; }
  .download-actions { justify-content: flex-start; }
  .preview-theme button { padding-inline: .6rem; }
}
